开发者

DirectShow Source filter using Dekstop window as source

开发者 https://www.devze.com 2023-01-26 05:45 出处:网络
I am looking for examples of a DirectShow Source filter that would display a Desktop Window. I am sure there should be examples, but I haven\'t yet found them. Perhap开发者_Python百科s I am using the

I am looking for examples of a DirectShow Source filter that would display a Desktop Window. I am sure there should be examples, but I haven't yet found them. Perhap开发者_Python百科s I am using the wrong terminology.

This is for grabbing live output of a Window, and processing that has video.

Lee


In DirectShow SDK there is a sample filter called PushSource and inside there is PushSourceDesktop. Compile it, register ("regsvr32 PushSource.ax") and insert into your graph as a source filter.


Its mentioned at
https://learn.microsoft.com/en-us/windows/win32/directshow/push-source-filters-sample

Source code for sample push source filter is at
https://github.com/microsoft/Windows-classic-samples/tree/master/Samples/Win7Samples/multimedia/directshow/filters/pushsource

0

精彩评论

暂无评论...
验证码 换一张
取 消