From b7820c71de05c8d8cff3e79b0cd0f27093f2f1cf Mon Sep 17 00:00:00 2001 From: Mohacsi Istvan Date: Tue, 14 Sep 2021 11:58:31 +0200 Subject: [PATCH] More headers --- core-buffer/include/formats.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core-buffer/include/formats.hpp b/core-buffer/include/formats.hpp index dfa3589..949a60d 100644 --- a/core-buffer/include/formats.hpp +++ b/core-buffer/include/formats.hpp @@ -39,6 +39,14 @@ struct BufferBinaryFormat { }; #pragma pack(pop) +class ImageBinaryFormat { + public: + ImageMetadata meta; + std::vector data; + ImageBinaryFormat(size_t H, size_t W, size_t D): data(H*W*D, 0) { meta.height = H; meta.width = W; }; + ~ImageBinaryFormat(){ std::cout << "ImageBinaryFormat destructor called!" << std::endl; } +}; + #pragma pack(push) #pragma pack(1) struct BufferBinaryBlock