CARLA
Loading...
Searching...
No Matches
carla::sensor::s11n::GBufferFloatSerializer Class Reference

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

#include <GBufferFloatSerializer.h>

Classes

struct  ImageHeader

Static Public Member Functions

static SharedPtr< SensorData > Deserialize (RawData &&data)
static const ImageHeader & DeserializeHeader (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.

◆ DeserializeHeader()

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

Definition at line 36 of file GBufferFloatSerializer.h.

◆ 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.

Member Data Documentation

◆ header_offset

auto carla::sensor::s11n::GBufferFloatSerializer::header_offset = sizeof(ImageHeader)
staticconstexpr

Definition at line 34 of file GBufferFloatSerializer.h.


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