mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-06-07 16:48:41 +02:00
Single image buffer
This commit is contained in:
@@ -40,6 +40,16 @@ struct BufferBinaryFormat {
|
||||
};
|
||||
#pragma pack(pop)
|
||||
|
||||
|
||||
struct ImageBinaryFormat {
|
||||
ImageMetadata meta;
|
||||
std::vector<char> data;
|
||||
ImageBinaryFormat(size_t H, size_t W, size_t D): data(H*W*D, 0) {};
|
||||
size_t size(){ return data.size(); }
|
||||
char* data(){ return data.data(); }
|
||||
};
|
||||
|
||||
|
||||
#pragma pack(push)
|
||||
#pragma pack(1)
|
||||
struct BufferBinaryBlock
|
||||
|
||||
Reference in New Issue
Block a user