it.tidalwave.imageio.cr2
Class CR2RasterReader

java.lang.Object
  extended by it.tidalwave.imageio.raw.RasterReader
      extended by it.tidalwave.imageio.cr2.CR2RasterReader

public class CR2RasterReader
extends RasterReader

Version:
CVS $Id: CR2RasterReader.java,v 1.2 2006/02/08 19:46:48 fabriziogiudici Exp $
Author:
fritz

Field Summary
 
Fields inherited from class it.tidalwave.imageio.raw.RasterReader
B_OFFSET, bitsPerSample, cfaOffsets, compression, G_OFFSET, linearizationTable, R_OFFSET, rasterOffset, stripByteCount, tileHeight, tileOffsets, tilesAcross, tilesDown, tileWidth
 
Constructor Summary
CR2RasterReader()
           
 
Method Summary
protected  boolean isCompressedRaster()
          This method returns true if a compressed raster is supported.
protected  void loadCompressedRaster(RAWImageInputStream iis, java.awt.image.WritableRaster raster, RAWImageReaderSupport ir)
          Reads a compressed raster.
 void setCanonLastTileWidth(int canonLastTileWidth)
           
 void setCanonTileWidth(int canonTileWidth)
           
 
Methods inherited from class it.tidalwave.imageio.raw.RasterReader
createRaster, getRow, getSkipCountAtColumn, getSkipCountAtEndOfRow, loadRaster, loadUncompressedRaster, selectBitReader, setBitsPerSample, setCFAPattern, setCompression, setHeight, setLinearizationTable, setRasterOffset, setStripByteCount, setTileHeight, setTileOffsets, setTilesAcross, setTilesDown, setTileWidth, setWidth
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CR2RasterReader

public CR2RasterReader()
Method Detail

setCanonTileWidth

public void setCanonTileWidth(int canonTileWidth)
Parameters:
canonTileWidth - The canonTileWidth to set.

setCanonLastTileWidth

public void setCanonLastTileWidth(int canonLastTileWidth)
Parameters:
canonLastTileWidth - The canonLastTileWidth to set.

isCompressedRaster

protected boolean isCompressedRaster()
Description copied from class: RasterReader
This method returns true if a compressed raster is supported. It returns false by default: subclasses should implement a test and return the most appropriate value.

Overrides:
isCompressedRaster in class RasterReader
Returns:
true if a compressed raster is supported

loadCompressedRaster

protected void loadCompressedRaster(RAWImageInputStream iis,
                                    java.awt.image.WritableRaster raster,
                                    RAWImageReaderSupport ir)
                             throws java.io.IOException
Description copied from class: RasterReader
Reads a compressed raster. This method is empty and specific subclasses for various RAW formats should override it, if a compressed raster is available.

Overrides:
loadCompressedRaster in class RasterReader
Parameters:
iis - the image input stream
raster - the raster to read data into
ir - the image reader
Throws:
java.io.IOException - if an I/O error occurs