054_小驰私房菜_Camx i2c读写相关备忘
#小驰私房菜054# #Qcom Camx#
Camera 对Ae、Af这些控制,实际都是,最终实际都是落实到hal下发相关的指令给驱动,那hal这边是怎么给驱动下发相关命令的呢?
可以参考看下下面相关代码内容。
camxsensornode.cpp
ApplySensorUpdate()
CreateI2CCmd
CamxResult SensorNode::ApplySensorUpdate(UINT64 requestId)
{if ((((m_appliedSensorParam.previousGain != m_appliedSensorParam.currentGain) ||(m_appliedSensorParam.previousLineCount != m_appliedSensorParam.currentLineCount) ||(m_appliedSensorParam.previousShortGain != m_appliedSensorParam.currentShortGain) ||(m_appliedSensorParam.previousFrameLengthLines != m_appliedSensorParam.currentFrameLengthLines) ||(m_appliedSensorParam.previousShortLineCount != m_