| java.lang.Object com.sun.j3d.utils.compression.CompressionStreamElement
All known Subclasses: com.sun.j3d.utils.compression.CompressionStreamVertex, com.sun.j3d.utils.compression.CompressionStreamNormal, com.sun.j3d.utils.compression.CompressionStreamColor,
CompressionStreamElement | abstract class CompressionStreamElement (Code) | | Instances of this class are used as elements in a CompressionStream.
See Also: CompressionStream |
Field Summary | |
boolean | absolute If false, geometric component values are represented as differences
from those of the preceding element in the stream. | int | length Bit length of quantized geometric components. | final static long | lengthMask Array with elements that can be used as masks to retain the number of
trailing bits of data indicated by the referencing index [0..64]. | final static int | quantizationMask Array with elements that can be used as masks to apply a quantization
to the number of bits indicated by the referencing index [0..16]. | int | shift Number of trailing zeros in quantized geometric components. |
absolute | boolean absolute(Code) | | If false, geometric component values are represented as differences
from those of the preceding element in the stream.
|
length | int length(Code) | | Bit length of quantized geometric components.
|
lengthMask | final static long lengthMask(Code) | | Array with elements that can be used as masks to retain the number of
trailing bits of data indicated by the referencing index [0..64]. Used
to clear the leading sign bits of fixed-point 2's complement numbers
and in building the compressed output stream.
|
quantizationMask | final static int quantizationMask(Code) | | Array with elements that can be used as masks to apply a quantization
to the number of bits indicated by the referencing index [0..16].
|
shift | int shift(Code) | | Number of trailing zeros in quantized geometric components.
|
computeLengthShift | final void computeLengthShift(int n0, int n1)(Code) | | Computes common length and shift of 2 numbers.
|
computeLengthShift | final void computeLengthShift(int n0, int n1, int n2)(Code) | | Computes common length and shift of 3 numbers.
|
computeLengthShift | final void computeLengthShift(int n0, int n1, int n2, int n3)(Code) | | Computes common length and shift of 4 numbers.
|
outputCommand | void outputCommand(HuffmanTable table, CommandStream output)(Code) | | Outputs the compressed bits representing this stream element.
Some instances of CompressionStreamElement don't require an
implementation and will inherit the stub provided here.
Parameters: table - HuffmanTable mapping quantized representations tocompressed encodings Parameters: output - CommandStream for collecting compressed output |
quantize | abstract void quantize(CompressionStream stream, HuffmanTable table)(Code) | | Computes the quantized representation of this stream element.
Parameters: stream - CompressionStream associated with this element Parameters: table - HuffmanTable for collecting data about the quantizedrepresentation of this element |
|
|