Re: Dynamic Buffer in CTransInPlaceFilter - InputPin

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Chris P. [MVP] (msdn_at_chrisnet.net)
Date: 11/30/04

  • Next message: netnews.comcast.net: "DirectSound capture devices"
    Date: Tue, 30 Nov 2004 15:17:47 -0500
    
    

    On 30 Nov 2004 06:52:23 -0800, christian eickhoff wrote:

    > Halo,
    >
    > I am searching a solution for my DirectShow CTransInPlace Filter for
    > CoolEdit. How I can allocate my Inputbuffer in a dynamic way. My Code
    > looks like this:
    >
    > STDMETHODIMP CWatermarkInputPin::GetAllocatorRequirements(ALLOCATOR_PROPERTIES
    > *pProps)
    > {
    > pProps->cBuffers=2;
    > pProps->cbBuffer=2048*2*2;
    > pProps->cbAlign=1;
    > pProps->cbPrefix=0;
    >
    > return S_OK;
    > } // GetAllocatorRequirements
    >
    > I now want the variable cbBuffer to vary during the running process.
    > So how can I pass some parameter to that method?

    You cannot vary the allocated buffer size while running. However as part
    of the transform you can set the actual buffer used size for the output.


  • Next message: netnews.comcast.net: "DirectSound capture devices"

    Relevant Pages