AnsweredAssumed Answered

device class and mpeg4 enc integration issues

Question asked by qian on Jun 13, 2014
Latest reply on Aug 1, 2014 by Suraj

hi,

My code uses VIDEO CLASS, MPEG4_ENC, ucfs three modules.

 

Each module is individually tested are normal.

 

But as long as I put mpeg4_enc code added to the project ( just at the end of the function , and no calls),

VIDEO CLASS Unable to get the frame has been completed by adi_dev_Video_GetFrame.

 

Problems snippet :


{

    /....../


    while (frameCnt<=35)
    {

        /* Get Frame from Video Decoder */
        eResult = adi_dev_Video_GetFrame (hDecHandle, &pBufferDec);

        /* IF (Video Event Occurred) */
        if (eResult == ADI_DEV_VIDEO_RESULT_VIDEO_EVENT)
        {
            DEBUG_MSG1 ("ADI_DEV_VIDEO_RESULT_VIDEO_EVENT \n");
        }

        frameCnt++;

        /* Submit Frame to Video Decoder */
        eResult = adi_dev_Video_SubmitFrame (hDecHandle, pBufferDec);
        DEBUG_MSG2 ("adi_dev_Video_SubmitFrame (Decoder)", eResult);
    }

#if 1   //Just comment out the following functions , the program can run normally .
encoder_init();
encoder_process();
encoder_deinit();

#endif
}

 

 

Attached is my modified drivers , ldf files, and app_cplbtab.c file.

Thank you.

Outcomes