11. Example format descriptors

Table 23. Four co-sited 8-bit sRGB channels, assuming premultiplied alpha

Byte 0 (LSB) Byte 1 Byte 2 Byte 3 (MSB)

92 (totalSize)

0 (vendorId)

0 (descriptorType)

0 (versionNumber)

88 (descriptorBlockSize)

RGBSDA (colorModel)

BT709 (colorPrimaries)

SRGB (transferFunction)

PREMULTIPLIED (flags)

0 (texelBlockDimension0)

0 (texelBlockDimension1)

0 (texelBlockDimension2)

0 (texelBlockDimension3)

4 (bytesPlane0)

0 (bytesPlane1)

0 (bytesPlane2)

0 (bytesPlane3)

0 (bytesPlane4)

0 (bytesPlane5)

0 (bytesPlane6)

0 (bytesPlane7)

Sample information for the first sample

0 (bitOffset)

7 (= “8”) (bitLength)

0 (channelType) (RED)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

255 (sampleUpper)

Sample information for the second sample

8 (bitOffset)

7 (= “8”) (bitLength)

1 (channelType) (GREEN)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

255 (sampleUpper)

Sample information for the third sample

16 (bitOffset)

7 (= “8”) (bitLength)

2 (channelType) (BLUE)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

255 (sampleUpper)

Sample information for the fourth sample

24 (bitOffset)

7 (= “8”) (bitLength)

31 (channelType)

(ALPHA | LINEAR)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

255 (sampleUpper)


Table 24. 565 RGB packed 16-bit format as written to memory by a little-endian architecture

Byte 0 (LSB) Byte 1 Byte 2 Byte 3 (MSB)

76 (totalSize)

0 (vendorId)

0 (descriptorType)

0 (versionNumber)

72 (descriptorBlockSize)

RGBSDA (colorModel)

BT709 (colorPrimaries)

LINEAR (transferFunction)

ALPHA_STRAIGHT (flags)

0 (texelBlockDimension0)

0 (texelBlockDimension1)

0 (texelBlockDimension2)

0 (texelBlockDimension3)

2 (bytesPlane0)

0 (bytesPlane1)

0 (bytesPlane2)

0 (bytesPlane3)

0 (bytesPlane4)

0 (bytesPlane5)

0 (bytesPlane6)

0 (bytesPlane7)

Sample information for the first sample: 5 bits of blue

0 (bitOffset)

4 (= “5”) (bitLength)

2 (channelType) (BLUE)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

31 (sampleUpper)

Sample information for the second sample: 6 bits of green

5 (bitOffset)

5 (= “6”) (bitLength)

1 (channelType) (GREEN)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

63 (sampleUpper)

Sample information for the third sample: 5 bits of red

11 (bitOffset)

4 (= “5”) (bitLength)

0 (channelType) (RED)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

31 (sampleUpper)


Table 25. A single 8-bit monochrome channel

Byte 0 (LSB) Byte 1 Byte 2 Byte 3 (MSB)

44 (totalSize)

0 (vendorId)

0 (descriptorType)

0 (versionNumber)

40 (descriptorBlockSize)

YUVSDA (colorModel)

BT709 (colorPrimaries)

ITU (transferFunction)

ALPHA_STRAIGHT (flags)

0 (texelBlockDimension0)

0 (texelBlockDimension1)

0 (texelBlockDimension2)

0 (texelBlockDimension3)

4 (bytesPlane0)

0 (bytesPlane1)

0 (bytesPlane2)

0 (bytesPlane3)

0 (bytesPlane4)

0 (bytesPlane5)

0 (bytesPlane6)

0 (bytesPlane7)

Sample information for the first sample

0 (bitOffset)

7 (= “8”) (bitLength)

0 (channelType) (Y)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

255 (sampleUpper)


Table 26. A single 1-bit monochrome channel, as an 8×1 texel block to allow byte-alignment

Byte 0 (LSB) Byte 1 Byte 2 Byte 3 (MSB)

156 (totalSize)

0 (vendorId)

0 (descriptorType)

