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

Unified Diff: webrtc/sdk/android/src/java/org/webrtc/MediaCodecUtils.java

Issue 2977153003: Add texture support to HardwareVideoEncoder. (Closed)
Patch Set: Fix logging and matrix helper Created 3 years, 5 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 | « webrtc/sdk/android/src/java/org/webrtc/HardwareVideoEncoder.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/sdk/android/src/java/org/webrtc/MediaCodecUtils.java
diff --git a/webrtc/sdk/android/src/java/org/webrtc/MediaCodecUtils.java b/webrtc/sdk/android/src/java/org/webrtc/MediaCodecUtils.java
index 80bfdd72b919d3a21e8fd499724a3e84f6fd5a4d..2677498c6cfb0e560db0e1ef866d1c874d90f498 100644
--- a/webrtc/sdk/android/src/java/org/webrtc/MediaCodecUtils.java
+++ b/webrtc/sdk/android/src/java/org/webrtc/MediaCodecUtils.java
@@ -48,6 +48,9 @@ class MediaCodecUtils {
MediaCodecInfo.CodecCapabilities.COLOR_QCOM_FormatYUV420SemiPlanar,
MediaCodecUtils.COLOR_QCOM_FORMATYUV420PackedSemiPlanar32m};
+ // Color formats supported by texture mode encoding - in order of preference.
+ static final int[] TEXTURE_COLOR_FORMATS = {MediaCodecInfo.CodecCapabilities.COLOR_FormatSurface};
+
static Integer selectColorFormat(int[] supportedColorFormats, CodecCapabilities capabilities) {
for (int supportedColorFormat : supportedColorFormats) {
for (int codecColorFormat : capabilities.colorFormats) {
« no previous file with comments | « webrtc/sdk/android/src/java/org/webrtc/HardwareVideoEncoder.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698