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