本文整理汇总了C#中Gst.GetClassPtr方法的典型用法代码示例。如果您正苦于以下问题:C# Gst.GetClassPtr方法的具体用法?C# Gst.GetClassPtr怎么用?C# Gst.GetClassPtr使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Gst
的用法示例。
在下文中一共展示了Gst.GetClassPtr方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetClassStruct
static GstBufferClass GetClassStruct (Gst.GLib.GType gtype, bool use_cache)
{
if (class_structs == null)
class_structs = new Hashtable ();
if (use_cache && class_structs.Contains (gtype))
return (GstBufferClass) class_structs [gtype];
else {
IntPtr class_ptr = new IntPtr (gtype.GetClassPtr ().ToInt64 () + class_offset);
GstBufferClass class_struct = (GstBufferClass) Marshal.PtrToStructure (class_ptr, typeof (GstBufferClass));
if (use_cache)
class_structs.Add (gtype, class_struct);
return class_struct;
}
}
示例2: OverrideClassStruct
static void OverrideClassStruct (Gst.GLib.GType gtype, GstMixerTrackClass class_struct)
{
IntPtr class_ptr = new IntPtr (gtype.GetClassPtr ().ToInt64 () + class_offset);
Marshal.StructureToPtr (class_struct, class_ptr, false);
}
示例3: OverrideParentSet
static void OverrideParentSet (Gst.GLib.GType gtype, ParentSetNativeDelegate callback)
{
gstsharp_object_override_parent_set (gtype.GetClassPtr (), callback);
}
示例4: OverrideHandleMessage
static void OverrideHandleMessage (Gst.GLib.GType gtype, HandleMessageNativeDelegate callback)
{
gstsharp_bin_override_handle_message (gtype.GetClassPtr (), callback);
}
示例5: OverrideDoLatency
static void OverrideDoLatency (Gst.GLib.GType gtype, DoLatencyNativeDelegate callback)
{
gstsharp_bin_override_do_latency (gtype.GetClassPtr (), callback);
}
示例6: OverrideAddElement
static void OverrideAddElement (Gst.GLib.GType gtype, AddElementNativeDelegate callback)
{
gstsharp_bin_override_add_element (gtype.GetClassPtr (), callback);
}
示例7: OverrideRemoveElement
static void OverrideRemoveElement (Gst.GLib.GType gtype, RemoveElementNativeDelegate callback)
{
gstsharp_bin_override_remove_element (gtype.GetClassPtr (), callback);
}
示例8: OverrideElementAdded
static void OverrideElementAdded (Gst.GLib.GType gtype, ElementAddedNativeDelegate callback)
{
gstsharp_bin_override_element_added (gtype.GetClassPtr (), callback);
}
示例9: OverrideClassStruct
static void OverrideClassStruct (Gst.GLib.GType gtype, GstInterpolationControlSourceClass class_struct)
{
IntPtr class_ptr = new IntPtr (gtype.GetClassPtr ().ToInt64 () + class_offset);
Marshal.StructureToPtr (class_struct, class_ptr, false);
}
示例10: OverrideClassStruct
static void OverrideClassStruct (Gst.GLib.GType gtype, GstMiniObjectClass class_struct) {
IntPtr class_ptr = gtype.GetClassPtr ();
Marshal.StructureToPtr (class_struct, class_ptr, false);
}
示例11: SetDetails
protected static void SetDetails (Gst.GLib.GType gtype, string longname, string klass, string description, string author) {
IntPtr class_ptr = new IntPtr (gtype.GetClassPtr ().ToInt64 ());
IntPtr native_longname = Gst.GLib.Marshaller.StringToPtrGStrdup (longname);
IntPtr native_klass = Gst.GLib.Marshaller.StringToPtrGStrdup (klass);
IntPtr native_desc = Gst.GLib.Marshaller.StringToPtrGStrdup (description);
IntPtr native_author = Gst.GLib.Marshaller.StringToPtrGStrdup (author);
gst_element_class_set_details_simple (class_ptr, native_longname, native_klass, native_desc, native_author);
Gst.GLib.Marshaller.Free (native_longname);
Gst.GLib.Marshaller.Free (native_klass);
Gst.GLib.Marshaller.Free (native_desc);
Gst.GLib.Marshaller.Free (native_author);
}
示例12: AddPadTemplate
protected static void AddPadTemplate (Gst.GLib.GType gtype, Gst.PadTemplate templ) {
IntPtr class_ptr = new IntPtr (gtype.GetClassPtr ().ToInt64 ());
gst_element_class_add_pad_template (class_ptr, templ.Handle);
}