it.tidalwave.imageio.nef
Class RasterReader_NIKON_D100

java.lang.Object
  extended by it.tidalwave.imageio.raw.RasterReader
      extended by it.tidalwave.imageio.nef.NEFRasterReader
          extended by it.tidalwave.imageio.nef.RasterReader_NIKON_D100

public class RasterReader_NIKON_D100
extends NEFRasterReader

This class specializes a PixelLoader for the Nikon D100. There is some trickery to understand if a D100 NEF is compressed and in some cases there are bits to skip while reading the data.

Version:
CVS $Id: RasterReader_NIKON_D100.java,v 1.2 2006/02/08 20:08:46 fabriziogiudici Exp $
Author:
Fabrizio Giudici

Field Summary
 
Fields inherited from class it.tidalwave.imageio.nef.NEFRasterReader
COMPRESSED_NEF
 
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
RasterReader_NIKON_D100()
           
 
Method Summary
protected  int getSkipCountAtColumn(int x)
          Some RAW formats require that a certain number of bits is skipped at certain columns.
protected  int getSkipCountAtEndOfRow()
          Some RAW formats require that a certain number of bits s skipped at the end of each row.
 boolean isCompressedRaster()
          This method returns true if a compressed raster is supported.
 
Methods inherited from class it.tidalwave.imageio.nef.NEFRasterReader
getInstance, loadCompressedRaster, setVPredictor
 
Methods inherited from class it.tidalwave.imageio.raw.RasterReader
createRaster, getRow, 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

RasterReader_NIKON_D100

public RasterReader_NIKON_D100()
Method Detail

isCompressedRaster

public 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 NEFRasterReader
Returns:
true if a compressed raster is supported

getSkipCountAtColumn

protected int getSkipCountAtColumn(int x)
Description copied from class: RasterReader
Some RAW formats require that a certain number of bits is skipped at certain columns. This method controls this behaviour. It returns 0 by default, and should be overridden by subclasses that need a different behaviour.

Overrides:
getSkipCountAtColumn in class RasterReader
Parameters:
x - the column
Returns:
the number of bits to skip

getSkipCountAtEndOfRow

protected int getSkipCountAtEndOfRow()
Description copied from class: RasterReader
Some RAW formats require that a certain number of bits s skipped at the end of each row. This method controls this behaviour. It returns 0 by default, and should be overridden by subclasses that need a different behaviour.

Overrides:
getSkipCountAtEndOfRow in class RasterReader
Returns:
the number of bits to skip