home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
av/sync stats code, where is it located?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Frodo" data-source="post: 16966" data-attributes="member: 10277"><p>The following 2 files are responsible for updating the stats</p><p>core/player/vmr9.cs (for vmr9)</p><p>core/player/vmr7.cs ( for overlay)</p><p></p><p>Both files have a Process() method which is called on a regular basis</p><p>this method will update the statistics every second using this line:</p><p>VideoRendererStatistics.Update(quality);</p><p></p><p>quality holds the IQualProp of the video renderer</p><p>and VideoRendererStatistics is a general class which gets the stats using this interface as following:</p><p></p><p>quality.get_AvgFrameRate(out avgFrameRate);</p><p>quality.get_AvgSyncOffset(out avgSyncOffset);</p><p>quality.get_DevSyncOffset(out avgDevSyncOffset);</p><p>quality.get_FramesDrawn(out framesDrawn);</p><p>quality.get_FramesDroppedInRenderer(out framesDropped);</p><p>quality.get_Jitter(out jitter);</p><p></p><p>more info see:</p><p><a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directshow/htm/iqualpropinterface.asp" target="_blank">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directshow/htm/iqualpropinterface.asp</a></p><p></p><p>frodo</p></blockquote><p></p>
[QUOTE="Frodo, post: 16966, member: 10277"] 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: [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/directshow/htm/iqualpropinterface.asp[/url] frodo [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
av/sync stats code, where is it located?
Contact us
RSS
Top
Bottom