public class JPEGCodec extends AbstractVideoCodec
JPEGCodec
encodes a BufferedImage as a byte[] array.
Supported input formats:
VideoFormat
with BufferedImage.class
, any width, any height,
any depth.
VideoFormat
with byte[].class
, same width and height as input
format, depth=24.
inputFormat, inputFormats, name, outputFormat, outputFormats
CODEC_FAILED, CODEC_INPUT_NOT_CONSUMED, CODEC_OK, CODEC_OUTPUT_NOT_FILLED
Constructor and Description |
---|
JPEGCodec() |
Modifier and Type | Method and Description |
---|---|
int |
decode(Buffer in,
Buffer out) |
int |
encode(Buffer in,
Buffer out) |
int |
process(Buffer in,
Buffer out)
Performs the media processing defined by this codec.
|
copyImage, getARGB32, getBufferedImage, getIndexed8, getRGB15, getRGB16, getRGB24, writeInt24, writeInt24LE, writeInts24, writeInts24LE
getInputFormat, getInputFormats, getName, getOutputFormat, getOutputFormats, reset, setInputFormat, setOutputFormat, toString