public abstract class ScanExpediter extends BinaryFileParser
Modifier and Type | Field and Description |
---|---|
protected BufferedImage |
bi |
protected int |
bitDepth |
protected int |
bitsPerPixel |
protected int |
bytesPerPixel |
protected int |
colorType |
protected GammaCorrection |
gammaCorrection |
protected int |
height |
protected InputStream |
is |
protected PNGChunkPLTE |
pngChunkPLTE |
protected TransparencyFilter |
transparencyFilter |
protected int |
width |
debug
BYTE_ORDER_BIG_ENDIAN, BYTE_ORDER_INTEL, BYTE_ORDER_LEAST_SIGNIFICANT_BYTE, BYTE_ORDER_LITTLE_ENDIAN, BYTE_ORDER_LSB, BYTE_ORDER_MOST_SIGNIFICANT_BYTE, BYTE_ORDER_MOTOROLA, BYTE_ORDER_MSB, BYTE_ORDER_NETWORK
Constructor and Description |
---|
ScanExpediter(int width,
int height,
InputStream is,
BufferedImage bi,
int color_type,
int bitDepth,
int bitsPerPixel,
PNGChunkPLTE pngChunkPLTE,
GammaCorrection gammaCorrection,
TransparencyFilter transparencyFilter) |
Modifier and Type | Method and Description |
---|---|
abstract void |
drive() |
protected int |
getBitsToBytesRoundingUp(int bits) |
protected byte[] |
getNextScanline(InputStream is,
int length,
byte[] prev,
int BytesPerPixel) |
protected int |
getPixelARGB(int alpha,
int red,
int green,
int blue) |
protected int |
getPixelRGB(int red,
int green,
int blue) |
protected int |
getRGB(BitParser bitParser,
int pixelIndexInScanline) |
protected ScanlineFilter |
getScanlineFilter(int filter_type,
int BytesPerPixel) |
protected byte[] |
unfilterScanline(int filter_type,
byte[] src,
byte[] prev,
int BytesPerPixel) |
byteArrayHasPrefix, convertByteArrayToInt, convertByteArrayToInt, convertByteArrayToShort, convertByteArrayToShort, getByteOrder, int2ToByteArray, read2Bytes, read3Bytes, read4Bytes, setByteOrder, setByteOrder
CharsToQuad, compareByteArrays, compareByteArrays, compareBytes, compareBytes, convertByteArrayToDouble, convertByteArrayToDouble, convertByteArrayToDoubleArray, convertByteArrayToFloat, convertByteArrayToFloat, convertByteArrayToFloatArray, convertByteArrayToInt, convertByteArrayToInt, convertByteArrayToIntArray, convertByteArrayToRational, convertByteArrayToRational, convertByteArrayToRationalArray, convertByteArrayToShort, convertByteArrayToShort, convertByteArrayToShortArray, convertDoubleArrayToByteArray, convertDoubleToByteArray, convertFloatArrayToByteArray, convertFloatToByteArray, convertIntArrayToByteArray, convertIntArrayToRationalArray, convertRationalArrayToByteArray, convertRationalToByteArray, convertShortArrayToByteArray, convertShortToByteArray, copyStreamToStream, debugByteArray, debugNumber, debugNumber, debugNumber, debugNumber, debugNumberArray, findNull, findNull, getBytearrayHead, getByteArrayTail, getDebug, getRAFBytes, getStreamBytes, head, int2ToByteArray, printByteBits, printCharQuad, printCharQuad, read2Bytes, read3Bytes, read4Bytes, readAndVerifyBytes, readAndVerifyBytes, readByte, readBytearray, readByteArray, readByteArray, readBytes, readRandomBytes, scanForByte, setDebug, skipBytes, skipBytes, slice, startsWith, tail, writeIntInToByteArray
protected final int width
protected final int height
protected final InputStream is
protected final BufferedImage bi
protected final int colorType
protected final int bitDepth
protected final int bytesPerPixel
protected final int bitsPerPixel
protected final PNGChunkPLTE pngChunkPLTE
protected final GammaCorrection gammaCorrection
protected final TransparencyFilter transparencyFilter
public ScanExpediter(int width, int height, InputStream is, BufferedImage bi, int color_type, int bitDepth, int bitsPerPixel, PNGChunkPLTE pngChunkPLTE, GammaCorrection gammaCorrection, TransparencyFilter transparencyFilter)
protected int getBitsToBytesRoundingUp(int bits)
protected final int getPixelARGB(int alpha, int red, int green, int blue)
protected final int getPixelRGB(int red, int green, int blue)
public abstract void drive() throws ImageReadException, IOException
ImageReadException
IOException
protected int getRGB(BitParser bitParser, int pixelIndexInScanline) throws ImageReadException, IOException
ImageReadException
IOException
protected ScanlineFilter getScanlineFilter(int filter_type, int BytesPerPixel) throws ImageReadException, IOException
ImageReadException
IOException
protected byte[] unfilterScanline(int filter_type, byte[] src, byte[] prev, int BytesPerPixel) throws ImageReadException, IOException
ImageReadException
IOException
protected byte[] getNextScanline(InputStream is, int length, byte[] prev, int BytesPerPixel) throws ImageReadException, IOException
ImageReadException
IOException
Copyright © 2007-2012. All Rights Reserved.