|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectit.tidalwave.imageio.raw.RasterReader
it.tidalwave.imageio.nef.NEFRasterReader
public class NEFRasterReader
This class implements the compressed NEF raster loading.
| Field Summary | |
|---|---|
protected static int |
COMPRESSED_NEF
This value in the 'Compressed' TIFF tag stands for the proprietary Nikon compression scheme. |
| 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 | |
|---|---|
NEFRasterReader()
|
|
| Method Summary | |
|---|---|
static NEFRasterReader |
getInstance(java.lang.String model,
boolean isNDF)
Returns the most appropriate RasterReader
for the given Nikon model. |
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 |
setVPredictor(int[] vPredictor)
Sets the vertical predictor values. |
| 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 |
| Field Detail |
|---|
protected static final int COMPRESSED_NEF
| Constructor Detail |
|---|
public NEFRasterReader()
| Method Detail |
|---|
public static NEFRasterReader getInstance(java.lang.String model,
boolean isNDF)
RasterReader
for the given Nikon model. A generic RasterReader is used for
most models; RasterReader_NIKON_D100 is
used for the Nikon D100 model; NDFRasterReader
is used for dust sample files.
model - the camera modelisNDF - true if it's a dust sample
RasterReaderpublic void setVPredictor(int[] vPredictor)
vPredictor - the vertical predictor valuesprotected boolean isCompressedRaster()
RasterReaderfalse by default: subclasses should implement a test and return
the most appropriate value.
isCompressedRaster in class RasterReader
protected void loadCompressedRaster(RAWImageInputStream iis,
java.awt.image.WritableRaster raster,
RAWImageReaderSupport ir)
throws java.io.IOException
RasterReader
loadCompressedRaster in class RasterReaderiis - the image input streamraster - the raster to read data intoir - the image reader
java.io.IOException - if an I/O error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||