java.lang.Object
org.monte.media.av.AbstractCodec
- All Implemented Interfaces:
Codec
- Direct Known Subclasses:
AbstractAudioCodec,AbstractVideoCodec,AdjustTimeCodec,PassThroughCodec,TrimTimeCodec
AbstractCodec.- Author:
- Werner Randelshofer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Formatprotected Format[]protected Stringprotected Formatprotected Format[]Fields inherited from interface org.monte.media.av.Codec
CODEC_FAILED, CODEC_INPUT_NOT_CONSUMED, CODEC_OK, CODEC_OUTPUT_NOT_FILLED -
Constructor Summary
ConstructorsConstructorDescriptionAbstractCodec(Format[] supportedInputOutputFormats) AbstractCodec(Format[] supportedInputFormats, Format[] supportedOutputFormats) -
Method Summary
Modifier and TypeMethodDescriptionFormat[]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.voidreset()Empty implementation of the reset method.Sets the input format.Sets the output format.toString()
-
Field Details
-
inputFormats
-
outputFormats
-
inputFormat
-
outputFormat
-
name
-
-
Constructor Details
-
AbstractCodec
-
AbstractCodec
-
-
Method Details
-
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
-
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
-
getInputFormat
- Specified by:
getInputFormatin interfaceCodec
-
getOutputFormat
- Specified by:
getOutputFormatin interfaceCodec
-
getName
Description copied from interface:CodecReturns a human readable name of the codec. -
reset
public void reset()Empty implementation of the reset method. Don't call super. -
toString
-