0 (versionNumber)

152 (descriptorBlockSize)

YUVSDA (colorModel)

BT709 (colorPrimaries)

LINEAR (transferFunction)

ALPHA_STRAIGHT (flags)

7 (texelBlockDimension0)

0 (texelBlockDimension1)

0 (texelBlockDimension2)

0 (texelBlockDimension3)

1 (bytesPlane0)

0 (bytesPlane1)

0 (bytesPlane2)

0 (bytesPlane3)

0 (bytesPlane4)

0 (bytesPlane5)

0 (bytesPlane6)

0 (bytesPlane7)

Sample information for the first sample

0 (bitOffset)

0 (= “1”) (bitLength)

0 (channelType) (Y)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

1 (sampleUpper)

Sample information for the second sample

1 (bitOffset)

0 (= “1”) (bitLength)

0 (channelType) (Y)

2 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

1 (sampleUpper)

Sample information for the third sample

2 (bitOffset)

0 (= “1”) (bitLength)

0 (channelType) (Y)

4 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

1 (sampleUpper)

Sample information for the fourth sample

3 (bitOffset)

0 (= “1”) (bitLength)

0 (channelType) (Y)

6 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

1 (sampleUpper)

Sample information for the fifth sample

4 (bitOffset)

0 (= “1”) (bitLength)

0 (channelType) (Y)

8 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

1 (sampleUpper)

Sample information for the sixth sample

5 (bitOffset)

0 (= “1”) (bitLength)

0 (channelType) (Y)

10 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

1 (sampleUpper)

Sample information for the seventh sample

6 (bitOffset)

0 (= “1”) (bitLength)

0 (channelType) (Y)

12 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

1 (sampleUpper)

Sample information for the eighth sample

7 (bitOffset)

0 (= “1”) (bitLength)

0 (channelType) (Y)

14 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

1 (sampleUpper)


Table 27. 2×2 Bayer pattern: four 8-bit distributed sRGB channels, spread across two lines (so two planes)

Byte 0 (LSB) Byte 1 Byte 2 Byte 3 (MSB)

92 (totalSize)

0 (vendorId)

0 (descriptorType)

0 (versionNumber)

88 (descriptorBlockSize)

RGBSDA (colorModel)

BT709 (colorPrimaries)

SRGB (transferFunction)

ALPHA_STRAIGHT (flags)

1 (texelBlockDimension0)

1 (texelBlockDimension1)

0 (texelBlockDimension2)

0 (texelBlockDimension3)

2 (bytesPlane0)

2 (bytesPlane1)

0 (bytesPlane2)

0 (bytesPlane3)

0 (bytesPlane4)

0 (bytesPlane5)

0 (bytesPlane6)

0 (bytesPlane7)

Sample information for the first sample

0 (bitOffset)

7 (= “8”) (bitLength)

0 (channelType) (RED)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

255 (sampleUpper)

Sample information for the second sample

8 (bitOffset)

7 (= “8”) (bitLength)

1 (channelType) (GREEN)

2 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

255 (sampleUpper)

Sample information for the third sample

16 (bitOffset)

7 (= “8”) (bitLength)

1 (channelType) (GREEN)

0 (samplePosition0)

2 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

255 (sampleUpper)

Sample information for the fourth sample

24 (bitOffset)

7 (= “8”) (bitLength)

2 (channelType) (BLUE)

2 (samplePosition0)

2 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

255 (sampleUpper)


Table 28. Four co-sited 8-bit channels in the sRGB color space described by an 5-entry, 3-bit palette

Byte 0 (LSB) Byte 1 Byte 2 Byte 3 (MSB)

108 (totalSize)

0 (vendorId)

0 (descriptorType)

0 (versionNumber)

104 (descriptorBlockSize)

RGBSDA (colorModel)

BT709 (colorPrimaries)

SRGB (transferFunction)

PREMULTIPLIED (flags)

0 (texelBlockDimension0)

0 (texelBlockDimension1)

0 (texelBlockDimension2)

0 (texelBlockDimension3)

0 (bytesPlane0)

