如何调试c ++ DirectShow过滤器 [英] How to debug c++ DirectShow filter

查看:101
本文介绍了如何调试c ++ DirectShow过滤器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么调试工具可用于directshow过滤器?目前,我有一个项目,编译和注册一个视频源过滤器,然后我在GraphEdit中设置一个图形。我在Visual Studio 2008中使用c ++。有可能得到一个调试器附加到过滤器以任何方式,我可以设置断点,检查变量等?

What debugging tools are available for directshow filters? Presently, I have a project that compiles and registers a video source filter that I then setup a graph in GraphEdit. I am using c++ in visual studio 2008. Is it possible to get a debugger attached to the filter in any way where I could set break points, inspect variables, etc? Barring that is there a way to log diagnostic information somewhere that I can view in real time?

推荐答案

有没有办法记录诊断信息在某处可以实时查看?附加调试器。将graphedt.exe设置为过滤器的Visual Studio项目中的调试目标,您应该能够在代码中设置断点。如果你有困难,这可能是因为一些解码器的反调试逻辑 - 你必须避免使用这些。

There should be no problem with attaching a debugger. Set graphedt.exe as the debug target in your filter's Visual Studio project and you should be able to set breakpoints in your code. If you're having difficulty with this, it might be because of the anti-debugging logic in some decoders — you'll have to avoid using those.

你也可以通过记录交付及其时间戳和延迟获取有用的调试信息。我发现要做的最好的方法是使用直通滤波器。有一个像这样的监视器过滤器,可以源码和二进制形式从www.gdcl.co.uk/mobile(win32和win mobile)。

You can also get useful debug information by logging the deliveries and their timestamps and latency. The best way I find to do ths is to use a pass-through filter. There is an example monitor filter like this available in source and binary form from www.gdcl.co.uk/mobile (win32 and win mobile).

G

这篇关于如何调试c ++ DirectShow过滤器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