com.sun.j3d.utils.compression
Class CompressionStream.ColorQuant

java.lang.Object
  extended by com.sun.j3d.utils.compression.CompressionStreamElement
      extended by com.sun.j3d.utils.compression.CompressionStream.ColorQuant
Enclosing class:
CompressionStream

private class CompressionStream.ColorQuant
extends CompressionStreamElement

Stream element that sets color quantization during quantize pass.


Field Summary
(package private)  int value
           
 
Fields inherited from class com.sun.j3d.utils.compression.CompressionStreamElement
absolute, length, lengthMask, quantizationMask, shift
 
Constructor Summary
CompressionStream.ColorQuant(int value)
           
 
Method Summary
(package private)  void quantize(CompressionStream s, HuffmanTable t)
          Computes the quantized representation of this stream element.
 java.lang.String toString()
           
 
Methods inherited from class com.sun.j3d.utils.compression.CompressionStreamElement
computeLengthShift, computeLengthShift, computeLengthShift, outputCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

int value
Constructor Detail

CompressionStream.ColorQuant

CompressionStream.ColorQuant(int value)
Method Detail

quantize

void quantize(CompressionStream s,
              HuffmanTable t)
Description copied from class: CompressionStreamElement
Computes the quantized representation of this stream element.

Specified by:
quantize in class CompressionStreamElement
Parameters:
s - CompressionStream associated with this element
t - HuffmanTable for collecting data about the quantized representation of this element

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright 1996-2008 Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms.