Reland "Expose AV1 encoder&decoder from Android SDK."
This is a reland of fedd5029c584e9dc1352434b62a30cd8af2889d8 Original change's description: > 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} Bug: None Change-Id: Ibfc7b860bd2314cf997444c7ab0d94d2b186e576 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/215586 Reviewed-by: Xavier Lepaul <xalep@webrtc.org> Commit-Queue: Yura Yaroshevich <yura.yaroshevich@gmail.com> Cr-Commit-Position: refs/heads/master@{#33882}
This commit is contained in:
committed by
WebRTC LUCI CQ
parent
0365c99474
commit
3fb51d2783
@ -169,7 +169,7 @@ class HardwareVideoEncoder implements VideoEncoder {
|
||||
* intervals, and bitrateAdjuster.
|
||||
*
|
||||
* @param codecName the hardware codec implementation to use
|
||||
* @param codecType the type of the given video codec (eg. VP8, VP9, or H264)
|
||||
* @param codecType the type of the given video codec (eg. VP8, VP9, H264 or AV1)
|
||||
* @param surfaceColorFormat color format for surface mode or null if not available
|
||||
* @param yuvColorFormat color format for bytebuffer mode
|
||||
* @param keyFrameIntervalSec interval in seconds between key frames; used to initialize the codec
|
||||
|
||||
@ -91,6 +91,7 @@ class MediaCodecUtils {
|
||||
switch (type) {
|
||||
case VP8:
|
||||
case VP9:
|
||||
case AV1:
|
||||
return new HashMap<String, String>();
|
||||
case H264:
|
||||
return H264Utils.getDefaultH264Params(highProfile);
|
||||
|
||||
@ -64,8 +64,8 @@ class MediaCodecVideoDecoderFactory implements VideoDecoderFactory {
|
||||
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}) {
|
||||
for (VideoCodecMimeType type : new VideoCodecMimeType[] {VideoCodecMimeType.VP8,
|
||||
VideoCodecMimeType.VP9, VideoCodecMimeType.H264, VideoCodecMimeType.AV1}) {
|
||||
MediaCodecInfo codec = findCodecForType(type);
|
||||
if (codec != null) {
|
||||
String name = type.name();
|
||||
|
||||
@ -14,7 +14,8 @@ package org.webrtc;
|
||||
enum VideoCodecMimeType {
|
||||
VP8("video/x-vnd.on2.vp8"),
|
||||
VP9("video/x-vnd.on2.vp9"),
|
||||
H264("video/avc");
|
||||
H264("video/avc"),
|
||||
AV1("video/av01");
|
||||
|
||||
private final String mimeType;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user