Re: Dynamic Buffer in CTransInPlaceFilter - InputPin
From: Chris P. [MVP] (msdn_at_chrisnet.net)
Date: 11/30/04
- Previous message: Chris P. [MVP]: "Re: Getting number of Channels for DirectShow filter.."
- In reply to: christian eickhoff: "Dynamic Buffer in CTransInPlaceFilter - InputPin"
- Messages sorted by: [ date ] [ thread ]
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.
- Previous message: Chris P. [MVP]: "Re: Getting number of Channels for DirectShow filter.."
- In reply to: christian eickhoff: "Dynamic Buffer in CTransInPlaceFilter - InputPin"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|