Module: Gdk::MemoryFormat
- Defined in:
- (unknown)
Constant Summary collapse
- B8G8R8A8_PREMULTIPLIED =
4 bytes; for blue, green, red, alpha.
The color values are premultiplied with the alpha value. 0 or :b8g8r8a8_premultiplied
- A8R8G8B8_PREMULTIPLIED =
4 bytes; for alpha, red, green, blue.
The color values are premultiplied with the alpha value. 1 or :a8r8g8b8_premultiplied
- R8G8B8A8_PREMULTIPLIED =
4 bytes; for red, green, blue, alpha
The color values are premultiplied with the alpha value. 2 or :r8g8b8a8_premultiplied
- B8G8R8A8 =
4 bytes; for blue, green, red, alpha.
3 or :b8g8r8a8
- A8R8G8B8 =
4 bytes; for alpha, red, green, blue.
4 or :a8r8g8b8
- R8G8B8A8 =
4 bytes; for red, green, blue, alpha.
5 or :r8g8b8a8
- A8B8G8R8 =
4 bytes; for alpha, blue, green, red.
6 or :a8b8g8r8
- R8G8B8 =
3 bytes; for red, green, blue. The data is opaque.
7 or :r8g8b8
- B8G8R8 =
3 bytes; for blue, green, red. The data is opaque.
8 or :b8g8r8
- R16G16B16 =
3 guint16 values; for red, green, blue.
9 or :r16g16b16
- R16G16B16A16_PREMULTIPLIED =
4 guint16 values; for red, green, blue, alpha. The color values are
premultiplied with the alpha value. 10 or :r16g16b16a16_premultiplied
- R16G16B16A16 =
4 guint16 values; for red, green, blue, alpha.
11 or :r16g16b16a16
- R16G16B16_FLOAT =
3 half-float values; for red, green, blue. The data is opaque.
12 or :r16g16b16_float
- R16G16B16A16_FLOAT_PREMULTIPLIED =
4 half-float values; for red, green, blue and alpha. The color values are
premultiplied with the alpha value. 13 or :r16g16b16a16_float_premultiplied
- R16G16B16A16_FLOAT =
4 half-float values; for red, green, blue and alpha.
14 or :r16g16b16a16_float
- R32G32B32_FLOAT =
3 float values; for red, green, blue.
15 or :r32g32b32_float
- R32G32B32A32_FLOAT_PREMULTIPLIED =
4 float values; for red, green, blue and alpha. The color values are
premultiplied with the alpha value. 16 or :r32g32b32a32_float_premultiplied
- R32G32B32A32_FLOAT =
4 float values; for red, green, blue and alpha.
17 or :r32g32b32a32_float
- G8A8_PREMULTIPLIED =
2 bytes; for grayscale, alpha. The color values are premultiplied with the
alpha value. 18 or :g8a8_premultiplied
- G8A8 =
2 bytes; for grayscale, alpha.
19 or :g8a8
- G8 =
One byte; for grayscale. The data is opaque.
20 or :g8
- G16A16_PREMULTIPLIED =
2 guint16 values; for grayscale, alpha. The color values are premultiplied
with the alpha value. 21 or :g16a16_premultiplied
- G16A16 =
2 guint16 values; for grayscale, alpha.
22 or :g16a16
- G16 =
One guint16 value; for grayscale. The data is opaque.
23 or :g16
- A8 =
One byte; for alpha.
24 or :a8
- A16 =
One guint16 value; for alpha.
25 or :a16
- A16_FLOAT =
One half-float value; for alpha.
26 or :a16_float
- A32_FLOAT =
One float value; for alpha.
27 or :a32_float
- A8B8G8R8_PREMULTIPLIED =
4 bytes; for alpha, blue, green, red, The color values are premultiplied with
the alpha value. 28 or :a8b8g8r8_premultiplied
- B8G8R8X8 =
4 bytes; for blue, green, red, unused.
29 or :b8g8r8x8
- X8R8G8B8 =
4 bytes; for unused, red, green, blue.
30 or :x8r8g8b8
- R8G8B8X8 =
4 bytes; for red, green, blue, unused.
31 or :r8g8b8x8
- X8B8G8R8 =
4 bytes; for unused, blue, green, red.
32 or :x8b8g8r8
- G8_B8R8_420 =
Multiplane format with 2 planes.
The first plane contains the first channel, usually containing
luma values.
The second plane with interleaved chroma values, Cb followed by Cr.
Subsampled in both the X and Y direction.Commonly known by the fourcc "NV12".
33 or :g8_b8r8_420
- G8_R8B8_420 =
Multiplane format with 2 planes.
The first plane contains the first channel, usually containing
luma values.
The second plane with interleaved chroma values, Cr followed by Cb.
Subsampled in both the X and Y direction.Commonly known by the fourcc "NV21".
34 or :g8_r8b8_420
- G8_B8R8_422 =
Multiplane format with 2 planes.
The first plane contains the first channel, usually containing
luma values.
The second plane with interleaved chroma values, Cb followed by Cr.
Subsampled in the X direction.Commonly known by the fourcc "NV16".
35 or :g8_b8r8_422
- G8_R8B8_422 =
Multiplane format with 2 planes.
The first plane contains the first channel, usually containing
luma values.
The second plane with interleaved chroma values, Cr followed by Cb.
Subsampled in the X direction.Commonly known by the fourcc "NV61".
36 or :g8_r8b8_422
- G8_B8R8_444 =
Multiplane format with 2 planes.
The first plane contains the first channel, usually containing
luma values.
The second plane with interleaved chroma values, Cb followed by Cr.
This format is not subsampled.Commonly known by the fourcc "NV24".
37 or :g8_b8r8_444
- G8_R8B8_444 =
Multiplane format with 2 planes.
The first plane contains the first channel, usually containing
luma values.
The second plane with interleaved chroma values, Cr followed by Cb.
This format is not subsampled.Commonly known by the fourcc "NV42".
38 or :g8_r8b8_444
- G10X6_B10X6R10X6_420 =
Multiplane format with 2 planes.
Each channel is a 16 bit integer, but only the highest 10 bits are used.
The first plane contains the first channel, usually containing
luma values.
The second plane with interleaved chroma values, Cr followed by Cb.
This format is not subsampled.Commonly known by the fourcc "P010".
39 or :g10x6_b10x6r10x6_420
- G12X4_B12X4R12X4_420 =
Multiplane format with 2 planes.
Each channel is a 16 bit integer, but only the highest 10 bits are used.
The first plane contains the first channel, usually containing
luma values.
The second plane with interleaved chroma values, Cr followed by Cb.
This format is not subsampled.Commonly known by the fourcc "P012".
40 or :g12x4_b12x4r12x4_420
- G16_B16R16_420 =
Multiplane format with 2 planes.
Each channel is a 16 bit integer.
The first plane contains the first channel, usually containing
luma values.
The second plane with interleaved chroma values, Cr followed by Cb.
This format is not subsampled.Commonly known by the fourcc "P016".
41 or :g16_b16r16_420
- G8_B8_R8_410 =
Multiplane format with 3 planes.
Each channel is a 8 bit integer.
The first plane usually contains the luma channel. It is mapped
into the 2nd channel.The second plane usually contains the first chroma chanel.
Subsampled in both the X and Y direction with 4:1 ratio. It is
mapped into the 3rd channel.The third plane usually contains the second chroma channel.
Subsampled in both the X and Y direction with 4:1 ratio. It is
mapped into the 1st channel.Commonly known by the fourcc "YUV410".
42 or :g8_b8_r8_410
- G8_R8_B8_410 =
Multiplane format with 3 planes.
Each channel is a 8 bit integer.
The first plane usually contains the luma channel. It is mapped
into the 2nd channel.The second plane usually contains the second chroma chanel.
Subsampled in both the X and Y direction with 4:1 ratio. It is
mapped into the 1st channel.The third plane usually contains the first chroma channel.
Subsampled in both the X and Y direction with 4:1 ratio. It is
mapped into the 3rd channel.Commonly known by the fourcc "YVU410".
43 or :g8_r8_b8_410
- G8_B8_R8_411 =
Multiplane format with 3 planes.
Each channel is a 8 bit integer.
The first plane usually contains the luma channel. It is mapped
into the 2nd channel.The second plane usually contains the first chroma chanel.
Subsampled in the X direction with 4:1 ratio. It is
mapped into the 3rd channel.The third plane usually contains the second chroma channel.
Subsampled in the X direction with 4:1 ratio. It is
mapped into the 1st channel.Commonly known by the fourcc "YUV411".
44 or :g8_b8_r8_411
- G8_R8_B8_411 =
Multiplane format with 3 planes.
Each channel is a 8 bit integer.
The first plane usually contains the luma channel. It is mapped
into the 2nd channel.The second plane usually contains the second chroma chanel.
Subsampled in the X direction with 4:1 ratio. It is
mapped into the 1st channel.The third plane usually contains the first chroma channel.
Subsampled in the X direction with 4:1 ratio. It is
mapped into the 3rd channel.Commonly known by the fourcc "YVU411".
45 or :g8_r8_b8_411
- G8_B8_R8_420 =
Multiplane format with 3 planes.
Each channel is a 8 bit integer.
The first plane usually contains the luma channel. It is mapped
into the 2nd channel.The second plane usually contains the first chroma chanel.
Subsampled in both the X and Y direction. It is mapped into the
3rd channel.The third plane usually contains the second chroma channel.
Subsampled in both the X and Y direction. It is mapped into the
1st channel.Commonly known by the fourcc "YUV420".
46 or :g8_b8_r8_420
- G8_R8_B8_420 =
Multiplane format with 3 planes.
Each channel is a 8 bit integer.
The first plane usually contains the luma channel. It is mapped
into the 2nd channel.The second plane usually contains the second chroma chanel.
Subsampled in both the X and Y direction. It is mapped into the
1st channel.The third plane usually contains the first chroma channel.
Subsampled in both the X and Y direction. It is mapped into the
3rd channel.Commonly known by the fourcc "YVU420".
47 or :g8_r8_b8_420
- G8_B8_R8_422 =
Multiplane format with 3 planes.
Each channel is a 8 bit integer.
The first plane usually contains the luma channel. It is mapped
into the 2nd channel.The second plane usually contains the first chroma chanel.
Subsampled in the X direction. It is mapped into the 3rd channel.The third plane usually contains the second chroma channel.
Subsampled in the X direction. It is mapped into the 1st channel.Commonly known by the fourcc "YUV422".
48 or :g8_b8_r8_422
- G8_R8_B8_422 =
Multiplane format with 3 planes.
Each channel is a 8 bit integer.
The first plane usually contains the luma channel. It is mapped
into the 2nd channel.The second plane usually contains the second chroma chanel.
Subsampled in the X direction. It is mapped into the 1st channel.The third plane usually contains the first chroma channel.
Subsampled in the X direction. It is mapped into the 3rd channel.Commonly known by the fourcc "YVU422".
49 or :g8_r8_b8_422
- G8_B8_R8_444 =
Multiplane format with 3 planes.
Each channel is a 8 bit integer.
The first plane usually contains the luma channel. It is mapped
into the 2nd channel.The second plane usually contains the first chroma chanel. It is
mapped into the 3rd channel.The third plane usually contains the second chroma channel. It is
mapped into the 1st channel.Commonly known by the fourcc "YUV444".
50 or :g8_b8_r8_444
- G8_R8_B8_444 =
Multiplane format with 3 planes.
Each channel is a 8 bit integer.
The first plane usually contains the luma channel. It is mapped
into the 2nd channel.The second plane usually contains the second chroma chanel.
Subsampled in the X direction. It is mapped into the 1st channel.The third plane usually contains the first chroma channel.
Subsampled in the X direction. It is mapped into the 3rd channel.Commonly known by the fourcc "YVU444".
51 or :g8_r8_b8_444
- G8B8G8R8_422 =
Packed format with subsampled channels.
Each channel is a 8 bit integer. The red and blue/chroma channels
are subsampled and interleaved with the green/luma channel.Each block contains 2 pixels, so the width must be a multiple of
2.Commonly known by the fourcc "YUYV".
52 or :g8b8g8r8_422
- G8R8G8B8_422 =
Packed format with subsampled channels.
Each channel is a 8 bit integer. The red and blue/chroma channels
are subsampled and interleaved with the green/luma channel.Each block contains 2 pixels, so the width must be a multiple of
2.Commonly known by the fourcc "YVYU".
53 or :g8r8g8b8_422
- R8G8B8G8_422 =
Packed format with subsampled channels.
Each channel is a 8 bit integer. The red and blue/chroma channels
are subsampled and interleaved with the green/luma channel.Each block contains 2 pixels, so the width must be a multiple of
2.Commonly known by the fourcc "VYUY".
54 or :r8g8b8g8_422
- B8G8R8G8_422 =
Packed format with subsampled channels.
Each channel is a 8 bit integer. The red and blue/chroma channels
are subsampled and interleaved with the green/luma channel.Each block contains 2 pixels, so the width must be a multiple of
2.Commonly known by the fourcc "UYVY".
55 or :b8g8r8g8_422
- X6G10_X6B10_X6R10_420 =
Multiplane format with 3 planes.
Each channel is a 16 bit integer.
Only the 10 lower bits are used. The remaining ones must be set to 0 by the
producer.The first plane usually contains the luma channel. It is mapped
into the 2nd channel.The second plane usually contains the first chroma chanel.
Subsampled in both the X and Y direction. It is mapped into the
3rd channel.The third plane usually contains the second chroma channel.
Subsampled in both the X and Y direction. It is mapped into the
1st channel.Commonly known by the fourcc "S010".
56 or :x6g10_x6b10_x6r10_420
- X6G10_X6B10_X6R10_422 =
Multiplane format with 3 planes.
Each channel is a 16 bit integer.
Only the 10 lower bits are used. The remaining ones must be set to 0 by the
producer.The first plane usually contains the luma channel. It is mapped
into the 2nd channel.The second plane usually contains the first chroma chanel.
Subsampled in the X direction. It is mapped into the 3rd channel.The third plane usually contains the second chroma channel.
Subsampled in the X direction. It is mapped into the 1st channel.Commonly known by the fourcc "S210".
57 or :x6g10_x6b10_x6r10_422
- X6G10_X6B10_X6R10_444 =
Multiplane format with 3 planes.
Each channel is a 16 bit integer.
Only the 10 lower bits are used. The remaining ones must be set to 0 by the
producer.The first plane usually contains the luma channel. It is mapped
into the 2nd channel.The second plane usually contains the first chroma chanel. It is
mapped into the 3rd channel.The third plane usually contains the second chroma channel. It is
mapped into the 1st channel.Commonly known by the fourcc "S410".
58 or :x6g10_x6b10_x6r10_444
- X4G12_X4B12_X4R12_420 =
Multiplane format with 3 planes.
Each channel is a 16 bit integer.
Only the 12 lower bits are used. The remaining ones must be set to 0 by the
producer.The first plane usually contains the luma channel. It is mapped
into the 2nd channel.The second plane usually contains the first chroma chanel.
Subsampled in both the X and Y direction. It is mapped into the
3rd channel.The third plane usually contains the second chroma channel.
Subsampled in both the X and Y direction. It is mapped into the
1st channel.Commonly known by the fourcc "S012".
59 or :x4g12_x4b12_x4r12_420
- X4G12_X4B12_X4R12_422 =
Multiplane format with 3 planes.
Each channel is a 16 bit integer.
Only the 12 lower bits are used. The remaining ones must be set to 0 by the
producer.The first plane usually contains the luma channel. It is mapped
into the 2nd channel.The second plane usually contains the first chroma chanel.
Subsampled in the X direction. It is mapped into the 3rd channel.The third plane usually contains the second chroma channel.
Subsampled in the X direction. It is mapped into the 1st channel.Commonly known by the fourcc "S212".
60 or :x4g12_x4b12_x4r12_422
- X4G12_X4B12_X4R12_444 =
Multiplane format with 3 planes.
Each channel is a 16 bit integer.
Only the 12 lower bits are used. The remaining ones must be set to 0 by the
producer.The first plane usually contains the luma channel. It is mapped
into the 2nd channel.The second plane usually contains the first chroma chanel. It is
mapped into the 3rd channel.The third plane usually contains the second chroma channel. It is
mapped into the 1st channel.Commonly known by the fourcc "S412".
61 or :x4g12_x4b12_x4r12_444
- G16_B16_R16_420 =
Multiplane format with 3 planes.
Each channel is a 16 bit integer.
The first plane usually contains the luma channel. It is mapped
into the 2nd channel.The second plane usually contains the first chroma chanel.
Subsampled in both the X and Y direction. It is mapped into the
3rd channel.The third plane usually contains the second chroma channel.
Subsampled in both the X and Y direction. It is mapped into the
1st channel.Commonly known by the fourcc "S016".
62 or :g16_b16_r16_420
- G16_B16_R16_422 =
Multiplane format with 3 planes.
Each channel is a 16 bit integer.
The first plane usually contains the luma channel. It is mapped
into the 2nd channel.The second plane usually contains the first chroma chanel.
Subsampled in the X direction. It is mapped into the 3rd channel.The third plane usually contains the second chroma channel.
Subsampled in the X direction. It is mapped into the 1st channel.Commonly known by the fourcc "S216".
63 or :g16_b16_r16_422
- G16_B16_R16_444 =
Multiplane format with 3 planes.
Each channel is a 16 bit integer.
The first plane usually contains the luma channel. It is mapped
into the 2nd channel.The second plane usually contains the first chroma chanel. It is
mapped into the 3rd channel.The third plane usually contains the second chroma channel. It is
mapped into the 1st channel.Commonly known by the fourcc "S416".
64 or :g16_b16_r16_444
- N_FORMATS =
The number of formats. This value will change as
more formats get added, so do not rely on its concrete integer. 65 or :n_formats