4 (bytesPlane1)

0 (bytesPlane2)

0 (bytesPlane3)

0 (bytesPlane4)

0 (bytesPlane5)

0 (bytesPlane6)

0 (bytesPlane7)

Sample information for the palette index

0 (bitOffset)

2 (= “3”) (bitLength)

0 (channelType) (irrelevant)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

4 (sampleUpper) — this specifies that there are 5 palette entries

Sample information for the first sample

0 (bitOffset)

7 (= “8”) (bitLength)

0 (channelType) (RED)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

255 (sampleUpper)

Sample information for the second sample

8 (bitOffset)

7 (= “8”) (bitLength)

1 (channelType) (GREEN)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

255 (sampleUpper)

Sample information for the third sample

16 (bitOffset)

7 (= “8”) (bitLength)

2 (channelType) (BLUE)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

255 (sampleUpper)

Sample information for the fourth sample

24 (bitOffset)

7 (= “8”) (bitLength)

31 (channelType)

(ALPHA | LINEAR)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

255 (sampleUpper)


Table 29. Y′CBCR 4:2:0: BT.709 reduced-range data, with CB and CR aligned to the midpoint of the Y samples

Byte 0 (LSB) Byte 1 Byte 2 Byte 3 (MSB)

124 (totalSize)

0 (vendorId)

0 (descriptorType)

0 (versionNumber)

120 (descriptorBlockSize)

YUVSDA (colorModel)

BT709 (colorPrimaries)

ITU (transferFunction)

ALPHA_STRAIGHT (flags)

1 (texelBlockDimension0)

1 (texelBlockDimension1)

0 (texelBlockDimension2)

0 (texelBlockDimension3)

2 (bytesPlane0)

2 (bytesPlane1)

1 (bytesPlane2)

1 (bytesPlane3)

0 (bytesPlane4)

0 (bytesPlane5)

0 (bytesPlane6)

0 (bytesPlane7)

Sample information for the first Y sample

0 (bitOffset)

7 (= “8”) (bitLength)

0 (channelType) (Y)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

16 (sampleLower)

235 (sampleUpper)

Sample information for the second Y sample

8 (bitOffset)

7 (= “8”) (bitLength)

0 (channelType) (Y)

2 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

16 (sampleLower)

235 (sampleUpper)

Sample information for the third Y sample

16 (bitOffset)

7 (= “8”) (bitLength)

0 (channelType) (Y)

0 (samplePosition0)

2 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

16 (sampleLower)

235 (sampleUpper)

Sample information for the fourth Y sample

24 (bitOffset)

7 (= “8”) (bitLength)

0 (channelType) (Y)

2 (samplePosition0)

2 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

16 (sampleLower)

235 (sampleUpper)

Sample information for the U sample

32 (bitOffset)

7 (= “8”) (bitLength)

1 (channelType) (U)

1 (samplePosition0)

1 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

16 (sampleLower)

240 (sampleUpper)

Sample information for the V sample

36 (bitOffset)

7 (= “8”) (bitLength)

2 (channelType) (V)

1 (samplePosition0)

1 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

16 (sampleLower)

240 (sampleUpper)


Table 30. 565 RGB packed 16-bit format as written to memory by a big-endian architecture

Byte 0 (LSB) Byte 1 Byte 2 Byte 3 (MSB)

92 (totalSize)

0 (vendorId)

0 (descriptorType)

0 (versionNumber)

88 (descriptorBlockSize)

RGBSDA (colorModel)

BT709 (colorPrimaries)

SRGB (transferFunction)

ALPHA_STRAIGHT (flags)

0 (texelBlockDimension0)

0 (texelBlockDimension1)

0 (texelBlockDimension2)

0 (texelBlockDimension3)

2 (bytesPlane0)

0 (bytesPlane1)

0 (bytesPlane2)

0 (bytesPlane3)

0 (bytesPlane4)

0 (bytesPlane5)

0 (bytesPlane6)

0 (bytesPlane7)

Sample information for the first sample: bit 0 belongs to green, bits 0..2 of channel in 13..15

