37 #ifndef LibMultiSense_ImageMessage 38 #define LibMultiSense_ImageMessage 46 namespace multisense {
56 #ifdef SENSORPOD_FIRMWARE 59 #endif // SENSORPOD_FIRMWARE 71 #ifdef SENSORDPOD_FIRMWARE
85 #ifndef SENSORPOD_FIRMWARE 101 template<
class Archive>
107 message & bitsPerPixel;
112 const uint32_t imageSize =
static_cast<uint32_t
> (std::ceil(((
double) bitsPerPixel / 8.0) * width * height));
116 message.write(dataP, imageSize);
120 dataP = message.peek();
121 message.seek(message.tell() + imageSize);
137 #endif // !SENSORPOD_FIRMWARE
static CRL_CONSTEXPR IdType ID_DATA_IMAGE
std::string * frameId(M &m)
void serialize(Stream &stream, const T &t)
void serialize(Archive &message, const VersionType version)
#define WIRE_HEADER_ATTRIBS_
static CRL_CONSTEXPR float Default_Gain
Image(utility::BufferStreamReader &r, VersionType v)