CodecCapInfo
设备支持的编解码能力信息。
public class CodecCapInfo { public int codecType; public int codecCapMask; public CodecCapLevels codecLevels; @CalledByNative public CodecCapInfo(int codecType, int codecCapMask, CodecCapLevels levels) { this.codecType = codecType; this.codecCapMask = codecCapMask; this.codecLevels = levels; } @CalledByNative public void SetCodecType(int codecType) { this.codecType = codecType; } @CalledByNative public void SetCodecCapMask(int codecCapMask) { this.codecCapMask = codecCapMask; } }
- 自从
- v4.2.0
属性
- codecType
-
视频编解码类型:
- 1: VP8。
- 2:(默认值)H.264。
- 3: H.265。
- codecCapMask
-
编解码类型的 bit mask:
- 0:不支持编解码。
- 1 << 0:支持硬件解码。
- 1 << 1:支持硬件编码。
- 1 << 2:支持软件解码。
- 1 << 3:支持软件编码。
- codecLevels
- 编解码能力等级。详见 CodecCapLevels。