![]() |
Color Packing for Color Spaces |
Header: CMApplication.h |
enum { cmNoColorPacking = 0, cmWord5ColorPacking = 1280, cmWord565ColorPacking = 1536, cmLong8ColorPacking = 2048, cmLong10ColorPacking = 2560, cmAlphaFirstPacking = 4096, cmOneBitDirectPacking = 2816, cmAlphaLastPacking = 0, cm8_8ColorPacking = 10240, cm16_8ColorPacking = 8192, cm24_8ColorPacking = 8448, cm32_8ColorPacking = 2048, cm40_8ColorPacking = 8704, cm48_8ColorPacking = 8960, cm56_8ColorPacking = 9216, cm64_8ColorPacking = 9472, cm32_16ColorPacking = 9728, cm48_16ColorPacking = 10496, cm64_16ColorPacking = 10752, cm32_32ColorPacking = 9984, cmLittleEndianPacking = 16384, cmReverseChannelPacking = 32768 };
This constant is not used for ColorSync bitmaps.
The color values for three 5-bit color channels are stored consecutively in 16-bits, with the highest order bit unused.
The color values for three or four 8-bit color channels are stored consecutively in a 32-bit long. For three channels, this constant is combined with either cmAlphaFirstPacking or cmAlphaLastPacking to indicate whether the unused eight bits are located at the beginning or end.
The color values for three 10-bit color channels are stored consecutively in a 32-bit long, with the two highest order bits unused.
An alpha channel is added to the color value as its first component.
One bit is used as the pixel format. This storage format is used by the resulting bitmap pointed to by the resultBitMap field of the function
The color values for three 8-bit color channels are stored in consecutive bytes, for a total of 24 bits.
The color values for four 8-bit color channels are stored in consecutive bytes, for a total of 32 bits.
The color values for five 8-bit color channels are stored in consecutive bytes, for a total of 40 bits.
The color values for six 8-bit color channels are stored in consecutive bytes, for a total of 48 bits.
The color values for seven 8-bit color channels are stored in consecutive bytes, for a total of 56 bits.
The color values for eight 8-bit color channels are stored in consecutive bytes, for a total of 64 bits.
The color values for two 16-bit color channels are stored in a 32-bit word.
The color values for three 16-bit color channels are stored in 48 consecutive bits.
The color values for four 16-bit color channels are stored in 64 consecutive bits.
The color value for a 32-bit color channel is stored in a 32-bit word.
The ColorSync bitmap data type
The constants cm48_16ColorPacking and cm64_16ColorPacking were added in ColorSync version 2.5.
© 2000 Apple Computer, Inc. (Last Updated 7/17/2000)