java.lang.Object
org.monte.media.av.CodecChain
- All Implemented Interfaces:
Codec
CodecChain.- Author:
- Werner Randelshofer
-
Field Summary
Fields 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 TypeMethodDescriptionstatic CodeccreateCodecChain(List<Codec> codecs) static CodeccreateCodecChain(Codec... codecs) longFormat[]Lists all of the input formats that this codec accepts.getName()Returns a human readable name of the codec.Format[]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()Resets the state of the codec.setInputFormat(Format input) Sets the input format.setOutputFormat(Format output) Sets the output format.toString()
-
Constructor Details
-
CodecChain
-
-
Method Details
-
createCodecChain
-
createCodecChain
-
getInputFormats
Description copied from interface:CodecLists all of the input formats that this codec accepts.- Specified by:
getInputFormatsin interfaceCodec
-
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
-
setInputFormat
Description copied from interface:CodecSets the input 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:
setInputFormatin interfaceCodec
-
getInputFormat
- Specified by:
getInputFormatin interfaceCodec
-
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
-
getOutputFormat
- Specified by:
getOutputFormatin interfaceCodec
-
process
Description copied from interface:CodecPerforms the media processing defined by this codec.Copies the data from the input buffer into the output buffer.
-
getName
Description copied from interface:CodecReturns a human readable name of the codec. -
reset
public void reset()Description copied from interface:CodecResets the state of the codec. -
toString
-
getElapsedTime
public long getElapsedTime() -
reportElapsedTime
-