开发者

c++ IPC - d3d hook and directshow capture source

开发者 https://www.devze.com 2022-12-21 19:13 出处:网络
I\'m writing an app that will basically be like Fraps, but it will push video frames as a DirectShow Capture Source. This will make it easy to stream games on websites like ustream, justin.tv, etc. I\

I'm writing an app that will basically be like Fraps, but it will push video frames as a DirectShow Capture Source. This will make it easy to stream games on websites like ustream, justin.tv, etc. I'm wondering what the best way to do the interprocess communication would be. Speed is very important. Right now I have a dll that is injected and hooks d3d to grab the frame buffer. I need a way to send that to a directshow filter. DirectShow开发者_Go百科 is really confusing for me, but I've implemented CSource an CSourceStream (in another dll).


If you want speed, use shared memory. Combine that with COM for normal communication and you got a standard windows IPC approach.

If you want to wrap it up with a more modern C++ style, take a look at Boost.Interprocess' primitives.

0

精彩评论

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

关注公众号