fi.faidon.jis
Class JPEGComponentInfo

java.lang.Object
  |
  +--fi.faidon.jis.JPEGComponentInfo

public class JPEGComponentInfo
extends java.lang.Object

Class for implementing the jpeg_component_info type of the JPEG library.


Field Summary
 int acTblNo
           
 int componentID
          These values are fixed over the whole image.
 int componentIndex
           
 boolean componentNeeded
           
 int dcTblNo
          These values may vary between scans.
 int DCTscaledSize
           
 int downsampledHeight
           
 int downsampledWidth
           
 int heightInBlocks
           
 int hSampFactor
           
 int quantTblNo
           
 int widthInBlocks
           
 int vSampFactor
           
 
Constructor Summary
JPEGComponentInfo()
           
 
Method Summary
 void setComp(int id, int index, int hsamp, int vsamp, int quant, int dctbl, int actbl)
          Set the JPEG colorspace, and choose colorspace-dependent default values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

componentID

public int componentID
These values are fixed over the whole image. For compression, they must be supplied by parameter setup; for decompression, they are read from the SOF marker.


componentIndex

public int componentIndex

hSampFactor

public int hSampFactor

vSampFactor

public int vSampFactor

quantTblNo

public int quantTblNo

dcTblNo

public int dcTblNo
These values may vary between scans. For compression, they must be supplied by parameter setup; for decompression, they are read from the SOS marker. The decompressor output side may not use these variables.


acTblNo

public int acTblNo

widthInBlocks

public int widthInBlocks

heightInBlocks

public int heightInBlocks

DCTscaledSize

public int DCTscaledSize

downsampledWidth

public int downsampledWidth

downsampledHeight

public int downsampledHeight

componentNeeded

public boolean componentNeeded
Constructor Detail

JPEGComponentInfo

public JPEGComponentInfo()
Method Detail

setComp

public void setComp(int id,
                    int index,
                    int hsamp,
                    int vsamp,
                    int quant,
                    int dctbl,
                    int actbl)
Set the JPEG colorspace, and choose colorspace-dependent default values. See the macro SET_COMP in jcparam.c of IJG Jpeg-6a library.