mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-22 00:06:36 +00:00
parent
6cb104a67a
commit
cdc9fcd45d
1 changed files with 39 additions and 0 deletions
39
gstreamer-sharp/coreplugins/CapsFilter.cs
Normal file
39
gstreamer-sharp/coreplugins/CapsFilter.cs
Normal file
|
@ -0,0 +1,39 @@
|
|||
//
|
||||
// CapsFilter.cs: capsfilter element bindings
|
||||
//
|
||||
// Authors:
|
||||
// Maarten Bosmans <mkbosmans@gmail.com>
|
||||
//
|
||||
|
||||
using System;
|
||||
|
||||
namespace Gst.CorePlugins
|
||||
{
|
||||
[GTypeName("GstCapsFilter")]
|
||||
public class CapsFilter : Element
|
||||
{
|
||||
public CapsFilter(IntPtr raw) : base(raw)
|
||||
{
|
||||
}
|
||||
|
||||
public static CapsFilter Make(string name)
|
||||
{
|
||||
return ElementFactory.Make("capsfilter", name) as CapsFilter;
|
||||
}
|
||||
|
||||
[GLib.Property("caps")]
|
||||
public Gst.Caps Caps {
|
||||
get {
|
||||
GLib.Value val = GetProperty("caps");
|
||||
Gst.Caps caps = (Gst.Caps)val.Val;
|
||||
val.Dispose();
|
||||
return caps;
|
||||
}
|
||||
set {
|
||||
GLib.Value val = new GLib.Value(value);
|
||||
SetProperty("caps", val);
|
||||
val.Dispose();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue