Important: The information in this document is obsolete and should not be used for new development.
Dash Style Omit Byte Masks and Shifts
ThegxOmitDashMask1enumeration defines which bits in an omit byte correspond to the a data compression opcode for the field descriptors in thegxDashRecordstructure. The sequence of data is also defined. The omit byte and its related data sequence are given in the section "Dash Data" beginning on page 7-37.
enum gxOmitDashMask1 { gxOmitDashAttributesMask = 0xC0, gxOmitDashShapeMask = 0x30, gxOmitDashAdvanceMask = 0x0C, gxOmitDashPhaseMask = 0x03 };Constant descriptions
Once one of the
- gxOmitDashAttributesMask
- The mask to select the data compression bits for the
attributesfield descriptor.- gxOmitDashShapeMask
- The mask to select the data compression bits for the
dashfield descriptor.- gxOmitDashAdvanceMask
- The mask to select the data compression bits for the
advancefield descriptor.- gxOmitDashPhaseMask
- The mask to select the data compression bits for the
phasefield descriptor.gxOmitDashMask1enumeration masks has been used to select data compression bits for a field descriptor in thegxDashRecordstructure, the corresponding bit shift from thegxOmitDashShift1enumeration 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 gxOmitDashShift1 { gxOmitDashAttributesShift = 6, gxOmitDashShapeShift = 4, gxOmitDashAdvanceShift = 2, gxOmitDashPhaseShift = 0 };Constant descriptions
The
- gxOmitDashAttributesShift
- The bit shift required to isolate the compression bits for the
attributesfield descriptor.- gxOmitDashShapehift
- The bit shift required to isolate the compression bits for the
dashfield descriptor.- gxOmitDashAdvanceShift
- The bit shift required to isolate the compression bits for the
advancefield descriptor.- gxOmitDashPhaseShift
- The bit shift required to isolate the compression bits for the
phasefield descriptor.gxOmitDashMask2enumeration defines which bits in a second omit byte correspond to the data compression bits for additional field descriptors in thegxDashRecordstructure. The sequence of data is also continued. The use of this mask and shift are described in the section "Dash Data" beginning on page 7-37.
enum gxOmitDashMask2 { gxOmitDashScaleMask = 0xC0 };Constant descriptions
Once one of the
- gxOmitDashScaleMask
- The mask for the data compression bits for the
scalefield descriptor.gxOmitDashMask2enumeration masks has been used to select data compression bits for a field descriptor in thegxDashRecordstructure, the corresponding bit shift from thegxOmitDashShift2enumeration 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 gxOmitDashShift2{ gxOmitDashScaleShift = 6 };Constant descriptions
- gxOmitDashScaleShift
- The bit shift required to isolate the compression bits for the
scalefield descriptor.