The FramerateDisplayFilter uses a moving average over the last 50 samples to calculate the average and renders the estimate on top of the video using GDI+.
The FramerateDisplayFilter inherits CTransInPlaceFilter and currently has the following configuration options:
- mode: time-stamp or system-time
- X: x- position of the estimate (This can be off the screen)
- Y: y- position of the estimate (This can be off the screen)
In time-stamp mode, the timestamps of the actual media samples is used in the average calculation.
In system-time mode, the time as the sample passes through the filter, is used in the average calculation.
Depending on the pipeline, there may be a minor or larger difference between the two.
As per usual, all settings are programmatically configurable using the COM ISettingsInterface interface.
On a side note, if anyone is interested in contributing to the development of this filter, capabilties to set the font, font-color, etc via the property page are still required.
No comments:
Post a Comment