CRendererPosPassThru Class
Microsoft DirectShow 9.0 |
CRendererPosPassThru Class
The CRendererPosPassThru class handles seek commands for renderer filters, by passing them upstream to the next filter.
This class derives from the CPosPassThru class. It adds support for caching the time stamps from samples as they arrive. Use this class in the same way as the CPosPassThru class. Refer to the CPosPassThru documentation for details.
The renderer filter must update the CRendererPosPassThru object's cached time stamps, as follows:
- For each sample the filter receives, call the CRendererPosPassThru::RegisterMediaTime method.
- When the filter is stopped or receives an EndFlush call, call the CRendererPosPassThru::ResetMediaTime method.
- When the filter receives an end-of-stream notification, call the CRendererPosPassThru::EOS method.
For an example of how to use this class, refer to the CBaseRenderer source code.
Requirements
** Header:** Declared in Ctlutil.h; include Streams.h.
** Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).
Public Methods | |
CRendererPosPassThru | Constructor method. |
GetMediaTime | Retrieves the time stamps on the current sample. |
RegisterMediaTime | Caches the time stamps from the current sample. |
ResetMediaTime | Resets the cached time stamps to zero. |
EOS | Updates the cached time stamps after an end-of-stream notification. |