Interface Codec.DecoderFactory
-
-
Field Summary
Fields Modifier and Type Field Description static Codec.DecoderFactory
DEFAULT
A defaultDecoderFactory
implementation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Codec
createForAudioDecoding(Format format)
Returns aCodec
for audio decoding.Codec
createForVideoDecoding(Format format, Surface outputSurface)
Returns aCodec
for video decoding.
-
-
-
Field Detail
-
DEFAULT
static final Codec.DecoderFactory DEFAULT
A defaultDecoderFactory
implementation.
-
-
Method Detail
-
createForAudioDecoding
Codec createForAudioDecoding(Format format) throws TransformationException
Returns aCodec
for audio decoding.- Parameters:
format
- TheFormat
(of the input data) used to determine the underlyingMediaCodec
and 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 aCodec
for video decoding.- Parameters:
format
- TheFormat
(of the input data) used to determine the underlyingMediaCodec
and its configuration values.outputSurface
- TheSurface
to which the decoder output is rendered.- Returns:
- A configured and started decoder wrapper.
- Throws:
TransformationException
- If no suitable codec can be created.
-
-