다음을 통해 공유


CBaseVideoRenderer::ShouldDrawSampleNow (Windows CE 5.0)

Send Feedback

Determines if the video should be drawn without setting a timer advise link with the clock.

virtual HRESULT ShouldDrawSampleNow(IMediaSample* pMediaSample,REFERENCE_TIME* ptrStart,REFERENCE_TIME* ptrEnd);

Parameters

  • pMediaSample
    IMediaSample interface for the sample.
  • ptrStart
    Time to begin rendering.
  • ptrEnd
    Time to stop rendering.

Return Values

Returns an HRESULT value.

Returns S_OK to mean draw at once without waiting.

Returns S_FALSE to mean draw at time ptrStart.

Returns error to mean do not draw the sample; that is, skip it to save time.

Remarks

This member function overrides CBaseRenderer::ShouldDrawSampleNow.

Requirements

DirectShow applications and DirectShow filters have different include file and link library requirements.

For more information, see Setting Up the Build Environment.

OS Versions: Windows CE 2.12 and later. Version 2.12 requires DXPAK 1.0 or later.
Header:

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.