Android APIs
public static final class

MediaCodecInfo.EncoderCapabilities

extends Object
java.lang.Object
   ↳ android.media.MediaCodecInfo.EncoderCapabilities

Class Overview

A class that supports querying the encoding capabilities of a codec.

Summary

Constants
int BITRATE_MODE_CBR Constant bitrate mode
int BITRATE_MODE_CQ Constant quality mode
int BITRATE_MODE_VBR Variable bitrate mode
Public Methods
Range<Integer> getComplexityRange()
Returns the supported range of encoder complexity values.
boolean isBitrateModeSupported(int mode)
Query whether a bitrate mode is supported.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int BITRATE_MODE_CBR

Added in API level 21

Constant bitrate mode

Constant Value: 2 (0x00000002)

public static final int BITRATE_MODE_CQ

Added in API level 21

Constant quality mode

Constant Value: 0 (0x00000000)

public static final int BITRATE_MODE_VBR

Added in API level 21

Variable bitrate mode

Constant Value: 1 (0x00000001)

Public Methods

public Range<Integer> getComplexityRange ()

Added in API level 21

Returns the supported range of encoder complexity values.

Some codecs may support multiple complexity levels, where higher complexity values use more encoder tools (e.g. perform more intensive calculations) to improve the quality or the compression ratio. Use a lower value to save power and/or time.

public boolean isBitrateModeSupported (int mode)

Added in API level 21

Query whether a bitrate mode is supported.