2009-05-30 12:05:13 +00:00
|
|
|
using System;
|
|
|
|
using System.Collections;
|
|
|
|
using System.Runtime.InteropServices;
|
2009-08-05 14:57:20 +00:00
|
|
|
using Gst.GLib;
|
2009-05-30 12:05:13 +00:00
|
|
|
using Gst;
|
|
|
|
|
|
|
|
namespace Gst.CorePlugins {
|
|
|
|
[GTypeName ("GstMemIndex")]
|
|
|
|
public class MemIndex : Gst.Index {
|
|
|
|
public MemIndex (IntPtr raw) : base (raw) { }
|
|
|
|
|
|
|
|
[DllImport("libgstreamer-0.10.dll") ]
|
|
|
|
static extern IntPtr gst_index_factory_make (IntPtr index);
|
|
|
|
|
|
|
|
public MemIndex () : base (IntPtr.Zero) {
|
2009-08-05 14:57:20 +00:00
|
|
|
IntPtr native_index = Gst.GLib.Marshaller.StringToPtrGStrdup ("memindex");
|
2009-05-30 12:05:13 +00:00
|
|
|
Raw = gst_index_factory_make (native_index);
|
2009-08-05 14:57:20 +00:00
|
|
|
Gst.GLib.Marshaller.Free (native_index);
|
2009-05-30 12:05:13 +00:00
|
|
|
if (Raw == IntPtr.Zero)
|
|
|
|
throw new Exception ("Failed to instantiate index \"memindex\"");
|
|
|
|
}
|
|
|
|
|
|
|
|
public static MemIndex Make () {
|
|
|
|
return Gst.IndexFactory.Make ("memindex") as MemIndex;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|