From 738da7835f7cc36d9a8687b8c9583faf863007f5 Mon Sep 17 00:00:00 2001 From: Jorge Zapata Date: Tue, 3 Dec 2013 12:09:58 +0100 Subject: [PATCH] androidmedia: Add a new QCOM color format It is a NV12 based, aligned to 32 bytes https://bugzilla.gnome.org/show_bug.cgi?id=730635 --- sys/androidmedia/gstamc-constants.h | 2 ++ sys/androidmedia/gstamc.c | 1 + 2 files changed, 3 insertions(+) diff --git a/sys/androidmedia/gstamc-constants.h b/sys/androidmedia/gstamc-constants.h index a885f22cb3..611703261b 100644 --- a/sys/androidmedia/gstamc-constants.h +++ b/sys/androidmedia/gstamc-constants.h @@ -96,6 +96,8 @@ enum COLOR_TI_FormatYUV420PackedSemiPlanar = 0x7f000100, COLOR_QCOM_FormatYUV420SemiPlanar = 0x7fa30c00, COLOR_QCOM_FormatYUV420PackedSemiPlanar64x32Tile2m8ka = 0x7fa30c03, + /* NV12 but with stride and plane heights aligned to 32 */ + COLOR_QCOM_FormatYVU420SemiPlanar32m = 0x7fa30c04, /* From hardware/ti/omap4xxx/domx/omx_core/inc/OMX_TI_IVCommon.h */ COLOR_TI_FormatYUV420PackedSemiPlanarInterlaced = 0x7f000001, /* This format is Exynos specific from the OMX vendor-specific diff --git a/sys/androidmedia/gstamc.c b/sys/androidmedia/gstamc.c index e3f488d2f0..326ae1e154 100644 --- a/sys/androidmedia/gstamc.c +++ b/sys/androidmedia/gstamc.c @@ -2143,6 +2143,7 @@ static const struct COLOR_TI_FormatYUV420PackedSemiPlanarInterlaced, GST_VIDEO_FORMAT_NV12}, { COLOR_QCOM_FormatYUV420SemiPlanar, GST_VIDEO_FORMAT_NV12}, { COLOR_QCOM_FormatYUV420PackedSemiPlanar64x32Tile2m8ka, GST_VIDEO_FORMAT_NV12}, { + COLOR_QCOM_FormatYVU420SemiPlanar32m, GST_VIDEO_FORMAT_NV12}, { COLOR_OMX_SEC_FormatNV12Tiled, GST_VIDEO_FORMAT_NV12} };