ChristianLavallee

Hi, I'm new to directshow, but I know D3D pretty well.

I need to create a filter that would take an image as input, then create a d3d9 device to use an image processing library that requires the d3d device and outputs another processed image.

I would just like to know if that's possible (I assume so) before I spend some time learning dshow or go another route.

Or maybe it's possible to get a reference to the d3d device when using VMR9

Thanks,

Christian Lavallee




Re: DirectShow Development Create a d3d device within a filter

Bowljoman

Yes,

captureTex9 sample does this in the old sdk.






Re: DirectShow Development Create a d3d device within a filter

rajesh_directshow

please teel me How To convert it as the transform filter.






Re: DirectShow Development Create a d3d device within a filter

Thore Karlsen

You can do pretty much anything inside a filter, including creating a D3D device. I would not use the VMR9 for this, I'd just do it myself in a filter. Filters can be easy to write, especially transform filters. Look up the documentation for CTransformFilter in MSDN, and it will give you some information about the methods you need to implement. The samples are also good if you can look past the overcomplications.