Struct ILLIXR::data_format::eye_frame
ClassList > ILLIXR > data_format > eye_frame
#include <frame.hpp>
Public Attributes
| Type | Name |
|---|---|
| std::vector< uint8_t > | data = {}Raw pixel data (used when format is nv12 or rgba8) |
| GLuint | texture_id = {0} |
| std::array< float, 16 > | texture_transform = /* multi line expression */ |
Public Functions
| Type | Name |
|---|---|
| eye_frame () = default |
|
| eye_frame (std::vector< uint8_t > raw_data) Construct with raw data. |
|
| eye_frame (GLuint tex_id, const float * transform) Construct with texture handle and transform. |
|
| const uint8_t * | get_uv_plane (int width, int height) const Get UV plane pointer for NV12 format. |
| const uint8_t * | get_y_plane () const Get Y plane pointer for NV12 format. |
| bool | has_data () const Check if this frame has valid data. |
Detailed Description
Single eye frame data. On Android, the Vulkan path uses hw_buffer exclusively; the GL paths use texture_id / data. Only one set of fields is populated at a time.
Public Attributes Documentation
variable data
Raw pixel data (used when format is nv12 or rgba8)
std::vector<uint8_t> ILLIXR::data_format::eye_frame::data;
variable texture_id
GLuint ILLIXR::data_format::eye_frame::texture_id;
GL texture ID (used when format is external_oes) This texture is owned by the decoder and valid until the next frame
variable texture_transform
std::array<float, 16> ILLIXR::data_format::eye_frame::texture_transform;
Texture transform matrix from SurfaceTexture (4x4, column-major) Only valid when format is external_oes
Public Functions Documentation
function eye_frame [1/3]
ILLIXR::data_format::eye_frame::eye_frame () = default
function eye_frame [2/3]
Construct with raw data.
inline explicit ILLIXR::data_format::eye_frame::eye_frame (
std::vector< uint8_t > raw_data
)
function eye_frame [3/3]
Construct with texture handle and transform.
inline ILLIXR::data_format::eye_frame::eye_frame (
GLuint tex_id,
const float * transform
)
function get_uv_plane
Get UV plane pointer for NV12 format.
inline const uint8_t * ILLIXR::data_format::eye_frame::get_uv_plane (
int width,
int height
) const
function get_y_plane
Get Y plane pointer for NV12 format.
inline const uint8_t * ILLIXR::data_format::eye_frame::get_y_plane () const
function has_data
Check if this frame has valid data.
inline bool ILLIXR::data_format::eye_frame::has_data () const
The documentation for this class was generated from the following file /home/friedel/devel/ILLIXR/illixr_release/ILLIXR/include/illixr/data_format/frame.hpp