Interface Codec.DecoderFactory
-
-
Field Summary
Fields Modifier and Type Field Description static Codec.DecoderFactoryDEFAULTA defaultDecoderFactoryimplementation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CodeccreateForAudioDecoding(Format format)Returns aCodecfor audio decoding.CodeccreateForVideoDecoding(Format format, Surface outputSurface)Returns aCodecfor video decoding.
-
-
-
Field Detail
-
DEFAULT
static final Codec.DecoderFactory DEFAULT
A defaultDecoderFactoryimplementation.
-
-
Method Detail
-
createForAudioDecoding
Codec createForAudioDecoding(Format format) throws TransformationException
Returns aCodecfor audio decoding.- Parameters:
format- TheFormat(of the input data) used to determine the underlyingMediaCodecand its configuration values.- Returns:
- A configured and started decoder wrapper.
- Throws:
TransformationException- If no suitable codec can be created.
-
createForVideoDecoding
Codec createForVideoDecoding(Format format, Surface outputSurface) throws TransformationException
Returns aCodecfor video decoding.- Parameters:
format- TheFormat(of the input data) used to determine the underlyingMediaCodecand its configuration values.outputSurface- TheSurfaceto which the decoder output is rendered.- Returns:
- A configured and started decoder wrapper.
- Throws:
TransformationException- If no suitable codec can be created.
-
-