|Microsoft DirectX 9.0|
The Transform method transforms an input sample to produce an output sample.
virtual HRESULT Transform( IMediaSample *pIn, IMediaSample *pOut );
Pointer to the input sample's IMediaSample interface.
Pointer to the output sample's IMediaSample interface.
The base class returns E_UNEXPECTED.
The derived class should return an HRESULT value, indicating success or failure. Possible values include those shown in the following table.
|S_FALSE||Do not deliver this sample.|
Override this method to produce output data. Read the input data from the sample specified by the pIn parameter, and write the new data into the sample specified by the pOut parameter.
Before the filter calls this method, it copies the properties from the input sample to the output sample. The Transform method should set any properties that differ between the two samples, using IMediaSample methods or the IMediaSample2 interface (if available).
If the filter should not deliver this sample (for example, to support quality control), the method should return S_FALSE.