public class PBMDecoder extends java.lang.Object implements IFFVisitor
| Modifier and Type | Field and Description |
|---|---|
protected static int |
BMHD_ID |
protected int |
bmhdCompression |
protected int |
bmhdHeight |
protected int |
bmhdMasking |
protected int |
bmhdNbPlanes |
protected int |
bmhdPageHeight |
protected int |
bmhdPageWidth |
protected int |
bmhdTransparentColor |
protected int |
bmhdWidth |
protected int |
bmhdXAspect |
protected int |
bmhdXPosition |
protected int |
bmhdYAspect |
protected int |
bmhdYPosition |
protected static int |
BODY_ID |
protected static int |
CMAP_ID |
protected java.awt.image.ColorModel |
cmapColorModel |
protected static int |
CMP_BYTE_RUN_1 |
protected static int |
CMP_NONE |
protected static int |
CRNG_ID |
protected static int |
DRNG_ID |
protected java.io.InputStream |
inputStream |
protected java.net.URL |
location |
protected ColorCyclingMemoryImageSource |
memoryImageSource |
protected static int |
MSK_HAS_MASK |
protected static int |
MSK_HAS_TRANSPARENT_COLOR |
protected static int |
MSK_LASSO |
protected static int |
MSK_NONE |
protected static int |
PBM_ID |
protected java.util.Hashtable |
properties |
protected java.util.ArrayList<ColorCyclingMemoryImageSource> |
sources |
| Constructor and Description |
|---|
PBMDecoder(java.io.InputStream in) |
PBMDecoder(java.net.URL location) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
decodeBMHD(IFFChunk chunk) |
protected void |
decodeBODY(IFFChunk chunk) |
protected void |
decodeCMAP(IFFChunk chunk) |
protected ColorCycle |
decodeCRNG(IFFChunk chunk) |
protected ColorCycle |
decodeDRNG(IFFChunk chunk) |
void |
enterGroup(IFFChunk chunk) |
void |
leaveGroup(IFFChunk chunk) |
java.util.ArrayList<ColorCyclingMemoryImageSource> |
produce() |
void |
registerChunks(IFFParser iff) |
static int |
unpackByteRun1(byte[] in,
byte[] out) |
void |
visitChunk(IFFChunk group,
IFFChunk chunk) |
protected static final int PBM_ID
protected static final int BMHD_ID
protected static final int CMAP_ID
protected static final int CRNG_ID
protected static final int DRNG_ID
protected static final int BODY_ID
protected static final int MSK_NONE
protected static final int MSK_HAS_MASK
protected static final int MSK_HAS_TRANSPARENT_COLOR
protected static final int MSK_LASSO
protected static final int CMP_NONE
protected static final int CMP_BYTE_RUN_1
protected java.io.InputStream inputStream
protected java.net.URL location
protected java.util.ArrayList<ColorCyclingMemoryImageSource> sources
protected java.util.Hashtable properties
protected int bmhdWidth
protected int bmhdHeight
protected int bmhdXPosition
protected int bmhdYPosition
protected int bmhdNbPlanes
protected int bmhdMasking
protected int bmhdCompression
protected int bmhdTransparentColor
protected int bmhdXAspect
protected int bmhdYAspect
protected int bmhdPageWidth
protected int bmhdPageHeight
protected java.awt.image.ColorModel cmapColorModel
protected ColorCyclingMemoryImageSource memoryImageSource
public PBMDecoder(java.io.InputStream in)
public PBMDecoder(java.net.URL location)
public java.util.ArrayList<ColorCyclingMemoryImageSource> produce() throws java.io.IOException
java.io.IOExceptionpublic void registerChunks(IFFParser iff)
public void enterGroup(IFFChunk chunk)
enterGroup in interface IFFVisitorpublic void leaveGroup(IFFChunk chunk)
leaveGroup in interface IFFVisitorpublic void visitChunk(IFFChunk group, IFFChunk chunk) throws ParseException, AbortException
visitChunk in interface IFFVisitorParseExceptionAbortExceptionprotected void decodeBMHD(IFFChunk chunk) throws ParseException
ParseExceptionprotected void decodeCMAP(IFFChunk chunk) throws ParseException
ParseExceptionprotected ColorCycle decodeCRNG(IFFChunk chunk) throws ParseException
ParseExceptionprotected ColorCycle decodeDRNG(IFFChunk chunk) throws ParseException
ParseExceptionprotected void decodeBODY(IFFChunk chunk) throws ParseException
ParseExceptionpublic static int unpackByteRun1(byte[] in,
byte[] out)
throws ParseException
ParseExceptionCopyright © 2022. All Rights Reserved.