Class ScanExpediter
- java.lang.Object
-
- org.apache.commons.imaging.formats.png.ScanExpediter
-
- Direct Known Subclasses:
ScanExpediterInterlaced
,ScanExpediterSimple
abstract class ScanExpediter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.awt.image.BufferedImage
bi
(package private) int
bitDepth
(package private) int
bitsPerPixel
(package private) int
bytesPerPixel
(package private) GammaCorrection
gammaCorrection
(package private) int
height
(package private) java.io.InputStream
is
(package private) PngChunkPlte
pngChunkPLTE
(package private) PngColorType
pngColorType
(package private) TransparencyFilter
transparencyFilter
(package private) int
width
-
Constructor Summary
Constructors Constructor Description ScanExpediter(int width, int height, java.io.InputStream is, java.awt.image.BufferedImage bi, PngColorType pngColorType, int bitDepth, int bitsPerPixel, PngChunkPlte pngChunkPLTE, GammaCorrection gammaCorrection, TransparencyFilter transparencyFilter)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract void
drive()
(package private) int
getBitsToBytesRoundingUp(int bits)
(package private) byte[]
getNextScanline(java.io.InputStream is, int length, byte[] prev, int bytesPerPixel)
(package private) int
getPixelARGB(int alpha, int red, int green, int blue)
(package private) int
getPixelRGB(int red, int green, int blue)
(package private) int
getRGB(BitParser bitParser, int pixelIndexInScanline)
(package private) ScanlineFilter
getScanlineFilter(FilterType filterType, int bytesPerPixel)
(package private) byte[]
unfilterScanline(FilterType filterType, byte[] src, byte[] prev, int bytesPerPixel)
-
-
-
Field Detail
-
width
final int width
-
height
final int height
-
is
final java.io.InputStream is
-
bi
final java.awt.image.BufferedImage bi
-
pngColorType
final PngColorType pngColorType
-
bitDepth
final int bitDepth
-
bytesPerPixel
final int bytesPerPixel
-
bitsPerPixel
final int bitsPerPixel
-
pngChunkPLTE
final PngChunkPlte pngChunkPLTE
-
gammaCorrection
final GammaCorrection gammaCorrection
-
transparencyFilter
final TransparencyFilter transparencyFilter
-
-
Constructor Detail
-
ScanExpediter
ScanExpediter(int width, int height, java.io.InputStream is, java.awt.image.BufferedImage bi, PngColorType pngColorType, int bitDepth, int bitsPerPixel, PngChunkPlte pngChunkPLTE, GammaCorrection gammaCorrection, TransparencyFilter transparencyFilter)
-
-
Method Detail
-
getBitsToBytesRoundingUp
final int getBitsToBytesRoundingUp(int bits)
-
getPixelARGB
final int getPixelARGB(int alpha, int red, int green, int blue)
-
getPixelRGB
final int getPixelRGB(int red, int green, int blue)
-
drive
public abstract void drive() throws ImageReadException, java.io.IOException
- Throws:
ImageReadException
java.io.IOException
-
getRGB
int getRGB(BitParser bitParser, int pixelIndexInScanline) throws ImageReadException, java.io.IOException
- Throws:
ImageReadException
java.io.IOException
-
getScanlineFilter
ScanlineFilter getScanlineFilter(FilterType filterType, int bytesPerPixel) throws ImageReadException
- Throws:
ImageReadException
-
unfilterScanline
byte[] unfilterScanline(FilterType filterType, byte[] src, byte[] prev, int bytesPerPixel) throws ImageReadException, java.io.IOException
- Throws:
ImageReadException
java.io.IOException
-
getNextScanline
byte[] getNextScanline(java.io.InputStream is, int length, byte[] prev, int bytesPerPixel) throws ImageReadException, java.io.IOException
- Throws:
ImageReadException
java.io.IOException
-
-