Gjsify LogoGjsify Logo

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.

Index

Enumeration Members

ABGR_2101010: number

ABGR, 32 bits, 10 bpc

ABGR_2101010_PRE: number

Premultiplied ABGR, 32 bits, 10 bpc

ABGR_8888: number

ABGR, 32 bits

ABGR_8888_PRE: number

Premultiplied ABGR, 32 bits

ANY: number

Any format

ARGB_2101010: number

ARGB, 32 bits, 10 bpc

ARGB_2101010_PRE: number

Premultiplied ARGB, 32 bits, 10 bpc

ARGB_8888: number

ARGB, 32 bits

ARGB_8888_PRE: number

Premultiplied ARGB, 32 bits

A_8: number

8 bits alpha mask

BGRA_1010102: number

BGRA, 32 bits, 10 bpc

BGRA_1010102_PRE: number

Premultiplied BGRA, 32 bits, 10 bpc

BGRA_8888: number

BGRA, 32 bits

BGRA_8888_PRE: number

Premultiplied BGRA, 32 bits

BGR_888: number

BGR, 24 bits

DEPTH_16: number
DEPTH_24_STENCIL_8: number
DEPTH_32: number
G_8: number

Single luminance component

RGBA_1010102: number

RGBA, 32 bits, 10 bpc

RGBA_1010102_PRE: number

Premultiplied RGBA, 32 bits, 10 bpc

RGBA_4444: number

RGBA, 16 bits

RGBA_4444_PRE: number

Premultiplied RGBA, 16 bits

RGBA_5551: number

RGBA, 16 bits

RGBA_5551_PRE: number

Premultiplied RGBA, 16 bits

RGBA_8888: number

RGBA, 32 bits

RGBA_8888_PRE: number

Premultiplied RGBA, 32 bits

RGB_565: number

RGB, 16 bits

RGB_888: number

RGB, 24 bits

RG_88: number

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

YUV: number

Not currently supported

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method