diff options
author | Vladimir Petrov <vppetrov@mm-sol.com> | 2012-10-17 14:59:25 +0300 |
---|---|---|
committer | Daniel Levin <dendy@ti.com> | 2012-11-26 20:05:28 +0200 |
commit | 39a0b3faeb63396f55cd2849e0a7ad541c1c7372 (patch) | |
tree | a75d5da80f071ea930c8f9cd5902c41a4c0ff90e /camera | |
parent | 04cb6b811376b5b956d2f9d2ba10f0729ce7ddca (diff) | |
download | hardware_ti_omap4-39a0b3faeb63396f55cd2849e0a7ad541c1c7372.zip hardware_ti_omap4-39a0b3faeb63396f55cd2849e0a7ad541c1c7372.tar.gz hardware_ti_omap4-39a0b3faeb63396f55cd2849e0a7ad541c1c7372.tar.bz2 |
CameraHal: Use GRALLOC_USAGE_PRIVATE_0 for Bayer
- In Bayer format set GRALLOC_USAGE_PRIVATE_0 usage flag
to the graphics buffer allocator.
Change-Id: I629803110ec6f18cc824c75c6d81450bb108dcff
Signed-off-by: Vladimir Petrov <vppetrov@mm-sol.com>
Diffstat (limited to 'camera')
-rw-r--r-- | camera/BufferSourceAdapter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camera/BufferSourceAdapter.cpp b/camera/BufferSourceAdapter.cpp index ba517a8..f71f0c1 100644 --- a/camera/BufferSourceAdapter.cpp +++ b/camera/BufferSourceAdapter.cpp @@ -58,11 +58,11 @@ static int getUsageFromANW(int format) switch (format) { case HAL_PIXEL_FORMAT_TI_NV12: + case HAL_PIXEL_FORMAT_TI_Y16: // This usage flag indicates to gralloc we want the // buffers to come from system heap usage |= GRALLOC_USAGE_PRIVATE_0; break; - case HAL_PIXEL_FORMAT_TI_Y16: default: // No special flags needed break; |