Enumeration (GI Enum)

Cogl-18CoglPixelFormat

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.PixelFormat.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.PixelFormat.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.PixelFormat.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.

Index
A_8: 17

8 bits alpha mask

ABGR_2101010: 125

ABGR, 32 bits, 10 bpc

ABGR_2101010_PRE: 253

Premultiplied ABGR, 32 bits, 10 bpc

ABGR_8888: 115

ABGR, 32 bits

ABGR_8888_PRE: 243

Premultiplied ABGR, 32 bits

ABGR_FP_16161616: 123

ABGR half floating point, 64 bit

ABGR_FP_16161616_PRE: 251

Premultiplied ABGR half floating point, 64 bit

ANY: 0

Any format

ARGB_2101010: 93

ARGB, 32 bits, 10 bpc

ARGB_2101010_PRE: 221

Premultiplied ARGB, 32 bits, 10 bpc

ARGB_8888: 83

ARGB, 32 bits

ARGB_8888_PRE: 211

Premultiplied ARGB, 32 bits

ARGB_FP_16161616: 91

ARGB half floating point, 64 bit

ARGB_FP_16161616_PRE: 219

Premultiplied ARGB half floating point, 64 bit

BGR_888: 34

BGR, 24 bits

BGRA_1010102: 61

BGRA, 32 bits, 10 bpc

BGRA_1010102_PRE: 189

Premultiplied BGRA, 32 bits, 10 bpc

BGRA_8888: 51

BGRA, 32 bits

BGRA_8888_PRE: 179

Premultiplied BGRA, 32 bits

BGRA_FP_16161616: 59

BGRA half floating point, 64 bit

BGRA_FP_16161616_PRE: 187

Premultiplied BGRA half floating point, 64 bit

BGRX_8888: 35

BGRX, 32 bits

BGRX_FP_16161616: 43

BGRX half floating point, 64 bit

DEPTH_16: 265
DEPTH_24_STENCIL_8: 771
R_16: 14

Single luminance component, 16 bits

R_8: 8

Single luminance component

RG_1616: 15

RG, 32 bits

RG_88: 9

RG, 16 bits. Note that red-green textures are only available if Cogl.FeatureID.OGL_FEATURE_ID_TEXTURE_RG is advertised. See cogl_texture_set_components() for details.

RGB_565: 4

RGB, 16 bits

RGB_888: 2

RGB, 24 bits

RGBA_1010102: 29

RGBA, 32 bits, 10 bpc

RGBA_1010102_PRE: 157

Premultiplied RGBA, 32 bits, 10 bpc

RGBA_16161616: 26

RGBA, 64 bits, 16bpc

RGBA_16161616_PRE: 154
RGBA_4444: 21

RGBA, 16 bits

RGBA_4444_PRE: 149

Premultiplied RGBA, 16 bits

RGBA_5551: 22

RGBA, 16 bits

RGBA_5551_PRE: 150

Premultiplied RGBA, 16 bits

RGBA_8888: 19

RGBA, 32 bits

RGBA_8888_PRE: 147

Premultiplied RGBA, 32 bits

RGBA_FP_16161616: 27

RGBA half floating point, 64 bit

RGBA_FP_16161616_PRE: 155

Premultiplied RGBA half floating point, 64 bit

RGBA_FP_32323232: 28

RGBA floating point, 128 bit

RGBA_FP_32323232_PRE: 156

Premultiplied RGBA floating point, 128 bit

RGBX_16161616: 10

RGBX, 64 bits, 16bpc

RGBX_8888: 3

RGBX, 32 bits

RGBX_FP_16161616: 11

RGBX half floating point, 64 bit

XBGR_2101010: 109

XBGR, 32 bits, 10 bpc

XBGR_8888: 99

XBGR, 32 bits

XBGR_FP_16161616: 107
XRGB_2101010: 77

XRGB, 32 bits, 10 bpc

XRGB_8888: 67

XRGB, 32 bits

XRGB_FP_16161616: 75
YUV: 7

Not currently supported

Variables

$gtype