Microsoft DirectX 9.0

CTransformFilter::InitializeOutputSample

The InitializeOutputSample method retrieves a new output sample and initializes it.

Syntax

HRESULT InitializeOutputSample(
    IMediaSample *pSample, 
    IMediaSample **ppOutSample
);

Parameters

pSample

Pointer to the input sample's IMediaSample interface.

ppOutSample

Address of a variable that receives a pointer to the output sample's IMediaSample interface.

Return Value

Returns S_OK or another HRESULT value.

Remarks

This method retrieves a new sample from the output pin's allocator. Then it copies the sample properties from the input sample to the output sample.

See Also

CTransformFilter Class