Files
Jungfraujoch/frame_serialize/ImageMessage.h

33 lines
819 B
C++

// Copyright (2019-2022) Paul Scherrer Institute
// SPDX-License-Identifier: GPL-3.0-or-later
#ifndef JUNGFRAUJOCH_IMAGEMESSAGE_H
#define JUNGFRAUJOCH_IMAGEMESSAGE_H
#include <string>
#include <cstdint>
#include <map>
#include <vector>
#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<SpotToSave> spots;
std::vector<float> rad_int_profile;
uint64_t indexing_result; // 0 - not tried, 1 - tried and failed, 2 - tried and success
};
#endif //JUNGFRAUJOCH_IMAGEMESSAGE_H