Share via


Override the DecideBufferSize Member Function (Windows Embedded CE 6.0)

1/6/2010

Copy transform filters might be required to set the properties of the allocator into which they are copying.

This is likely if the downstream filter has provided a newly created allocator (that is, one that has not passed an allocator from farther downstream), or if the output pin is forced to create its own allocator.

In this case, the pure virtual CBaseOutputPin::DecideBufferSize member function is called from the CBaseOutputPin::DecideAllocator member function, and the derived class fills in the requirements for the buffer by calling the IMemAllocator::SetProperties method on the allocator object to which it has a reference.

The CTransInPlaceFilter::DecideBufferSize method is never called, because the allocator of another filter is always in use. It is implemented in the base class header file to return E_UNEXPECTED.

See Also

Concepts

Override the Base Class Member Functions