public abstract class AbstractVideoCodec extends AbstractCodec
AbstractVideoCodec
.inputFormat, inputFormats, name, outputFormat, outputFormats
CODEC_FAILED, CODEC_INPUT_NOT_CONSUMED, CODEC_OK, CODEC_OUTPUT_NOT_FILLED
Constructor and Description |
---|
AbstractVideoCodec(Format[] supportedInputFormats,
Format[] supportedOutputFormats) |
Modifier and Type | Method and Description |
---|---|
protected static java.awt.image.BufferedImage |
copyImage(java.awt.image.BufferedImage img)
Copies a buffered image.
|
protected int[] |
getARGB32(Buffer buf)
Gets 32-bit ARGB pixels from a buffer.
|
protected java.awt.image.BufferedImage |
getBufferedImage(Buffer buf)
Gets a buffered image from a buffer.
|
protected byte[] |
getIndexed8(Buffer buf)
Gets 8-bit indexed pixels from a buffer.
|
protected short[] |
getRGB15(Buffer buf)
Gets 15-bit RGB pixels from a buffer.
|
protected short[] |
getRGB16(Buffer buf)
Gets 16-bit RGB-5-6-5 pixels from a buffer.
|
protected int[] |
getRGB24(Buffer buf)
Gets 24-bit RGB pixels from a buffer.
|
protected void |
writeInt24(javax.imageio.stream.ImageOutputStream out,
int v) |
protected void |
writeInt24LE(javax.imageio.stream.ImageOutputStream out,
int v) |
protected void |
writeInts24(javax.imageio.stream.ImageOutputStream out,
int[] i,
int off,
int len) |
protected void |
writeInts24LE(javax.imageio.stream.ImageOutputStream out,
int[] i,
int off,
int len) |
getInputFormat, getInputFormats, getName, getOutputFormat, getOutputFormats, reset, setInputFormat, setOutputFormat, toString
protected byte[] getIndexed8(Buffer buf)
protected short[] getRGB15(Buffer buf)
protected short[] getRGB16(Buffer buf)
protected int[] getRGB24(Buffer buf)
protected int[] getARGB32(Buffer buf)
protected java.awt.image.BufferedImage getBufferedImage(Buffer buf)
protected void writeInt24(javax.imageio.stream.ImageOutputStream out, int v) throws java.io.IOException
java.io.IOException
protected void writeInt24LE(javax.imageio.stream.ImageOutputStream out, int v) throws java.io.IOException
java.io.IOException
protected void writeInts24(javax.imageio.stream.ImageOutputStream out, int[] i, int off, int len) throws java.io.IOException
java.io.IOException
protected void writeInts24LE(javax.imageio.stream.ImageOutputStream out, int[] i, int off, int len) throws java.io.IOException
java.io.IOException
protected static java.awt.image.BufferedImage copyImage(java.awt.image.BufferedImage img)