From d9927380ed7c8366f762049be9f3fee225860833 Mon Sep 17 00:00:00 2001
From: liyujie <2352380935@qq.com>
Date: Thu, 28 Aug 2025 12:04:16 +0000
Subject: [PATCH] [2/4]解决USB摄像头打开相机预览界面绿屏

---
 android/hardware/aw/camera/3_4/camera_config.h |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/android/hardware/aw/camera/3_4/camera_config.h b/android/hardware/aw/camera/3_4/camera_config.h
old mode 100755
new mode 100644
index 88c2882..944ba85
--- a/android/hardware/aw/camera/3_4/camera_config.h
+++ b/android/hardware/aw/camera/3_4/camera_config.h
@@ -61,6 +61,10 @@
 #define kUSED_INTERPOLATION_SIZE          "used_interpolation_size"
 #define kSUPPORT_INTERPOLATION_SIZE       "key_support_src_interpolation_size"
 #define kDEFAULT_INTERPOLATION_SIZE       "key_default_dst_interpolation_size"
+#define kREDUCE_CALL_NUM                      "key_reduce_call_num"
+#define kUSED_REDUCECALLNUM_SIZE              "used_reducecallnum_size"
+#define kSUPPORT_REDUCECALLNUM_SIZE           "key_support_src_reducecallnum_size"
+#define kDEFAULT_REDUCECALLNUM_SIZE           "key_default_dst_reducecallnum_size"
 
 #define kUSED_FLASH_MODE                  "used_flash_mode"
 #define kSUPPORT_FLASH_MODE               "key_support_flash_mode"
@@ -199,6 +203,9 @@
   bool supportInterpolationSize();
   char* supportInterpolationSizeValue();
   char* defaultInterpolationSizeValue();
+  bool supportReducecallnumSize();
+  char * supportReducecallnumSizeValue();
+  char * defaultReducecallnumSizeValue();
 
   bool supportFlashMode();
   char* supportFlashModeValue();
@@ -245,6 +252,9 @@
     return mDefaultExposureCompensation;
   }
 
+  char * ReduceCallNumValue() {
+    return mReduceCallNum;
+  }
   // zoom
   bool supportZoom() {
     return usedKey(mUsedZoom);
@@ -296,6 +306,7 @@
   MEMBER_DEF(PreviewSize)
   MEMBER_DEF(PictureSize)
   MEMBER_DEF(InterpolationSize)
+  MEMBER_DEF(ReducecallnumSize)
   MEMBER_DEF(FlashMode)
   MEMBER_DEF(ColorEffect)
   MEMBER_DEF(FrameRate)
@@ -309,6 +320,7 @@
   char mStepExposureCompensation[4];
   char mDefaultExposureCompensation[4];
 
+  char mReduceCallNum[4];
   char mUsedZoom[2];
   char mZoomSupported[8];
   char mSmoothZoomSupported[8];

--
Gitblit v1.6.2