From f032c781e72f10bad56cc625152e6dffc87dd0a7 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 17 Aug 2015 09:58:47 +0200 Subject: 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 --- media/libstagefright/Android.mk | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'media/libstagefright/Android.mk') 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 -- cgit v1.1