public class PNGCodec extends AbstractVideoCodec
PNGCodec
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 |
---|
PNGCodec() |
Modifier and Type | Method and Description |
---|---|
int |
process(Buffer in,
Buffer out)
Performs the media processing defined by this codec.
|
Format |
setOutputFormat(Format f)
Sets the output format.
|
copyImage, getARGB32, getBufferedImage, getIndexed8, getRGB15, getRGB16, getRGB24, writeInt24, writeInt24LE, writeInts24, writeInts24LE
getInputFormat, getInputFormats, getName, getOutputFormat, getOutputFormats, reset, setInputFormat, toString
public Format setOutputFormat(Format f)
Codec
setOutputFormat
in interface Codec
setOutputFormat
in class AbstractCodec