固定ExposureTime/gain
一、新版本Camx
debug 指令:
adb shell setprop vendor.camera.aedebug.enable 1 // 开启曝光锁定
adb shell setprop vendor.camera.debugTime 33000000 // 曝光ns
adb shell setprop vendor.camera.debugGain 10 // gain
二、旧版本 Camx 手动设置曝光/gain时间
debug 指令:
adb shell setporp vendor.debug.camera.aec.manual TRUE // 开启
adb shell setporp vendor.debug.camera.aec.ctrl.expTime // 曝光ns
adb shell setporp vendor.debug.camera.aec.ctrl.gain // gain
代码路径:camx\src\settings\common\camxsettings.xml
aec相关信息打印:
// camx\src\swl\stats\camxcaecstatsprocessor.cpp
CamxResult CAECStatsProcessor::PublishPropertyPoolFrameControl(
AECEngineProcessStatsOutput* pEngineOutput,
AECFrameControl* pFrameControl,
AECStatsControl* pStatsControl,
VOID** ppPeerInfo)
{
CamxResult result = CamxResultSuccess;
// Populate AEC update for normal/preview frame control
result = PopulatePropPoolFrameControl(pEngineOutput, pFrameControl);
// Populate AEC update for stats control
if (result == CamxResultSuccess)
{
PopulatePropPoolStatsControl(pEngineOutput, pStatsControl);
PopulatePropPoolPeerControl(&m_engineStatsOutput, ppPeerInfo);
CAMX_LOG_VERBOSE(CamxLogGroupAEC,
"AEC: Publish FrameControl for ReqId=%llu camID:%d G ET (0: %f %llu) (1: %f %llu) (2: %f %llu) LuxIndex=%f"
" LEDInfluenceRatio=%f LEDFirstEntryRatio=%f LEDLastEntryRatio=%f "
" FlashType=%d PreFlashState=%d PredictiveGain=%f LEDCurrents=%d:%d HxV = %dx%di pInfo:%p",
m_currProcessingRequestId,
m_cameraId,
pFrameControl->exposureInfo[0].linearGain,
pFrameControl->exposureInfo[0].exposureTime,
pFrameControl->exposureInfo[1].linearGain,
pFrameControl->exposureInfo[1].exposureTime,
pFrameControl->exposureInfo[2].linearGain,
pFrameControl->exposureInfo[2].exposureTime,
pFrameControl->luxIndex,
pFrameControl->LEDInfluenceRatio,
pFrameControl->LEDFirstEntryRatio,
pFrameControl->LEDLastEntryRatio,
pFrameControl->flashInfo,
pFrameControl->preFlashState,
pFrameControl->predictiveGain,
pFrameControl->LEDCurrents[0],
pFrameControl->LEDCurrents[1],
pStatsControl->statsConfig.BEConfig.horizontalNum,
pStatsControl->statsConfig.BEConfig.verticalNum,
ppPeerInfo);
}
return result;
}
固定ExposureTime/gain
https://fenyee.top/archives/1789485576818
评论