ShadowMediaCodecConfig.CodecInfo


public final class ShadowMediaCodecConfig.CodecInfo


Class that holds information about a CodecImpl configuration.

Summary

Public constructors

CodecInfo(String codecName, String mimeType)

Creates an instance.

CodecInfo(
    String codecName,
    String mimeType,
    ImmutableList<MediaCodecInfo.CodecProfileLevel> profileLevels,
    ImmutableList<Integer> colorFormats
)

Creates an instance.

Public fields

codecName

public final String codecName

colorFormats

public final ImmutableList<IntegercolorFormats

mimeType

public final String mimeType

Public constructors

CodecInfo

public CodecInfo(String codecName, String mimeType)

Creates an instance.

This method is equivalent to CodecInfo(codecName, mimeType, ImmutableList.of(), ImmutableList.of().

Parameters
String codecName

The name of the codec.

String mimeType

The MIME type of the codec.

CodecInfo

public CodecInfo(
    String codecName,
    String mimeType,
    ImmutableList<MediaCodecInfo.CodecProfileLevel> profileLevels,
    ImmutableList<Integer> colorFormats
)

Creates an instance.

Parameters
String codecName

The name of the codec.

String mimeType

The MIME type of the codec.

ImmutableList<MediaCodecInfo.CodecProfileLevel> profileLevels

A list of profiles and levels supported by the codec.

ImmutableList<Integer> colorFormats

A list of color formats supported by the codec.