Reduce the number of advertised buffers needed from producer (hal) end
authorJames Dong <jdong@google.com>
Fri, 24 Aug 2012 21:42:26 +0000 (14:42 -0700)
committerJames Dong <jdong@google.com>
Fri, 24 Aug 2012 21:45:07 +0000 (14:45 -0700)
o related-to-bug: 7046065

Change-Id: I4fd2dcaaff1a2d89d004f9f7033256b8cef456c1

libcamera2/ExynosCameraHWInterface2.cpp

index 9437a73f8890a8fc5948c40aa8b9df418b67221a..07e1de2c9928f428a1586b324ee428e544cdf62d 100644 (file)
@@ -1342,7 +1342,7 @@ int ExynosCameraHWInterface2::allocateStream(uint32_t width, uint32_t height, in
 
             *format_actual = HAL_PIXEL_FORMAT_YCbCr_420_SP; // NV12M
             *usage = GRALLOC_USAGE_SW_WRITE_OFTEN;
-            *max_buffers = 10;
+            *max_buffers = 6;
 
             recordParameters.outputWidth   = width;
             recordParameters.outputHeight  = height;