Class Registry
java.lang.Object
org.monte.media.av.Registry
- Direct Known Subclasses:
DefaultRegistry
The
Registry for audio and video codecs.- Author:
- Werner Randelshofer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal CodecGets a codec which can transcode from the specified input format to the specified output format.Gets all codecs which can transcode from the specified input format to the specified output format.final CodecgetDecoder(Format inputFormat) Gets the first codec which can decode the specified format.getDecoders(Format inputFormat) Gets all codecs which can decode the specified format.final CodecgetEncoder(Format outputFormat) Gets the first codec which can encode the specified format.getEncoders(Format outputFormat) Gets all codecs which can encode the specified format.abstract StringgetExtension(Format ff) abstract FormatgetFileFormat(File file) static Registryabstract MovieReaderGets a reader for the specified file format and file.abstract MovieWriterGets a writer for the specified file format and file.suggestOutputFormats(Format inputMediaFormat, Format outputFileFormat) Suggests output formats for the given input media format and specified file format.
-
Constructor Details
-
Registry
public Registry()
-
-
Method Details
-
getCodec
-
getCodecs
Gets all codecs which can transcode from the specified input format to the specified output format.- Parameters:
inputFormat- The input format. Or null if any is acceptable.outputFormat- The output format. Or null if any is acceptable.- Returns:
- An unmodifiale list of codes. If no codecs were found, an empty list is returned.
-
getDecoder
-
getDecoders
-
getEncoder
-
getEncoders
-
getExtension
-
getFileFormat
-
getFileFormats
-
getReader
Gets a reader for the specified file format and file.- Parameters:
fileFormat- the desired file format.file- the desired file- Returns:
- a reader or null
- Throws:
IOException
-
getReader
- Throws:
IOException
-
getReaderFormats
-
getWriterFormats
-
getWriter
- Throws:
IOException
-
getWriter
Gets a writer for the specified file format and file.- Parameters:
fileFormat- the desired file format.file- the desired file- Returns:
- a writer or null
- Throws:
IOException
-
suggestOutputFormats
-
getInstance
-