summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice/Camera2Client.h
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2012-08-02 17:22:03 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-08-02 17:22:03 -0700
commit903f037ae7e6161818cb3b2d662fd380a9d02499 (patch)
tree01942a13a082e2116f8df5dbaca1a902ac52a299 /services/camera/libcameraservice/Camera2Client.h
parent22c875ae3b06597dabf82e6464a36a82967a4e83 (diff)
parent983cf231ab2d176a14595cdae46ff1b0c239af47 (diff)
downloadframeworks_av-903f037ae7e6161818cb3b2d662fd380a9d02499.zip
frameworks_av-903f037ae7e6161818cb3b2d662fd380a9d02499.tar.gz
frameworks_av-903f037ae7e6161818cb3b2d662fd380a9d02499.tar.bz2
am 983cf231: Dynamically configure the number of video buffers used by camera source, if supported
* commit '983cf231ab2d176a14595cdae46ff1b0c239af47': Dynamically configure the number of video buffers used by camera source, if supported
Diffstat (limited to 'services/camera/libcameraservice/Camera2Client.h')
-rw-r--r--services/camera/libcameraservice/Camera2Client.h3
1 files changed, 2 insertions, 1 deletions
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();