CodecCapLevels

The level of the codec capability.

public class CodecCapLevels {
  public int hwDecodingLevel;
  public int swDecodingLevel;

  public CodecCapLevels() {
    this.hwDecodingLevel = Constants.CODEC_CAPABILITY_LEVEL_UNSPECIFIED;
    this.swDecodingLevel = Constants.CODEC_CAPABILITY_LEVEL_UNSPECIFIED;
  };

  @CalledByNative
  public CodecCapLevels(int hwDecLevel, int swDecLevel) {
    this.hwDecodingLevel = hwDecLevel;
    this.swDecodingLevel = swDecLevel;
  };
};
Since
v4.2.2

Attributes

hwDecodingLevel
Hardware decoding capability level, which represents the device's ability to perform hardware decoding on videos of different quality.
  • CODEC_CAPABILITY_LEVEL_UNSPECIFIED(-1): Unsupported video type. Currently, only H.264 and H.265 formats are supported. If the video is in another format, this value will be returned.
  • CODEC_CAPABILITY_LEVEL_BASIC_SUPPORT(5): Supports encoding and decoding videos up to 1080p and 30 fps.
  • CODEC_CAPABILITY_LEVEL_1080P30FPS(10): Supports encoding and decoding videos up to1080p and 30 fps.
  • CODEC_CAPABILITY_LEVEL_1080P60FPS(20): Support encoding and decoding videos up to 1080p and 60 fps.
  • CODEC_CAPABILITY_LEVEL_4K60FPS(30): Support encoding and decoding videos up to 4K and 30 fps.
swDecodingLevel
Software decoding capability level, which represents the device's ability to perform software decoding on videos of different quality.
  • CODEC_CAPABILITY_LEVEL_UNSPECIFIED(-1): Unsupported video type. Currently, only H.264 and H.265 formats are supported. If the video is in another format, this value will be returned.
  • CODEC_CAPABILITY_LEVEL_BASIC_SUPPORT(5): Supports encoding and decoding videos up to 1080p and 30 fps.
  • CODEC_CAPABILITY_LEVEL_1080P30FPS(10): Supports encoding and decoding videos up to1080p and 30 fps.
  • CODEC_CAPABILITY_LEVEL_1080P60FPS(20): Support encoding and decoding videos up to 1080p and 60 fps.
  • CODEC_CAPABILITY_LEVEL_4K60FPS(30): Support encoding and decoding videos up to 4K and 30 fps.