mirror of
https://github.com/paulscherrerinstitute/sf_daq_buffer.git
synced 2026-05-03 14:34:13 +02:00
config takes image height and width instead of n_pixels
This commit is contained in:
@@ -49,7 +49,7 @@ int main (int argc, char *argv[])
|
||||
throw runtime_error(zmq_strerror(errno));
|
||||
}
|
||||
|
||||
const size_t IMAGE_N_BYTES = config.image_n_pixels * bit_depth / 8;
|
||||
const size_t IMAGE_N_BYTES = config.width * config.height * bit_depth / 8;
|
||||
RamBuffer image_buffer(config.detector_name + "_assembler",
|
||||
sizeof(ImageMetadata), IMAGE_N_BYTES,
|
||||
config.n_modules, RAM_BUFFER_N_SLOTS);
|
||||
|
||||
Reference in New Issue
Block a user