在CamX中,关于ChiCaptureRequest有两个疑问
1. ChiCaptureRequest在哪里创建的
2. ChiCaptureRequest里面的frameNumber是谁填的
ChiFeature2Base有一个成员变量m_frameNumber(也就意味着每个Feature2都有自己的Frame Number),每次执行HandleExecuteProcessRequest时,会将当前的m_frameNumber保存在ChiFeatureSequenceData并对m_frameNumber++动作
ChiFeature2Base::HandleExecuteProcessRequest |---->ChiFeature2Base::InitializeSequenceFrameNum |--------> pSequenceData->frameNumber = m_frameNumber; |--------> m_frameNumber++;
创建ChiCaptureRequest并填frameNumber
在SubmitRequestToSession中会创建ChiCaptureRequest,会从ChiFeatureSequenceData读取frameNumber赋值给ChiCaptureRequest的frameNumber
ChiFeature2Base::SubmitRequestToSession |---->pRequest[requestIndex].frameNumber = pRequestData->frameNumber;