Class FrameRateConverter
java.lang.Object
org.monte.media.av.AbstractCodec
org.monte.media.av.codec.video.AbstractVideoCodec
org.monte.media.av.codec.video.FrameRateConverter
- All Implemented Interfaces:
Codec
This codec converts frames from one frame rate into another.
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.
- Author:
- Werner Randelshofer
-
Field Summary
Fields inherited from class org.monte.media.av.AbstractCodec
inputFormat, inputFormats, name, outputFormat, outputFormatsFields inherited from interface org.monte.media.av.Codec
CODEC_FAILED, CODEC_INPUT_NOT_CONSUMED, CODEC_OK, CODEC_OUTPUT_NOT_FILLED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFormat[]getOutputFormats(Format input) Lists all of the output formats that this codec can generate with the provided input format.intPerforms the media processing defined by this codec.voidreset()Empty implementation of the reset method.Sets the output format.Methods inherited from class org.monte.media.av.codec.video.AbstractVideoCodec
copyImage, getARGB32, getBufferedImage, getColorModel, getIndexed8, getRGB15, getRGB16, getRGB24, writeInt24, writeInt24LE, writeInts24, writeInts24LEMethods inherited from class org.monte.media.av.AbstractCodec
getInputFormat, getInputFormats, getName, getOutputFormat, setInputFormat, toString
-
Constructor Details
-
FrameRateConverter
public FrameRateConverter()
-
-
Method Details
-
getOutputFormats
Description copied from interface:CodecLists all of the output formats that this codec can generate with the provided input format. If the input format is null, returns all supported output formats.- Specified by:
getOutputFormatsin interfaceCodec- Overrides:
getOutputFormatsin classAbstractCodec
-
setOutputFormat
Description copied from interface:CodecSets the output format. Returns the format that was actually set. This is the closest format that the Codec supports. Returns null if the specified format is not supported and no reasonable match could be found.- Specified by:
setOutputFormatin interfaceCodec- Overrides:
setOutputFormatin classAbstractCodec
-
reset
public void reset()Description copied from class:AbstractCodecEmpty implementation of the reset method. Don't call super.- Specified by:
resetin interfaceCodec- Overrides:
resetin classAbstractCodec
-
process
-