Codec.DecoderFactory
interface Codec.DecoderFactory
DefaultDecoderFactory |
Default implementation of |
A factory for decoder instances.
Summary
Public functions |
|
|---|---|
Codec! |
createForAudioDecoding(format: Format!, logSessionId: LogSessionId?)Returns a |
Codec! |
createForVideoDecoding(Returns a |
Public functions
createForAudioDecoding
fun createForAudioDecoding(format: Format!, logSessionId: LogSessionId?): Codec!
Returns a Codec for audio decoding.
| Parameters | |
|---|---|
format: Format! |
The |
logSessionId: LogSessionId? |
The optional |
| Throws | |
|---|---|
androidx.media3.transformer.ExportException |
If no suitable |
createForVideoDecoding
fun createForVideoDecoding(
format: Format!,
outputSurface: Surface!,
requestSdrToneMapping: Boolean,
logSessionId: LogSessionId?
): Codec!
Returns a Codec for video decoding.
| Parameters | |
|---|---|
format: Format! |
The |
outputSurface: Surface! |
The |
requestSdrToneMapping: Boolean |
Whether to request tone-mapping to SDR. |
logSessionId: LogSessionId? |
The optional |
| Throws | |
|---|---|
androidx.media3.transformer.ExportException |
If no suitable |