docs/doc/reference/com/google/android/exoplayer2/transformer/Codec.DecoderFactory.html
Package com.google.android.exoplayer2.transformer
public static interfaceCodec.DecoderFactory
A factory for decoder instances.
All Methods Instance Methods Abstract Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| Codec | createForAudioDecoding(Format format) |
Returns a Codec for audio decoding.
|
| Codec | createForVideoDecoding(Format format, Surface outputSurface, boolean requestSdrToneMapping) |
Returns a Codec for video decoding.
|
-
[Codec](Codec.html "interface in com.google.android.exoplayer2.transformer")createForAudioDecoding([Format](../Format.html "class in com.google.android.exoplayer2")format)
throws[ExportException](ExportException.html "class in com.google.android.exoplayer2.transformer")
Returns a Codec for audio decoding.
Parameters:format - The Format (of the input data) used to determine the underlying decoder and its configuration values.Returns:A Codec for audio decoding.Throws:ExportException - If no suitable Codec can be created.
-
[Codec](Codec.html "interface in com.google.android.exoplayer2.transformer")createForVideoDecoding([Format](../Format.html "class in com.google.android.exoplayer2")format,[Surface](https://developer.android.com/reference/android/view/Surface.html "class or interface in android.view")outputSurface,
boolean requestSdrToneMapping)
throws[ExportException](ExportException.html "class in com.google.android.exoplayer2.transformer")
Returns a Codec for video decoding.
Parameters:format - The Format (of the input data) used to determine the underlying decoder and its configuration values.outputSurface - The Surface 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 suitable Codec can be created.