CARLA
Classes | Static Public Member Functions | Static Public Attributes | List of all members
carla::sensor::s11n::ImageSerializer Class Reference

Serializes image buffers generated by camera sensors. More...

#include <ImageSerializer.h>

+ Collaboration diagram for carla::sensor::s11n::ImageSerializer:

Classes

struct  ImageHeader
 

Static Public Member Functions

static SharedPtr< SensorDataDeserialize (RawData &&data)
 
static const ImageHeaderDeserializeHeader (const RawData &data)
 
template<typename Sensor >
static Buffer Serialize (const Sensor &sensor, Buffer &&bitmap)
 

Static Public Attributes

static constexpr auto header_offset = sizeof(ImageHeader)
 

Detailed Description

Serializes image buffers generated by camera sensors.

Definition at line 23 of file ImageSerializer.h.

Member Function Documentation

◆ Deserialize()

SharedPtr< SensorData > carla::sensor::s11n::ImageSerializer::Deserialize ( RawData &&  data)
static

Definition at line 15 of file ImageSerializer.cpp.

Referenced by DeserializeHeader().

+ Here is the caller graph for this function:

◆ DeserializeHeader()

static const ImageHeader& carla::sensor::s11n::ImageSerializer::DeserializeHeader ( const RawData data)
inlinestatic

Definition at line 36 of file ImageSerializer.h.

References carla::sensor::RawData::begin(), Deserialize(), and Serialize().

Referenced by carla::sensor::data::ImageTmpl< PixelT >::GetHeader().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Serialize()

template<typename Sensor >
Buffer carla::sensor::s11n::ImageSerializer::Serialize ( const Sensor &  sensor,
Buffer &&  bitmap 
)
inlinestatic

Definition at line 47 of file ImageSerializer.h.

References DEBUG_ASSERT.

Referenced by DeserializeHeader().

+ Here is the caller graph for this function:

Member Data Documentation

◆ header_offset

constexpr auto carla::sensor::s11n::ImageSerializer::header_offset = sizeof(ImageHeader)
static

The documentation for this class was generated from the following files: