Compartir a través de


CBaseRenderer::Render

 
Microsoft DirectShow 9.0

CBaseRenderer::Render

The Render method renders a sample.

Syntax

  virtual HRESULT Render(
    IMediaSample *pMediaSample
);

Parameters

pMediaSample

Pointer to the sample's IMediaSample interface.

Return Value

Returns an HRESULT value. Possible values include those in the following table.

Value Description
S_FALSE The filter is stopped, or pMediaSample is NULL.
S_OK Success.

Remarks

This method calls the pure virtual method CBaseRenderer::DoRenderSample, which does the real work. The derived class must implement DoRenderSample.

Immediately before calling DoRenderSample, this method calls the CBaseRenderer::OnRenderStart method. Immediately after, it calls the CBaseRenderer::OnRenderEnd method. The derived class can override those two methods as needed.

Requirements

**  Header:** Declared in Renbase.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also