YODAU 1.0
YEAR OF THE DEPEND ADULT UNDERGARMENT
Loading...
Searching...
No Matches
yodau::backend::frame Struct Reference

Video frame container. More...

#include <backend/include/frame.hpp>

Public Attributes

int width { 0 }
 Frame width in pixels.
int height { 0 }
 Frame height in pixels.
int stride { 0 }
 Number of bytes per row.
pixel_format format { pixel_format::bgr24 }
 Pixel format of the buffer.
std::vector< std::uint8_t > data
 Raw pixel bytes.
std::chrono::steady_clock::time_point ts
 Monotonic timestamp when the frame was captured/produced.

Detailed Description

Video frame container.

A frame holds raw pixel data and basic metadata. The buffer is stored in row-major order in data.

Typical size relation:

data.size() >= stride * height
int stride
Number of bytes per row.
Definition frame.hpp:60
int height
Frame height in pixels.
Definition frame.hpp:53
std::vector< std::uint8_t > data
Raw pixel bytes.
Definition frame.hpp:74

where stride is the number of bytes between two consecutive rows.

Note
The timestamp uses std::chrono::steady_clock and is monotonic.

Definition at line 44 of file frame.hpp.

Member Data Documentation

◆ data

std::vector<std::uint8_t> yodau::backend::frame::data

Raw pixel bytes.

Layout is determined by format and stride.

Definition at line 74 of file frame.hpp.

◆ format

pixel_format yodau::backend::frame::format { pixel_format::bgr24 }

Pixel format of the buffer.

Defaults to pixel_format::bgr24.

Definition at line 67 of file frame.hpp.

Referenced by controller::frame_from_image().

◆ height

int yodau::backend::frame::height { 0 }

Frame height in pixels.

Definition at line 53 of file frame.hpp.

53{ 0 };

Referenced by controller::frame_from_image().

◆ stride

int yodau::backend::frame::stride { 0 }

Number of bytes per row.

This may be wider than width * bytes_per_pixel due to alignment/padding.

Definition at line 60 of file frame.hpp.

60{ 0 };

Referenced by controller::frame_from_image().

◆ ts

std::chrono::steady_clock::time_point yodau::backend::frame::ts

Monotonic timestamp when the frame was captured/produced.

Definition at line 79 of file frame.hpp.

◆ width

int yodau::backend::frame::width { 0 }

Frame width in pixels.

Definition at line 48 of file frame.hpp.

48{ 0 };

Referenced by controller::frame_from_image().


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