在CamX中,如何知道当前Sensor选择的哪个Mode呢?
打开Log
首先确保core config的log是有打开的,logCoreCfgMask全部填成0xFFFFFFFFFFFFFFFF
logCoreCfgMask=0xFFFFFFFFFFFFFFFF
日志过滤关键词
复现问题后,在log中搜索如下关键字
logcat |grep -iE "findBest|sensorname|sensormode:"
示例Log:
09-29 22:57:32.577 328 1948 I CHIUSECASE: [CORE_CFG ] chxsensorselectmode.cpp:651 FindBestSensorMode() Selected Usecase: 2, SelectedMode W=1280, H=720, FPS:120, NumBatchedFrames:2, modeIndex:2
09-29 22:57:32.609 328 1948 I CHIUSECASE: [CORE_CFG ] chxsensorselectmode.cpp:651 FindBestSensorMode() Selected Usecase: 2, SelectedMode W=1280, H=720, FPS:120, NumBatchedFrames:2, modeIndex:2
09-29 22:57:32.633 328 5363 I CamX : [CORE_CFG][SENSOR ] camxsensornode.cpp:4131 ProcessingNodeFinalizeInitialization() CameraID:1 SensorName:ov16e1q SensorMode:2 SyncMode:0 PipelineID:0
上图表示选择的Sensor Mode为2。