展锐Android11安兔兔显示的光圈值修正
作者:互联网
Android11 安兔兔显示的光圈值错误时,可通过以下方法修改至正确值
[ANSWER]
验证基线:MOCORDROIDR_Trunk_20A_W21.14.4
验证平台:UMS512
安兔兔版本:9.1.8
在如下目录
vendor/sprd/modules/libcamera/hal3_2v6/SprdCamera3Setting.cpp
修改:
const float kavailable_lens_info_aperture[] = {1.8, 2.0, 2.2, 2.4, 2.6, 2.8, 3.0}; //安兔兔获取的是这里的最大值
-
const float kavailable_lens_info_aperture_back[] = {1.8, 2.0, 2.2};//camera0 光圈值2.2
-
const float kavailable_lens_info_aperture_front[] = {1.8, 2.0, 2.2, 2.4};//camera1 光圈值2.4
const float kavailable_lens_info_aperture[] = {1.8, 2.0, 2.2, 2.4, 2.6, 2.8, 3.0}; //安兔兔获取的是这里的最大值
+ const float kavailable_lens_info_aperture_back[] = {1.8, 2.0, 2.2};//camera0 光圈值2.2
+ const float kavailable_lens_info_aperture_front[] = {1.8, 2.0, 2.2, 2.4};//camera1 光圈值2.4
staticInfo.update(ANDROID_LENS_INFO_AVAILABLE_APERTURES,
kavailable_lens_info_aperture,
ARRAY_SIZE(kavailable_lens_info_aperture));
+ if(cameraId == 0){
+ staticInfo.update(ANDROID_LENS_INFO_AVAILABLE_APERTURES,
+ kavailable_lens_info_aperture_back,
+ ARRAY_SIZE(kavailable_lens_info_aperture_back));
+ }
+ if(cameraId == 1){
+ staticInfo.update(ANDROID_LENS_INFO_AVAILABLE_APERTURES,
+ kavailable_lens_info_aperture_front,
+ ARRAY_SIZE(kavailable_lens_info_aperture_front));
+ }
经过上述修改,安兔兔即可获取不同camera的光圈值。
标签:info,光圈值,Android11,展锐,kavailable,lens,aperture,2.2 来源: https://blog.csdn.net/bestwu0666/article/details/122856145