|
Copyright 2012-04-26 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.monte.media.AbstractCodec
org.monte.media.AbstractVideoCodec
org.monte.media.converter.FrameRateConverter
public class FrameRateConverter
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 or
VFRtoFFRConverter is needed.
This codec is needed when the input source has a different frame rate than the output sink.
| Field Summary |
|---|
| Fields inherited from class org.monte.media.AbstractCodec |
|---|
inputFormat, inputFormats, name, outputFormat, outputFormats |
| Fields inherited from interface org.monte.media.Codec |
|---|
CODEC_FAILED, CODEC_INPUT_NOT_CONSUMED, CODEC_OK, CODEC_OUTPUT_NOT_FILLED |
| Constructor Summary | |
|---|---|
FrameRateConverter()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.monte.media.AbstractVideoCodec |
|---|
copyImage, getARGB32, getBufferedImage, getIndexed8, getRGB15, getRGB16, getRGB24, writeInt24, writeInt24LE, writeInts24, writeInts24LE |
| Methods inherited from class org.monte.media.AbstractCodec |
|---|
getInputFormat, getInputFormats, getName, getOutputFormat, setInputFormat, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FrameRateConverter()
| Method Detail |
|---|
public Format[] getOutputFormats(Format input)
Codec
getOutputFormats in interface CodecgetOutputFormats in class AbstractCodecpublic Format setOutputFormat(Format f)
Codec
setOutputFormat in interface CodecsetOutputFormat in class AbstractCodecpublic void reset()
AbstractCodec
reset in interface Codecreset in class AbstractCodec
public int process(Buffer in,
Buffer out)
CodecCopies the data from the input buffer into the output buffer.
|
Copyright 2012-04-26 Werner Randelshofer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||