public static Gst.Message NewMissingEncoder(Gst.Object src, Gst.Caps caps) { Message msg = (Message)Gst.MiniObject.GetObject(gst_missing_encoder_message_new(src.Handle, caps.Handle), true); return(msg); }
public void Merge (Caps caps) { if (!IsWritable) throw new ApplicationException (); /* Removes all structures! */ if (caps.IsAny) { RemoveStructureReferences (); } gst_caps_merge (Handle, gst_caps_copy (caps.Handle)); }
public void Append (Caps caps) { if (!IsWritable) throw new ApplicationException (); gst_caps_append (Handle, gst_caps_copy (caps.Handle)); }
protected override bool OnTransformSize(Gst.PadDirection direction, Gst.Caps caps, uint size, Gst.Caps othercaps, out uint othersize) { othersize = size; return(true); }
public static Caps NewAny() { Caps result = new Caps(gst_caps_new_any()); return(result); }
// Functions below print the capabilities in a human-friendly format static void PrintCaps(Caps caps, string pfx) { if (caps == null) return; if (caps.IsAny) { Console.WriteLine ("{0}ANY", pfx); return; } if (caps.IsEmpty) { Console.WriteLine ("{0}EMPTY", pfx); return; } for (uint i = 0; i < caps.Size; i++) { var structure = caps.GetStructure (i); Console.WriteLine ("{0}{1}", pfx, structure.Name); structure.Foreach ((field_id, value) => { var ptr = g_quark_to_string (field_id); var quark = GLib.Marshaller.Utf8PtrToString (ptr); Console.WriteLine ("{0} {1}: {2}", pfx, quark, value.Val); return true; }); } }