We have a little trouble setting swMs' output FPS on dvr_rdk 4.0.
If layoutInfo->outputFPS is set to 30, we get actual FPS 32 from swMs, so we have to change outputFPS to 28 to get 30 FPS as a workaround.
In our test, setting outputFPS 23 can get FPS 25 for PAL system.
It looks something wrong in our design. Can you give me some clues about this problem.
Thanks.
void swMs_setDefaultChannel(SwMsLink_CreateParams *swMsCreateArgs )
{
SwMsLink_LayoutPrm *layoutInfo = NULL ;
SwMsLink_LayoutWinInfo *winInfo = NULL ;
UInt32 outWidth = 1920 ;
UInt32 outHeight = 1080 ;
layoutInfo = &swMsCreateArgs->layoutPrm;
memset(layoutInfo, 0, sizeof(*layoutInfo));
layoutInfo->onlyCh2WinMapChanged = 0 ;
layoutInfo->outputFPS = 28 ; // in order to get 30 fps
layoutInfo->numWin = 1 ;
winInfo = &layoutInfo->winInfo[0];
winInfo->width = outWidth ;
winInfo->height = outHeight ;
winInfo->startX = 0 ;
winInfo->startY = 0 ;
winInfo->channelNum = 0 ;
winInfo->bypass = 0 ;
}