Important: The information in this document is obsolete and should not be used for new development.
Pattern Style Omit Byte Masks and Shifts
ThegxOmitPatternMask1enumeration defines which bits in an omit byte correspond to the data compression opcodes for the field descriptors in thegxPatternRecordstructure. The sequence of data is also defined. The omit byte and its related data sequence is given in the section "Pattern Data" beginning on page 7-38.
enum gxOmitPatternMask1{ gxOmitPatternAttributesMask = 0xC0, gxOmitPatternShapeMask = 0x30, gxOmitPatternUXMask = 0x0C, gxOmitPatternUYMask = 0x03 };Constant descriptions
Once one of the
- gxOmitPatternAttributesMask
- The mask used to select the data compression bits for the
attributesfield descriptor.- gxOmitPatternShapeMask
- The mask used to select the data compression bits for the
patternfield descriptor.- gxOmitPatternUXMask
- The mask used to select the data compression bits for the
uxfield descriptor.- gxOmitPatternUYMask
- The mask used to select the data compression bits for the
uyfield descriptor.gxOmitPatternMask1enumeration masks has been used to select data compression bits for one of the field descriptors in thegxPatternRecordstructure, the corresponding bit shift from thegxOmitPatternShift1enumeration 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 bits so that they can be compared to other values.
enum gxOmitPatternShift1 { gxOmitPatternAttributesShift = 6, gxOmitPatternShapeShift = 4, gxOmitPatternUXShift = 2, gxOmitPatternUYShift = 0 };Constant descriptions
The
- gxOmitPatternAttributesShift
- The bit shift required to isolate the compression bits for the
attributesfield descriptor.- gxOmitPatternShapeShift
- The bit shift required to isolate the compression bits for the
patternfield descriptor.- gxOmitPatternUXShift
- The bit shift required to isolate the compression bits for the
uxfield descriptor.- gxOmitPatternUYShift
- The bit shift required to isolate the compression bits for the
uyfield descriptor.gxOmitPatternMask2enumeration defines which bits in a second omit byte correspond to the data compression opcode for additional field descriptors in thegxPatternRecordstructure. The sequence of data is also continued. The omit byte and its related data sequence is given in the section "Pattern Data" beginning on page 7-38.
enum gxOmitPatternMask2 { gxOmitPatternVXMask = 0xC0, gxOmitPatternVYMask = 0x30 };Constant descriptions
Once one of the
- gxOmitPatternVXMask
- The mask used to select the data compression bits for the u.x field descriptor.
- gxOmitPatternVYMask
- The mask to select the data compression bits for the u.y field descriptor.
gxOmitPatternMask2enumeration masks has been used to select a data compression opcode for one of the field descriptors in thegxPatternRecordstructure, the corresponding bit shift from thegxOmitPatternShift2enumeration 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 gxOmitPatternShift2 { gxOmitPatternVXShift= 6, gxOmitPatternVYShift= 4 };Constant descriptions
- gxOmitPatternVXShift
- The bit shift required to isolate the compression bits for the u.x field descriptor.
- gxOmitPatternVYShift
- The bit shift required to isolate the compression bits for the u.y field descriptor.