Class PCHGChunk
java.lang.Object
com.twelvemonkeys.imageio.plugins.iff.IFFChunk
com.twelvemonkeys.imageio.plugins.iff.AbstractMultiPaletteChunk
com.twelvemonkeys.imageio.plugins.iff.PCHGChunk
- All Implemented Interfaces:
MultiPalette
PCHGChunk
- Version:
- $Id: PCHGChunk.java,v 1.0 27.03.12 13:02 haraldk Exp$
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate intprivate int(package private) static final int(package private) static final int(package private) static final intUse SmallLineChanges(package private) static final intUse BigLineChanges(package private) static final intmeaningful only if PCHG_32BIT is on: use the Alpha channel infoprivate intprivate intFields inherited from class AbstractMultiPaletteChunk
changes, FACTOR_4BIT, initialChanges, lastRow, mutablePalette, originalPaletteFields inherited from class IFFChunk
chunkId, chunkLength -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voiddecompressHuffman(byte[] src, byte[] dest, short[] tree, int origSize) private voidparseChanges(byte[] data, int flags) (package private) voidprivate static shorttoShort(byte[] bytes, int idx) Methods inherited from class AbstractMultiPaletteChunk
getColorModel, skipLaced, writeChunk
-
Field Details
-
PCHG_COMP_NONE
static final int PCHG_COMP_NONE- See Also:
-
PCHG_COMP_HUFFMAN
static final int PCHG_COMP_HUFFMAN- See Also:
-
PCHGF_12BIT
static final int PCHGF_12BITUse SmallLineChanges- See Also:
-
PCHGF_32BIT
static final int PCHGF_32BITUse BigLineChanges- See Also:
-
PCHGF_USE_ALPHA
static final int PCHGF_USE_ALPHAmeaningful only if PCHG_32BIT is on: use the Alpha channel info- See Also:
-
startLine
private int startLine -
changedLines
private int changedLines -
lineCount
private int lineCount -
totalChanges
private int totalChanges -
minReg
private int minReg
-
-
Constructor Details
-
PCHGChunk
PCHGChunk(int chunkLength)
-
-
Method Details
-
readChunk
- Overrides:
readChunkin classAbstractMultiPaletteChunk- Throws:
IOException
-
decompressHuffman
static void decompressHuffman(byte[] src, byte[] dest, short[] tree, int origSize) -
parseChanges
- Throws:
IIOException
-
toShort
private static short toShort(byte[] bytes, int idx)
-