preview pin interface development in avshws driver

Hi,
I want to add preview pin interface in sample avstream miniport driver
(avshws driver) provided with WDK
so how should i go about it

Regards,
Pravin G

pravin gawale wrote:

I want to add preview pin interface in sample avstream miniport driver
(avshws driver) provided with WDK
so how should i go about it

Why do you want to? If your device doesn’t provide one, DirectShow will
be happy to insert an “intelligent tee” into the graph that provides a
perfectly usable preview pin.

Adding another pin is a matter of adjusting the data structures and
adding a class for the callbacks. What will you do differently for the
preview pin?


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

using which DirectShow filter i can provide preview facility???

On Feb 19, 2008 11:04 PM, Tim Roberts wrote:

> pravin gawale wrote:
> >
> > I want to add preview pin interface in sample avstream miniport driver
> > (avshws driver) provided with WDK
> > so how should i go about it
>
> Why do you want to? If your device doesn’t provide one, DirectShow will
> be happy to insert an “intelligent tee” into the graph that provides a
> perfectly usable preview pin.
>
> Adding another pin is a matter of adjusting the data structures and
> adding a class for the callbacks. What will you do differently for the
> preview pin?
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

Hello Tim,
Thanks for above information
but i want to do same thing from driver just for RnD
so that next time i will confident about pin insertion & configuration for
filter

On Feb 20, 2008 11:08 AM, pravin gawale
wrote:

> using which DirectShow filter i can provide preview facility???
>
>
>
> On Feb 19, 2008 11:04 PM, Tim Roberts wrote:
>
> > pravin gawale wrote:
> > >
> > > I want to add preview pin interface in sample avstream miniport driver
> > > (avshws driver) provided with WDK
> > > so how should i go about it
> >
> > Why do you want to? If your device doesn’t provide one, DirectShow will
> > be happy to insert an “intelligent tee” into the graph that provides a
> > perfectly usable preview pin.
> >
> > Adding another pin is a matter of adjusting the data structures and
> > adding a class for the callbacks. What will you do differently for the
> > preview pin?
> >
> > –
> > Tim Roberts, xxxxx@probo.com
> > Providenza & Boekelheide, Inc.
> >
> >
> > —
> > NTDEV is sponsored by OSR
> >
> > For our schedule of WDF, WDM, debugging and other seminars visit:
> > http://www.osr.com/seminars
> >
> > To unsubscribe, visit the List Server section of OSR Online at
> > http://www.osronline.com/page.cfm?name=ListServer
> >
>
>

pravin gawale wrote:

using which DirectShow filter i can provide preview facility???

It’s called the “Smart Tee”, CLSID_SmartTee.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.

hi Tim,

As i said
I am doing all this for learning about AVStream Interface
in case of (avshws driver) sample driver supports source filter having
capture as an output pin
now i want to configure same filter for two output pins one is for capture
and another is for preview
to do same i have added one more pin (with required configuration info)
after loading same driver
if through graphedt i create filter with my driver it shows to output pins
capture & preview
but after connecting video renderer filter to both pins & if i run same it
shows me error
“device is used by another process”
i not able to get out of it

On Wed, Feb 20, 2008 at 10:31 PM, Tim Roberts wrote:

> pravin gawale wrote:
> > using which DirectShow filter i can provide preview facility???
>
> It’s called the “Smart Tee”, CLSID_SmartTee.
>
> –
> Tim Roberts, xxxxx@probo.com
> Providenza & Boekelheide, Inc.
>
>
> —
> NTDEV is sponsored by OSR
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

pravin gawale wrote:

As i said
I am doing all this for learning about AVStream Interface
in case of (avshws driver) sample driver supports source filter having
capture as an output pin
now i want to configure same filter for two output pins one is for
capture and another is for preview
to do same i have added one more pin (with required configuration info)
after loading same driver
if through graphedt i create filter with my driver it shows to output
pins capture & preview
but after connecting video renderer filter to both pins & if i run
same it shows me error
“device is used by another process”

Well, then, you have some debugging to do. At some point, each pin is
going to be asked to transition from the “stop” state to the “acquire”
state. At that point, it will try to acquire the resources it needs to
do the capture. If you have just slapped this together without thinking
about it, then the first pin will successfully acquire the resources
from the filter’s device, and the second one will fail because the
resources are already assigned.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.