|
YODAU 1.0
YEAR OF THE DEPEND ADULT UNDERGARMENT
|
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. | |
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:
where stride is the number of bytes between two consecutive rows.
| std::vector<std::uint8_t> yodau::backend::frame::data |
| 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().
| int yodau::backend::frame::height { 0 } |
Frame height in pixels.
Definition at line 53 of file frame.hpp.
Referenced by controller::frame_from_image().
| 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.
Referenced by controller::frame_from_image().
| std::chrono::steady_clock::time_point yodau::backend::frame::ts |
| int yodau::backend::frame::width { 0 } |
Frame width in pixels.
Definition at line 48 of file frame.hpp.
Referenced by controller::frame_from_image().