Skip to content

Latest commit

 

History

History
71 lines (42 loc) · 3.82 KB

crendererpospassthru.md

File metadata and controls

71 lines (42 loc) · 3.82 KB
description ms.assetid title ms.topic ms.date topic_type api_name api_type api_location ms.custom
The CRendererPosPassThru class handles seek commands for renderer filters, by passing them upstream to the next filter.
7b532177-939c-4cb7-a6fa-c0133f65c768
CRendererPosPassThru class (Ctlutil.h)
reference
4/26/2023
APIRef
kbSyntax
CRendererPosPassThru
COM
Strmbase.lib
Strmbase.dll
Strmbasd.lib
Strmbasd.dll
UpdateFrequency5

CRendererPosPassThru class

[The feature associated with this page, DirectShow, is a legacy feature. It has been superseded by MediaPlayer, IMFMediaEngine, and Audio/Video Capture in Media Foundation. Those features have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer, IMFMediaEngine and Audio/Video Capture in Media Foundation instead of DirectShow, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

crendererpospassthru class hierarchy

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 an example of how to use this class, refer to the CBaseRenderer source code.

Public Methods Description
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.

Requirements

Requirement Value
Header
Ctlutil.h (include Streams.h)
Library
Strmbase.lib (retail builds);
Strmbasd.lib (debug builds)