Re: SOS... help required in implementing pull mechanism

Tech-Archive recommends: Speed Up your PC by fixing your registry



hi,


Geraint Davies wrote:
On 22 Nov 2006 02:40:03 -0800, rahul wrote:

Here the __super::Receive(pSample) is not calling Transform
method(which is should according to documentation), instead the
downstream's trasform filter;s transform is being called.. the graph is
async file src-->dummy pull transform-->video transform-->video
renderer.

why is it so?????

i m stuck in it for 2 days now :(


why don't you step into the base class Receive method and see what is
happening? Looking at the code, the only reason I can see for calling
directly to the downstream filter is if the IMediaSample2 props stream id
is not set correctly.

G

why don't you step into the base class Receive method and see what is
happening?

i m using the trial version of microsoft visual studio 2005 and cant
debug into the base class's Receive method. Is there any other way of
doing that??

the only reason I can see for calling
directly to the downstream filter is if the IMediaSample2 props stream id
is not set correctly.

wht is that. How can i check it and set it correctly.

meanwhile i tried somethin differernt. As the dummy transform filter's
Receive was calling downstream transform filter's Transform method, i
did the parsing of the media sample in receive function itself. i m
getting the Sample from the asyn file source, and in the receive
function i m parsing it into frames and doing a memcpy with
mediaSample's (which is the argument to the receive function)
getpointer as the target address.
everything is goin fine, the connection process, the data flow and
decoding. only problem is with the renderer now, the first fifteen or
sixteen decoded frames r not being rendered and after that its working
properly. i m assuming thy r getting dropped. I m not assignin any time
stamps anywhere.
could u tell me why is it happening?? sorry if i sound a bit vague but
this was the best attempt to cover the whole problem
i really need help.!!!!

thanks and regards,
Rahul

.



Relevant Pages

  • Re: Dynamic format change initiated by upstream filter
    ... the data flow is custom source->custom transform ... after transform filter processes the first sample. ... If you are connected to a video renderer, ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: custom filter not being connected to video renderer
    ... transform function. ... previously there was problems in connection too, ... use this setup with my dump filter rather thn the renderer, ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: SOS... help required in implementing pull mechanism
    ... downstream's trasform filter;s transform is being called.. ... the graph is ... renderer. ... i m stuck in it for 2 days now:( ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: waveformatex and fillbuffer()
    ... >>>than can be applied to a transform filter). ... >>>I got the 128KB from the incoming audio renderer (I then use this to set the ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: Type of memory in VMR9 allocator
    ... output buffer for transformation function from 3r party library and after ... temporary buffer to output sample. ... as a downstream filter and he provide a video memory in allocator buffers, ... It sounds to me as though you've implemented a typical "copy" transform ...
    (microsoft.public.win32.programmer.directx.video)