[CamX] Request调试技巧

HAL3架构下,不管是预览、拍照还是录像,上层都是送CaptureRequest给HAL,里面包含了参数和接收Image Buffer的handle,本文总结CaptureRequest一些常用的调试技巧。

CaptureRequest包含几个Output Buffer

搜索 Original framework framenumber:

Original framework framenumber

打印Log的代码如下:

CAMX_LOG_INFO(CamxLogGroupHAL,
              "CHIModule: Original framework framenumber %d contains %d output buffers",
              pRequest->frameworkFrameNum,
              pRequest->numOutputBuffers);

Log如下:

CaptureRequest包含几个Output Buffer

CaptureRequest选用哪个FeatureGraph, SelectFeatureGraphforRequestFromTable

搜索 SelectFeatureGraphforRequestFromTable:

SelectFeatureGraphforRequestFromTable

打印Log的代码如下,建议将FW的FrameNumber也打印出来:

appFrameNum = pFeature2RequestObject->GetAppFrameNumber();
CHX_LOG_INFO("appFrameNum %d",appFrameNum);

// ......

CHX_LOG_INFO("Feature2Mapping: Selected feature graph : %s", pChiFeature2GraphDesc->pFeatureGraphName);

Log如下:

CaptureRequest选到哪个Feature Graph

查看Feature Graph为每个Feature申请的request个数

查看Feature Graph为每个Feature申请的request个数,搜索

InitializeRequestInfo

Log如下:

查看Feature Graph为每个Feature申请的request个数

赞(8)
未经允许不得转载:极客笔记 » [CamX] Request调试技巧
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址