CTransformFilter::DecideBufferSize

 
Microsoft DirectShow 9.0

CTransformFilter::DecideBufferSize

The DecideBufferSize method sets the output pin's buffer requirements.

Syntax

  virtual HRESULT DecideBufferSize(
    IMemAllocator *pAlloc,
    ALLOCATOR_PROPERTIES *ppropInputRequest
) PURE; 

Parameters

pAlloc

Pointer to the IMemAllocator interface on the output pin's allocator.

ppropInputRequest

Pointer to an ALLOCATOR_PROPERTIES structure that contains buffer requirements from the downstream input pin.

Return Value

Returns S_OK or another HRESULT value.

Remarks

The output pin's CTransformOutputPin::DecideBufferSize method calls this method. The derived class must implement this method. For more information, see CBaseOutputPin::DecideBufferSize.

Requirements

**  Header:** Declared in Transfrm.h; include Streams.h.

**  Library:** Use Strmbase.lib (retail builds) or Strmbasd.lib (debug builds).

See Also