13 (bitOffset)

2 (= “3”) (bitLength)

1 (channelType) (GREEN)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

63 (sampleUpper)

Sample information for the second sample: bits 3..5 of green in 0..2

0 (bitOffset)

2 (= “3”) (bitLength)

1 (channelType) (GREEN)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower) — ignored, taken from first sample

0 (sampleUpper) — ignored, taken from first sample

Sample information for the third sample

3 (bitOffset)

4 (= “5”) (bitLength)

2 (channelType) (BLUE)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

31 (sampleUpper)

Sample information for the fourth sample

8 (bitOffset)

4 (= “5”) (bitLength)

1 (channelType) (RED)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

31 (sampleUpper)


Table 31. R9G9B9E5 shared-exponent format

Byte 0 (LSB) Byte 1 Byte 2 Byte 3 (MSB)

124 (totalSize)

0 (vendorId)

0 (descriptorType)

0 (versionNumber)

120 (descriptorBlockSize)

RGBSDA (colorModel)

BT709 (colorPrimaries)

LINEAR (transferFunction)

ALPHA_STRAIGHT (flags)

0 (texelBlockDimension0)

0 (texelBlockDimension1)

0 (texelBlockDimension2)

0 (texelBlockDimension3)

4 (bytesPlane0)

0 (bytesPlane1)

0 (bytesPlane2)

0 (bytesPlane3)

0 (bytesPlane4)

0 (bytesPlane5)

0 (bytesPlane6)

0 (bytesPlane7)

Sample information for the R mantissa

0 (bitOffset)

8 (= “9”) (bitLength)

0 (channelType) (RED)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

256 (sampleUpper) — mantissa at 1.0

Sample information for the R exponent

27 (bitOffset)

4 (= “5”) (bitLength)

32 (channelType)

(RED | EXPONENT)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

15 (sampleUpper) — exponent bias

Sample information for the G mantissa

9 (bitOffset)

8 (= “9”) (bitLength)

1 (channelType) (GREEN)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

256 (sampleUpper) — mantissa at 1.0

Sample information for the G exponent

27 (bitOffset)

4 (= “5”) (bitLength)

33 (channelType)

(GREEN | EXPONENT)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

15 (sampleUpper) — exponent bias

Sample information for the B mantissa

18 (bitOffset)

8 (= “9”) (bitLength)

2 (channelType) (BLUE)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

256 (sampleUpper) — mantissa at 1.0

Sample information for the B exponent

27 (bitOffset)

4 (= “5”) (bitLength)

34 (channelType)

(BLUE | EXPONENT)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

15 (sampleUpper) — exponent bias


Table 32. Acorn 256-color format (2 bits each independent RGB, 2 bits shared “tint”)

Byte 0 (LSB) Byte 1 Byte 2 Byte 3 (MSB)

108 (totalSize)

0 (vendorId)

0 (descriptorType)

0 (versionNumber)

104 (descriptorBlockSize)

RGBSDA (colorModel)

BT709 (colorPrimaries)

LINEAR (transferFunction)

ALPHA_STRAIGHT (flags)

0 (texelBlockDimension0)

0 (texelBlockDimension1)

0 (texelBlockDimension2)

0 (texelBlockDimension3)

1 (bytesPlane0)

0 (bytesPlane1)

0 (bytesPlane2)

0 (bytesPlane3)

0 (bytesPlane4)

0 (bytesPlane5)

0 (bytesPlane6)

0 (bytesPlane7)

Sample information for the R value and tint (shared low bits)

0 (bitOffset)

3 (= “4”) (bitLength)

0 (channelType) (RED)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

15 (sampleUpper) — unique R upper value

Sample information for the G tint (shared low bits)

0 (bitOffset)

1 (= “2”) (bitLength)

1 (channelType) (GREEN)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

0 (sampleUpper) — ignored, not unique

Sample information for the G unique (high) bits

4 (bitOffset)

1 (= “2”) (bitLength)

1 (channelType) (GREEN)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

15 (sampleUpper) — unique G upper value

