2006-05-21 18:58:44 +00:00
|
|
|
//
|
|
|
|
// DecodeBin.cs: decodebin element binding
|
|
|
|
//
|
|
|
|
// Authors:
|
|
|
|
// Aaron Bockover (abockover@novell.com)
|
|
|
|
//
|
2009-04-08 08:16:48 +00:00
|
|
|
// Copyright (C) 2006 Novell, Inc.
|
2006-05-21 18:58:44 +00:00
|
|
|
//
|
|
|
|
|
|
|
|
using System;
|
2006-07-13 16:16:51 +00:00
|
|
|
using Gst;
|
2006-05-21 18:58:44 +00:00
|
|
|
|
2009-05-06 12:09:23 +00:00
|
|
|
namespace Gst.BasePlugins
|
2006-05-21 18:58:44 +00:00
|
|
|
{
|
|
|
|
public delegate void NewDecodedPadHandler(object o, NewDecodedPadArgs args);
|
|
|
|
|
2006-08-04 04:00:43 +00:00
|
|
|
public class NewDecodedPadArgs : GLib.SignalArgs
|
2006-05-21 18:58:44 +00:00
|
|
|
{
|
|
|
|
public Gst.Pad Pad {
|
2009-04-04 14:53:59 +00:00
|
|
|
get { return (Gst.Pad)Args[0]; }
|
2006-05-21 18:58:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public bool Last {
|
2009-04-04 14:53:59 +00:00
|
|
|
get { return (bool)Args[1]; }
|
2006-05-21 18:58:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2009-05-21 19:47:17 +00:00
|
|
|
[GTypeName("GstDecodeBin")]
|
2006-05-21 18:58:44 +00:00
|
|
|
public class DecodeBin : Bin
|
|
|
|
{
|
2006-07-13 16:16:51 +00:00
|
|
|
private Delegate new_decoded_pad_delegate;
|
|
|
|
|
2006-05-21 18:58:44 +00:00
|
|
|
public DecodeBin(IntPtr raw) : base(raw)
|
|
|
|
{
|
2006-07-13 16:16:51 +00:00
|
|
|
}
|
2009-05-06 12:09:23 +00:00
|
|
|
|
2006-08-04 04:00:43 +00:00
|
|
|
protected virtual void OnNewDecodedPad(object o, GLib.SignalArgs args)
|
2006-05-21 18:58:44 +00:00
|
|
|
{
|
2006-07-13 16:16:51 +00:00
|
|
|
BindingHelper.InvokeProxySignalDelegate(new_decoded_pad_delegate,
|
|
|
|
typeof(NewDecodedPadArgs), o, args);
|
2006-05-21 18:58:44 +00:00
|
|
|
}
|
2006-07-13 16:16:51 +00:00
|
|
|
|
|
|
|
public event NewDecodedPadHandler NewDecodedPad {
|
2006-05-21 18:58:44 +00:00
|
|
|
add {
|
2006-07-13 16:16:51 +00:00
|
|
|
new_decoded_pad_delegate = BindingHelper.AddProxySignalDelegate(this,
|
|
|
|
"new-decoded-pad", OnNewDecodedPad, new_decoded_pad_delegate, value);
|
2006-05-21 18:58:44 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
remove {
|
2006-07-13 16:16:51 +00:00
|
|
|
new_decoded_pad_delegate = BindingHelper.RemoveProxySignalDelegate(this,
|
|
|
|
"new-decoded-pad", OnNewDecodedPad, new_decoded_pad_delegate, value);
|
2006-05-21 18:58:44 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|