|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.libtiff.jai.codec.XTIFFTileCodecImpl
org.libtiff.jai.codecimpl.XTIFFPackTileCodec
public class XTIFFPackTileCodec
This codec encapsulates all the logic for the default TIFF "packbits" bit-packing codec algorithm.
| Field Summary |
|---|
| Fields inherited from class org.libtiff.jai.codec.XTIFFTileCodecImpl |
|---|
_bdata, _sdata, bitsPerSample, bpixvals, buffer, colormap, compression, dataType, decodePaletteAsShorts, decodeParam, directory, encodeParam, image, image_type, isTiled, length, minX, minY, numBands, sampleModel, sampleSize, spixvals, tileLength, tileWidth, unitsInThisTile, width |
| Constructor Summary | |
|---|---|
XTIFFPackTileCodec()
|
|
| Method Summary | |
|---|---|
boolean |
canEncode()
Indicate whether this codec can encode data. |
XTIFFTileCodec |
create()
Implement this to return the corresponding empty codec object. |
void |
decodeTilePixels(byte[] input,
java.awt.Rectangle newRect,
byte[] bdata)
Decode a rectangle of pixels |
void |
decodeTilePixels(byte[] input,
java.awt.Rectangle newRect,
short[] sdata)
Decode a rectangle of pixels |
int |
encodeTilePixels(int[] pixels,
java.awt.Rectangle newRect,
byte[] bpixels)
encode the tile into bpixels and return the byte size (uncompressed packing algorithm). |
void |
register()
Registration method. |
| Methods inherited from class org.libtiff.jai.codec.XTIFFTileCodecImpl |
|---|
create, create, decode, decodeColor, decodeColor, decodeColor, decodeColor, decodeTilePixels, encode, getCompressedTileSize, getCompression, getLongField, getTilePixels, initialize, initialize, initialize, initializeDecoding, initializeEncoding, register, setTilePixels, setupBufferForDecoding, setupBufferForEncoding, setupSourceImage, unpackShorts |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XTIFFPackTileCodec()
| Method Detail |
|---|
public XTIFFTileCodec create()
XTIFFTileCodecImpl
create in class XTIFFTileCodecImplpublic boolean canEncode()
XTIFFTileCodecImpl
canEncode in class XTIFFTileCodecImplpublic void register()
XTIFFTileCodecImpl
register in interface XTIFFTileCodecregister in class XTIFFTileCodecImplXTIFFDirectory
public int encodeTilePixels(int[] pixels,
java.awt.Rectangle newRect,
byte[] bpixels)
encodeTilePixels in class XTIFFTileCodecImplpixels - input pixelsnewRect - the array dimensions of samplesbpixels - the target array of compressed byte data
public void decodeTilePixels(byte[] input,
java.awt.Rectangle newRect,
byte[] bdata)
decodeTilePixels in class XTIFFTileCodecImplinput - the byte array of compressed input datanewRect - the rectangular shape of the target pixelsbdata - the target decompressed pixels.
public void decodeTilePixels(byte[] input,
java.awt.Rectangle newRect,
short[] sdata)
decodeTilePixels in class XTIFFTileCodecImplinput - the byte array of compressed input datanewRect - the rectangular shape of the target pixelssdata - the target decompressed pixels.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||