Re: Getting samples from single filter



On Tue, 31 May 2005 12:09:09 -0600, "Jeremy Noring" <someone@xxxxxxxxxx>
wrote:

>>>> Hi there.
>>>> Just a small question - is calling a method
>>>> IMemInputPin->Receive(pMsample)
>>>> going to deliver a transformed sample (by the filter using that
>>>> meminput)
>>>> to pMsample's buffer or just simplu copy data to that buffer?

>>>It should be noted that applications typically do not call IMemInputPin
>>>interface methods--this is taken directly from the DXSDK.
>>>
>>>That being said, yes--you're going to receive a fully populated
>>>IMediaSample.

>> Actually, what you do is pass a sample to the filter with this method,
>> you don't get a sample from the filter. If it's an in-place transform
>> filter the original sample _may_ be modified when the function returns,
>> but this is not guaranteed. Other filters typically don't do anything
>> with the sample that is passed in through Receive().

>Darn, you're right. =)
>
>I always get that backwards because of the naming, and forget that it's the
>upstream filter calling the downstream filter's Receive() method. I deal so
>little with these underlying guts (really, why bother?) that I probably
>don't know them as well as I should.

I know, the naming is very confusing and feels very backwards. I would
expect the functions to be named from the caller's point of view, and
the caller is delivering the sample, not receiving it.

--
New to newsgroups? Read: http://dev.6581.com/newsgroups.html
.



Relevant Pages

  • Re: Setting (thread) priority of DirectShow Graphs/Filters ?
    ... I have a source filter I wrote that creates two threads). ... probably locate it by enumerating the threads in a process, ... naming between releases, removing the naming, etc.) ... to see what was created by the streaming thread, etc, until all threads ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Butterworth delay
    ... - sometimes referred to as running the filter both backwards and forwards.. ... Phase distortion due to non-linear phase responses ... caused by the time it takes for a DSP ...
    (comp.dsp)
  • Re: Filter problems with dataview webpart from sharepoint
    ... works the first time through but if you go backwards the document list DVWP ... > I've 2 dataviews shown as dropdownlist to filter the 3rd dataview. ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: Audio scrub
    ... If the user drags the slider to the left, I want to scrub ... it backwards. ... Maybe I need to write another filter? ... Or is there some filter that already dose that? ...
    (microsoft.public.win32.programmer.directx.audio)
  • Re: Why translate center frequency (instead of band edge) to baseband?
    ... I believe you have it backwards. ... frequency to baseband then it may be low pass filtered. ... you'll have to utilize a band pass filter, ... taps for equivalent ripple and rolloff. ...
    (comp.dsp)