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

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

#include <NormalsImageSerializer.h>

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

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 21 of file NormalsImageSerializer.h.

Member Function Documentation

◆ Deserialize()

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

Definition at line 14 of file NormalsImageSerializer.cpp.

Referenced by DeserializeHeader().

+ Here is the caller graph for this function:

◆ DeserializeHeader()

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

Definition at line 34 of file NormalsImageSerializer.h.

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

+ Here is the call graph for this function:

◆ Serialize()

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

Definition at line 45 of file NormalsImageSerializer.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::NormalsImageSerializer::header_offset = sizeof(ImageHeader)
static

Definition at line 32 of file NormalsImageSerializer.h.


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