dynamic allocation for media sample?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,

I have developed 2 direct show filters: source filter and transform
filter. However, I find the method CBaseOutputPin::DecideBufferSize
very restricting.

Do I have to tell the pin what is the maximum size of media sample
before connection is made?

Cann't I dynamically allocate memory in FillBuffer (for source filter)
or Transform (for transform filter) and then pass size of this
allocated buffer to downstream filter?

Thanks,
Vikram

.



Relevant Pages

  • Re: New transform for video
    ... to handle motion without blocks. ... The new transform is compatible with bocks. ... if you stop the filter there (at ... Something like this: an inter frame can be divided into 2 regions: one ...
    (comp.compression)
  • Re: Connecting a raw file to transform filter.
    ... Also what should be done to make the transform filter ... the file type), that is a parser filter, which happens to be ... transform and that offers a media type your transform filter ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Delay between two Transform() calls
    ... i think if it is a transform filter, you have not de delay or to sleep ... the render filter manages the playing rate (as ... decoder using libavcodec from ffmpeg in a dll. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: interpolation for a color image?
    ... A typical way to do that is to first transform ... YUV is linear, ... YUV, run there a bilinear filter, then transform back, or run the bilinear ...
    (sci.image.processing)
  • Re: inverse laplace transform
    ... > The Laplace transform only work with linear ... You simply cannot do a Laplace transform of a nonlinear ... >> follow the impulse invariance IIR filter design method. ...
    (comp.dsp)