public interface

Codec.DecoderFactory

 androidx.media3.transformer.Codec.DecoderFactory

Subclasses:

DefaultDecoderFactory

Overview

A factory for decoder instances.

Summary

Methods
public CodeccreateForAudioDecoding(Format format)

Returns a Codec for audio decoding.

public CodeccreateForVideoDecoding(Format format, Surface outputSurface, boolean requestSdrToneMapping)

Returns a Codec for video decoding.

Methods

public Codec createForAudioDecoding(Format format)

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.

public Codec createForVideoDecoding(Format format, Surface outputSurface, boolean requestSdrToneMapping)

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 to which the decoder output is rendered.
requestSdrToneMapping: Whether to request tone-mapping to SDR.

Returns:

A Codec for video decoding.