gstreamer/gstreamer-sharp/baseplugins/XvImageSink.cs
Maarten Bosmans f665c749b6 Use libgst*.dll in DllImport attribute, instead of gst*.dll
Nescessary for .NET, which doesn't prefix the library filename
with lib automatically.
2009-05-25 12:09:52 +02:00

54 lines
1.5 KiB
C#

using System;
using System.Runtime.InteropServices;
using Gst;
using Gst.Interfaces;
namespace Gst.BasePlugins {
[GTypeName ("GstXvImageSink") ]
public class XvImageSink : Element, XOverlay {
public XvImageSink (IntPtr raw) : base (raw) { }
public static XvImageSink Make (string name) {
return ElementFactory.Make ("xvimagesink", name) as XvImageSink;
}
[DllImport ("libgstinterfaces-0.10.dll") ]
static extern void gst_x_overlay_expose (IntPtr raw);
public void Expose() {
gst_x_overlay_expose (Handle);
}
[DllImport ("libgstinterfaces-0.10.dll") ]
static extern void gst_x_overlay_handle_events (IntPtr raw, bool handle_events);
public void HandleEvents (bool handle_events) {
gst_x_overlay_handle_events (Handle, handle_events);
}
[DllImport ("libgstinterfaces-0.10.dll") ]
static extern void gst_x_overlay_got_xwindow_id (IntPtr raw, UIntPtr xwindow_id);
public void GotXwindowId (ulong xwindow_id) {
gst_x_overlay_got_xwindow_id (Handle, new UIntPtr (xwindow_id));
}
[DllImport ("libgstinterfaces-0.10.dll") ]
static extern void gst_x_overlay_prepare_xwindow_id (IntPtr raw);
public void PrepareXwindowId() {
gst_x_overlay_prepare_xwindow_id (Handle);
}
[DllImport ("libgstinterfaces-0.10.dll") ]
static extern void gst_x_overlay_set_xwindow_id (IntPtr raw, UIntPtr xwindow_id);
public ulong XwindowId {
set {
gst_x_overlay_set_xwindow_id (Handle, new UIntPtr (value));
}
}
}
}