Microsoft DirectX 9.0 |
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.
See Also