org.monte.media.converter
Class FFRtoVFRConverter
java.lang.Object
org.monte.media.AbstractCodec
org.monte.media.AbstractVideoCodec
org.monte.media.converter.FFRtoVFRConverter
- All Implemented Interfaces:
- Codec
public class FFRtoVFRConverter
- extends AbstractVideoCodec
This codec converts frames from a fixed frame rate into a variable frame rate
by coalescing identical frames.
This codec can be used when the input source has a fixed frame rate and
the output sink supports a variable frame rate.
- Version:
- $Id: FFRtoVFRConverter.java 142 2012-01-12 22:14:09Z werner $
- Author:
- Werner Randelshofer
| Methods inherited from class org.monte.media.AbstractVideoCodec |
copyImage, getARGB32, getBufferedImage, getIndexed8, getRGB15, getRGB16, getRGB24, writeInt24, writeInt24LE, writeInts24, writeInts24LE |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FFRtoVFRConverter
public FFRtoVFRConverter()
getOutputFormats
public Format[] getOutputFormats(Format input)
- Description copied from interface:
Codec
- Lists 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:
getOutputFormats in interface Codec- Overrides:
getOutputFormats in class AbstractCodec
setOutputFormat
public Format setOutputFormat(Format f)
- Description copied from interface:
Codec
- Sets 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:
setOutputFormat in interface Codec- Overrides:
setOutputFormat in class AbstractCodec
reset
public void reset()
- Description copied from class:
AbstractCodec
- Empty implementation of the reset method. Don't call super.
- Specified by:
reset in interface Codec- Overrides:
reset in class AbstractCodec
process
public int process(Buffer in,
Buffer out)
- Description copied from interface:
Codec
- Performs the media processing defined by this codec.
Copies the data from the input buffer into the output buffer.
- Returns:
- A combination of processing flags.