CARLA
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
carla::multigpu::FrameDataReadResult Struct Reference

#include <frameDataCodec.h>

Public Member Functions

bool IsComplete () const
 Only a complete frame may be played.
 

Public Attributes

uint8_t first_skipped_id = 0u
 
std::optional< uint64_t > frame
 Value of the frame counter packet, if it was read.
 
uint32_t grown = 0u
 Known packets with trailing bytes this build does not read (written by a newer build).
 
std::size_t offset = 0u
 
uint8_t packet_id = 0u
 Id, offset and declared size of the last packet looked at.
 
uint32_t packet_size = 0u
 
uint32_t skipped = 0u
 Packets whose id this build does not know.
 
FrameDataStatus status = FrameDataStatus::Ok
 

Detailed Description

Definition at line 59 of file frameDataCodec.h.

Member Function Documentation

◆ IsComplete()

bool carla::multigpu::FrameDataReadResult::IsComplete ( ) const
inline

Only a complete frame may be played.

Definition at line 75 of file frameDataCodec.h.

References carla::multigpu::Ok, and status.

Referenced by FCarlaEngine::NotifyInitGame(), FCarlaEngine::OnPostTick(), and FFrameData::Read().

Member Data Documentation

◆ first_skipped_id

uint8_t carla::multigpu::FrameDataReadResult::first_skipped_id = 0u

◆ frame

std::optional<uint64_t> carla::multigpu::FrameDataReadResult::frame

Value of the frame counter packet, if it was read.

Definition at line 62 of file frameDataCodec.h.

Referenced by FFrameData::Read(), and carla::multigpu::ReadFrameData().

◆ grown

uint32_t carla::multigpu::FrameDataReadResult::grown = 0u

Known packets with trailing bytes this build does not read (written by a newer build).

Definition at line 72 of file frameDataCodec.h.

Referenced by FCarlaEngine::NotifyInitGame(), FCarlaEngine::OnPostTick(), and carla::multigpu::ReadFrameData().

◆ offset

std::size_t carla::multigpu::FrameDataReadResult::offset = 0u

◆ packet_id

uint8_t carla::multigpu::FrameDataReadResult::packet_id = 0u

Id, offset and declared size of the last packet looked at.

Definition at line 64 of file frameDataCodec.h.

Referenced by FCarlaEngine::NotifyInitGame(), FCarlaEngine::OnPostTick(), FFrameData::Read(), and carla::multigpu::ReadFrameData().

◆ packet_size

uint32_t carla::multigpu::FrameDataReadResult::packet_size = 0u

◆ skipped

uint32_t carla::multigpu::FrameDataReadResult::skipped = 0u

Packets whose id this build does not know.

Definition at line 68 of file frameDataCodec.h.

Referenced by FCarlaEngine::NotifyInitGame(), FCarlaEngine::OnPostTick(), and carla::multigpu::ReadFrameData().

◆ status

FrameDataStatus carla::multigpu::FrameDataReadResult::status = FrameDataStatus::Ok

The documentation for this struct was generated from the following file: