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