summaryrefslogtreecommitdiffstats
path: root/camera/BufferSourceAdapter.cpp
diff options
context:
space:
mode:
authorVladimir Petrov <vppetrov@mm-sol.com>2012-10-31 14:58:07 +0200
committerDaniel Levin <dendy@ti.com>2012-11-26 20:18:17 +0200
commitc67e02db2029431273c941bec3a96dbc67ba90db (patch)
tree05594daea740df6594fe204b7037879e5da507ae /camera/BufferSourceAdapter.cpp
parent0e0e7e9a43a5bf170c9749a2bbdd3fa8cbfbacdd (diff)
downloadhardware_ti_omap4-c67e02db2029431273c941bec3a96dbc67ba90db.tar.gz
hardware_ti_omap4-c67e02db2029431273c941bec3a96dbc67ba90db.tar.bz2
hardware_ti_omap4-c67e02db2029431273c941bec3a96dbc67ba90db.zip
CameraHal: Use GRALLOC_USAGE_PRIVATE_0 for UYVY allocation
- Add missing usage flag in case of UYVY BS buffer allocation. Should be squashed with change Ia82e0836 if porting to another branch: a4c9c61 CameraHal: Add support for UYVY reprocessing Change-Id: I6a28377c1941504639b3375989c6f41fad55871c Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
Diffstat (limited to 'camera/BufferSourceAdapter.cpp')
-rw-r--r--camera/BufferSourceAdapter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/camera/BufferSourceAdapter.cpp b/camera/BufferSourceAdapter.cpp
index 97a7809..01aa284 100644
--- a/camera/BufferSourceAdapter.cpp
+++ b/camera/BufferSourceAdapter.cpp
@@ -58,6 +58,7 @@ static int getUsageFromANW(int format)
switch (format) {
case HAL_PIXEL_FORMAT_TI_NV12:
case HAL_PIXEL_FORMAT_TI_Y16:
+ case HAL_PIXEL_FORMAT_TI_UYVY:
// This usage flag indicates to gralloc we want the
// buffers to come from system heap
usage |= GRALLOC_USAGE_PRIVATE_0;