Override the DecideBufferSize Member Function (Windows CE 5.0)

Send Feedback

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.

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.