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.

variable definition confirm

hi TI-friends,

rdk4.1

in ./mcfw/interfaces/link_api/scdLink.h

UInt32 inputFrameRate;
/**< Frames per second fed to the SCD.
If set at 0 value, value of link level frame rate is applied. ==> what does this mean ?  what's link level frame rate?
*/

  • Input Frame rate can be set per channel in SCDLink or can be set at link level for all the channels. The comment says if set to 0 it will pick the link level frame rate setting. Below code in scdLink should make it clear

          if((pChLinkPrm->inputFrameRate == 0) || (pChLinkPrm->outputFrameRate == 0))
            {
                pChObj->frameSkipCtx.inputFrameRate  = pObj->createArgs.inputFrameRate;
                pChObj->frameSkipCtx.outputFrameRate = pObj->createArgs.outputFrameRate;
            }
            else
            {
                pChObj->frameSkipCtx.inputFrameRate  = pChLinkPrm->inputFrameRate;
                pChObj->frameSkipCtx.outputFrameRate = pChLinkPrm->outputFrameRate;
            }

     

  • did you mean

    if the following variables are set to zero,

             chPrm->inputFrameRate = 2;
             chPrm->outputFrameRate = 2;

    then the following variables will be used ??

             dspAlgPrm[1].scdCreateParams.inputFrameRate = 30; 
             dspAlgPrm[1].scdCreateParams.outputFrameRate = 30;