// Copyright (2019-2022) Paul Scherrer Institute // SPDX-License-Identifier: GPL-3.0-or-later #ifndef JUNGFRAUJOCH_IMAGEMESSAGE_H #define JUNGFRAUJOCH_IMAGEMESSAGE_H #include #include #include #include #include "../compression/CompressionAlgorithmEnum.h" struct CBORImage { const uint8_t *data; size_t size; // Including compression size_t xpixel; size_t ypixel; size_t pixel_depth_bytes; bool pixel_is_signed; CompressionAlgorithm algorithm; std::string channel; }; struct DataMessage { int64_t number = INT64_MIN; CBORImage image; std::vector spots; std::vector rad_int_profile; }; #endif //JUNGFRAUJOCH_IMAGEMESSAGE_H