Camera3: Reduce the max inflight buffer count for BLOB
This helps reduce the memory footprint for BLOB stream.
Change-Id: Icf0541b81c14a417b8abf227c93b5691466f7248
diff --git a/QCamera2/HAL3/QCamera3HWI.cpp b/QCamera2/HAL3/QCamera3HWI.cpp
index 012c53e..c121162 100644
--- a/QCamera2/HAL3/QCamera3HWI.cpp
+++ b/QCamera2/HAL3/QCamera3HWI.cpp
@@ -1728,7 +1728,7 @@
&gCamCapability[mCameraId]->padding_info, this, newStream,
mStreamConfigInfo.postprocess_mask[mStreamConfigInfo.num_streams],
m_bIs4KVideo, isZsl, mMetadataChannel,
- (m_bIsVideo ? 1 : MAX_INFLIGHT_REQUESTS));
+ (m_bIsVideo ? 1 : MAX_INFLIGHT_BLOB));
if (mPictureChannel == NULL) {
ALOGE("%s: allocation of channel failed", __func__);
pthread_mutex_unlock(&mMutex);
diff --git a/QCamera2/stack/common/cam_types.h b/QCamera2/stack/common/cam_types.h
index a5efc5b..734d8e4 100644
--- a/QCamera2/stack/common/cam_types.h
+++ b/QCamera2/stack/common/cam_types.h
@@ -104,6 +104,7 @@
#define EXIF_IMAGE_DESCRIPTION_SIZE 100
#define MAX_INFLIGHT_REQUESTS 6
+#define MAX_INFLIGHT_BLOB 3
#define MIN_INFLIGHT_REQUESTS 3
#define MAX_INFLIGHT_REPROCESS_REQUESTS 1
#define MAX_INFLIGHT_HFR_REQUESTS (48)