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

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

#include <GBufferFloatSerializer.h>

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

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, uint32_t ImageWidth, uint32_t ImageHeight, float FovAngle)
 

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 GBufferFloatSerializer.h.

Member Function Documentation

◆ Deserialize()

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

Definition at line 15 of file GBufferFloatSerializer.cpp.

Referenced by DeserializeHeader().

+ Here is the caller graph for this function:

◆ DeserializeHeader()

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

Definition at line 36 of file GBufferFloatSerializer.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::GBufferFloatSerializer::Serialize ( const Sensor &  sensor,
Buffer &&  bitmap,
uint32_t  ImageWidth,
uint32_t  ImageHeight,
float  FovAngle 
)
inlinestatic

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

Definition at line 34 of file GBufferFloatSerializer.h.


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