summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/CameraSource.cpp
diff options
context:
space:
mode:
authorcodeworkx <codeworkx@cyanogenmod.org>2012-11-24 14:39:44 +0100
committercodeworkx <codeworkx@cyanogenmod.org>2012-11-30 04:05:54 +0100
commit16be9b2826de9eb129c090b0e8edb75c6c63aad3 (patch)
treedcbd6946d8054ad6587efbbd46a12dcbbec0c24e /media/libstagefright/CameraSource.cpp
parent001573b26e5ccfb6bee9a34837ec4f29d5f73f7f (diff)
downloadframeworks_av-16be9b2826de9eb129c090b0e8edb75c6c63aad3.zip
frameworks_av-16be9b2826de9eb129c090b0e8edb75c6c63aad3.tar.gz
frameworks_av-16be9b2826de9eb129c090b0e8edb75c6c63aad3.tar.bz2
exynos4: libstragefright: add support for samsung colorformat/omx/mfc
Source: http://git.insignal.co.kr/samsung/exynos/android/platform/frameworks/av/commit/?h=exynos-jb&id=1614612f7ca2a00473d202dbedcb135fadc608ad Change-Id: Ib40b3cfa1480ecbb69831e7967a81f63719e2ff7
Diffstat (limited to 'media/libstagefright/CameraSource.cpp')
-rwxr-xr-xmedia/libstagefright/CameraSource.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/media/libstagefright/CameraSource.cpp b/media/libstagefright/CameraSource.cpp
index efd7af7..29a2369 100755
--- a/media/libstagefright/CameraSource.cpp
+++ b/media/libstagefright/CameraSource.cpp
@@ -96,7 +96,12 @@ static int32_t getColorFormat(const char* colorFormat) {
}
if (!strcmp(colorFormat, CameraParameters::PIXEL_FORMAT_YUV420SP)) {
+#ifdef USE_SAMSUNG_COLORFORMAT
+ static const int OMX_SEC_COLOR_FormatNV12LPhysicalAddress = 0x7F000002;
+ return OMX_SEC_COLOR_FormatNV12LPhysicalAddress;
+#else
return OMX_COLOR_FormatYUV420SemiPlanar;
+#endif
}
if (!strcmp(colorFormat, CameraParameters::PIXEL_FORMAT_YUV422I)) {