Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(186)

Unified Diff: webrtc/api/java/src/org/webrtc/MediaCodecVideoEncoder.java

Issue 1906233002: Enable VP9 HW encoder on Exynos devices. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Fix typos Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/java/src/org/webrtc/MediaCodecVideoEncoder.java
diff --git a/webrtc/api/java/src/org/webrtc/MediaCodecVideoEncoder.java b/webrtc/api/java/src/org/webrtc/MediaCodecVideoEncoder.java
index d017becb67035a6c190332bec3733f4cf77d77b5..1f71652350353d9e1526d7eaa884ed512100d75e 100644
--- a/webrtc/api/java/src/org/webrtc/MediaCodecVideoEncoder.java
+++ b/webrtc/api/java/src/org/webrtc/MediaCodecVideoEncoder.java
@@ -71,13 +71,13 @@ public class MediaCodecVideoEncoder {
private static final String VP8_MIME_TYPE = "video/x-vnd.on2.vp8";
private static final String VP9_MIME_TYPE = "video/x-vnd.on2.vp9";
private static final String H264_MIME_TYPE = "video/avc";
- // List of supported HW VP8 codecs.
+ // List of supported HW VP8 encoders.
private static final String[] supportedVp8HwCodecPrefixes =
{"OMX.qcom.", "OMX.Intel." };
- // List of supported HW VP9 decoders.
+ // List of supported HW VP9 encoders.
private static final String[] supportedVp9HwCodecPrefixes =
- {"OMX.qcom."};
- // List of supported HW H.264 codecs.
+ {"OMX.qcom.", "OMX.Exynos." };
+ // List of supported HW H.264 encoders.
private static final String[] supportedH264HwCodecPrefixes =
{"OMX.qcom." };
// List of devices with poor H.264 encoder quality.
@@ -298,7 +298,7 @@ public class MediaCodecVideoEncoder {
keyFrameIntervalSec = 100;
} else if (type == VideoCodecType.VIDEO_CODEC_VP9) {
mime = VP9_MIME_TYPE;
- properties = findHwEncoder(VP9_MIME_TYPE, supportedH264HwCodecPrefixes,
+ properties = findHwEncoder(VP9_MIME_TYPE, supportedVp9HwCodecPrefixes,
useSurface ? supportedSurfaceColorList : supportedColorList);
keyFrameIntervalSec = 100;
} else if (type == VideoCodecType.VIDEO_CODEC_H264) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698