|
||||||||||
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.XTIFFUncompTileCodec
public class XTIFFUncompTileCodec
This codec encapsulates all the logic for the default TIFF "uncompressed" bit-packing codec algorithm.
Constructor Summary | |
---|---|
XTIFFUncompTileCodec()
|
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 rect,
byte[] bpixels)
Decompress data packed bytes into packed bytes |
void |
decodeTilePixels(byte[] input,
java.awt.Rectangle rect,
short[] spixels)
Decompress data packed bytes into short |
int |
encodeTilePixels(int[] pixels,
java.awt.Rectangle rect,
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, encode, getCompressedTileSize, getCompression, initialize, initializeDecoding, initializeEncoding, register |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XTIFFUncompTileCodec()
Method Detail |
---|
public XTIFFTileCodec create()
XTIFFTileCodecImpl
create
in class XTIFFTileCodecImpl
public boolean canEncode()
XTIFFTileCodecImpl
canEncode
in class XTIFFTileCodecImpl
public void register()
XTIFFTileCodecImpl
register
in interface XTIFFTileCodec
register
in class XTIFFTileCodecImpl
XTIFFDirectory
public int encodeTilePixels(int[] pixels, java.awt.Rectangle rect, byte[] bpixels)
encodeTilePixels
in class XTIFFTileCodecImpl
pixels
- input pixelsrect
- the array dimensions of samplesbpixels
- the target array of compressed byte datapublic void decodeTilePixels(byte[] input, java.awt.Rectangle rect, byte[] bpixels)
decodeTilePixels
in class XTIFFTileCodecImpl
input
- the byte array of compressed input datarect
- the rectangular shape of the target pixelsbpixels
- the target decompressed pixels.public void decodeTilePixels(byte[] input, java.awt.Rectangle rect, short[] spixels)
decodeTilePixels
in class XTIFFTileCodecImpl
input
- the byte array of compressed input datarect
- the rectangular shape of the target pixelsspixels
- the target decompressed pixels.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |