public static final class MediaCodecInfo.EncoderCapabilities extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BITRATE_MODE_CBR
Constant bitrate mode
|
static int |
BITRATE_MODE_CQ
Constant quality mode
|
static int |
BITRATE_MODE_VBR
Variable bitrate mode
|
Modifier and Type | Method and Description |
---|---|
static MediaCodecInfo.EncoderCapabilities |
create(MediaFormat info,
MediaCodecInfo.CodecCapabilities parent) |
Range<Integer> |
getComplexityRange()
Returns the supported range of encoder complexity values.
|
Range<Integer> |
getQualityRange()
Returns the supported range of quality values.
|
void |
init(MediaFormat info,
MediaCodecInfo.CodecCapabilities parent) |
boolean |
isBitrateModeSupported(int mode)
Query whether a bitrate mode is supported.
|
void |
setDefaultFormat(MediaFormat format) |
boolean |
supportsFormat(MediaFormat format) |
public static final int BITRATE_MODE_CQ
public static final int BITRATE_MODE_VBR
public static final int BITRATE_MODE_CBR
public Range<Integer> getQualityRange()
public Range<Integer> getComplexityRange()
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)
public static MediaCodecInfo.EncoderCapabilities create(MediaFormat info, MediaCodecInfo.CodecCapabilities parent)
public void init(MediaFormat info, MediaCodecInfo.CodecCapabilities parent)
public void setDefaultFormat(MediaFormat format)
public boolean supportsFormat(MediaFormat format)