Sample information for the B tint (shared low bits)

0 (bitOffset)

1 (= “2”) (bitLength)

2 (channelType) (BLUE)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

0 (sampleUpper) — ignored, not unique

Sample information for the B unique (high) bits

6 (bitOffset)

1 (= “2”) (bitLength)

2 (channelType) (BLUE)

0 (samplePosition0)

0 (samplePosition1)

0 (samplePosition2)

0 (samplePosition3)

0 (sampleLower)

15 (sampleUpper) — unique B upper value


Table 33. V210 format (full-range Y′CBCR) part 1 of 2

Byte 0 (LSB) Byte 1 Byte 2 Byte 3 (MSB)

220 (totalSize)

0 (vendorId)

0 (descriptorType)

0 (versionNumber)

216 (descriptorBlockSize) — 12 samples

YUVSDA (colorModel)

BT709 (colorPrimaries)

ITU (transferFunction)

ALPHA_STRAIGHT (flags)

5 (dimension0)

0 (dimension1)

0 (dimension2)

0 (dimension3)

16 (bytesPlane0)

0 (bytesPlane1)

0 (bytesPlane2)

0 (bytesPlane3)

0 (bytesPlane4)

0 (bytesPlane5)

0 (bytesPlane6)

0 (bytesPlane7)

Sample information for the shared U0/U1 value

0 (bitOffset)

9 (= “10”) (bitLength)

1 (channelType) (U)

1 (assume mid-sited)

0

0

0

0 (sampleLower)

1023 (sampleUpper)

Sample information for the Y′0 value

10 (bitOffset)

9 (= “10”) (bitLength)

0 (channelType) (Y)

0

0

0

0

0 (sampleLower)

1023 (sampleUpper)

Sample information for the shared V0/V1 value

20 (bitOffset)

9 (= “10”) (bitLength)

2 (channelType) (V)

1 (assume mid-sited)

0

0

0

0 (sampleLower)

1023 (sampleUpper)

Sample information for the Y′1 value

32 (bitOffset)

9 (= “10”) (bitLength)

0 (channelType) (Y)

2

0

0

0

0 (sampleLower)

1023 (sampleUpper)

Sample information for the shared U2/U3 value

42 (bitOffset)

9 (= “10”) (bitLength)

1 (channelType) (U)

5 (assume mid-sited)

0

0

0

0 (sampleLower)

1023 (sampleUpper)

Sample information for the Y′2 value

52 (bitOffset)

9 (= “10”) (bitLength)

0 (channelType) (Y)

4

0

0

0

0 (sampleLower)

1023 (sampleUpper)


Table 34. V210 format (full-range Y′CBCR) part 2 of 2

Byte 0 (LSB) Byte 1 Byte 2 Byte 3 (MSB)

Sample information for the shared V2/V3 value

64 (bitOffset)

9 (= “10”) (bitLength)

2 (channelType) (V)

5 (assume mid-sited)

0

0

0

0 (sampleLower)

1023 (sampleUpper)

Sample information for the Y′3 value

74 (bitOffset)

9 (= “10”) (bitLength)

0 (channelType) (Y)

6

0

0

0

0 (sampleLower)

1023 (sampleUpper)

Sample information for the shared U4/U5 value

84 (bitOffset)

9 (= “10”) (bitLength)

1 (channelType) (U)

9 (assume mid-sited)

0

0

0

0 (sampleLower)

1023 (sampleUpper)

Sample information for the Y′4 value

96 (bitOffset)

9 (= “10”) (bitLength)

0 (channelType) (Y)

8

0

0

0

0 (sampleLower)

1023 (sampleUpper)

Sample information for the shared V4/V5 value

106 (bitOffset)

9 (= “10”) (bitLength)

2 (channelType) (V)

9 (assume mid-sited)

0

0

0

0 (sampleLower)

1023 (sampleUpper)

Sample information for the Y′4 value

116 (bitOffset)

9 (= “10”) (bitLength)

0 (channelType) (Y)

10

0

0

0

0 (sampleLower)

1023 (sampleUpper)