Re: Source Filter using UserMode DShow Filter and Plain Kernel Dri
- From: David Miller <DavidMiller@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 17 Sep 2008 02:14:10 -0700
Yes. You can do this. I have done this. I wrote a virtual video capture
filter that (internally) opened a WDM midi capture device via
CreateFile(pnpDevicePath) and pumped it with a separate thread.
No problem. There are no WHQL issues. There are no special headaches.
The only headaches you will have are the same headaches you have when you do
the same thing in a normal app or normal DLL. Pay attention to threads.
Just curious: Are you trying to implement a USB dongle? That should be
easy. Lock your codec to a thumbdrive. :)
"Santosh" wrote:
Thanks Cris, David for the replies.
David
I know that we can make a kernel mode avstream driver, the framework
creates Proxy filter in user mode for apps to access it.
But somehow because of some issues, i need to create user mode
DirectShow filter for apps to use in windows, and have the filter
manage communication with driver using ioctl. Since the driver is
plain WDM Driver.
I want to know that has anybody tried this kind of design, Will it may
result in some bottlenecks, WHQL issues etc.
Regards
Santosh K
On Sep 16, 10:40 pm, David Miller
<DavidMil...@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Santosh,
Do you know about the Kernel Streaming Proxy? It will wrap any WDM kernel
driver (including drivers you wrote, or 3rd-party drivers). Then you can use
IKsPropertySet or IKsControl to talk to it from a user-mode app or filter..
http://msdn.microsoft.com/en-us/library/ms810545.aspx
It is also possible to create a ‘hybrid’ DirectShow Source Filter (half
kernel-mode and half user-mode) with this technique:
http://www.wd-3.com/archive/KsProxyPlugin.htm
Only the kernel driver needs WHQL.
"Santosh" wrote:
Hi
I want to build DirectShow Source Filter in user mode which will talk
with hardware using ioctls to normal WDM Kernel Driver (i.e. it will
not be implementing avstream class)
Is the above design feasible? What kinds of bottleneck it may result?
and would there be any effect on getting WHQL test to PASS (i.e. for
Video Capture Category WHQL Tests)
Regards
Santosh K- Hide quoted text -
- Show quoted text -
- References:
- Prev by Date: Re: mpeg2 demux output pin buffer size
- Next by Date: Re: mpeg2 demux output pin buffer size
- Previous by thread: Re: Source Filter using UserMode DShow Filter and Plain Kernel Driver
- Next by thread: Re: Source Filter using UserMode DShow Filter and Plain Kernel Driver
- Index(es):
Relevant Pages
|
Loading