Class RLE4Decoder
java.lang.Object
com.twelvemonkeys.imageio.plugins.bmp.AbstractRLEDecoder
com.twelvemonkeys.imageio.plugins.bmp.RLE4Decoder
- All Implemented Interfaces:
Decoder
Implements 4 bit RLE decoding as specified by in the Windows BMP (aka DIB) file format.
- Version:
- $Id: RLE4Decoder.java#1 $
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final int[]
(package private) static final int[]
Fields inherited from class com.twelvemonkeys.imageio.plugins.bmp.AbstractRLEDecoder
bitsPerSample, dstX, dstY, row, srcX, srcY, width
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
decodeRow
(InputStream stream) Decodes one full row of image data.Methods inherited from class com.twelvemonkeys.imageio.plugins.bmp.AbstractRLEDecoder
checkEOF, decode
-
Field Details
-
BIT_MASKS
static final int[] BIT_MASKS -
BIT_SHIFTS
static final int[] BIT_SHIFTS
-
-
Constructor Details
-
RLE4Decoder
public RLE4Decoder(int width)
-
-
Method Details
-
decodeRow
Description copied from class:AbstractRLEDecoder
Decodes one full row of image data.- Specified by:
decodeRow
in classAbstractRLEDecoder
- Parameters:
stream
- the input stream containing RLE data- Throws:
IOException
- if an I/O related exception occurs while reading
-