Skip to main content
GameDev.net gamedev.net
🔒 Locked 🎮 Unity

DirectShow: InPlace Source-Filter

Started by cnhof Jul 7, 2011 at 12:47 PM 0 replies 1.3k views
Original Post
cnhof
cnhof
Hello folks,

I am desperately trying to create a (live) source filter which can be run inplace.

Means:
Somewhere in my program, a Buffer exists.
This Buffer is to be passed to my Source Filter, which is not a classic DLL-filter, but a 'hard-coded' part of my project, and then processed onwards.

For Transform Filters, I would use the CTransInPlaceFilter Class, but it seems this wouldn't work for a source filter.

Any ideas?

Thanks very much in advance for your comments...

Chris
DrunkMonkey25
DrunkMonkey25
As far as I know, if your filter is to be used in a filter graph, it must be compiled as a DLL, have the proper functions exported, and your filters' GUID must be registered with regsvr32.

If your buffer is passed to your source filter (as opposed to your filter capturing from a webcam or mic), it might be possible to avoid DirectShow altogether, unless you want to compress it and you don't feel like getting your hands dirty. Of course, that all depends on what you are doing with your app.

Digging around MSDN and those forums should shed some light on the situation.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.