InitializeOutputSample method retrieves a new output sample and initializes it.
Pointer to the input sample's IMediaSample interface.
Receives a pointer to the output sample's IMediaSample interface.
Returns S_OK or another HRESULT value.
This method is called by the CTransformFilter::Receive method to prepare the output sample. Generally you do not have to call this method in your derived class, unless you override the Receive method.
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. The sample properties are defined in the AM_SAMPLE2_PROPERTIES structure.