diff options
author | Sasha Levitskiy <sanek@google.com> | 2013-09-04 15:42:06 -0700 |
---|---|---|
committer | Sasha Levitskiy <sanek@google.com> | 2013-09-04 16:00:53 -0700 |
commit | a0ea191c0a5dbe5100e5ca1e1508a263c17e7a19 (patch) | |
tree | 8d3da077056bb05d2ababbe36edacce454545c09 /libcamera2 | |
parent | 209209d02c383873663c441cbf54b2025f252b57 (diff) | |
download | exynos5-a0ea191c0a5dbe5100e5ca1e1508a263c17e7a19.tar.gz |
Exynos5: Camera HAL v2: Increase the number of gralloc buffers in allocateStream()
Bug: 10415750
Signed-off-by: Sasha Levitskiy <sanek@google.com>
Change-Id: Ic4a62619ff49617a0b56650f469e45a099ceeb5c
Diffstat (limited to 'libcamera2')
-rw-r--r-- | libcamera2/ExynosCameraHWInterface2.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/libcamera2/ExynosCameraHWInterface2.cpp b/libcamera2/ExynosCameraHWInterface2.cpp index 714edb7..6c0739b 100644 --- a/libcamera2/ExynosCameraHWInterface2.cpp +++ b/libcamera2/ExynosCameraHWInterface2.cpp @@ -1728,7 +1728,7 @@ int ExynosCameraHWInterface2::allocateStream(uint32_t width, uint32_t height, in *usage = GRALLOC_USAGE_SW_WRITE_OFTEN; if (m_wideAspect) *usage |= GRALLOC_USAGE_PRIVATE_CHROMA; - *max_buffers = 6; + *max_buffers = 7; newParameters.width = width; newParameters.height = height; @@ -1775,7 +1775,7 @@ int ExynosCameraHWInterface2::allocateStream(uint32_t width, uint32_t height, in *usage = GRALLOC_USAGE_SW_WRITE_OFTEN; if (m_wideAspect) *usage |= GRALLOC_USAGE_PRIVATE_CHROMA; - *max_buffers = 6; + *max_buffers = 7; subParameters->type = SUBSTREAM_TYPE_RECORD; subParameters->width = width; @@ -1819,13 +1819,12 @@ int ExynosCameraHWInterface2::allocateStream(uint32_t width, uint32_t height, in m_streamThreadInitialize((SignalDrivenThread*)AllocatedStream); *format_actual = HAL_PIXEL_FORMAT_EXYNOS_YV12; - *max_buffers = 6; *format_actual = HAL_PIXEL_FORMAT_YCbCr_422_I; // YUYV *usage = GRALLOC_USAGE_SW_WRITE_OFTEN; if (m_wideAspect) *usage |= GRALLOC_USAGE_PRIVATE_CHROMA; - *max_buffers = 6; + *max_buffers = 7; newParameters.width = width; newParameters.height = height; @@ -1874,13 +1873,12 @@ int ExynosCameraHWInterface2::allocateStream(uint32_t width, uint32_t height, in m_streamThreadInitialize((SignalDrivenThread*)AllocatedStream); *format_actual = HAL_PIXEL_FORMAT_EXYNOS_YV12; - *max_buffers = 6; *format_actual = HAL_PIXEL_FORMAT_YCbCr_422_I; // YUYV *usage = GRALLOC_USAGE_SW_WRITE_OFTEN; if (m_wideAspect) *usage |= GRALLOC_USAGE_PRIVATE_CHROMA; - *max_buffers = 6; + *max_buffers = 7; newParameters.width = width; newParameters.height = height; @@ -1934,7 +1932,7 @@ int ExynosCameraHWInterface2::allocateStream(uint32_t width, uint32_t height, in *usage = GRALLOC_USAGE_SW_WRITE_OFTEN; if (m_wideAspect) *usage |= GRALLOC_USAGE_PRIVATE_CHROMA; - *max_buffers = 4; + *max_buffers = 5; subParameters->type = SUBSTREAM_TYPE_JPEG; subParameters->width = width; @@ -1972,7 +1970,7 @@ int ExynosCameraHWInterface2::allocateStream(uint32_t width, uint32_t height, in *usage = GRALLOC_USAGE_SW_WRITE_OFTEN; if (m_wideAspect) *usage |= GRALLOC_USAGE_PRIVATE_CHROMA; - *max_buffers = 6; + *max_buffers = 7; subParameters->type = SUBSTREAM_TYPE_PRVCB; subParameters->width = width; |