From 983cf231ab2d176a14595cdae46ff1b0c239af47 Mon Sep 17 00:00:00 2001 From: James Dong Date: Wed, 1 Aug 2012 16:39:55 -0700 Subject: Dynamically configure the number of video buffers used by camera source, if supported o related-to-bug: 6920805 Change-Id: I413bb50954cc84e32ed40bcb713842dc7b58e2b6 --- services/camera/libcameraservice/Camera2Client.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'services/camera/libcameraservice/Camera2Client.h') diff --git a/services/camera/libcameraservice/Camera2Client.h b/services/camera/libcameraservice/Camera2Client.h index 8ae16a4..9bea8f1 100644 --- a/services/camera/libcameraservice/Camera2Client.h +++ b/services/camera/libcameraservice/Camera2Client.h @@ -288,7 +288,8 @@ private: // TODO: This needs to be queried from somewhere, or the BufferQueue needs // to be passed all the way to stagefright. Right now, set to a large number // to avoid starvation of the video encoders. - static const size_t kRecordingHeapCount = 8; + static const size_t kDefaultRecordingHeapCount = 8; + size_t mRecordingHeapCount; size_t mRecordingHeapHead, mRecordingHeapFree; // Handle new recording image buffers void onRecordingFrameAvailable(); -- cgit v1.1