vg_lite_buffer_format_t enumeration
This enumeration specifies the color format to use for a buffer. This applies to both image and Render Target. Formats include supported swizzles for RGB. For YUV swizzles, use the related values and parameters in vg_lite_swizzle_t.
The application shall use the vg_lite_query_feature API to determine support for some hardware-specific formats. For example, related vg_lite_feature_t
enum values include gcFEATURE_BIT_VG_RGBA2_FORMAT
and gcFEATURE_BIT_VG_IM_INDEX_FORMAT
.
(Alignment columns refined March and Sept 2023)
Used in structure: vg_lite_buffer_t
.
See also vg_lite_blit
, vg_lite_clear
, vg_lite_draw
.
Attention: OpenVG VGImageFormat Note: The bits for each color channel are stored within a machine word from MSB to LSB in the order indicated by the pixel format name. This is the opposite of the original VG_LITE_*
formats that are ordered from LSB to MSB. The formats with the same organization are listed in the same row as their VG_Lite
counterparts.
Attention: Original VGLite API Image Format Note: The bits for each color channel are stored within a machine word from LSB to MSB in the order indicated by the pixel format name. This is the opposite of the OPENVG VG_*
formats that are ordered from MSB to LSB.
The following codes, as also used in OpenVG 1.1 Specification Table 11, are used for format description:
A - Alpha channel
B - Blue color channel
G - Green color channel
R - Red color channel
X - Uninterpreted padding byte or bit
L - Grayscale
BW - 1-bit black and white
l - Linear color space
s - Non-linear (sRGB) color space
PRE - Alpha values are premultiplied
vg_lite_buffer_format_t String Value |
Description |
Supported as source |
Supported as destination |
Start address/ Stride alignment: bytes |
---|---|---|---|---|
|
Yes |
Yes |
Start 4B / Stride 64B |
|
|
Yes |
Yes |
Start 4B / Stride 64B |
|
|
Yes |
Yes |
Start 4B / Stride 64B |
|
|
Yes |
Yes |
Start 4B / Stride 64B |
|
|
Yes |
Yes |
Start 4B / Stride 64B |
|
|
Yes |
Yes |
Start 4B / Stride 64B |
|
|
Yes |
Yes |
Start 4B / Stride 64B |
|
|
Yes |
Yes |
Start 4B / Stride 64B |
|
|
Yes |
Yes |
Start 4B / Stride 32B |
|
|
Yes |
Yes |
Start 4B / Stride 32B |
|
|
Yes |
Yes |
Start 4B / Stride 32B |
|
|
Yes |
Yes |
Start 4B / Stride 32B |
|
|
Yes |
Yes |
Start 4B / Stride 32B |
|
|
Yes |
Yes |
Start 4B / Stride 32B |
|
|
Yes |
Yes |
Start 4B / Stride 32B |
|
|
Yes |
Yes |
Start 4B / Stride 32B |
|
|
Yes |
Yes |
Start 4B / Stride 32B |
|
|
Yes |
Yes |
Start 4B / Stride 32B |
|
|
Yes |
No |
Start 4B / Stride 32B |
|
|
Yes |
No |
Start 4B / Stride 8B |
|
|
Yes |
Yes |
Start 4B / Stride 16B |
|
|
Yes |
Yes |
Start 4B / Stride 16B |
Hardware-dependent formats for vg_lite_buffer_format_t |
Description |
Supported as source |
Supported as destination |
Alignment (bytes) |
---|---|---|---|---|
|
Yes |
Yes |
Start 4B / Stride 16B |
|
|
Yes |
Yes |
Start 4B / Stride 16B |
|
|
Yes |
Yes |
Start 4B / Stride 16B |
|
|
Yes |
No |
8B |
|
|
1-bit index format |
Yes |
No |
8B |
|
2-bit index format |
Yes |
No |
both 8B |
|
4-bit index format |
Yes |
No |
both 8B |
|
8-bit index format |
Yes |
No |
both 16B |
|
Yes |
No |
Y: both 16 Bytes UV: both 8 Bytes |
|
|
Yes |
No |
A, Y: both 16 Bytes UV: both 8 Bytes |
|
|
Yes |
No |
both 32B |
|
|
Yes |
Yes |
Start 4B / Stride 32B |
|
|
Yes |
Yes |
||
|
Yes |
Yes |
||
|
Yes |
Yes |
Start 4B / Stride 32B |
|
|
Yes |
Yes |
Start 4B / Stride 32B |
|
|
Yes |
Yes |
Start 4B / Stride 32B |
Parent topic:Pixel buffer enumerations