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.

GDR MODE DM81xx IPNC

HI,

        I want to configure the DM81xx in GDR mode, buf failed. I follow the H264_Encoder_HDVICP2_UserGuide.pdf. The configuration is below, can you figure out my wrong place?

Fristly, The H264 Codecs demo be used. The H.264 stream is in accessory.

gParams[insChanid].IDRFrameInterval = 0;
gParams[insChanid].intraCodingParams.intraCodingPreset = IH264_INTRACODING_USERDEFINED;
gParams[insChanid].intraCodingParams.intraRefreshMethod = IH264_INTRAREFRESH_GDR;
gParams[insChanid].intraCodingParams.intraRefreshRate = 2;
gParams[insChanid].intraCodingParams.gdrOverlapRowsBtwFrames = 1;
gParams[insChanid].IDRFrameInterval = 0; /* Only first I frame as IDR */
gParams[insChanid].videnc2Params.maxInterFrameInterval = 1; /* NO B Frame */
gParams[insChanid].maxIntraFrameInterval = 0; /* Only first frame to be intra coded */
gDynamicParams[insChanid].videnc2DynamicParams.intraFrameInterval = 0; /* Only first frame to be intra coded */

gConfig[insChanid].gdrPeriod = 5;
gConfig[insChanid].gdrStartFrameNum = 1;

Secondly, The IPNC demo be used. The codes than is below be insert in the function "EncLinkH264_algCreate".

hObj->staticParams.intraCodingParams.intraCodingPreset =
IH264_INTRACODING_USERDEFINED;
hObj->staticParams.intraCodingParams.intraRefreshMethod =
IH264_INTRAREFRESH_GDR;
hObj->staticParams.intraCodingParams.intraRefreshRate = 10;
hObj->staticParams.intraCodingParams.gdrOverlapRowsBtwFrames = 5;

hObj->staticParams.IDRFrameInterval = 0; /* Only first I frame as IDR */
hObj->staticParams.videnc2Params.maxInterFrameInterval = 1; /* NO B Frame */
hObj->staticParams.maxIntraFrameInterval = 0; /* Only first frame to be intra coded */
hObj->dynamicParams.videnc2DynamicParams.intraFrameInterval = 0; /* Only first frame to be intra coded */