[CamX] ISP Kernel调试技巧

如何检查ISP出图的帧率

我们可以通过SOF间的间隔时长来确认ISP的出图帧率。首先打开kernel中的ISP Log:

adb root
adb remount
adb shell "echo 0x18 > /sys/module/camera/parameters/debug_mdl"

设置完命令后,执行mkill -9 pid将provider进程kill掉让其重启。

然后通过 dmesg 抓取kernel log,搜索:__cam_isp_ctx_send_sof_timestamp

__cam_isp_ctx_send_sof_timestamp

得到如下日志,可以看出ISP,每隔26ms出一个SOF,大概38FPS左右。
这种方法不适用HFR(High Frame Rate)或者Super Slow Motion。

[ 3668.673162] [1:40:rcuop/4] CAM_DBG: CAM-ISP: __cam_isp_ctx_send_sof_timestamp: 730: request id:785 frame number:808 SOF time stamp:0x3582d306115 status:0
[ 3668.699449] [1:0:swapper/1] CAM_DBG: CAM-ISP: __cam_isp_ctx_send_sof_timestamp: 730: request id:786 frame number:809 SOF time stamp:0x3582ec425bf status:0
[ 3668.725879] [1:580:logd.writer] CAM_DBG: CAM-ISP: __cam_isp_ctx_send_sof_timestamp: 730: request id:787 frame number:810 SOF time stamp:0x3583057ea69 status:0
[ 3668.752387] [1:18676:C3Dev-1-ReqQueu] CAM_DBG: CAM-ISP: __cam_isp_ctx_send_sof_timestamp: 730: request id:788 frame number:811 SOF time stamp:0x35831ebaf13 status:0
[ 3668.778806] [1:17992:HwBinder:17957_] CAM_DBG: CAM-ISP: __cam_isp_ctx_send_sof_timestamp: 730: request id:789 frame number:812 SOF time stamp:0x358337f73f1 status:0
[ 3668.805268] [1:17992:HwBinder:17957_] CAM_DBG: CAM-ISP: __cam_isp_ctx_send_sof_timestamp: 730: request id:790 frame number:813 SOF time stamp:0x3583513389c status:0
[ 3668.831698] [1:603:logd.klogd] CAM_DBG: CAM-ISP: __cam_isp_ctx_send_sof_timestamp: 730: request id:791 frame number:814 SOF time stamp:0x35836a6fd46 status:0
[ 3668.858165] [1:580:logd.writer] CAM_DBG: CAM-ISP: __cam_isp_ctx_send_sof_timestamp: 730: request id:792 frame number:815 SOF time stamp:0x358383ac1f0 status:0
[ 3668.884681] [1:603:logd.klogd] CAM_DBG: CAM-ISP: __cam_isp_ctx_send_sof_timestamp: 730: request id:793 frame number:816 SOF time stamp:0x35839ce869a status:0
[ 3668.911183] [1:17999:provider@2.4-se] CAM_DBG: CAM-ISP: __cam_isp_ctx_send_sof_timestamp: 730: request id:794 frame number:817 SOF time stamp:0x3583b624b44 status:0
[ 3668.937539] [1:1123:app] CAM_DBG: CAM-ISP: __cam_isp_ctx_send_sof_timestamp: 730: request id:0 frame number:818 SOF time stamp:0x3583cf61022 status:0

Camera课程

Python教程

Java教程

Web教程

数据库教程

图形图像教程

办公软件教程

Linux教程

计算机教程

大数据教程

开发工具教程