| Another FreeFrame wrapper |
|
You can dowload the code and the binary of my FreeFrame wrapper here. To use the wrapper in a C# application, you can use the following:
Type comtype = null; Guid FFguid = new Guid("F10FF33C-C89F-4765-A960-0EF260EE7670");
comtype = Type.GetTypeFromCLSID( FFguid
);
graphBuilder.AddFilter( (IBaseFilter)freeFrame,
"FreeFrame" ); where IFFPlugMain is defined as: [Guid("9567207A-D64A-440d-A078-81EE2E1D4CDE"), InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] public interface IFFPlugMain {
void SetPlugin([In, MarshalAs(UnmanagedType.LPStr)] string Filename);
void GetPtr([Out] IntPtr ptr); } You can retrieve parameter values with code like:
PlugIn.GetNumParameters(out paramCount);
for(int i = 0; i < paramCount; i++ )
and set parameters with code like:
public void UpdateParams()
I'll post a more complete sample in the near future. You can download the sources
of FreeFrame video effects from Pete Warden's
web site, for example.
|
| < Prev | Next > |
|---|











