Camera-hal参数调整

路径:
vendor/mediatek/proproetary/custom/mt6735/hal/D1/imgsensor/对应的SENSOR目录
.../D1/flashlight/flash_tuning_custom_cct.cpp
.../D1/lens/src/lens_para_SensorDrive.cpp
 
 
全黑条件下,照片偏红,要调整闪光灯。
调整闪光灯方法:(使用Eng版本)
    1. adb shell 
    2. setprop z.flash_ratio 1
    3. 全黑环境下,请将手机固定,对着白墙10cm,固定.
    4. 点击拍照,然后手机会自动打闪2(Duty num)次(其中不要任何人员靠近,避免影响光源).
    5. 手机停止拍照以后,/storage/sdcard0中生成eng_code.txt 和 fwb_code.txt文件.
根据eng_code.txt修改flash_tuning_custom_cct.cpp(主摄像头)中的engTab数组。
根据fwb_code.txt修改camera_flash_awb_para_ov13850mipiraw.h中的//Flash AWB calibration二维数组。
编译libcameracustom.so
push 到手机/system/lib/下。
 
eng_code.txt 和 fwb_code.txt中数据的多少与flash_tuning_custom.cpp(主摄像头)中:
para.dutyNum = 多少有关。
原文地址:https://www.cnblogs.com/Ph-one/p/5650565.html