in source/T31/T31VideoCapturer.c [78:100]
static int startRecvPic(VideoCapturerHandle handle, uint8_t chnNum)
{
T31_HANDLE_NULL_CHECK(handle);
T31_HANDLE_GET(handle);
T31_HANDLE_STATUS_CHECK(t31Handle, VID_CAP_STATUS_STREAM_ON);
if (t31Handle->format != VID_FMT_RAW) {
if (IMP_Encoder_StartRecvPic(chnNum)) {
LOG("IMP_Encoder_StartRecvPic(%d) failed", chnNum);
return -EAGAIN;
}
LOG("IMP_Encoder_StartRecvPic(%d)", chnNum);
} else {
if (IMP_FrameSource_SetFrameDepth(t31Handle->channelNum, chn[t31Handle->channelNum].fs_chn_attr.nrVBs * 2)) {
LOG("IMP_FrameSource_SetFrameDepth(%d,%d) failed", t31Handle->channelNum, chn[t31Handle->channelNum].fs_chn_attr.nrVBs * 2);
return -EAGAIN;
}
}
return 0;
}