Class RLEEncoder
- java.lang.Object
-
- com.twelvemonkeys.imageio.plugins.tga.RLEEncoder
-
-
Field Summary
Fields Modifier and Type Field Description private intpixelSize
-
Constructor Summary
Constructors Constructor Description RLEEncoder(int pixelDepth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidencode(java.io.OutputStream stream, byte[] buffer, int pOffset, int length)voidencode(java.io.OutputStream stream, java.nio.ByteBuffer buffer)Encodes up tobuffer.remaining()bytes into the given input stream, from the given buffer.private booleanequalPixel(byte[] buffer, int offset, int compareOffset)
-
-
-
Method Detail
-
encode
public void encode(java.io.OutputStream stream, java.nio.ByteBuffer buffer) throws java.io.IOExceptionDescription copied from interface:EncoderEncodes up tobuffer.remaining()bytes into the given input stream, from the given buffer.
-
encode
private void encode(java.io.OutputStream stream, byte[] buffer, int pOffset, int length) throws java.io.IOException- Throws:
java.io.IOException
-
equalPixel
private boolean equalPixel(byte[] buffer, int offset, int compareOffset)
-
-