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, outputFormatsCODEC_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, writeInts24LEgetInputFormat, getInputFormats, getName, getOutputFormat, getOutputFormats, reset, setInputFormat, toStringpublic Format setOutputFormat(Format f)
CodecsetOutputFormat in interface CodecsetOutputFormat in class AbstractCodecCopyright © 2014. All Rights Reserved.