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, outputFormats
CODEC_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, writeInts24LE
getInputFormat, getInputFormats, getName, getOutputFormat, setInputFormat, toString
public Format[] getOutputFormats(Format input)
Codec
getOutputFormats
in interface Codec
getOutputFormats
in class AbstractCodec
public Format setOutputFormat(Format f)
Codec
setOutputFormat
in interface Codec
setOutputFormat
in class AbstractCodec
public void reset()
AbstractCodec
reset
in interface Codec
reset
in class AbstractCodec