Android : 高通平台Camera调试

Posted blogs-of-lxl

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Android : 高通平台Camera调试相关的知识,希望对你有一定的参考价值。

相关平台信息:SDM845/670

1.AF调试部分

(1)通过属性控制:

--AF Log控制--
setprop persist.vendor.camera.logInfoMask 0x8000000 //AF info level log setprop persist.vendor.camera.logVerboseMask 0x8000000 //AF verbose level log

--禁用深度焦点指示--
setprop persist.vendor.camera.af.depthfocus 1

--关闭 PDAF--
setprop persist.vendor.camera.disablePDAF 1

--开启PDLib log 及 PDAF性能日志--
setprop persist.camera.pdaf_logging 1
setprop persist.camera.pdaf_profiling 1

(2)通过camxoverridesettings控制,将需要调试的部分添加到 vendor/etc/camera/camxoverridesettings.txt :

--AF Log控制--
logInfoMask=0x8000000
logVerboseMask=0x8000000

Mask值对应如下:(1 << 27)=0x8000000 即对应AF模块
// The group tag for a given debug print message
typedef UINT32 CamxLogGroup;
static const CamxLogGroup CamxLogGroupNone = (1 << 0); ///< Generic group
static const CamxLogGroup CamxLogGroupSensor = (1 << 1); ///< Sensor
static const CamxLogGroup CamxLogGroupIFace = (1 << 2); ///< IFace
static const CamxLogGroup CamxLogGroupISP = (1 << 3); ///< ISP
static const CamxLogGroup CamxLogGroupPProc = (1 << 4); ///< Post Processor
static const CamxLogGroup CamxLogGroupImgLib = (1 << 5); ///< Image Lib
static const CamxLogGroup CamxLogGroupCPP = (1 << 6); ///< CPP
static const CamxLogGroup CamxLogGroupHAL = (1 << 7); ///< HAL
static const CamxLogGroup CamxLogGroupJPEG = (1 << 8); ///< JPEG
static const CamxLogGroup CamxLogGroupStats = (1 << 9); ///< Stats
static const CamxLogGroup CamxLogGroupCSL = (1 << 10); ///< CSL
static const CamxLogGroup CamxLogGroupApp = (1 << 11); ///< Application
static const CamxLogGroup CamxLogGroupUtils = (1 << 12); ///< Utilities
static const CamxLogGroup CamxLogGroupSync = (1 << 13); ///< Sync
static const CamxLogGroup CamxLogGroupMemSpy = (1 << 14); ///< MemSpy
static const CamxLogGroup CamxLogGroupAssert = (1 << 15); ///< Asserts
static const CamxLogGroup CamxLogGroupCore = (1 << 16); ///< Core
static const CamxLogGroup CamxLogGroupHWL = (1 << 17); ///< HWL
static const CamxLogGroup CamxLogGroupChi = (1 << 18); ///< CHI
static const CamxLogGroup CamxLogGroupDRQ = (1 << 19); ///< DRQ
static const CamxLogGroup CamxLogGroupFD = (1 << 20); ///< FD
static const CamxLogGroup CamxLogGroupIQMod = (1 << 21); ///< IQ module
static const CamxLogGroup CamxLogGroupLRME = (1 << 22); ///< LRME
static const CamxLogGroup CamxLogGroupNCS = (1 << 23); ///< NCS
static const CamxLogGroup CamxLogGroupMeta = (1 << 24); ///< Metadata
static const CamxLogGroup CamxLogGroupAEC = (1 << 25); ///< AEC //0x2000000
static const CamxLogGroup CamxLogGroupAWB = (1 << 26); ///< AWB //0x4000000
static const CamxLogGroup CamxLogGroupAF = (1 << 27); ///< AF //0x8000000 

 

--禁用深度焦点指示--
disableFocusIndication=1

--关闭 PDAF--
disablePDAF=1

--设置 fullsweep 模式--
afFullsweep=0 //fullsweep off
afFullsweep=1 //far to near
afFullsweep=2 //near to far
afFullsweep=3 //both

--Dump EEPROM 保存OTP数据至 /data/misc/camera/-
dumpSensorEEPROMData=1

--3A调试 exif信息--
debugDataSizeAEC=6000
debugDataSizeAWB=550000
debugDataSizeAF=70000

  

 

 

 

以上是关于Android : 高通平台Camera调试的主要内容,如果未能解决你的问题,请参考以下文章

高通camera基本代码架构

高通Camera 驱动调试要点

高通平台开发系列讲解(mm-camera篇)MM-CAMERA框架

高通平台(Qualcomm) Android 10 user版本默认打开adb 调试小结

高通Cam-X平台 Camera移植

高通Camera 驱动调试要点