diff options
author | James Dong <jdong@google.com> | 2012-08-02 17:24:14 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-08-02 17:24:14 -0700 |
commit | 4b5412b6fe136a7391076c53eea6974c664ead91 (patch) | |
tree | faa2244bb1f59ec711247d1e45ee6048c01be15d /services/camera/libcameraservice/Camera2Client.h | |
parent | 76a794f66595390c21639b6af89a6efbfd564e06 (diff) | |
parent | 903f037ae7e6161818cb3b2d662fd380a9d02499 (diff) | |
download | frameworks_av-4b5412b6fe136a7391076c53eea6974c664ead91.zip frameworks_av-4b5412b6fe136a7391076c53eea6974c664ead91.tar.gz frameworks_av-4b5412b6fe136a7391076c53eea6974c664ead91.tar.bz2 |
am 903f037a: am 983cf231: Dynamically configure the number of video buffers used by camera source, if supported
* commit '903f037ae7e6161818cb3b2d662fd380a9d02499':
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.h | 3 |
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(); |