PixelFormat
Description:
public enum PixelFormat
Pixel formats used by Cogl.
For the formats with a byte per component, the order of the components specify the order in increasing memory addresses. So for example
cogl_pixel_format_rgb_888 would have the red component in the lowest address, green in the
next address and blue after that regardless of the endianness of the system.
For the formats with non byte aligned components the component order specifies the order within a 16-bit or 32-bit number from most
significant bit to least significant. So for cogl_pixel_format_rgb_565, the red component
would be in bits 11-15, the green component would be in 6-11 and the blue component would be in 1-5. Therefore the order in memory depends
on the endianness of the system.
When uploading a texture cogl_pixel_format_any can be used as the internal format. Cogl will
try to pick the best format to use internally and convert the texture data if necessary.
Content:
Enum values:
- ANY - Any format
- A_8 - 8 bits alpha mask
- RGB_565 - RGB, 16 bits
- RGBA_4444 - RGBA, 16 bits
- RGBA_5551 - RGBA, 16 bits
- YUV - Not currently supported
- G_8 - Single luminance component
- RG_88 - RG, 16 bits.
- RGB_888 - RGB, 24 bits
- BGR_888 - BGR, 24 bits
- RGBA_8888 - RGBA, 32 bits
- BGRA_8888 - BGRA, 32 bits
- ARGB_8888 - ARGB, 32 bits
- ABGR_8888 - ABGR, 32 bits
- RGBA_1010102 - RGBA, 32 bits, 10 bpc
- BGRA_1010102 - BGRA, 32 bits, 10 bpc
- ARGB_2101010 - ARGB, 32 bits, 10 bpc
- ABGR_2101010 - ABGR, 32 bits, 10 bpc
- RGBA_8888_PRE - Premultiplied RGBA,
32 bits
- BGRA_8888_PRE - Premultiplied BGRA,
32 bits
- ARGB_8888_PRE - Premultiplied ARGB,
32 bits
- ABGR_8888_PRE - Premultiplied ABGR,
32 bits
- RGBA_4444_PRE - Premultiplied RGBA,
16 bits
- RGBA_5551_PRE - Premultiplied RGBA,
16 bits
- RGBA_1010102_PRE - Premultiplied
RGBA, 32 bits, 10 bpc
- BGRA_1010102_PRE - Premultiplied
BGRA, 32 bits, 10 bpc
- ARGB_2101010_PRE - Premultiplied
ARGB, 32 bits, 10 bpc
- ABGR_2101010_PRE - Premultiplied
ABGR, 32 bits, 10 bpc
- DEPTH_16 -
- DEPTH_32 -
- DEPTH_24_STENCIL_8 -