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.BufferedImagebi(package private) intbitDepth(package private) intbitsPerPixel(package private) intbytesPerPixel(package private) GammaCorrectiongammaCorrection(package private) intheight(package private) java.io.InputStreamis(package private) PngChunkPltepngChunkPLTE(package private) PngColorTypepngColorType(package private) TransparencyFiltertransparencyFilter(package private) intwidth
-
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 voiddrive()(package private) intgetBitsToBytesRoundingUp(int bits)(package private) byte[]getNextScanline(java.io.InputStream is, int length, byte[] prev, int bytesPerPixel)(package private) intgetPixelARGB(int alpha, int red, int green, int blue)(package private) intgetPixelRGB(int red, int green, int blue)(package private) intgetRGB(BitParser bitParser, int pixelIndexInScanline)(package private) ScanlineFiltergetScanlineFilter(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:
ImageReadExceptionjava.io.IOException
-
getRGB
int getRGB(BitParser bitParser, int pixelIndexInScanline) throws ImageReadException, java.io.IOException
- Throws:
ImageReadExceptionjava.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:
ImageReadExceptionjava.io.IOException
-
getNextScanline
byte[] getNextScanline(java.io.InputStream is, int length, byte[] prev, int bytesPerPixel) throws ImageReadException, java.io.IOException- Throws:
ImageReadExceptionjava.io.IOException
-
-