Kind of working

This commit is contained in:
Mohacsi Istvan
2021-06-28 10:41:21 +02:00
parent 500ed354f0
commit 35cebb59e4
4 changed files with 17 additions and 16 deletions
+2 -2
View File
@@ -44,8 +44,8 @@ struct BufferBinaryFormat {
struct ImageBinaryFormat {
ImageMetadata meta;
char* data = nullptr;
size_t size;
ImageBinaryFormat(size_t H, size_t W, size_t D): size(H*W*D) { data = (char*) malloc(H*W*D); };
const size_t size;
ImageBinaryFormat(size_t H, size_t W, size_t D): size(H*W*D) { data = (char*) calloc(8*H*W*D, sizeof(int)); };
~ImageBinaryFormat(){ free(data); std::cout << "ImageBinaryFormat destructor called!" << std::endl; }
};