Is it possible to write DirectShow filters in C# (not in c\c++)?
I mean not only to create source filters but renderers or compressors etc?
Is it possible to write DirectShow filters in C# (not in c\c++)?
I mean not only to create source filters but renderers or compressors etc?
Yes it is. You can use the DirectShow.net Lib to help bridge the gap.
They even have a sample, if you look down the page you will see the GSSF sample description:
GSSF – The Generic Sample Source Filter – A way to implement a source filter in c#. If you have samples (for example video frames from bitmap files) that you want to use as a source in a graph, this filter will show you how.
You can, but it can be difficult unless you know DirectShow and .NET native interop pretty well. Even then it can be a little uphill.
Here is an example of it being done: http://www.sichbo.ca/Free_Code/100_C_Sharp_directshow_filters
Basically you can export you .NET classes as COM. TO use DShow interfaces, simply link to CM objects from your .NET projects. Anyway, writing DShow filters in .NET without some support of libraries like BaseClasses for C++ could be challenging.