Important: The information in this document is obsolete and should not be used for new development.
Colors Omit Byte Masks and Shifts
ThegxOmitColorsMaskenumeration defines which bits in an omit byte correspond to the data compression opcode for the field descriptors in thegxColorstructure. The sequence of data is also defined. The omit byte and its related data sequence is given in the section "Color Data" beginning on page 7-44.
enum gxOmitColorsMask { gxOmitColorsSpaceMask = 0xC0, gxOmitColorsProfileMask = 0x30, gxOmitColorsComponentsMask = 0x0F, gxOmitColorsIndexMask = 0x0C, gxOmitColorsIndexSetMask = 0x03 };Constant descriptions
Once one of the
- gxOmitColorsSpaceMask
- The mask used to select the data compression bits for the
spacefield descriptor.- gxOmitColorsProfileMask
- The mask used to select the data compression bits for the
profilefield descriptor.- gxOmitColorsComponentsMask
- The mask used to select the data compression bits for the
element.component[4]field descriptor.- gxOmitColorsIndexMask
- The mask used to select the data compression bits for the
element.indexed.indexfield descriptor.- gxOmitColorsIndexSetMask
- The mask used to select the data compression bits for the
element.index.Setfield descriptor.gxOmitColorsMaskenumeration masks has been used to select a data compression opcode for a field descriptor in thegxColorstructure, the corresponding bit shift from the gxOmitColorsShift enumeration can be applied to the selected bits. The selected bits must be moved to the right by the indicated number of bits to isolate the data compression opcode so that it can be compared to other values.
enum gxOmitColorsShift { gxOmitColorsSpaceShift = 6, gxOmitColorsProfileShift = 4, gxOmitColorsComponentsShift = 0, gxOmitColorsIndexShift = 2, gxOmitColorsIndexSetShift = 0 };Constant descriptions
- gxOmitColorsSpaceShift
- The bit shift required to isolate the compression bits for the
spacefield descriptor.- gxOmitColorsProfileShift
- The bit shift required to isolate the compression bits for the
profilefield descriptor.- gxOmitColorsComponentsShift
- The bit shift required to isolate the compression bits for the
element.component[4] field descriptor.- gxOmitColorsIndexShift
- The bit shift required to isolate the compression bits for the
element.indexed.indexfield descriptor.- gxOmitColorsIndexSetShift
- The bit shift required to isolate the compression bits for the
element.indexed.setfield descriptor.