camcom 1.0.0-pre2
 
Loading...
Searching...
No Matches
camcom::server::DataFrame Struct Reference

Container for a single frame of image data with metadata. More...

#include <data_frame.hpp>

Public Member Functions

int width () const
 
int height () const
 
common::DataType dataType () const
 
int64_t frameId () const
 
size_t pixelCount () const
 
size_t bytesPerPixel () const
 

Static Public Member Functions

static size_t bytesPerPixel (common::DataType dt)
 Bytes per pixel element for the current data type.
 

Public Attributes

std::vector< uint8_t > data
 
common::FrameInfo frame_info
 

Detailed Description

Container for a single frame of image data with metadata.

Carries raw pixel data together with frame geometry, timing, and data type information through the acquisition -> publisher pipeline. The actual pixel type is described by frame_info.data_type; the data vector stores the raw bytes regardless of the underlying element type.

Member Function Documentation

◆ bytesPerPixel() [1/2]

size_t camcom::server::DataFrame::bytesPerPixel ( ) const
inline

◆ bytesPerPixel() [2/2]

static size_t camcom::server::DataFrame::bytesPerPixel ( common::DataType dt)
inlinestatic

Bytes per pixel element for the current data type.

◆ dataType()

common::DataType camcom::server::DataFrame::dataType ( ) const
inline

◆ frameId()

int64_t camcom::server::DataFrame::frameId ( ) const
inline

◆ height()

int camcom::server::DataFrame::height ( ) const
inline

◆ pixelCount()

size_t camcom::server::DataFrame::pixelCount ( ) const
inline

◆ width()

int camcom::server::DataFrame::width ( ) const
inline

Member Data Documentation

◆ data

std::vector<uint8_t> camcom::server::DataFrame::data

◆ frame_info

common::FrameInfo camcom::server::DataFrame::frame_info

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