Pixel buffer structures
This section provides an overview on the pixel buffer structures.
vg_lite_buffer_t
structure
This structure defines the buffer layout for a VGLite image or memory data.
Used in structures: vg_lite_linear_gradient_t, vg_lite_radial_gradient_t.
Used in init functions: vg_lite_allocate, vg_lite_free, vg_lite_upload_buffer, vg_lite_map, vg_lite_unmap.
Used in blit functions:vg_lite_blit, vg_lite_blit_rect, vg_lite_clear, vg_lite_create_masklayer, vg_lite_fill_masklayer, vg_lite_blend_masklayer, vg_lite_set_masklayer, vg_lite_render_masklayer, vg_lite_destroy_masklayer
Used in draw functions: vg_lite_draw, vg_lite_draw_pattern, vg_lite_draw_grad, vg_lite_draw_radial_grad
vg_lite_buffer_t member |
Type |
Description |
---|---|---|
|
vg_lite_int32_t |
Width of buffer in pixels |
|
vg_lite_int32_t |
Height of buffer in pixels |
|
vg_lite_int32_t |
Stride in bytes |
|
Linear or tiled format for buffer enum |
|
|
color format enum |
|
|
vg_lite_pointer |
memory handle |
|
vg_lite_pointer |
pointer to the start address of the memory |
|
vg_lite_uint32_t |
GPU address |
|
YUV format info struct |
|
|
Blit image mode enum |
|
|
Image transparency mode enum |
|
|
vg_lite_fc_buffer_t |
Three (3) fast clear buffers, reserved YUV format (from March 2023) |
|
vg_lite_compress_mode |
Compression mode (from March 2023) |
|
vg_lite_index_endian_t |
Big/Little Endian setting for index formats (from March 2023) |
|
Paint type enum (from May 2023) |
|
|
vg_lite_int8_t |
Enable Image fast clear (moved from Aug 2023) |
|
vg_lite_int8_t |
Get paintcolor from different paint types (from Aug 2023) |
|
vg_lite_int8_t |
The RGB pixel values are alpha-premultipled (from Aug 2023) |
Parent topic:Pixel buffer structures
vg_lite_fc_buffer_t
structure
This structure defines the organization of a fast clear buffer. (from March 2023)
Used in structure: vg_lite_buffer_t.
vg_lite_fc_buffer_t members |
Type |
Description |
---|---|---|
width |
vg_lite_int32_t |
Width of buffer in pixels |
height |
vg_lite_int32_t |
Height of buffer in pixels |
stride |
vg_lite_int32_t |
Stride in bytes |
handle |
vg_lite_pointer |
memory handle as allocated by the VGLite kernel |
memory |
vg_lite_pointer |
logical pointer to the start address of the memory for the CPU |
address |
vg_lite_uint32_t |
address to the buffer’s memory for the GPU hardware |
color |
vg_lite_uint32_t |
The fast clear color value |
Parent topic:Pixel buffer structures
vg_lite_yuvinfo_t
structure
This structure defines the organization of VGLite YUV data.
Used in structure: vg_lite_buffer_t
.
vg_lite_yuvinfo_t member |
Type |
Description |
---|---|---|
|
UV swizzle enum |
|
|
YUV conversion standard enum |
|
`uv_planar |
vg_lite_uint32_t |
UV (U) planar address for GPU, generated by driver |
|
vg_lite_uint32_t |
V planar address for GPU, generated by driver |
`alpha_planar |
vg_lite_uint32_t |
Alpha planar address for GPU, generated by driver |
`uv_stride |
vg_lite_uint32_t |
UV (U) stride in bytes |
`v_stride |
vg_lite_uint32_t |
V planar stride in bytes |
|
vg_lite_uint32_t |
Alpha stride in bytes |
`uv_height |
vg_lite_uint32_t |
UV (U) height in pixels |
`v_height |
vg_lite_uint32_t |
V stride in bytes |
|
vg_lite_pointer |
Logical pointer to the UV (U) planar memory |
`v_memory |
vg_lite_pointer |
Logical pointer to the V planar memory |
|
vg_lite_pointer |
Memory handle of the UV (U) planar, generated by the driver |
|
vg_lite_pointer |
Memory handle of the V planar, generated by the driver |
Parent topic:Pixel buffer structures
Parent topic:Pixel buffers