Class ScanExpediter
java.lang.Object
org.apache.commons.imaging.formats.png.ScanExpediter
- Direct Known Subclasses:
ScanExpediterInterlaced
,ScanExpediterSimple
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final BufferedImage
(package private) final int
(package private) final int
(package private) final int
(package private) final GammaCorrection
(package private) final int
(package private) final InputStream
(package private) final PngChunkPlte
(package private) final PngColorType
(package private) final TransparencyFilter
(package private) final int
-
Constructor Summary
ConstructorsConstructorDescriptionScanExpediter
(int width, int height, InputStream is, BufferedImage bi, PngColorType pngColorType, int bitDepth, int bitsPerPixel, PngChunkPlte pngChunkPLTE, GammaCorrection gammaCorrection, TransparencyFilter transparencyFilter) -
Method Summary
Modifier and TypeMethodDescriptionabstract void
drive()
(package private) final int
getBitsToBytesRoundingUp
(int bits) (package private) byte[]
getNextScanline
(InputStream is, int length, byte[] prev, int bytesPerPixel) (package private) final int
getPixelARGB
(int alpha, int red, int green, int blue) (package private) final int
getPixelRGB
(int red, int green, int blue) (package private) int
(package private) ScanlineFilter
getScanlineFilter
(FilterType filterType, int bytesPerPixel) (package private) byte[]
unfilterScanline
(FilterType filterType, byte[] src, byte[] prev, int bytesPerPixel)
-
Field Details
-
width
final int width -
height
final int height -
is
-
bi
-
pngColorType
-
bitDepth
final int bitDepth -
bytesPerPixel
final int bytesPerPixel -
bitsPerPixel
final int bitsPerPixel -
pngChunkPLTE
-
gammaCorrection
-
transparencyFilter
-
-
Constructor Details
-
ScanExpediter
ScanExpediter(int width, int height, InputStream is, BufferedImage bi, PngColorType pngColorType, int bitDepth, int bitsPerPixel, PngChunkPlte pngChunkPLTE, GammaCorrection gammaCorrection, TransparencyFilter transparencyFilter)
-
-
Method Details
-
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
- Throws:
ImageReadException
IOException
-
getRGB
- Throws:
ImageReadException
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, IOException - Throws:
ImageReadException
IOException
-
getNextScanline
byte[] getNextScanline(InputStream is, int length, byte[] prev, int bytesPerPixel) throws ImageReadException, IOException - Throws:
ImageReadException
IOException
-