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

Unified Diff: webrtc/api/android/jni/androidmediacodeccommon.h

Issue 2349843002: Support more QCOM specific color formats for Android HW decoder. (Closed)
Patch Set: Created 4 years, 3 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/api/android/java/src/org/webrtc/MediaCodecVideoDecoder.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/api/android/jni/androidmediacodeccommon.h
diff --git a/webrtc/api/android/jni/androidmediacodeccommon.h b/webrtc/api/android/jni/androidmediacodeccommon.h
index 4aa938d81ede8c6b3efa4e49efe311ee876c2d93..42acfa661fac3913d951ff4e34705f62b5726bac 100644
--- a/webrtc/api/android/jni/androidmediacodeccommon.h
+++ b/webrtc/api/android/jni/androidmediacodeccommon.h
@@ -28,8 +28,9 @@ namespace webrtc_jni {
#define TAG_COMMON "MediaCodecVideo"
-// Color formats supported by encoder - should mirror supportedColorList
-// from MediaCodecVideoEncoder.java
+// Color formats supported by encoder or decoder - should mirror
+// supportedColorList from MediaCodecVideoEncoder.java and
+// MediaCodecVideoDecoder.java
enum COLOR_FORMATTYPE {
COLOR_FormatYUV420Planar = 0x13,
COLOR_FormatYUV420SemiPlanar = 0x15,
@@ -38,6 +39,9 @@ enum COLOR_FORMATTYPE {
// see /hardware/qcom/media/mm-core/inc/OMX_QCOMExtns.h
// This format is presumably similar to COLOR_FormatYUV420SemiPlanar,
// but requires some (16, 32?) byte alignment.
+ COLOR_QCOM_FORMATYVU420PackedSemiPlanar32m4ka = 0x7FA30C01,
magjed_webrtc 2016/09/17 08:52:30 Don't you need to add these formats to the switch
AlexG 2016/09/19 20:28:45 I don't think so. For decoder we request some spec
magjed_webrtc 2016/09/20 09:12:41 Right. Is the plan to update the encoder in a foll
AlexG 2016/09/20 22:29:16 No, I don't plan to update the encoder. Supported
magjed_webrtc 2016/09/22 09:13:10 Ok, sgtm.
+ COLOR_QCOM_FORMATYVU420PackedSemiPlanar16m4ka = 0x7FA30C02,
+ COLOR_QCOM_FORMATYVU420PackedSemiPlanar64x32Tile2m8ka = 0x7FA30C03,
COLOR_QCOM_FORMATYUV420PackedSemiPlanar32m = 0x7FA30C04
};
« no previous file with comments | « webrtc/api/android/java/src/org/webrtc/MediaCodecVideoDecoder.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698