summaryrefslogtreecommitdiffstats
path: root/modules/gralloc/gralloc.cpp
diff options
context:
space:
mode:
authorKevin Bruckert <agrabren@yahoo.com>2012-11-20 05:00:03 -0800
committerDorian Snyder <dastin1015@gmail.com>2013-04-28 21:17:55 -0700
commit86fc2992b5a91da8840637f90cf4453f75e44bf0 (patch)
treec0b3aa306fba2c3cf2650a69703a5962303e0009 /modules/gralloc/gralloc.cpp
parent347e17240adf07ec02d7ae1adab89a18b7e77187 (diff)
downloadhardware_libhardware-86fc2992b5a91da8840637f90cf4453f75e44bf0.zip
hardware_libhardware-86fc2992b5a91da8840637f90cf4453f75e44bf0.tar.gz
hardware_libhardware-86fc2992b5a91da8840637f90cf4453f75e44bf0.tar.bz2
Add camera parameters for htc evo 3D. (2/2)
Use BOARD_HTC_3D_SUPPORT to enable. Change-Id: I23b668a7a5d88770cbc290940444f55f157630d3
Diffstat (limited to 'modules/gralloc/gralloc.cpp')
-rw-r--r--modules/gralloc/gralloc.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/gralloc/gralloc.cpp b/modules/gralloc/gralloc.cpp
index 99aeb01..796948d 100644
--- a/modules/gralloc/gralloc.cpp
+++ b/modules/gralloc/gralloc.cpp
@@ -208,6 +208,11 @@ static int gralloc_alloc(alloc_device_t* dev,
int align = 4;
int bpp = 0;
switch (format) {
+#ifdef HTC_3D_SUPPORT // HTC uses mode 96 for 3D camera
+ case 96:
+ bpp = 4;
+ break;
+#endif
case HAL_PIXEL_FORMAT_RGBA_8888:
case HAL_PIXEL_FORMAT_RGBX_8888:
case HAL_PIXEL_FORMAT_BGRA_8888: