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>
101 message & bitsPerPixel;
106 const uint32_t imageSize =
static_cast<uint32_t
> (std::ceil(((
double) bitsPerPixel / 8.0) * width * height));
110 message.write(dataP, imageSize);
114 dataP = message.peek();
115 message.seek(message.tell() + imageSize);
120 #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)