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