Interface Codec.DecoderFactory
-
-
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, boolean requestSdrToneMapping)
Returns aCodec
for video decoding.
-
-
-
Method Detail
-
createForAudioDecoding
Codec createForAudioDecoding(Format format) throws ExportException
Returns aCodec
for audio decoding.- Parameters:
format
- TheFormat
(of the input data) used to determine the underlying decoder and its configuration values.- Returns:
- A
Codec
for audio decoding. - Throws:
ExportException
- If no suitableCodec
can be created.
-
createForVideoDecoding
Codec createForVideoDecoding(Format format, Surface outputSurface, boolean requestSdrToneMapping) throws ExportException
Returns aCodec
for video decoding.- Parameters:
format
- TheFormat
(of the input data) used to determine the underlying decoder and its configuration values.outputSurface
- TheSurface
to which the decoder output is rendered.requestSdrToneMapping
- Whether to request tone-mapping to SDR.- Returns:
- A
Codec
for video decoding. - Throws:
ExportException
- If no suitableCodec
can be created.
-
-