Microsoft DirectX 8.1 (C++) |
The DecideBufferSize method sets the output pin's buffer requirements.
Syntax
HRESULT DecideBufferSize(
IMemAllocator *pAlloc,
ALLOCATOR_PROPERTIES *pProperties
);
Parameters
pAlloc
Pointer to the IMemAllocator object used by the output pin.
pProperties
Pointer to the requested allocator properties for count, size, and alignment, as specified by the ALLOCATOR_PROPERTIES structure.
Return Value
Returns an HRESULT value. Possible values include those shown in the following table.
Value | Description |
S_OK | Success |
E_FAIL | Failure |
Remarks
This method overrides the CTransformFilter::DecideBufferSize method. It exists for compatibility with previous versions of the CTransInPlaceFilter class. In the current version, the upstream output pin negotiates directly with the downstream input pin for the allocator. The filter's output pin is not involved.
See Also