av/sync stats code, where is it located? (1 Viewer)

null_pointer

Portal Member
May 13, 2004
10
0
My TV: Video statistics
Press ! to receive video statistics while playing a movie or watching TV and it will show the average frame rate, av/sync, frames drawn, frames dropped and jitter

I have downloaded the source for 0.1.3 and am looking for how MP does the av/sync stats, can anyone point to to the file (source file) where this is acually calculated.
 

Frodo

Retired Team Member
  • Premium Supporter
  • April 22, 2004
    1,518
    121
    52
    The Netherlands
    Home Country
    Netherlands Netherlands
    The following 2 files are responsible for updating the stats
    core/player/vmr9.cs (for vmr9)
    core/player/vmr7.cs ( for overlay)

    Both files have a Process() method which is called on a regular basis
    this method will update the statistics every second using this line:
    VideoRendererStatistics.Update(quality);

    quality holds the IQualProp of the video renderer
    and VideoRendererStatistics is a general class which gets the stats using this interface as following:

    quality.get_AvgFrameRate(out avgFrameRate);
    quality.get_AvgSyncOffset(out avgSyncOffset);
    quality.get_DevSyncOffset(out avgDevSyncOffset);
    quality.get_FramesDrawn(out framesDrawn);
    quality.get_FramesDroppedInRenderer(out framesDropped);
    quality.get_Jitter(out jitter);

    more info see:
    http://msdn.microsoft.com/library/d...y/en-us/directshow/htm/iqualpropinterface.asp

    frodo
     

    Users who are viewing this thread

    Top Bottom