summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/Android.mk
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-08-17 09:58:47 +0200
committerEthan Chen <intervigil@gmail.com>2015-11-04 11:45:19 -0800
commitf032c781e72f10bad56cc625152e6dffc87dd0a7 (patch)
treeed4038418a651cb4cc0b9711cf1263659fbed345 /media/libstagefright/Android.mk
parent85062db21be4a93cddde5b2db0c538c943846862 (diff)
downloadframeworks_av-f032c781e72f10bad56cc625152e6dffc87dd0a7.zip
frameworks_av-f032c781e72f10bad56cc625152e6dffc87dd0a7.tar.gz
frameworks_av-f032c781e72f10bad56cc625152e6dffc87dd0a7.tar.bz2
libstagefright: Add support for NV21 color format
This adds the native color format 'OMX_SEC_COLOR_FormatNV21Linear' of exynos5 which is NV21 and needed for the camera. You can turn it on with: BOARD_USE_SAMSUNG_COLORFORMAT_NV21 := true It requires const char CameraParameters::PIXEL_FORMAT_YUV420SP_NV21[] = "nv21"; to be specified in CameraExtraParameters.h. Change-Id: I64ca86d074468b1e7a2958a73c3c0380e64a9fc0 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'media/libstagefright/Android.mk')
-rw-r--r--media/libstagefright/Android.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/media/libstagefright/Android.mk b/media/libstagefright/Android.mk
index beb86d7..725789a 100644
--- a/media/libstagefright/Android.mk
+++ b/media/libstagefright/Android.mk
@@ -163,6 +163,14 @@ endif
LOCAL_CLANG := true
+ifeq ($(BOARD_USE_SAMSUNG_CAMERAFORMAT_NV21), true)
+# This needs flag requires the following string constant in
+# CameraParametersExtra.h:
+#
+# const char CameraParameters::PIXEL_FORMAT_YUV420SP_NV21[] = "nv21";
+LOCAL_CFLAGS += -DUSE_SAMSUNG_CAMERAFORMAT_NV21
+endif
+
# FFMPEG plugin
LOCAL_C_INCLUDES += $(TOP)/external/stagefright-plugins/include