public class FrameRateConverter extends AbstractVideoCodec
Makes frames longer if the output time is behind the input time. Drops frames if the output time runs away from the input time.
The output of the converter has a variable frame rate but it may still
contain identical frames.
Thus an additional conversion step with FFRtoVFRConverter is needed.
This codec is needed when the input source has a different frame rate than the output sink.
inputFormat, inputFormats, name, outputFormat, outputFormatsCODEC_FAILED, CODEC_INPUT_NOT_CONSUMED, CODEC_OK, CODEC_OUTPUT_NOT_FILLED| Constructor and Description |
|---|
FrameRateConverter() |
| Modifier and Type | Method and Description |
|---|---|
Format[] |
getOutputFormats(Format input)
Lists all of the output formats that this codec can generate
with the provided input format.
|
int |
process(Buffer in,
Buffer out)
Performs the media processing defined by this codec.
|
void |
reset()
Empty implementation of the reset method.
|
Format |
setOutputFormat(Format f)
Sets the output format.
|
copyImage, getARGB32, getBufferedImage, getIndexed8, getRGB15, getRGB16, getRGB24, writeInt24, writeInt24LE, writeInts24, writeInts24LEgetInputFormat, getInputFormats, getName, getOutputFormat, setInputFormat, toStringpublic Format[] getOutputFormats(Format input)
CodecgetOutputFormats in interface CodecgetOutputFormats in class AbstractCodecpublic Format setOutputFormat(Format f)
CodecsetOutputFormat in interface CodecsetOutputFormat in class AbstractCodecpublic void reset()
AbstractCodecreset in interface Codecreset in class AbstractCodecCopyright © 2014. All Rights Reserved.