Re: Automatically inserting a filter by another filter!
- From: "Jeremy Noring" <somewhere@xxxxxxxxxx>
- Date: Wed, 20 Jul 2005 09:27:39 -0600
<mailto635@xxxxxxxxx> wrote in message
news:1121871346.822898.317860@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Hi All,
> Can a DirectShow filter-x add another filter-y into the filter graph
> automatically without the consent of the application? or
> is there any way to add filter-y to the graph automatically, whenever
> filter-x is inserted into the graph by an application?
Directshow does this by design, although not exactly in the way you're
describing. The filter graph manager will automatically add and connect
filters to the graph when you attempt to render a pin; this functionality is
called "intelligent connect" in DirectShow. By examining the media types
(the majortype and subtype, to be precise) advertised by the pins and the
merit of the filters that accept a given media type, DirectShow can actually
insert the needed filters into the graph to render a pin. At most, you can
even hand the filter graph manager a file name, tell it to render, and it'll
build the entire graph for you by inserting the required filters and
connecting them.
This process doesn't always work flawlessly, but it does work quite well.
Sometimes filters need to be manually added and connected, but typically
dshow can handle all of this with relative ease.
Is this a general question, or are you trying to accomplish something with
one filter adding another to the graph?
--
Where am I going?
And why am I in this handbasket?
.
- Follow-Ups:
- Re: Automatically inserting a filter by another filter!
- From: Geraint Davies
- Re: Automatically inserting a filter by another filter!
- References:
- Automatically inserting a filter by another filter!
- From: mailto635
- Automatically inserting a filter by another filter!
- Prev by Date: Re: Simultaneous Playback of 4-video files with D1 resolution
- Next by Date: Interlaced signal with DSHOW/VMR-9. Re: VMR-9 capture fps limitation ?
- Previous by thread: Automatically inserting a filter by another filter!
- Next by thread: Re: Automatically inserting a filter by another filter!
- Index(es):
Relevant Pages
|