This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA2SX: 使用 enc link,会丢掉一些 摄像头发过来的 nv12 图像,发生在 EncLink_codecQueueFramesToChQue 函数中

Part Number: TDA2SX


代码路径 : /home/marvin/PROCESSOR_SDK_VISION_03_05_00_00/jh6/links_fw/src/rtos/links_ipu/iva/iva_enc/encLink_common.c

函数:static Int32 EncLink_codecQueueFramesToChQue(EncLink_Obj * pObj)

函数说明:

 * \brief This function gets the input bistream buffers and put the same
 *        into appropriate channel specific intermediate queue

函数中:

            if (((pChObj->nextFid == fid) ||
                (fid == SYSTEM_FID_FRAME)) &&
                (pChObj->disableChn != TRUE) && (skipFrame == FALSE))

其中 fid 是当前图像帧是什么类型 顶场,底场,或者 fid 帧;

有一些摄像头发过来的数据,已经转换成 nv12 (yuv420sp_uvuv) 图像,不是顶场也不是底场;但在这里会被扔回上一个link;

问题是,对于图像数据,是否要先判断一下格式,在进行筛选,如果 nv12 数据,应直接进入编码过程;而不是扔回上一link;谢谢。