summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEthan Chen <intervigil@gmail.com>2016-01-03 14:09:23 -0800
committerGerrit Code Review <gerrit@cyanogenmod.org>2016-01-11 20:43:35 -0800
commitddf0593b309880dd526181de820b34a81e946a46 (patch)
tree9c815728ef51464741bceec434f2fbe32785824d
parentc2a6c58c69c56f296b651ddc4006efe817de9e90 (diff)
downloadframeworks_av-ddf0593b309880dd526181de820b34a81e946a46.zip
frameworks_av-ddf0593b309880dd526181de820b34a81e946a46.tar.gz
frameworks_av-ddf0593b309880dd526181de820b34a81e946a46.tar.bz2
libstagefright: Support YVU420SemiPlanar camera format
Change-Id: I631ba6267b3769d9da498329a39ac89c609be6d8
-rw-r--r--media/libstagefright/CameraSource.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/media/libstagefright/CameraSource.cpp b/media/libstagefright/CameraSource.cpp
index 10269b8..4ee878a 100644
--- a/media/libstagefright/CameraSource.cpp
+++ b/media/libstagefright/CameraSource.cpp
@@ -145,6 +145,10 @@ static int32_t getColorFormat(const char* colorFormat) {
return OMX_COLOR_FormatAndroidOpaque;
}
+ if (!strcmp(colorFormat, "YVU420SemiPlanar")) {
+ return OMX_QCOM_COLOR_FormatYVU420SemiPlanar;
+ }
+
ALOGE("Uknown color format (%s), please add it to "
"CameraSource::getColorFormat", colorFormat);