Lines Matching refs:gDMSCtrl
199 static DMS_DRV_CTRL gDMSCtrl[DMS_MAX_WINDOW_NUM]; variable
354 if (!bEnable || !gDMSCtrl[Overlay_ID].bVsyncIntAlive) { in _DMS_Wait_MVOP_Vsync()
356 DMS_PRINTF("MVOP not enable bVsyncIntAlive = %d !!\n", gDMSCtrl[Overlay_ID].bVsyncIntAlive); in _DMS_Wait_MVOP_Vsync()
430 gDMSCtrl[Overlay_ID].stOutSideCropWin = CropWin; in _DMS_Update_DS_Table()
431 gDMSCtrl[Overlay_ID].u32WidthForOutsideCrop = u16Width; in _DMS_Update_DS_Table()
432 gDMSCtrl[Overlay_ID].u32HeightForOutsideCrop = u16Height; in _DMS_Update_DS_Table()
434 …} else if (gDMSCtrl[Overlay_ID].stOutSideCropWin.u32x || gDMSCtrl[Overlay_ID].stOutSideCropWin.u32y in _DMS_Update_DS_Table()
435 …|| gDMSCtrl[Overlay_ID].stOutSideCropWin.u32width || gDMSCtrl[Overlay_ID].stOutSideCropWin.u32heig… in _DMS_Update_DS_Table()
438 …CropWin.u32x = (u16Width * gDMSCtrl[Overlay_ID].stOutSideCropWin.u32x) / gDMSCtrl[Overlay_ID].u32W… in _DMS_Update_DS_Table()
439 …CropWin.u32y = (u16Height * gDMSCtrl[Overlay_ID].stOutSideCropWin.u32y) / gDMSCtrl[Overlay_ID].u32… in _DMS_Update_DS_Table()
440 …CropWin.u32width = (u16Width * gDMSCtrl[Overlay_ID].stOutSideCropWin.u32width) / gDMSCtrl[Overlay_… in _DMS_Update_DS_Table()
441 …CropWin.u32height = (u16Height * gDMSCtrl[Overlay_ID].stOutSideCropWin.u32height) / gDMSCtrl[Overl… in _DMS_Update_DS_Table()
519 if (gDMSCtrl[Overlay_ID].u8ForcePMode) { in _DMS_Update_DS_Table()
546 if (gDMSCtrl[Overlay_ID].u8SaveBandwidthMode && (u16Width >= 3840)) { in _DMS_Update_DS_Table()
663 if (gDMSCtrl[Overlay_ID].u8MirrorMode & E_VOPMIRROR_HORIZONTALL) { in _DMS_Update_DS_Table()
664 DispWin.u32x = gDMSCtrl[Overlay_ID].panelWidth - (DispWin.u32x + DispWin.u32width); in _DMS_Update_DS_Table()
667 if (gDMSCtrl[Overlay_ID].u8MirrorMode & E_VOPMIRROR_VERTICAL) { in _DMS_Update_DS_Table()
668 DispWin.u32y = gDMSCtrl[Overlay_ID].panelHeight - (DispWin.u32y + DispWin.u32height); in _DMS_Update_DS_Table()
671 if (bSizeChange && (gDMSCtrl[Overlay_ID].u8MirrorMode & E_VOPMIRROR_HVBOTH)) { in _DMS_Update_DS_Table()
672 …DMS_PRINTF("DS MVOP Mirror %d [%d %d %d %d] [%d %d %d %d]\n", (int)gDMSCtrl[Overlay_ID].u8MirrorMo… in _DMS_Update_DS_Table()
697 …DMS_PRINTF("[%s,%5d] SW DS !!! u8ForceInterlace = %d\n", __func__, __LINE__, gDMSCtrl[Overlay_ID].… in _DMS_Update_DS_Table()
713 …if ((gDMSCtrl[Overlay_ID].u8ForceInterlace || gDMSCtrl[Overlay_ID].u8ForcePMode) && MApi_XC_Set_DS… in _DMS_Update_DS_Table()
765 …stXCDSInfo.bEnableDNR[(SCALER_WIN) Overlay_ID] = (gDMSCtrl[Overlay_ID].u8DNRFrameCnt == DNRFrameNU… in _DMS_Update_DS_Table()
769 stXCDSInfo.bEnable_ForceP[(SCALER_WIN) Overlay_ID] = gDMSCtrl[Overlay_ID].u8ForcePMode; in _DMS_Update_DS_Table()
787 …if ((gDMSCtrl[Overlay_ID].u8ForceInterlace || (gDMSCtrl[Overlay_ID].u8ForcePMode && dff->u8Interla… in _DMS_Update_DS_Table()
790 … gDMSCtrl[Overlay_ID].ds_curr_index.u4DSIndex0 = MApi_XC_GetSWDSIndex((SCALER_WIN)Overlay_ID); in _DMS_Update_DS_Table()
799 … gDMSCtrl[Overlay_ID].ds_curr_index.u4DSIndex1 = MApi_XC_GetSWDSIndex((SCALER_WIN)Overlay_ID); in _DMS_Update_DS_Table()
803 … gDMSCtrl[Overlay_ID].ds_curr_index.u8DSIndex = MApi_XC_GetSWDSIndex((SCALER_WIN)Overlay_ID); in _DMS_Update_DS_Table()
809 …__LINE__, Overlay_ID, gDMSCtrl[Overlay_ID].ds_curr_index.u8DSIndex, (int)(MsOS_GetSystemTime() - u… in _DMS_Update_DS_Table()
913 gDMSCtrl[u32WindowID].u8FrcMode = u8NextFrcMode; in _DMS_Ddecide_SW_FRC_Mode()
918 gDMSCtrl[u32WindowID].u8FrcMode = E_HVD_FRC_NORMAL; in _DMS_Ddecide_SW_FRC_Mode()
922 … (int)u32FrameRate, (int)u32OutputFrmRate, (int)u32WindowID, gDMSCtrl[u32WindowID].u8FrcMode); in _DMS_Ddecide_SW_FRC_Mode()
942 gDMSCtrl[u32WindowID].u8FrcMode = E_HVD_FRC_NORMAL; in _DMS_Update_SW_FRC_Mode()
1057 gDMSCtrl[u32Id].bVsyncIntAlive = TRUE; in _Task_DMS_Mointor()
1095 _DMS_Update_DS_Table(pInstance, u32Id, &gDMSCtrl[u32Id].lastdff, 0, TRUE); in _Task_DMS_Mointor()
1096 … pSHM->McuDispQueue[pSHM->u8McuDispQWPtr].u16CropLeft = gDMSCtrl[u32Id].stCurrentCropWin.u32x; in _Task_DMS_Mointor()
1097 … pSHM->McuDispQueue[pSHM->u8McuDispQWPtr].u16CropTop = gDMSCtrl[u32Id].stCurrentCropWin.u32y; in _Task_DMS_Mointor()
1099 … - gDMSCtrl[u32Id].stCurrentCropWin.u32width in _Task_DMS_Mointor()
1100 - gDMSCtrl[u32Id].stCurrentCropWin.u32x; in _Task_DMS_Mointor()
1102 … - gDMSCtrl[u32Id].stCurrentCropWin.u32height in _Task_DMS_Mointor()
1103 - gDMSCtrl[u32Id].stCurrentCropWin.u32y; in _Task_DMS_Mointor()
1107 …pingNum = %d , FRAME_DURATION = %d", u8WRBankMappingNum, FRAME_DURATION(gDMSCtrl[u32Id].u16FrameRa… in _Task_DMS_Mointor()
1113 … pSHM->McuDispQueue[pSHM->u8McuDispQWPtr].u8DSIndex = gDMSCtrl[u32Id].ds_curr_index.u8DSIndex; in _Task_DMS_Mointor()
1116 … gDMSCtrl[u32Id].ds_curr_index.u4DSIndex0 , gDMSCtrl[u32Id].ds_curr_index.u4DSIndex1, in _Task_DMS_Mointor()
1385 memset(&gDMSCtrl[u32Window], 0, sizeof(DMS_DRV_CTRL)); in _MDrv_DMS_Final()
1476 memset(&gDMSCtrl[u32WindowID], 0, sizeof(DMS_DRV_CTRL)); in MDrv_DMS_SetDigitalDecodeSignalInfo()
1646 if (gDMSCtrl[u32WindowID].lastdff.u32OverlayID != pstDispFrameFormat->u32OverlayID) { in MDrv_DMS_Video_Flip()
1647 if (gDMSCtrl[u32WindowID].CodecType != pstDispFrameFormat->u32CodecType) { in MDrv_DMS_Video_Flip()
1652 VdecStreamId.u32Version = gDMSCtrl[u32WindowID].lastdff.u32VdecStreamVersion; in MDrv_DMS_Video_Flip()
1653 VdecStreamId.u32Id = gDMSCtrl[u32WindowID].lastdff.u32VdecStreamId; in MDrv_DMS_Video_Flip()
1674 gDMSCtrl[u32WindowID].u16SrcWidth = pstDispFrameFormat->stFrames[0].u32Width; in MDrv_DMS_Video_Flip()
1675 gDMSCtrl[u32WindowID].u16SrcHeight = pstDispFrameFormat->stFrames[0].u32Height; in MDrv_DMS_Video_Flip()
1676 gDMSCtrl[u32WindowID].u16FrameRate = (MS_U16)pstDispFrameFormat->u32FrameRate; in MDrv_DMS_Video_Flip()
1677 gDMSCtrl[u32WindowID].CodecType = pstDispFrameFormat->u32CodecType; in MDrv_DMS_Video_Flip()
1678 gDMSCtrl[u32WindowID].u8Interlace = pstDispFrameFormat->u8Interlace; in MDrv_DMS_Video_Flip()
1679 gDMSCtrl[u32WindowID].u32AspectWidth = pstDispFrameFormat->u32AspectWidth; in MDrv_DMS_Video_Flip()
1680 gDMSCtrl[u32WindowID].u32AspectHeight = pstDispFrameFormat->u32AspectHeight; in MDrv_DMS_Video_Flip()
1682 pSHM->u2MirrorMode = gDMSCtrl[u32WindowID].u8MirrorMode; in MDrv_DMS_Video_Flip()
1685 gDMSCtrl[u32WindowID].u8UpdateFrcMode = 1; in MDrv_DMS_Video_Flip()
1689 if (gDMSCtrl[u32WindowID].u16FrameRate != (MS_U16)pstDispFrameFormat->u32FrameRate) { in MDrv_DMS_Video_Flip()
1690 gDMSCtrl[u32WindowID].u8UpdateFrcMode = 1; in MDrv_DMS_Video_Flip()
1691 gDMSCtrl[u32WindowID].u16FrameRate = pstDispFrameFormat->u32FrameRate; in MDrv_DMS_Video_Flip()
1695 if (gDMSCtrl[u32WindowID].u8UpdateFrcMode) { in MDrv_DMS_Video_Flip()
1697 gDMSCtrl[u32WindowID].u8UpdateFrcMode = 0; in MDrv_DMS_Video_Flip()
1742 if (gDMSCtrl[u32WindowID].u8FieldCtrl != pstDispFrameFormat->u8FieldCtrl) { in MDrv_DMS_Video_Flip()
1753 gDMSCtrl[u32WindowID].u8FieldCtrl = pstDispFrameFormat->u8FieldCtrl; in MDrv_DMS_Video_Flip()
1786 …if ((gDMSCtrl[u32WindowID].u8MirrorMode == (MS_U8)E_VOPMIRROR_HVBOTH) && (pstDispFrameFormat->u83D… in MDrv_DMS_Video_Flip()
1825 pSHM->u5FRCMode = gDMSCtrl[u32WindowID].u8FrcMode; in MDrv_DMS_Video_Flip()
1875 if ((gDMSCtrl[u32WindowID].u16SrcWidth != pstDispFrameFormat->stFrames[0].u32Width) in MDrv_DMS_Video_Flip()
1876 || (gDMSCtrl[u32WindowID].u16SrcHeight != pstDispFrameFormat->stFrames[0].u32Height) in MDrv_DMS_Video_Flip()
1877 || (gDMSCtrl[u32WindowID].u32AspectWidth != pstDispFrameFormat->u32AspectWidth in MDrv_DMS_Video_Flip()
1878 … && gDMSCtrl[u32WindowID].u32AspectHeight != pstDispFrameFormat->u32AspectHeight)) { in MDrv_DMS_Video_Flip()
1879 gDMSCtrl[u32WindowID].u32AspectWidth = pstDispFrameFormat->u32AspectWidth; in MDrv_DMS_Video_Flip()
1880 gDMSCtrl[u32WindowID].u32AspectHeight = pstDispFrameFormat->u32AspectHeight; in MDrv_DMS_Video_Flip()
1881 gDMSCtrl[u32WindowID].u16SrcWidth = pstDispFrameFormat->stFrames[0].u32Width; in MDrv_DMS_Video_Flip()
1882 gDMSCtrl[u32WindowID].u16SrcHeight = pstDispFrameFormat->stFrames[0].u32Height; in MDrv_DMS_Video_Flip()
1883 gDMSCtrl[u32WindowID].u8SizeChange = 1; in MDrv_DMS_Video_Flip()
1888 gDMSCtrl[u32WindowID].u8DNRFrameCnt = 0; in MDrv_DMS_Video_Flip()
1892 || gDMSCtrl[u32WindowID].u8SizeChange in MDrv_DMS_Video_Flip()
1894 || (gDMSCtrl[u32WindowID].u8DNRFrameCnt == DNRFrameNUM) in MDrv_DMS_Video_Flip()
1899 !pSHM->u8McuDispSwitch || gDMSCtrl[u32WindowID].u8SizeChange in MDrv_DMS_Video_Flip()
1904 || (gDMSCtrl[u32WindowID].u8DNRFrameCnt == DNRFrameNUM) in MDrv_DMS_Video_Flip()
1908 gDMSCtrl[u32WindowID].u8SizeChange = 0; in MDrv_DMS_Video_Flip()
1918 pSHM->McuDispQueue[u8WIndex].u8DSIndex = gDMSCtrl[u32WindowID].ds_curr_index.u8DSIndex; in MDrv_DMS_Video_Flip()
1920 gDMSCtrl[u32WindowID].u8SizeChange = 1; in MDrv_DMS_Video_Flip()
1923 pSHM->McuDispQueue[u8WIndex].u16CropLeft = gDMSCtrl[u32WindowID].stCurrentCropWin.u32x; in MDrv_DMS_Video_Flip()
1924 pSHM->McuDispQueue[u8WIndex].u16CropTop = gDMSCtrl[u32WindowID].stCurrentCropWin.u32y; in MDrv_DMS_Video_Flip()
1926 … - gDMSCtrl[u32WindowID].stCurrentCropWin.u32width in MDrv_DMS_Video_Flip()
1927 - gDMSCtrl[u32WindowID].stCurrentCropWin.u32x; in MDrv_DMS_Video_Flip()
1929 … - gDMSCtrl[u32WindowID].stCurrentCropWin.u32height in MDrv_DMS_Video_Flip()
1930 - gDMSCtrl[u32WindowID].stCurrentCropWin.u32y; in MDrv_DMS_Video_Flip()
1933 … if (pSHM->u8McuDispSwitch && ((MsOS_GetSystemTime() - gDMSCtrl[u32WindowID].u32LastTime) > 500)) { in MDrv_DMS_Video_Flip()
1936 gDMSCtrl[u32WindowID].u32LastTime = MsOS_GetSystemTime(); in MDrv_DMS_Video_Flip()
1949 gDMSCtrl[u32WindowID].u32FrameCount++; in MDrv_DMS_Video_Flip()
1950 if (pstDispFrameFormat != &gDMSCtrl[u32WindowID].lastdff) in MDrv_DMS_Video_Flip()
1951 … memcpy(&gDMSCtrl[u32WindowID].lastdff, pstDispFrameFormat, sizeof(ST_DMS_DISPFRAMEFORMAT)); in MDrv_DMS_Video_Flip()
1955 if (gDMSCtrl[u32WindowID].u8Freeze) { in MDrv_DMS_Video_Flip()
1956 gDMSCtrl[u32WindowID].u8Freeze--; in MDrv_DMS_Video_Flip()
1957 if (gDMSCtrl[u32WindowID].u8Freeze == 0) { in MDrv_DMS_Video_Flip()