[Deinterlace-checkins] CVS: DScaler/DScaler OSD.cpp,1.87,1.88
Brought to you by:
adcockj,
dschmelzer
|
From: Rob M. <rob...@us...> - 2003-11-12 22:14:35
|
Update of /cvsroot/deinterlace/DScaler/DScaler
In directory sc8-pr-cvs1:/tmp/cvs-serv21200/DScaler
Modified Files:
OSD.cpp
Log Message:
Add some more info to the developers statistics screen.
Index: OSD.cpp
===================================================================
RCS file: /cvsroot/deinterlace/DScaler/DScaler/OSD.cpp,v
retrieving revision 1.87
retrieving revision 1.88
diff -C2 -r1.87 -r1.88
*** OSD.cpp 11 Nov 2003 22:16:30 -0000 1.87
--- OSD.cpp 12 Nov 2003 22:14:30 -0000 1.88
***************
*** 59,62 ****
--- 59,65 ----
//
// $Log$
+ // Revision 1.88 2003/11/12 22:14:30 robmuller
+ // Add some more info to the developers statistics screen.
+ //
// Revision 1.87 2003/11/11 22:16:30 robmuller
// Add ability to include the performance statistics in a release build.
***************
*** 2219,2222 ****
--- 2222,2226 ----
int i;
double pos;
+ DWORD Total = 0;
if (Size == 0)
***************
*** 2226,2230 ****
// Title
! OSD_AddText("Informations for developers", Size*1.5, OSD_COLOR_TITLE, -1, OSDB_USERDEFINED, OSD_XPOS_CENTER, 0.5, OSD_GetLineYpos (1, dfMargin, Size*1.5));
nLine = 3;
--- 2230,2245 ----
// Title
! OSD_AddText("Information for developers", Size*1.5, OSD_COLOR_TITLE, -1, OSDB_USERDEFINED, OSD_XPOS_CENTER, 0.5, OSD_GetLineYpos (1, dfMargin, Size*1.5));
!
! nLine = 3;
!
! OSD_AddText("Dropped fields", Size, OSD_COLOR_SECTION, -1, OSDB_USERDEFINED, OSD_XPOS_RIGHT, 1 - dfMargin, OSD_GetLineYpos (nLine++, dfMargin, Size));
!
! sprintf (szInfo, "Number : %ld", pPerf->GetNumberDroppedFields());
! OSD_AddText(szInfo, Size, -1, -1, OSDB_USERDEFINED, OSD_XPOS_RIGHT, 1 - dfMargin, OSD_GetLineYpos (nLine++, dfMargin, Size));
! sprintf (szInfo, "Last second : %d", pPerf->GetDroppedFieldsLastSecond());
! OSD_AddText(szInfo, Size, -1, -1, OSDB_USERDEFINED, OSD_XPOS_RIGHT, 1 - dfMargin, OSD_GetLineYpos (nLine++, dfMargin, Size));
! sprintf (szInfo, "Average / s : %.1f", pPerf->GetAverageDroppedFields());
! OSD_AddText(szInfo, Size, -1, -1, OSDB_USERDEFINED, OSD_XPOS_RIGHT, 1 - dfMargin, OSD_GetLineYpos (nLine++, dfMargin, Size));
nLine = 3;
***************
*** 2235,2246 ****
if (pPerf->IsValid((ePerfType)i))
{
- sprintf(szInfo, "%s : %d",
- pPerf->GetName((ePerfType)i),
- pPerf->GetAverageDuration((ePerfType)i));
pos = OSD_GetLineYpos (nLine, dfMargin, Size);
OSD_AddText(szInfo, Size, -1, -1, OSDB_USERDEFINED, OSD_XPOS_LEFT, dfMargin, pos);
nLine++;
}
}
}
--- 2250,2267 ----
if (pPerf->IsValid((ePerfType)i))
{
pos = OSD_GetLineYpos (nLine, dfMargin, Size);
+ sprintf(szInfo, "%s :", pPerf->GetName((ePerfType)i));
OSD_AddText(szInfo, Size, -1, -1, OSDB_USERDEFINED, OSD_XPOS_LEFT, dfMargin, pos);
+ sprintf(szInfo, "%d", pPerf->GetAverageDuration((ePerfType)i));
+ OSD_AddText(szInfo, Size, -1, -1, OSDB_USERDEFINED, OSD_XPOS_RIGHT, 0.45, pos);
nLine++;
+ Total += pPerf->GetAverageDuration((ePerfType)i);
}
}
+ pos = OSD_GetLineYpos (nLine, dfMargin, Size);
+ sprintf(szInfo, "%s", "Total");
+ OSD_AddText(szInfo, Size, -1, -1, OSDB_USERDEFINED, OSD_XPOS_LEFT, dfMargin, pos);
+ sprintf(szInfo, "%d", Total);
+ OSD_AddText(szInfo, Size, -1, -1, OSDB_USERDEFINED, OSD_XPOS_RIGHT, 0.45, pos);
}
|