Expose AV1 encoder&decoder from Android SDK.
Bug: None Change-Id: Ie32be36da498d4bed2a3cf51aa6abc8838e42da1 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/212024 Reviewed-by: Xavier Lepaul <xalep@webrtc.org> Commit-Queue: Yura Yaroshevich <yura.yaroshevich@gmail.com> Cr-Commit-Position: refs/heads/master@{#33743}
This commit is contained in:
committed by
Commit Bot
parent
572f50fc04
commit
fedd5029c5
@ -137,9 +137,9 @@ public class HardwareVideoEncoderFactory implements VideoEncoderFactory {
|
||||
|
||||
List<VideoCodecInfo> supportedCodecInfos = new ArrayList<VideoCodecInfo>();
|
||||
// Generate a list of supported codecs in order of preference:
|
||||
// VP8, VP9, H264 (high profile), and H264 (baseline profile).
|
||||
for (VideoCodecMimeType type : new VideoCodecMimeType[] {
|
||||
VideoCodecMimeType.VP8, VideoCodecMimeType.VP9, VideoCodecMimeType.H264}) {
|
||||
// VP8, VP9, H264 (high profile), H264 (baseline profile) and AV1.
|
||||
for (VideoCodecMimeType type : new VideoCodecMimeType[] {VideoCodecMimeType.VP8,
|
||||
VideoCodecMimeType.VP9, VideoCodecMimeType.H264, VideoCodecMimeType.AV1}) {
|
||||
MediaCodecInfo codec = findCodecForType(type);
|
||||
if (codec != null) {
|
||||
String name = type.name();
|
||||
@ -202,6 +202,8 @@ public class HardwareVideoEncoderFactory implements VideoEncoderFactory {
|
||||
return isHardwareSupportedInCurrentSdkVp9(info);
|
||||
case H264:
|
||||
return isHardwareSupportedInCurrentSdkH264(info);
|
||||
case AV1:
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@ -248,6 +250,7 @@ public class HardwareVideoEncoderFactory implements VideoEncoderFactory {
|
||||
switch (type) {
|
||||
case VP8: // Fallthrough intended.
|
||||
case VP9:
|
||||
case AV1:
|
||||
return 100;
|
||||
case H264:
|
||||
return 20;
|
||||
|
||||
Reference in New Issue
Block a user