2.2.2.2.1.1.1.1 Coord Field (COORD_FIELD)
The COORD_FIELD structure is used to describe a value in the range -32768 to 32767.
|
|
|
|
|
|
|
|
|
|
1 |
|
|
|
|
|
|
|
|
|
2 |
|
|
|
|
|
|
|
|
|
3 |
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
signedValue (variable) |
signedValue (variable): A signed, 1-byte or 2-byte value that describes a coordinate in the range -32768 to 32767.
-
When the controlFlags field (see section 2.2.2.2.1.1.2) of the primary drawing order that contains the COORD_FIELD structure has the TS_DELTA_COORDINATES flag (0x10) set, the signedValue field MUST contain a signed 1-byte value. If the TS_DELTA_COORDINATES flag is not set, the signedValue field MUST contain a 2-byte signed value.
-
The 1-byte format contains a signed delta from the previous value of the Coord field. To obtain the new value of the field, the decoder MUST increment the previous value of the field by the signed delta to produce the current value. The 2-byte format is simply the full value of the field that MUST replace the previous value.