video >> Push Source

by karthee » Mon, 22 May 2006 20:34:22 GMT

if i want to change the source of the push source filter at runtime,
and i want unknown no.of files to be read at runtime.

is it possible to customize the push source filter like that.

if so in which function i have to read the files?


please help me


regards...


video >> Push Source

by The March Hare [MVP] » Mon, 22 May 2006 21:16:02 GMT



Yes.


You need to supply the images to the downstream filter in FillBuffer so you
could read the images there as needed.

--
Please read this before replying:
1. Dshow & posting help: http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others: follow up if you are helped or you found a solution

video >> Push Source

by karthee » Mon, 22 May 2006 21:39:23 GMT

but in GetMediaType function there is a statement like this

// Copy the header info from the current bitmap
memcpy(&(pvi->bmiHeader), m_pBmi , m_cbBitmapInfo );

how to get the bitmapinfo before executing the fillbuffer function..


thank u ...

video >> Push Source

by The March Hare [MVP] » Mon, 22 May 2006 21:59:00 GMT


You can do your initialization for your samples in your constructor for
your source filter or its output pin's constructor.

An alternative is to do this in a custom interface.

--
Please read this before replying:
1. Dshow & posting help: http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others: follow up if you are helped or you found a solution

video >> Push Source

by karthee » Tue, 23 May 2006 12:38:06 GMT

can u please give me bit elaborated information, as m new to this field
m not able to understand what u explained me

thanks and regards,

video >> Push Source

by karthee » Tue, 23 May 2006 14:44:47 GMT

i got it, thanks for ur valuable information

thanks and regards,

video >> Push Source

by The March Hare [MVP] » Tue, 23 May 2006 21:01:53 GMT


You're welcome. Thanks for following up.

--
Please read this before replying:
1. Dshow & posting help: http://tmhare.mvps.org/help.htm
2. Trim & respond inline (please don't top post or snip everything)
3. Benefit others: follow up if you are helped or you found a solution