Update GStreamer

This commit is contained in:
Thibault Saunier 2020-06-17 14:36:28 -04:00
parent a088475b9d
commit c70e5494b3
106 changed files with 83927 additions and 17087 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1350,20 +1350,30 @@ namespace Gst.Audio {
static extern int gst_audio_decoder_finish_frame(IntPtr raw, IntPtr buf, int frames);
public Gst.FlowReturn FinishFrame(Gst.Buffer buf, int frames) {
buf.Owned = false;
int raw_ret = gst_audio_decoder_finish_frame(Handle, buf == null ? IntPtr.Zero : buf.Handle, frames);
Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret;
return ret;
}
public Gst.FlowReturn FinishFrame(int frames) {
return FinishFrame (null, frames);
}
[DllImport("gstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_audio_decoder_finish_subframe(IntPtr raw, IntPtr buf);
public Gst.FlowReturn FinishSubframe(Gst.Buffer buf) {
buf.Owned = false;
int raw_ret = gst_audio_decoder_finish_subframe(Handle, buf == null ? IntPtr.Zero : buf.Handle);
Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret;
return ret;
}
public Gst.FlowReturn FinishSubframe() {
return FinishSubframe (null);
}
[DllImport("gstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_audio_decoder_get_allocator(IntPtr raw, out IntPtr allocator, IntPtr parms);

View file

@ -1302,11 +1302,16 @@ namespace Gst.Audio {
static extern int gst_audio_encoder_finish_frame(IntPtr raw, IntPtr buffer, int samples);
public Gst.FlowReturn FinishFrame(Gst.Buffer buffer, int samples) {
buffer.Owned = false;
int raw_ret = gst_audio_encoder_finish_frame(Handle, buffer == null ? IntPtr.Zero : buffer.Handle, samples);
Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret;
return ret;
}
public Gst.FlowReturn FinishFrame(int samples) {
return FinishFrame (null, samples);
}
[DllImport("gstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_audio_encoder_get_allocator(IntPtr raw, out IntPtr allocator, IntPtr parms);

View file

@ -419,6 +419,165 @@ namespace Gst.Audio {
unmanaged (this.Handle);
}
static PauseNativeDelegate Pause_cb_delegate;
static PauseNativeDelegate PauseVMCallback {
get {
if (Pause_cb_delegate == null)
Pause_cb_delegate = new PauseNativeDelegate (Pause_cb);
return Pause_cb_delegate;
}
}
static void OverridePause (GLib.GType gtype)
{
OverridePause (gtype, PauseVMCallback);
}
static void OverridePause (GLib.GType gtype, PauseNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("pause"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void PauseNativeDelegate (IntPtr inst);
static void Pause_cb (IntPtr inst)
{
try {
AudioSink __obj = GLib.Object.GetObject (inst, false) as AudioSink;
__obj.OnPause ();
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gst.Audio.AudioSink), ConnectionMethod="OverridePause")]
protected virtual void OnPause ()
{
InternalPause ();
}
private void InternalPause ()
{
PauseNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("pause"));
unmanaged = (PauseNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(PauseNativeDelegate));
}
if (unmanaged == null) return;
unmanaged (this.Handle);
}
static ResumeNativeDelegate Resume_cb_delegate;
static ResumeNativeDelegate ResumeVMCallback {
get {
if (Resume_cb_delegate == null)
Resume_cb_delegate = new ResumeNativeDelegate (Resume_cb);
return Resume_cb_delegate;
}
}
static void OverrideResume (GLib.GType gtype)
{
OverrideResume (gtype, ResumeVMCallback);
}
static void OverrideResume (GLib.GType gtype, ResumeNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("resume"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void ResumeNativeDelegate (IntPtr inst);
static void Resume_cb (IntPtr inst)
{
try {
AudioSink __obj = GLib.Object.GetObject (inst, false) as AudioSink;
__obj.OnResume ();
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gst.Audio.AudioSink), ConnectionMethod="OverrideResume")]
protected virtual void OnResume ()
{
InternalResume ();
}
private void InternalResume ()
{
ResumeNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("resume"));
unmanaged = (ResumeNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(ResumeNativeDelegate));
}
if (unmanaged == null) return;
unmanaged (this.Handle);
}
static StopNativeDelegate Stop_cb_delegate;
static StopNativeDelegate StopVMCallback {
get {
if (Stop_cb_delegate == null)
Stop_cb_delegate = new StopNativeDelegate (Stop_cb);
return Stop_cb_delegate;
}
}
static void OverrideStop (GLib.GType gtype)
{
OverrideStop (gtype, StopVMCallback);
}
static void OverrideStop (GLib.GType gtype, StopNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("stop"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate void StopNativeDelegate (IntPtr inst);
static void Stop_cb (IntPtr inst)
{
try {
AudioSink __obj = GLib.Object.GetObject (inst, false) as AudioSink;
__obj.OnStop ();
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, false);
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gst.Audio.AudioSink), ConnectionMethod="OverrideStop")]
protected virtual void OnStop ()
{
InternalStop ();
}
private void InternalStop ()
{
StopNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("stop"));
unmanaged = (StopNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(StopNativeDelegate));
}
if (unmanaged == null) return;
unmanaged (this.Handle);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
@ -478,14 +637,38 @@ namespace Gst.Audio {
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // reset
, "delay"
, "_gst_reserved"
, "pause"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gst_reserved"
new GLib.AbiField("pause"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _gst_reserved
, (uint) Marshal.SizeOf(typeof(IntPtr)) // pause
, "reset"
, "resume"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("resume"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // resume
, "pause"
, "stop"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("stop"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // stop
, "resume"
, "extension"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("extension"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // extension
, "stop"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0

View file

@ -0,0 +1,45 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.Audio {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct AudioSinkClassExtension : IEquatable<AudioSinkClassExtension> {
private IntPtr _clear_all;
public static Gst.Audio.AudioSinkClassExtension Zero = new Gst.Audio.AudioSinkClassExtension ();
public static Gst.Audio.AudioSinkClassExtension New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Gst.Audio.AudioSinkClassExtension.Zero;
return (Gst.Audio.AudioSinkClassExtension) Marshal.PtrToStructure (raw, typeof (Gst.Audio.AudioSinkClassExtension));
}
public bool Equals (AudioSinkClassExtension other)
{
return true && _clear_all.Equals (other._clear_all);
}
public override bool Equals (object other)
{
return other is AudioSinkClassExtension && Equals ((AudioSinkClassExtension) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ _clear_all.GetHashCode ();
}
private static GLib.GType GType {
get { return GLib.GType.Pointer; }
}
#endregion
}
}

View file

@ -25,7 +25,7 @@ namespace Gst.Audio {
public const int AUDIO_DEF_RATE = 44100;
public const string AUDIO_ENCODER_SINK_NAME = @"sink";
public const string AUDIO_ENCODER_SRC_NAME = @"src";
public const string AUDIO_FORMATS_ALL = @" { S8, U8, S16LE, S16BE, U16LE, U16BE, S24_32LE, S24_32BE, U24_32LE, U24_32BE, S32LE, S32BE, U32LE, U32BE, S24LE, S24BE, U24LE, U24BE, S20LE, S20BE, U20LE, U20BE, S18LE, S18BE, U18LE, U18BE, F32LE, F32BE, F64LE, F64BE }";
public const string AUDIO_FORMATS_ALL = @"{ F64BE, F64LE, F32BE, F32LE, S32BE, S32LE, U32BE, U32LE, S24_32BE, S24_32LE, U24_32BE, U24_32LE, S24BE, S24LE, U24BE, U24LE, S20BE, S20LE, U20BE, U20LE, S18BE, S18LE, U18BE, U18LE, S16BE, S16LE, U16BE, U16LE, S8, U8 }";
public const string AUDIO_RATE_RANGE = @"(int) [ 1, max ]";
public const string AUDIO_RESAMPLER_OPT_CUBIC_B = @"GstAudioResampler.cubic-b";
public const string AUDIO_RESAMPLER_OPT_CUBIC_C = @"GstAudioResampler.cubic-c";

View file

@ -251,6 +251,23 @@ namespace Gst.Audio {
return ret;
}
[DllImport("gstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_audio_make_raw_caps(int[] formats, uint len, int layout);
public static Gst.Caps AudioMakeRawCaps(Gst.Audio.AudioFormat[] formats, uint len, Gst.Audio.AudioLayout layout) {
int cnt_formats = formats == null ? 0 : formats.Length;
int[] native_formats = new int [cnt_formats];
for (int i = 0; i < cnt_formats; i++)
native_formats [i] = (int) formats[i];
IntPtr raw_ret = gst_audio_make_raw_caps(native_formats, len, (int) layout);
Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Caps), true);
return ret;
}
public static Gst.Caps AudioMakeRawCaps(uint len, Gst.Audio.AudioLayout layout) {
return AudioMakeRawCaps (null, len, layout);
}
[DllImport("gstaudio-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_audio_meta_api_get_type();

View file

@ -65,6 +65,21 @@ namespace Gst.Base {
}
}
[GLib.Property ("start-time-selection")]
public Gst.Base.AggregatorStartTimeSelection StartTimeSelection {
get {
GLib.Value val = GetProperty ("start-time-selection");
Gst.Base.AggregatorStartTimeSelection ret = (Gst.Base.AggregatorStartTimeSelection) (Enum) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value((Enum) value);
SetProperty("start-time-selection", val);
val.Dispose ();
}
}
public Gst.Pad Srcpad {
get {
unsafe {
@ -1065,6 +1080,180 @@ namespace Gst.Base {
return __result;
}
static NegotiateNativeDelegate Negotiate_cb_delegate;
static NegotiateNativeDelegate NegotiateVMCallback {
get {
if (Negotiate_cb_delegate == null)
Negotiate_cb_delegate = new NegotiateNativeDelegate (Negotiate_cb);
return Negotiate_cb_delegate;
}
}
static void OverrideNegotiate (GLib.GType gtype)
{
OverrideNegotiate (gtype, NegotiateVMCallback);
}
static void OverrideNegotiate (GLib.GType gtype, NegotiateNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("negotiate"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool NegotiateNativeDelegate (IntPtr inst);
static bool Negotiate_cb (IntPtr inst)
{
try {
Aggregator __obj = GLib.Object.GetObject (inst, false) as Aggregator;
bool __result;
__result = __obj.OnNegotiate ();
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gst.Base.Aggregator), ConnectionMethod="OverrideNegotiate")]
protected virtual bool OnNegotiate ()
{
return InternalNegotiate ();
}
private bool InternalNegotiate ()
{
NegotiateNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("negotiate"));
unmanaged = (NegotiateNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(NegotiateNativeDelegate));
}
if (unmanaged == null) return false;
bool __result = unmanaged (this.Handle);
return __result;
}
static SinkEventPreQueueNativeDelegate SinkEventPreQueue_cb_delegate;
static SinkEventPreQueueNativeDelegate SinkEventPreQueueVMCallback {
get {
if (SinkEventPreQueue_cb_delegate == null)
SinkEventPreQueue_cb_delegate = new SinkEventPreQueueNativeDelegate (SinkEventPreQueue_cb);
return SinkEventPreQueue_cb_delegate;
}
}
static void OverrideSinkEventPreQueue (GLib.GType gtype)
{
OverrideSinkEventPreQueue (gtype, SinkEventPreQueueVMCallback);
}
static void OverrideSinkEventPreQueue (GLib.GType gtype, SinkEventPreQueueNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("sink_event_pre_queue"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate int SinkEventPreQueueNativeDelegate (IntPtr inst, IntPtr aggregator_pad, IntPtr evnt);
static int SinkEventPreQueue_cb (IntPtr inst, IntPtr aggregator_pad, IntPtr evnt)
{
try {
Aggregator __obj = GLib.Object.GetObject (inst, false) as Aggregator;
Gst.FlowReturn __result;
__result = __obj.OnSinkEventPreQueue (GLib.Object.GetObject(aggregator_pad) as Gst.Base.AggregatorPad, evnt == IntPtr.Zero ? null : (Gst.Event) GLib.Opaque.GetOpaque (evnt, typeof (Gst.Event), false));
return (int) __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gst.Base.Aggregator), ConnectionMethod="OverrideSinkEventPreQueue")]
protected virtual Gst.FlowReturn OnSinkEventPreQueue (Gst.Base.AggregatorPad aggregator_pad, Gst.Event evnt)
{
return InternalSinkEventPreQueue (aggregator_pad, evnt);
}
private Gst.FlowReturn InternalSinkEventPreQueue (Gst.Base.AggregatorPad aggregator_pad, Gst.Event evnt)
{
SinkEventPreQueueNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("sink_event_pre_queue"));
unmanaged = (SinkEventPreQueueNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SinkEventPreQueueNativeDelegate));
}
if (unmanaged == null) return (Gst.FlowReturn) 0;
int __result = unmanaged (this.Handle, aggregator_pad == null ? IntPtr.Zero : aggregator_pad.Handle, evnt == null ? IntPtr.Zero : evnt.Handle);
return (Gst.FlowReturn) __result;
}
static SinkQueryPreQueueNativeDelegate SinkQueryPreQueue_cb_delegate;
static SinkQueryPreQueueNativeDelegate SinkQueryPreQueueVMCallback {
get {
if (SinkQueryPreQueue_cb_delegate == null)
SinkQueryPreQueue_cb_delegate = new SinkQueryPreQueueNativeDelegate (SinkQueryPreQueue_cb);
return SinkQueryPreQueue_cb_delegate;
}
}
static void OverrideSinkQueryPreQueue (GLib.GType gtype)
{
OverrideSinkQueryPreQueue (gtype, SinkQueryPreQueueVMCallback);
}
static void OverrideSinkQueryPreQueue (GLib.GType gtype, SinkQueryPreQueueNativeDelegate callback)
{
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) gtype.GetClassPtr()) + (long) class_abi.GetFieldOffset("sink_query_pre_queue"));
*raw_ptr = Marshal.GetFunctionPointerForDelegate((Delegate) callback);
}
}
[UnmanagedFunctionPointer (CallingConvention.Cdecl)]
delegate bool SinkQueryPreQueueNativeDelegate (IntPtr inst, IntPtr aggregator_pad, IntPtr query);
static bool SinkQueryPreQueue_cb (IntPtr inst, IntPtr aggregator_pad, IntPtr query)
{
try {
Aggregator __obj = GLib.Object.GetObject (inst, false) as Aggregator;
bool __result;
__result = __obj.OnSinkQueryPreQueue (GLib.Object.GetObject(aggregator_pad) as Gst.Base.AggregatorPad, query == IntPtr.Zero ? null : (Gst.Query) GLib.Opaque.GetOpaque (query, typeof (Gst.Query), false));
return __result;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
throw e;
}
}
[GLib.DefaultSignalHandler(Type=typeof(Gst.Base.Aggregator), ConnectionMethod="OverrideSinkQueryPreQueue")]
protected virtual bool OnSinkQueryPreQueue (Gst.Base.AggregatorPad aggregator_pad, Gst.Query query)
{
return InternalSinkQueryPreQueue (aggregator_pad, query);
}
private bool InternalSinkQueryPreQueue (Gst.Base.AggregatorPad aggregator_pad, Gst.Query query)
{
SinkQueryPreQueueNativeDelegate unmanaged = null;
unsafe {
IntPtr* raw_ptr = (IntPtr*)(((long) this.LookupGType().GetThresholdType().GetClassPtr()) + (long) class_abi.GetFieldOffset("sink_query_pre_queue"));
unmanaged = (SinkQueryPreQueueNativeDelegate) Marshal.GetDelegateForFunctionPointer(*raw_ptr, typeof(SinkQueryPreQueueNativeDelegate));
}
if (unmanaged == null) return false;
bool __result = unmanaged (this.Handle, aggregator_pad == null ? IntPtr.Zero : aggregator_pad.Handle, query == null ? IntPtr.Zero : query.Handle);
return __result;
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
@ -1212,14 +1401,38 @@ namespace Gst.Base {
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // propose_allocation
, "decide_allocation"
, "negotiate"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("negotiate"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // negotiate
, "propose_allocation"
, "sink_event_pre_queue"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("sink_event_pre_queue"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // sink_event_pre_queue
, "negotiate"
, "sink_query_pre_queue"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("sink_query_pre_queue"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // sink_query_pre_queue
, "sink_event_pre_queue"
, "_gst_reserved"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_gst_reserved"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 20 // _gst_reserved
, "propose_allocation"
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 17 // _gst_reserved
, "sink_query_pre_queue"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
@ -1277,6 +1490,15 @@ namespace Gst.Base {
}
}
[DllImport("gstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_aggregator_negotiate(IntPtr raw);
public bool Negotiate() {
bool raw_ret = gst_aggregator_negotiate(Handle);
bool ret = raw_ret;
return ret;
}
[DllImport("gstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_aggregator_set_latency(IntPtr raw, ulong min_latency, ulong max_latency);
@ -1302,6 +1524,15 @@ namespace Gst.Base {
return ret;
}
[DllImport("gstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_aggregator_update_segment(IntPtr raw, IntPtr segment);
public void UpdateSegment(Gst.Segment segment) {
IntPtr native_segment = GLib.Marshaller.StructureToPtrAlloc (segment);
gst_aggregator_update_segment(Handle, native_segment);
Marshal.FreeHGlobal (native_segment);
}
static Aggregator ()
{

View file

@ -0,0 +1,29 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.Base {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[GLib.GType (typeof (Gst.Base.AggregatorStartTimeSelectionGType))]
public enum AggregatorStartTimeSelection {
Zero = 0,
First = 1,
Set = 2,
}
internal class AggregatorStartTimeSelectionGType {
[DllImport ("gstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_aggregator_start_time_selection_get_type ();
public static GLib.GType GType {
get {
return new GLib.GType (gst_aggregator_start_time_selection_get_type ());
}
}
}
#endregion
}

View file

@ -165,6 +165,18 @@ namespace Gst.Base {
}
}
[DllImport("gstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_base_sink_get_stats(IntPtr raw);
[GLib.Property ("stats")]
public Gst.Structure Stats {
get {
IntPtr raw_ret = gst_base_sink_get_stats(Handle);
Gst.Structure ret = raw_ret == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Structure), true);
return ret;
}
}
[DllImport("gstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_base_sink_get_sync(IntPtr raw);

View file

@ -1567,6 +1567,15 @@ namespace Gst.Base {
}
}
[DllImport("gstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_base_src_negotiate(IntPtr raw);
public bool Negotiate() {
bool raw_ret = gst_base_src_negotiate(Handle);
bool ret = raw_ret;
return ret;
}
[DllImport("gstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_base_src_new_seamless_segment(IntPtr raw, long start, long stop, long time);

View file

@ -1664,6 +1664,15 @@ namespace Gst.Base {
}
}
[DllImport("gstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_base_transform_reconfigure(IntPtr raw);
public bool Reconfigure() {
bool raw_ret = gst_base_transform_reconfigure(Handle);
bool ret = raw_ret;
return ret;
}
[DllImport("gstbase-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_base_transform_reconfigure_sink(IntPtr raw);

View file

@ -35,6 +35,30 @@ namespace Gst.Controller {
GLib.Marshaller.Free (native_ref_property_name);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _class_abi = null;
static public new GLib.AbiStruct class_abi {
get {
if (_class_abi == null)
_class_abi = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("_padding"
, Gst.ControlBinding.class_abi.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding
, null
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _class_abi;
}
}
// End of the ABI representation.
[DllImport("gstcontroller-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_proxy_control_binding_get_type();
@ -51,6 +75,46 @@ namespace Gst.Controller {
{
GtkSharp.GstreamerSharp.ObjectManager.Initialize ();
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;
static public new GLib.AbiStruct abi_info {
get {
if (_abi_info == null)
_abi_info = new GLib.AbiStruct (new List<GLib.AbiField>{
new GLib.AbiField("ref_object"
, Gst.ControlBinding.abi_info.Fields
, (uint) Marshal.SizeOf(typeof(IntPtr)) // ref_object
, null
, "property_name"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("property_name"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // property_name
, "ref_object"
, "_padding"
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
new GLib.AbiField("_padding"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) * 4 // _padding
, "property_name"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
});
return _abi_info;
}
}
// End of the ABI representation.
#endregion
}
}

View file

@ -87,6 +87,15 @@ namespace Gst.Net {
return ret;
}
[DllImport("gstnet-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_net_utils_set_socket_tos(IntPtr socket, int qos_dscp);
public static bool NetUtilsSetSocketTos(GLib.Socket socket, int qos_dscp) {
bool raw_ret = gst_net_utils_set_socket_tos(socket == null ? IntPtr.Zero : socket.Handle, qos_dscp);
bool ret = raw_ret;
return ret;
}
[DllImport("gstnet-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_ptp_deinit();

View file

@ -263,6 +263,23 @@ namespace Gst.PbUtils {
}
}
[DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_encoding_profile_get_single_segment(IntPtr raw);
[DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_encoding_profile_set_single_segment(IntPtr raw, bool single_segment);
public bool SingleSegment {
get {
bool raw_ret = gst_encoding_profile_get_single_segment(Handle);
bool ret = raw_ret;
return ret;
}
set {
gst_encoding_profile_set_single_segment(Handle, value);
}
}
[DllImport("gstpbutils-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_encoding_profile_get_type_nick(IntPtr raw);

View file

@ -22,6 +22,7 @@ namespace Gst.Rtp {
PsfbTypeTstr = 5,
PsfbTypeTstn = 6,
PsfbTypeVbcn = 7,
RtpfbTypeTwcc = 15,
PsfbTypeAfb = 15,
}

View file

@ -18,6 +18,21 @@ namespace Gst.Rtp {
CreateNativeObject (new string [0], new GLib.Value [0]);
}
[GLib.Property ("max-reorder")]
public int MaxReorder {
get {
GLib.Value val = GetProperty ("max-reorder");
int ret = (int) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("max-reorder", val);
val.Dispose ();
}
}
[GLib.Property ("source-info")]
public bool SourceInfo {
get {

View file

@ -123,6 +123,21 @@ namespace Gst.Rtp {
}
}
[GLib.Property ("scale-rtptime")]
public bool ScaleRtptime {
get {
GLib.Value val = GetProperty ("scale-rtptime");
bool ret = (bool) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("scale-rtptime", val);
val.Dispose ();
}
}
[GLib.Property ("seqnum")]
public uint Seqnum {
get {
@ -213,6 +228,21 @@ namespace Gst.Rtp {
}
}
[GLib.Property ("twcc-ext-id")]
public uint TwccExtId {
get {
GLib.Value val = GetProperty ("twcc-ext-id");
uint ret = (uint) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("twcc-ext-id", val);
val.Dispose ();
}
}
static GetCapsNativeDelegate GetCaps_cb_delegate;
static GetCapsNativeDelegate GetCapsVMCallback {
get {

View file

@ -30,15 +30,26 @@ namespace Gst.Rtsp {
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_connection_connect(IntPtr raw, IntPtr timeout);
[Obsolete]
public Gst.Rtsp.RTSPResult Connect(IntPtr timeout) {
int raw_ret = gst_rtsp_connection_connect(Handle, timeout);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
return ret;
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_connection_connect_usec(IntPtr raw, long timeout);
public Gst.Rtsp.RTSPResult ConnectUsec(long timeout) {
int raw_ret = gst_rtsp_connection_connect_usec(Handle, timeout);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
return ret;
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_connection_connect_with_response(IntPtr raw, IntPtr timeout, IntPtr response);
[Obsolete]
public Gst.Rtsp.RTSPResult ConnectWithResponse(IntPtr timeout, Gst.Rtsp.RTSPMessage response) {
IntPtr native_response = GLib.Marshaller.StructureToPtrAlloc (response);
int raw_ret = gst_rtsp_connection_connect_with_response(Handle, timeout, native_response);
@ -47,6 +58,17 @@ namespace Gst.Rtsp {
return ret;
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_connection_connect_with_response_usec(IntPtr raw, long timeout, IntPtr response);
public Gst.Rtsp.RTSPResult ConnectWithResponseUsec(long timeout, Gst.Rtsp.RTSPMessage response) {
IntPtr native_response = GLib.Marshaller.StructureToPtrAlloc (response);
int raw_ret = gst_rtsp_connection_connect_with_response_usec(Handle, timeout, native_response);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
Marshal.FreeHGlobal (native_response);
return ret;
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_connection_do_tunnel(IntPtr raw, IntPtr conn2);
@ -224,33 +246,64 @@ namespace Gst.Rtsp {
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_connection_next_timeout(IntPtr raw, IntPtr timeout);
[Obsolete]
public Gst.Rtsp.RTSPResult NextTimeout(IntPtr timeout) {
int raw_ret = gst_rtsp_connection_next_timeout(Handle, timeout);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
return ret;
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern long gst_rtsp_connection_next_timeout_usec(IntPtr raw);
public long NextTimeoutUsec() {
long raw_ret = gst_rtsp_connection_next_timeout_usec(Handle);
long ret = raw_ret;
return ret;
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_connection_poll(IntPtr raw, int events, int revents, IntPtr timeout);
[Obsolete]
public Gst.Rtsp.RTSPResult Poll(Gst.Rtsp.RTSPEvent events, Gst.Rtsp.RTSPEvent revents, IntPtr timeout) {
int raw_ret = gst_rtsp_connection_poll(Handle, (int) events, (int) revents, timeout);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
return ret;
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_connection_poll_usec(IntPtr raw, int events, int revents, long timeout);
public Gst.Rtsp.RTSPResult PollUsec(Gst.Rtsp.RTSPEvent events, Gst.Rtsp.RTSPEvent revents, long timeout) {
int raw_ret = gst_rtsp_connection_poll_usec(Handle, (int) events, (int) revents, timeout);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
return ret;
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_connection_read(IntPtr raw, byte data, uint size, IntPtr timeout);
[Obsolete]
public Gst.Rtsp.RTSPResult Read(byte data, uint size, IntPtr timeout) {
int raw_ret = gst_rtsp_connection_read(Handle, data, size, timeout);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
return ret;
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_connection_read_usec(IntPtr raw, byte data, uint size, long timeout);
public Gst.Rtsp.RTSPResult ReadUsec(byte data, uint size, long timeout) {
int raw_ret = gst_rtsp_connection_read_usec(Handle, data, size, timeout);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
return ret;
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_connection_receive(IntPtr raw, IntPtr message, IntPtr timeout);
[Obsolete]
public Gst.Rtsp.RTSPResult Receive(Gst.Rtsp.RTSPMessage message, IntPtr timeout) {
IntPtr native_message = GLib.Marshaller.StructureToPtrAlloc (message);
int raw_ret = gst_rtsp_connection_receive(Handle, native_message, timeout);
@ -259,6 +312,17 @@ namespace Gst.Rtsp {
return ret;
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_connection_receive_usec(IntPtr raw, IntPtr message, long timeout);
public Gst.Rtsp.RTSPResult ReceiveUsec(Gst.Rtsp.RTSPMessage message, long timeout) {
IntPtr native_message = GLib.Marshaller.StructureToPtrAlloc (message);
int raw_ret = gst_rtsp_connection_receive_usec(Handle, native_message, timeout);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
Marshal.FreeHGlobal (native_message);
return ret;
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_connection_reset_timeout(IntPtr raw);
@ -271,6 +335,7 @@ namespace Gst.Rtsp {
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_connection_send(IntPtr raw, IntPtr message, IntPtr timeout);
[Obsolete]
public Gst.Rtsp.RTSPResult Send(Gst.Rtsp.RTSPMessage message, IntPtr timeout) {
IntPtr native_message = GLib.Marshaller.StructureToPtrAlloc (message);
int raw_ret = gst_rtsp_connection_send(Handle, native_message, timeout);
@ -282,12 +347,33 @@ namespace Gst.Rtsp {
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_connection_send_messages(IntPtr raw, Gst.Rtsp.RTSPMessage[] messages, uint n_messages, IntPtr timeout);
[Obsolete]
public Gst.Rtsp.RTSPResult SendMessages(Gst.Rtsp.RTSPMessage[] messages, IntPtr timeout) {
int raw_ret = gst_rtsp_connection_send_messages(Handle, messages, (uint) (messages == null ? 0 : messages.Length), timeout);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
return ret;
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_connection_send_messages_usec(IntPtr raw, Gst.Rtsp.RTSPMessage[] messages, uint n_messages, long timeout);
public Gst.Rtsp.RTSPResult SendMessagesUsec(Gst.Rtsp.RTSPMessage[] messages, long timeout) {
int raw_ret = gst_rtsp_connection_send_messages_usec(Handle, messages, (uint) (messages == null ? 0 : messages.Length), timeout);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
return ret;
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_connection_send_usec(IntPtr raw, IntPtr message, long timeout);
public Gst.Rtsp.RTSPResult SendUsec(Gst.Rtsp.RTSPMessage message, long timeout) {
IntPtr native_message = GLib.Marshaller.StructureToPtrAlloc (message);
int raw_ret = gst_rtsp_connection_send_usec(Handle, native_message, timeout);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
Marshal.FreeHGlobal (native_message);
return ret;
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_connection_set_accept_certificate_func(IntPtr raw, Gst.RtspSharp.RTSPConnectionAcceptCertificateFuncNative func, IntPtr user_data, GLib.DestroyNotify destroy_notify);
@ -331,6 +417,15 @@ namespace Gst.Rtsp {
GLib.Marshaller.Free (native_value);
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_connection_set_content_length_limit(IntPtr raw, uint limit);
public uint ContentLengthLimit {
set {
gst_rtsp_connection_set_content_length_limit(Handle, value);
}
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_rtsp_connection_set_http_mode(IntPtr raw, bool enable);
@ -381,12 +476,22 @@ namespace Gst.Rtsp {
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_connection_write(IntPtr raw, byte data, uint size, IntPtr timeout);
[Obsolete]
public Gst.Rtsp.RTSPResult Write(byte data, uint size, IntPtr timeout) {
int raw_ret = gst_rtsp_connection_write(Handle, data, size, timeout);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
return ret;
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_connection_write_usec(IntPtr raw, byte data, uint size, long timeout);
public Gst.Rtsp.RTSPResult WriteUsec(byte data, uint size, long timeout) {
int raw_ret = gst_rtsp_connection_write_usec(Handle, data, size, timeout);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
return ret;
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_connection_accept(IntPtr socket, out IntPtr conn, IntPtr cancellable);

View file

@ -81,6 +81,21 @@ namespace Gst.Rtsp {
}
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_rtsp_url_get_request_uri_with_control(IntPtr raw, IntPtr control_path);
public string GetRequestUriWithControl(string control_path) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
IntPtr native_control_path = GLib.Marshaller.StringToPtrGStrdup (control_path);
IntPtr raw_ret = gst_rtsp_url_get_request_uri_with_control(this_as_native, native_control_path);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_control_path);
return ret;
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_url_set_port(IntPtr raw, ushort port);

View file

@ -75,12 +75,22 @@ namespace Gst.Rtsp {
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_watch_wait_backlog(IntPtr raw, IntPtr timeout);
[Obsolete]
public Gst.Rtsp.RTSPResult WaitBacklog(IntPtr timeout) {
int raw_ret = gst_rtsp_watch_wait_backlog(Handle, timeout);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
return ret;
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_watch_wait_backlog_usec(IntPtr raw, long timeout);
public Gst.Rtsp.RTSPResult WaitBacklogUsec(long timeout) {
int raw_ret = gst_rtsp_watch_wait_backlog_usec(Handle, timeout);
Gst.Rtsp.RTSPResult ret = (Gst.Rtsp.RTSPResult) raw_ret;
return ret;
}
[DllImport("gstrtsp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_rtsp_watch_write_data(IntPtr raw, byte[] data, uint size, out uint id);

View file

@ -11,6 +11,8 @@ namespace Gst.Tags {
#region Autogenerated code
public partial class Constants {
public const string TAG_ACOUSTID_FINGERPRINT = @"chromaprint-fingerprint";
public const string TAG_ACOUSTID_ID = @"acoustid-id";
public const string TAG_CAPTURING_CONTRAST = @"capturing-contrast";
public const string TAG_CAPTURING_DIGITAL_ZOOM_RATIO = @"capturing-digital-zoom-ratio";
public const string TAG_CAPTURING_EXPOSURE_COMPENSATION = @"capturing-exposure-compensation";
@ -44,6 +46,8 @@ namespace Gst.Tags {
public const string TAG_MUSICBRAINZ_ALBUMARTISTID = @"musicbrainz-albumartistid";
public const string TAG_MUSICBRAINZ_ALBUMID = @"musicbrainz-albumid";
public const string TAG_MUSICBRAINZ_ARTISTID = @"musicbrainz-artistid";
public const string TAG_MUSICBRAINZ_RELEASEGROUPID = @"musicbrainz-releasegroupid";
public const string TAG_MUSICBRAINZ_RELEASETRACKID = @"musicbrainz-releasetrackid";
public const string TAG_MUSICBRAINZ_TRACKID = @"musicbrainz-trackid";
public const string TAG_MUSICBRAINZ_TRMID = @"musicbrainz-trmid";
#endregion

View file

@ -25,6 +25,9 @@ namespace Gst.Video {
public const string META_TAG_VIDEO_SIZE_STR = @"size";
public const string META_TAG_VIDEO_STR = @"video";
public const string VIDEO_COLORIMETRY_BT2020 = @"bt2020";
public const string VIDEO_COLORIMETRY_BT2020_10 = @"bt2020-10";
public const string VIDEO_COLORIMETRY_BT2100_HLG = @"bt2100-hlg";
public const string VIDEO_COLORIMETRY_BT2100_PQ = @"bt2100-pq";
public const string VIDEO_COLORIMETRY_BT601 = @"bt601";
public const string VIDEO_COLORIMETRY_BT709 = @"bt709";
public const string VIDEO_COLORIMETRY_SMPTE240M = @"smpte240m";
@ -65,11 +68,10 @@ namespace Gst.Video {
public const string VIDEO_DECODER_SRC_NAME = @"src";
public const string VIDEO_ENCODER_SINK_NAME = @"sink";
public const string VIDEO_ENCODER_SRC_NAME = @"src";
public const string VIDEO_FORMATS_ALL = @"{ I420, YV12, YUY2, UYVY, AYUV, VUYA, RGBx, BGRx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, Y41B, Y42B, YVYU, Y444, v210, v216, Y210, Y410, NV12, NV21, GRAY8, GRAY16_BE, GRAY16_LE, v308, RGB16, BGR16, RGB15, BGR15, UYVP, A420, RGB8P, YUV9, YVU9, IYU1, ARGB64, AYUV64, r210, I420_10BE, I420_10LE, I422_10BE, I422_10LE, Y444_10BE, Y444_10LE, GBR, GBR_10BE, GBR_10LE, NV16, NV24, NV12_64Z32, A420_10BE, A420_10LE, A422_10BE, A422_10LE, A444_10BE, A444_10LE, NV61, P010_10BE, P010_10LE, IYU2, VYUY, GBRA, GBRA_10BE, GBRA_10LE, BGR10A2_LE, GBR_12BE, GBR_12LE, GBRA_12BE, GBRA_12LE, I420_12BE, I420_12LE, I422_12BE, I422_12LE, Y444_12BE, Y444_12LE, GRAY10_LE32, NV12_10LE32, NV16_10LE32, NV12_10LE40 }";
public const string VIDEO_FORMATS_ALL = @"{ AYUV64, ARGB64, GBRA_12BE, GBRA_12LE, Y412_BE, Y412_LE, A444_10BE, GBRA_10BE, A444_10LE, GBRA_10LE, A422_10BE, A422_10LE, A420_10BE, A420_10LE, Y410, RGB10A2_LE, BGR10A2_LE, GBRA, ABGR, VUYA, BGRA, AYUV, ARGB, RGBA, A420, Y444_16BE, Y444_16LE, v216, P016_BE, P016_LE, Y444_12BE, GBR_12BE, Y444_12LE, GBR_12LE, I422_12BE, I422_12LE, Y212_BE, Y212_LE, I420_12BE, I420_12LE, P012_BE, P012_LE, Y444_10BE, GBR_10BE, Y444_10LE, GBR_10LE, r210, I422_10BE, I422_10LE, NV16_10LE32, Y210, v210, UYVP, I420_10BE, I420_10LE, P010_10BE, P010_10LE, NV12_10LE32, NV12_10LE40, Y444, GBR, NV24, xBGR, BGRx, xRGB, RGBx, BGR, IYU2, v308, RGB, Y42B, NV61, NV16, VYUY, UYVY, YVYU, YUY2, I420, YV12, NV21, NV12, NV12_64Z32, Y41B, IYU1, YVU9, YUV9, RGB16, BGR16, RGB15, BGR15, RGB8P, GRAY16_BE, GRAY16_LE, GRAY10_LE32, GRAY8 }";
public const string VIDEO_FPS_RANGE = @"(fraction) [ 0, max ]";
public const int VIDEO_MAX_COMPONENTS = 4;
public const int VIDEO_MAX_PLANES = 4;
public const string VIDEO_OVERLAY_COMPOSITION_BLEND_FORMATS = @"{ BGRx, RGBx, xRGB, xBGR, RGBA, BGRA, ARGB, ABGR, RGB, BGR, I420, YV12, AYUV, YUY2, UYVY, v308, Y41B, Y42B, Y444, NV12, NV21, A420, YUV9, YVU9, IYU1, GRAY8 }";
public const string VIDEO_RESAMPLER_OPT_CUBIC_B = @"GstVideoResampler.cubic-b";
public const string VIDEO_RESAMPLER_OPT_CUBIC_C = @"GstVideoResampler.cubic-c";
public const string VIDEO_RESAMPLER_OPT_ENVELOPE = @"GstVideoResampler.envelope";

View file

@ -11,6 +11,15 @@ namespace Gst.Video {
#region Autogenerated code
public partial class Global {
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_buffer_add_video_afd_meta(IntPtr buffer, byte field, int spec, int afd);
public static Gst.Video.VideoAFDMeta BufferAddVideoAfdMeta(Gst.Buffer buffer, byte field, Gst.Video.VideoAFDSpec spec, Gst.Video.VideoAFDValue afd) {
IntPtr raw_ret = gst_buffer_add_video_afd_meta(buffer == null ? IntPtr.Zero : buffer.Handle, field, (int) spec, (int) afd);
Gst.Video.VideoAFDMeta ret = Gst.Video.VideoAFDMeta.New (raw_ret);
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_buffer_add_video_affine_transformation_meta(IntPtr buffer);
@ -20,6 +29,15 @@ namespace Gst.Video {
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_buffer_add_video_bar_meta(IntPtr buffer, byte field, bool is_letterbox, uint bar_data1, uint bar_data2);
public static Gst.Video.VideoBarMeta BufferAddVideoBarMeta(Gst.Buffer buffer, byte field, bool is_letterbox, uint bar_data1, uint bar_data2) {
IntPtr raw_ret = gst_buffer_add_video_bar_meta(buffer == null ? IntPtr.Zero : buffer.Handle, field, is_letterbox, bar_data1, bar_data2);
Gst.Video.VideoBarMeta ret = Gst.Video.VideoBarMeta.New (raw_ret);
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_buffer_add_video_caption_meta(IntPtr buffer, int caption_type, byte[] data, UIntPtr size);
@ -206,6 +224,15 @@ namespace Gst.Video {
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_navigation_event_parse_mouse_scroll_event(IntPtr evnt, out double x, out double y, out double delta_x, out double delta_y);
public static bool NavigationEventParseMouseScrollEvent(Gst.Event evnt, out double x, out double y, out double delta_x, out double delta_y) {
bool raw_ret = gst_navigation_event_parse_mouse_scroll_event(evnt == null ? IntPtr.Zero : evnt.Handle, out x, out y, out delta_x, out delta_y);
bool ret = raw_ret;
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_navigation_message_get_type(IntPtr message);
@ -354,6 +381,24 @@ namespace Gst.Video {
gst_navigation_query_set_commandsv(query == null ? IntPtr.Zero : query.Handle, (cmds == null ? 0 : cmds.Length), native_cmds);
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_video_afd_meta_api_get_type();
public static GLib.GType VideoAfdMetaApiGetType() {
IntPtr raw_ret = gst_video_afd_meta_api_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_video_afd_meta_get_info();
public static Gst.MetaInfo VideoAfdMetaGetInfo() {
IntPtr raw_ret = gst_video_afd_meta_get_info();
Gst.MetaInfo ret = Gst.MetaInfo.New (raw_ret);
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_video_affine_transformation_meta_api_get_type();
@ -372,6 +417,24 @@ namespace Gst.Video {
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_video_bar_meta_api_get_type();
public static GLib.GType VideoBarMetaApiGetType() {
IntPtr raw_ret = gst_video_bar_meta_api_get_type();
GLib.GType ret = new GLib.GType(raw_ret);
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_video_bar_meta_get_info();
public static Gst.MetaInfo VideoBarMetaGetInfo() {
IntPtr raw_ret = gst_video_bar_meta_get_info();
Gst.MetaInfo ret = Gst.MetaInfo.New (raw_ret);
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_blend(IntPtr dest, IntPtr src, int x, int y, float global_alpha);
@ -472,6 +535,15 @@ namespace Gst.Video {
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_video_color_matrix_from_iso(uint value);
public static Gst.Video.VideoColorMatrix VideoColorMatrixFromIso(uint value) {
int raw_ret = gst_video_color_matrix_from_iso(value);
Gst.Video.VideoColorMatrix ret = (Gst.Video.VideoColorMatrix) raw_ret;
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_color_matrix_get_Kr_Kb(int matrix, out double Kr, out double Kb);
@ -481,6 +553,24 @@ namespace Gst.Video {
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gst_video_color_matrix_to_iso(int matrix);
public static uint VideoColorMatrixToIso(Gst.Video.VideoColorMatrix matrix) {
uint raw_ret = gst_video_color_matrix_to_iso((int) matrix);
uint ret = raw_ret;
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_video_color_primaries_from_iso(uint value);
public static Gst.Video.VideoColorPrimaries VideoColorPrimariesFromIso(uint value) {
int raw_ret = gst_video_color_primaries_from_iso(value);
Gst.Video.VideoColorPrimaries ret = (Gst.Video.VideoColorPrimaries) raw_ret;
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_video_color_primaries_get_info(int primaries);
@ -490,6 +580,15 @@ namespace Gst.Video {
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gst_video_color_primaries_to_iso(int primaries);
public static uint VideoColorPrimariesToIso(Gst.Video.VideoColorPrimaries primaries) {
uint raw_ret = gst_video_color_primaries_to_iso((int) primaries);
uint ret = raw_ret;
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_video_color_range_offsets(int range, IntPtr info, out int[] offset, out int[] scale);
@ -519,6 +618,24 @@ namespace Gst.Video {
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_video_color_transfer_from_iso(uint value);
public static Gst.Video.VideoTransferFunction VideoColorTransferFromIso(uint value) {
int raw_ret = gst_video_color_transfer_from_iso(value);
Gst.Video.VideoTransferFunction ret = (Gst.Video.VideoTransferFunction) raw_ret;
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gst_video_color_transfer_to_iso(int func);
public static uint VideoColorTransferToIso(Gst.Video.VideoTransferFunction func) {
uint raw_ret = gst_video_color_transfer_to_iso((int) func);
uint ret = raw_ret;
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern unsafe IntPtr gst_video_convert_sample(IntPtr sample, IntPtr to_caps, ulong timeout, out IntPtr error);
@ -762,6 +879,56 @@ namespace Gst.Video {
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_video_make_raw_caps(int[] formats, uint len);
public static Gst.Caps VideoMakeRawCaps(Gst.Video.VideoFormat[] formats, uint len) {
int cnt_formats = formats == null ? 0 : formats.Length;
int[] native_formats = new int [cnt_formats];
for (int i = 0; i < cnt_formats; i++)
native_formats [i] = (int) formats[i];
IntPtr raw_ret = gst_video_make_raw_caps(native_formats, len);
Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Caps), true);
return ret;
}
public static Gst.Caps VideoMakeRawCaps(uint len) {
return VideoMakeRawCaps (null, len);
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_video_make_raw_caps_with_features(int[] formats, uint len, IntPtr features);
public static Gst.Caps VideoMakeRawCapsWithFeatures(Gst.Video.VideoFormat[] formats, uint len, Gst.CapsFeatures features) {
int cnt_formats = formats == null ? 0 : formats.Length;
int[] native_formats = new int [cnt_formats];
for (int i = 0; i < cnt_formats; i++)
native_formats [i] = (int) formats[i];
IntPtr native_features = GLib.Marshaller.StructureToPtrAlloc (features);
IntPtr raw_ret = gst_video_make_raw_caps_with_features(native_formats, len, native_features);
Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Caps), true);
Marshal.FreeHGlobal (native_features);
return ret;
}
public static Gst.Caps VideoMakeRawCapsWithFeatures(uint len) {
return VideoMakeRawCapsWithFeatures (null, len, Gst.CapsFeatures.Zero);
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_mastering_display_info_from_string(IntPtr minfo, IntPtr mastering);
public static bool VideoMasteringDisplayInfoFromString(out Gst.Video.VideoMasteringDisplayInfo minfo, string mastering) {
IntPtr native_minfo = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (Gst.Video.VideoMasteringDisplayInfo)));
IntPtr native_mastering = GLib.Marshaller.StringToPtrGStrdup (mastering);
bool raw_ret = gst_video_mastering_display_info_from_string(native_minfo, native_mastering);
bool ret = raw_ret;
minfo = Gst.Video.VideoMasteringDisplayInfo.New (native_minfo);
Marshal.FreeHGlobal (native_minfo);
GLib.Marshaller.Free (native_mastering);
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_video_meta_api_get_type();

View file

@ -12,6 +12,7 @@ namespace Gst.Video {
void SendEvent(Gst.Structure structure);
void SendKeyEvent(string evnt, string key);
void SendMouseEvent(string evnt, int button, double x, double y);
void SendMouseScrollEvent(double x, double y, double delta_x, double delta_y);
}
[GLib.GInterface (typeof (NavigationAdapter))]

View file

@ -170,6 +170,15 @@ namespace Gst.Video {
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_navigation_event_parse_mouse_scroll_event(IntPtr evnt, out double x, out double y, out double delta_x, out double delta_y);
public static bool EventParseMouseScrollEvent(Gst.Event evnt, out double x, out double y, out double delta_x, out double delta_y) {
bool raw_ret = gst_navigation_event_parse_mouse_scroll_event(evnt == null ? IntPtr.Zero : evnt.Handle, out x, out y, out delta_x, out delta_y);
bool ret = raw_ret;
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_navigation_message_get_type(IntPtr message);
@ -352,6 +361,13 @@ namespace Gst.Video {
GLib.Marshaller.Free (native_evnt);
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_navigation_send_mouse_scroll_event(IntPtr raw, double x, double y, double delta_x, double delta_y);
public void SendMouseScrollEvent(double x, double y, double delta_x, double delta_y) {
gst_navigation_send_mouse_scroll_event(Handle, x, y, delta_x, delta_y);
}
#endregion
}
}

View file

@ -17,6 +17,7 @@ namespace Gst.Video {
MouseButtonRelease = 4,
MouseMove = 5,
Command = 6,
MouseScroll = 7,
}
internal class NavigationEventTypeGType {

View file

@ -0,0 +1,59 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.Video {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct VideoAFDMeta : IEquatable<VideoAFDMeta> {
public Gst.Meta Meta;
public byte Field;
public Gst.Video.VideoAFDSpec Spec;
public Gst.Video.VideoAFDValue Afd;
public static Gst.Video.VideoAFDMeta Zero = new Gst.Video.VideoAFDMeta ();
public static Gst.Video.VideoAFDMeta New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Gst.Video.VideoAFDMeta.Zero;
return (Gst.Video.VideoAFDMeta) Marshal.PtrToStructure (raw, typeof (Gst.Video.VideoAFDMeta));
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_video_afd_meta_get_info();
public static Gst.MetaInfo Info {
get {
IntPtr raw_ret = gst_video_afd_meta_get_info();
Gst.MetaInfo ret = Gst.MetaInfo.New (raw_ret);
return ret;
}
}
public bool Equals (VideoAFDMeta other)
{
return true && Meta.Equals (other.Meta) && Field.Equals (other.Field) && Spec.Equals (other.Spec) && Afd.Equals (other.Afd);
}
public override bool Equals (object other)
{
return other is VideoAFDMeta && Equals ((VideoAFDMeta) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ Meta.GetHashCode () ^ Field.GetHashCode () ^ Spec.GetHashCode () ^ Afd.GetHashCode ();
}
private static GLib.GType GType {
get { return GLib.GType.Pointer; }
}
#endregion
}
}

View file

@ -0,0 +1,29 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.Video {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[GLib.GType (typeof (Gst.Video.VideoAFDSpecGType))]
public enum VideoAFDSpec {
DvbEtsi = 0,
AtscA53 = 1,
SmpteSt20161 = 2,
}
internal class VideoAFDSpecGType {
[DllImport ("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_video_afd_spec_get_type ();
public static GLib.GType GType {
get {
return new GLib.GType (gst_video_afd_spec_get_type ());
}
}
}
#endregion
}

View file

@ -0,0 +1,37 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.Video {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[GLib.GType (typeof (Gst.Video.VideoAFDValueGType))]
public enum VideoAFDValue {
Unavailable = 0,
_16169TopAligned = 2,
_14149TopAligned = 3,
GreaterThan169 = 4,
_443Full169Full = 8,
_443Full43Pillar = 9,
_16169Letter169Full = 10,
_14149Letter149Pillar = 11,
_443Full149Center = 13,
_16169Letter149Center = 14,
_16169Letter43Center = 15,
}
internal class VideoAFDValueGType {
[DllImport ("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_video_afd_value_get_type ();
public static GLib.GType GType {
get {
return new GLib.GType (gst_video_afd_value_get_type ());
}
}
}
#endregion
}

View file

@ -25,11 +25,12 @@ namespace Gst.Video {
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_video_affine_transformation_meta_apply_matrix(IntPtr raw, float matrix);
static extern void gst_video_affine_transformation_meta_apply_matrix(IntPtr raw, float[] matrix);
public void ApplyMatrix(float matrix) {
public void ApplyMatrix(float[] matrix) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
matrix = new float[16];
gst_video_affine_transformation_meta_apply_matrix(this_as_native, matrix);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);

View file

@ -18,6 +18,21 @@ namespace Gst.Video {
CreateNativeObject (new string [0], new GLib.Value [0]);
}
[GLib.Property ("max-last-buffer-repeat")]
public ulong MaxLastBufferRepeat {
get {
GLib.Value val = GetProperty ("max-last-buffer-repeat");
ulong ret = (ulong) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("max-last-buffer-repeat", val);
val.Dispose ();
}
}
[GLib.Property ("repeat-after-eos")]
public bool RepeatAfterEos {
get {

View file

@ -10,8 +10,9 @@ namespace Gst.Video {
[GLib.GType (typeof (Gst.Video.VideoAncillaryDID16GType))]
public enum VideoAncillaryDID16 {
_708 = 24833,
_608 = 24834,
S20163AfdBar = 16645,
S334Eia708 = 24833,
S334Eia608 = 24834,
}
internal class VideoAncillaryDID16GType {

View file

@ -0,0 +1,60 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.Video {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct VideoBarMeta : IEquatable<VideoBarMeta> {
public Gst.Meta Meta;
public byte Field;
public bool IsLetterbox;
public uint BarData1;
public uint BarData2;
public static Gst.Video.VideoBarMeta Zero = new Gst.Video.VideoBarMeta ();
public static Gst.Video.VideoBarMeta New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Gst.Video.VideoBarMeta.Zero;
return (Gst.Video.VideoBarMeta) Marshal.PtrToStructure (raw, typeof (Gst.Video.VideoBarMeta));
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_video_bar_meta_get_info();
public static Gst.MetaInfo Info {
get {
IntPtr raw_ret = gst_video_bar_meta_get_info();
Gst.MetaInfo ret = Gst.MetaInfo.New (raw_ret);
return ret;
}
}
public bool Equals (VideoBarMeta other)
{
return true && Meta.Equals (other.Meta) && Field.Equals (other.Field) && IsLetterbox.Equals (other.IsLetterbox) && BarData1.Equals (other.BarData1) && BarData2.Equals (other.BarData2);
}
public override bool Equals (object other)
{
return other is VideoBarMeta && Equals ((VideoBarMeta) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ Meta.GetHashCode () ^ Field.GetHashCode () ^ IsLetterbox.GetHashCode () ^ BarData1.GetHashCode () ^ BarData2.GetHashCode ();
}
private static GLib.GType GType {
get { return GLib.GType.Pointer; }
}
#endregion
}
}

View file

@ -11,6 +11,7 @@ namespace Gst.Video {
[GLib.GType (typeof (Gst.Video.VideoBufferFlagsGType))]
public enum VideoBufferFlags {
Marker = 512,
Interlaced = 1048576,
Tff = 2097152,
Rff = 4194304,

View file

@ -0,0 +1,118 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.Video {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct VideoContentLightLevel : IEquatable<VideoContentLightLevel> {
public ushort MaxContentLightLevel;
public ushort MaxFrameAverageLightLevel;
[MarshalAs (UnmanagedType.ByValArray, SizeConst=4)]
private IntPtr[] _gstGstReserved;
public static Gst.Video.VideoContentLightLevel Zero = new Gst.Video.VideoContentLightLevel ();
public static Gst.Video.VideoContentLightLevel New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Gst.Video.VideoContentLightLevel.Zero;
return (Gst.Video.VideoContentLightLevel) Marshal.PtrToStructure (raw, typeof (Gst.Video.VideoContentLightLevel));
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_content_light_level_add_to_caps(IntPtr raw, IntPtr caps);
public bool AddToCaps(Gst.Caps caps) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
bool raw_ret = gst_video_content_light_level_add_to_caps(this_as_native, caps == null ? IntPtr.Zero : caps.Handle);
bool ret = raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_content_light_level_from_caps(IntPtr raw, IntPtr caps);
public bool FromCaps(Gst.Caps caps) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
bool raw_ret = gst_video_content_light_level_from_caps(this_as_native, caps == null ? IntPtr.Zero : caps.Handle);
bool ret = raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_content_light_level_from_string(IntPtr raw, IntPtr level);
public bool FromString(string level) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
IntPtr native_level = GLib.Marshaller.StringToPtrGStrdup (level);
bool raw_ret = gst_video_content_light_level_from_string(this_as_native, native_level);
bool ret = raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
GLib.Marshaller.Free (native_level);
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_video_content_light_level_init(IntPtr raw);
public void Init() {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
gst_video_content_light_level_init(this_as_native);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_video_content_light_level_to_string(IntPtr raw);
public override string ToString() {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
IntPtr raw_ret = gst_video_content_light_level_to_string(this_as_native);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
static void ReadNative (IntPtr native, ref Gst.Video.VideoContentLightLevel target)
{
target = New (native);
}
public bool Equals (VideoContentLightLevel other)
{
return true && MaxContentLightLevel.Equals (other.MaxContentLightLevel) && MaxFrameAverageLightLevel.Equals (other.MaxFrameAverageLightLevel);
}
public override bool Equals (object other)
{
return other is VideoContentLightLevel && Equals ((VideoContentLightLevel) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ MaxContentLightLevel.GetHashCode () ^ MaxFrameAverageLightLevel.GetHashCode ();
}
private static GLib.GType GType {
get { return GLib.GType.Pointer; }
}
#endregion
}
}

View file

@ -18,6 +18,21 @@ namespace Gst.Video {
CreateNativeObject (new string [0], new GLib.Value [0]);
}
[GLib.Property ("qos")]
public bool Qos {
get {
GLib.Value val = GetProperty ("qos");
bool ret = (bool) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("qos", val);
val.Dispose ();
}
}
static OpenNativeDelegate Open_cb_delegate;
static OpenNativeDelegate OpenVMCallback {
get {

View file

@ -18,6 +18,24 @@ namespace Gst.Video {
CreateNativeObject (new string [0], new GLib.Value [0]);
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern ulong gst_video_encoder_get_min_force_key_unit_interval(IntPtr raw);
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_video_encoder_set_min_force_key_unit_interval(IntPtr raw, ulong interval);
[GLib.Property ("min-force-key-unit-interval")]
public ulong MinForceKeyUnitInterval {
get {
ulong raw_ret = gst_video_encoder_get_min_force_key_unit_interval(Handle);
ulong ret = raw_ret;
return ret;
}
set {
gst_video_encoder_set_min_force_key_unit_interval(Handle, value);
}
}
[GLib.Property ("qos")]
public bool Qos {
get {
@ -1363,6 +1381,17 @@ namespace Gst.Video {
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_video_encoder_finish_subframe(IntPtr raw, IntPtr frame);
public Gst.FlowReturn FinishSubframe(Gst.Video.VideoCodecFrame frame) {
IntPtr native_frame = GLib.Marshaller.StructureToPtrAlloc (frame);
int raw_ret = gst_video_encoder_finish_subframe(Handle, native_frame);
Gst.FlowReturn ret = (Gst.FlowReturn) raw_ret;
Marshal.FreeHGlobal (native_frame);
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_video_encoder_get_allocator(IntPtr raw, out IntPtr allocator, IntPtr parms);

View file

@ -96,6 +96,17 @@ namespace Gst.Video {
Y410 = 83,
Vuya = 84,
Bgr10a2Le = 85,
Rgb10a2Le = 86,
Y44416be = 87,
Y44416le = 88,
P016Be = 89,
P016Le = 90,
P012Be = 91,
P012Le = 92,
Y212Be = 93,
Y212Le = 94,
Y412Be = 95,
Y412Le = 96,
}
internal class VideoFormatGType {

View file

@ -61,6 +61,24 @@ namespace Gst.Video {
return (Gst.Video.VideoFormatInfo) Marshal.PtrToStructure (raw, typeof (Gst.Video.VideoFormatInfo));
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_video_format_info_component(IntPtr raw, uint plane, out int components);
public int Component(uint plane) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
int components;
gst_video_format_info_component(this_as_native, plane, out components);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return components;
}
static void ReadNative (IntPtr native, ref Gst.Video.VideoFormatInfo target)
{
target = New (native);
}
public bool Equals (VideoFormatInfo other)
{
return true && Format.Equals (other.Format) && Name.Equals (other.Name) && Description.Equals (other.Description) && Flags.Equals (other.Flags) && Bits.Equals (other.Bits) && NComponents.Equals (other.NComponents) && Shift.Equals (other.Shift) && Depth.Equals (other.Depth) && PixelStride.Equals (other.PixelStride) && NPlanes.Equals (other.NPlanes) && Plane.Equals (other.Plane) && Poffset.Equals (other.Poffset) && WSub.Equals (other.WSub) && HSub.Equals (other.HSub) && UnpackFormat.Equals (other.UnpackFormat) && UnpackFunc.Equals (other.UnpackFunc) && PackLines.Equals (other.PackLines) && PackFunc.Equals (other.PackFunc) && TileMode.Equals (other.TileMode) && TileWs.Equals (other.TileWs) && TileHs.Equals (other.TileHs);

View file

@ -63,6 +63,11 @@ namespace Gst.Video {
return other is VideoGLTextureUploadMeta && Equals ((VideoGLTextureUploadMeta) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ Meta.GetHashCode () ^ TextureOrientation.GetHashCode () ^ NTextures.GetHashCode () ^ TextureType.GetHashCode () ^ _buffer.GetHashCode () ^ _upload.GetHashCode () ^ _user_data.GetHashCode ();
}
private static GLib.GType GType {
get { return GLib.GType.Pointer; }
}

View file

@ -228,6 +228,19 @@ namespace Gst.Video {
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_info_align_full(IntPtr raw, IntPtr align, out UIntPtr plane_size);
public bool AlignFull(Gst.Video.VideoAlignment align, out ulong plane_size) {
IntPtr native_align = GLib.Marshaller.StructureToPtrAlloc (align);
UIntPtr native_plane_size;
bool raw_ret = gst_video_info_align_full(Handle, native_align, out native_plane_size);
bool ret = raw_ret;
Marshal.FreeHGlobal (native_align);
plane_size = (ulong) native_plane_size;
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_info_convert(IntPtr raw, int src_format, long src_value, int dest_format, out long dest_value);

View file

@ -0,0 +1,135 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.Video {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct VideoMasteringDisplayInfo : IEquatable<VideoMasteringDisplayInfo> {
[MarshalAs (UnmanagedType.ByValArray, SizeConst=3)]
public Gst.Video.VideoMasteringDisplayInfoCoordinates[] DisplayPrimaries;
public Gst.Video.VideoMasteringDisplayInfoCoordinates WhitePoint;
public uint MaxDisplayMasteringLuminance;
public uint MinDisplayMasteringLuminance;
[MarshalAs (UnmanagedType.ByValArray, SizeConst=4)]
private IntPtr[] _gstGstReserved;
public static Gst.Video.VideoMasteringDisplayInfo Zero = new Gst.Video.VideoMasteringDisplayInfo ();
public static Gst.Video.VideoMasteringDisplayInfo New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Gst.Video.VideoMasteringDisplayInfo.Zero;
return (Gst.Video.VideoMasteringDisplayInfo) Marshal.PtrToStructure (raw, typeof (Gst.Video.VideoMasteringDisplayInfo));
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_mastering_display_info_add_to_caps(IntPtr raw, IntPtr caps);
public bool AddToCaps(Gst.Caps caps) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
bool raw_ret = gst_video_mastering_display_info_add_to_caps(this_as_native, caps == null ? IntPtr.Zero : caps.Handle);
bool ret = raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_mastering_display_info_from_caps(IntPtr raw, IntPtr caps);
public bool FromCaps(Gst.Caps caps) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
bool raw_ret = gst_video_mastering_display_info_from_caps(this_as_native, caps == null ? IntPtr.Zero : caps.Handle);
bool ret = raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_video_mastering_display_info_init(IntPtr raw);
public void Init() {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
gst_video_mastering_display_info_init(this_as_native);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_mastering_display_info_is_equal(IntPtr raw, IntPtr other);
public bool IsEqual(Gst.Video.VideoMasteringDisplayInfo other) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
IntPtr native_other = GLib.Marshaller.StructureToPtrAlloc (other);
bool raw_ret = gst_video_mastering_display_info_is_equal(this_as_native, native_other);
bool ret = raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
Marshal.FreeHGlobal (native_other);
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_video_mastering_display_info_to_string(IntPtr raw);
public override string ToString() {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
IntPtr raw_ret = gst_video_mastering_display_info_to_string(this_as_native);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_mastering_display_info_from_string(IntPtr minfo, IntPtr mastering);
public static bool FromString(out Gst.Video.VideoMasteringDisplayInfo minfo, string mastering) {
IntPtr native_minfo = Marshal.AllocHGlobal (Marshal.SizeOf (typeof (Gst.Video.VideoMasteringDisplayInfo)));
IntPtr native_mastering = GLib.Marshaller.StringToPtrGStrdup (mastering);
bool raw_ret = gst_video_mastering_display_info_from_string(native_minfo, native_mastering);
bool ret = raw_ret;
minfo = Gst.Video.VideoMasteringDisplayInfo.New (native_minfo);
Marshal.FreeHGlobal (native_minfo);
GLib.Marshaller.Free (native_mastering);
return ret;
}
static void ReadNative (IntPtr native, ref Gst.Video.VideoMasteringDisplayInfo target)
{
target = New (native);
}
public bool Equals (VideoMasteringDisplayInfo other)
{
return true && DisplayPrimaries.Equals (other.DisplayPrimaries) && WhitePoint.Equals (other.WhitePoint) && MaxDisplayMasteringLuminance.Equals (other.MaxDisplayMasteringLuminance) && MinDisplayMasteringLuminance.Equals (other.MinDisplayMasteringLuminance);
}
public override bool Equals (object other)
{
return other is VideoMasteringDisplayInfo && Equals ((VideoMasteringDisplayInfo) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ DisplayPrimaries.GetHashCode () ^ WhitePoint.GetHashCode () ^ MaxDisplayMasteringLuminance.GetHashCode () ^ MinDisplayMasteringLuminance.GetHashCode ();
}
private static GLib.GType GType {
get { return GLib.GType.Pointer; }
}
#endregion
}
}

View file

@ -0,0 +1,46 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.Video {
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.InteropServices;
#region Autogenerated code
[StructLayout(LayoutKind.Sequential)]
public partial struct VideoMasteringDisplayInfoCoordinates : IEquatable<VideoMasteringDisplayInfoCoordinates> {
public ushort X;
public ushort Y;
public static Gst.Video.VideoMasteringDisplayInfoCoordinates Zero = new Gst.Video.VideoMasteringDisplayInfoCoordinates ();
public static Gst.Video.VideoMasteringDisplayInfoCoordinates New(IntPtr raw) {
if (raw == IntPtr.Zero)
return Gst.Video.VideoMasteringDisplayInfoCoordinates.Zero;
return (Gst.Video.VideoMasteringDisplayInfoCoordinates) Marshal.PtrToStructure (raw, typeof (Gst.Video.VideoMasteringDisplayInfoCoordinates));
}
public bool Equals (VideoMasteringDisplayInfoCoordinates other)
{
return true && X.Equals (other.X) && Y.Equals (other.Y);
}
public override bool Equals (object other)
{
return other is VideoMasteringDisplayInfoCoordinates && Equals ((VideoMasteringDisplayInfoCoordinates) other);
}
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ X.GetHashCode () ^ Y.GetHashCode ();
}
private static GLib.GType GType {
get { return GLib.GType.Pointer; }
}
#endregion
}
}

View file

@ -34,6 +34,7 @@ namespace Gst.Video {
public int[] Stride;
private IntPtr _map;
private IntPtr _unmap;
public Gst.Video.VideoAlignment Alignment;
public static Gst.Video.VideoMeta Zero = new Gst.Video.VideoMeta ();
@ -43,6 +44,34 @@ namespace Gst.Video {
return (Gst.Video.VideoMeta) Marshal.PtrToStructure (raw, typeof (Gst.Video.VideoMeta));
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_meta_get_plane_height(IntPtr raw, out uint plane_height);
public bool GetPlaneHeight(out uint plane_height) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
bool raw_ret = gst_video_meta_get_plane_height(this_as_native, out plane_height);
bool ret = raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_meta_get_plane_size(IntPtr raw, out UIntPtr plane_size);
public bool GetPlaneSize(out ulong plane_size) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
UIntPtr native_plane_size;
bool raw_ret = gst_video_meta_get_plane_size(this_as_native, out native_plane_size);
bool ret = raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
plane_size = (ulong) native_plane_size;
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_meta_map(IntPtr raw, uint plane, IntPtr info, out IntPtr data, out int stride, int flags);
@ -58,6 +87,21 @@ namespace Gst.Video {
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_meta_set_alignment(IntPtr raw, IntPtr alignment);
public bool SetAlignment(Gst.Video.VideoAlignment alignment) {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);
IntPtr native_alignment = GLib.Marshaller.StructureToPtrAlloc (alignment);
bool raw_ret = gst_video_meta_set_alignment(this_as_native, native_alignment);
bool ret = raw_ret;
ReadNative (this_as_native, ref this);
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
Marshal.FreeHGlobal (native_alignment);
return ret;
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_video_meta_unmap(IntPtr raw, uint plane, IntPtr info);
@ -91,7 +135,7 @@ namespace Gst.Video {
public bool Equals (VideoMeta other)
{
return true && Meta.Equals (other.Meta) && Buffer.Equals (other.Buffer) && Flags.Equals (other.Flags) && Format.Equals (other.Format) && Id.Equals (other.Id) && Width.Equals (other.Width) && Height.Equals (other.Height) && NPlanes.Equals (other.NPlanes) && Offset.Equals (other.Offset) && Stride.Equals (other.Stride) && _map.Equals (other._map) && _unmap.Equals (other._unmap);
return true && Meta.Equals (other.Meta) && Buffer.Equals (other.Buffer) && Flags.Equals (other.Flags) && Format.Equals (other.Format) && Id.Equals (other.Id) && Width.Equals (other.Width) && Height.Equals (other.Height) && NPlanes.Equals (other.NPlanes) && Offset.Equals (other.Offset) && Stride.Equals (other.Stride) && _map.Equals (other._map) && _unmap.Equals (other._unmap) && Alignment.Equals (other.Alignment);
}
public override bool Equals (object other)
@ -101,7 +145,7 @@ namespace Gst.Video {
public override int GetHashCode ()
{
return this.GetType ().FullName.GetHashCode () ^ Meta.GetHashCode () ^ Buffer.GetHashCode () ^ Flags.GetHashCode () ^ Format.GetHashCode () ^ Id.GetHashCode () ^ Width.GetHashCode () ^ Height.GetHashCode () ^ NPlanes.GetHashCode () ^ Offset.GetHashCode () ^ Stride.GetHashCode () ^ _map.GetHashCode () ^ _unmap.GetHashCode ();
return this.GetType ().FullName.GetHashCode () ^ Meta.GetHashCode () ^ Buffer.GetHashCode () ^ Flags.GetHashCode () ^ Format.GetHashCode () ^ Id.GetHashCode () ^ Width.GetHashCode () ^ Height.GetHashCode () ^ NPlanes.GetHashCode () ^ Offset.GetHashCode () ^ Stride.GetHashCode () ^ _map.GetHashCode () ^ _unmap.GetHashCode () ^ Alignment.GetHashCode ();
}
private static GLib.GType GType {

View file

@ -172,6 +172,10 @@ namespace Gst.Video {
System.Runtime.InteropServices.Marshal.FreeHGlobal (this_as_native);
}
public void Init(uint fps_n, uint fps_d, Gst.Video.VideoTimeCodeFlags flags, uint hours, uint minutes, uint seconds, uint frames, uint field_count) {
Init (fps_n, fps_d, null, flags, hours, minutes, seconds, frames, field_count);
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_video_time_code_init_from_date_time(IntPtr raw, uint fps_n, uint fps_d, IntPtr dt, int flags, uint field_count);

View file

@ -8,11 +8,23 @@ namespace Gst.Video {
#region Autogenerated code
[Flags]
[GLib.GType (typeof (Gst.Video.VideoTimeCodeFlagsGType))]
public enum VideoTimeCodeFlags {
None = 0,
DropFrame = 1,
Interlaced = 2,
}
internal class VideoTimeCodeFlagsGType {
[DllImport ("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_video_time_code_flags_get_type ();
public static GLib.GType GType {
get {
return new GLib.GType (gst_video_time_code_flags_get_type ());
}
}
}
#endregion
}

View file

@ -23,6 +23,9 @@ namespace Gst.Video {
Log316 = 10,
Bt202012 = 11,
Adobergb = 12,
Bt202010 = 13,
Smpte2084 = 14,
AribStdB67 = 15,
}
internal class VideoTransferFunctionGType {

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.WebRTC {
using System;
public delegate void OnErrorEventHandler(object o, OnErrorEventArgs args);
public class OnErrorEventArgs : GLib.SignalArgs {
public IntPtr Error{
get {
return (IntPtr) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.WebRTC {
using System;
public delegate void OnMessageDataEventHandler(object o, OnMessageDataEventArgs args);
public class OnMessageDataEventArgs : GLib.SignalArgs {
public GLib.Bytes Data{
get {
return (GLib.Bytes) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.WebRTC {
using System;
public delegate void OnMessageStringEventHandler(object o, OnMessageStringEventArgs args);
public class OnMessageStringEventArgs : GLib.SignalArgs {
public string Data{
get {
return (string) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.WebRTC {
using System;
public delegate void SendDataEventHandler(object o, SendDataEventArgs args);
public class SendDataEventArgs : GLib.SignalArgs {
public GLib.Bytes Data{
get {
return (GLib.Bytes) Args [0];
}
}
}
}

View file

@ -0,0 +1,18 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst.WebRTC {
using System;
public delegate void SendStringEventHandler(object o, SendStringEventArgs args);
public class SendStringEventArgs : GLib.SignalArgs {
public string Data{
get {
return (string) Args [0];
}
}
}
}

File diff suppressed because it is too large Load diff

View file

@ -18,6 +18,21 @@ namespace Gst.WebRTC {
CreateNativeObject (new string [0], new GLib.Value [0]);
}
[GLib.Property ("direction")]
public Gst.WebRTC.WebRTCRTPTransceiverDirection Direction {
get {
GLib.Value val = GetProperty ("direction");
Gst.WebRTC.WebRTCRTPTransceiverDirection ret = (Gst.WebRTC.WebRTCRTPTransceiverDirection) (Enum) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value((Enum) value);
SetProperty("direction", val);
val.Dispose ();
}
}
[GLib.Property ("mlineindex")]
public uint Mlineindex {
get {
@ -93,7 +108,7 @@ namespace Gst.WebRTC {
}
}
public Gst.WebRTC.WebRTCRTPTransceiverDirection Direction {
public Gst.WebRTC.WebRTCRTPTransceiverDirection DirectionField {
get {
unsafe {
int* raw_ptr = (int*)(((byte*)Handle) + abi_info.GetFieldOffset("direction"));

View file

@ -813,6 +813,17 @@ namespace Gst {
}
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_bin_iterate_all_by_element_factory_name(IntPtr raw, IntPtr factory_name);
public Gst.Iterator IterateAllByElementFactoryName(string factory_name) {
IntPtr native_factory_name = GLib.Marshaller.StringToPtrGStrdup (factory_name);
IntPtr raw_ret = gst_bin_iterate_all_by_element_factory_name(Handle, native_factory_name);
Gst.Iterator ret = raw_ret == IntPtr.Zero ? null : (Gst.Iterator) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Iterator), true);
GLib.Marshaller.Free (native_factory_name);
return ret;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_bin_iterate_all_by_interface(IntPtr raw, IntPtr iface);

View file

@ -596,6 +596,51 @@ namespace Gst {
Raw = gst_buffer_new_wrapped_full((int) flags, data, new UIntPtr (maxsize), new UIntPtr (offset), new UIntPtr (size), user_data, notify);
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_buffer_ref(IntPtr raw);
protected override void Ref (IntPtr raw)
{
if (!Owned) {
gst_buffer_ref (raw);
Owned = true;
}
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_buffer_unref(IntPtr raw);
protected override void Unref (IntPtr raw)
{
if (Owned) {
gst_buffer_unref (raw);
Owned = false;
}
}
class FinalizerInfo {
IntPtr handle;
public FinalizerInfo (IntPtr handle)
{
this.handle = handle;
}
public bool Handler ()
{
gst_buffer_unref (handle);
return false;
}
}
~Buffer ()
{
if (!Owned)
return;
FinalizerInfo info = new FinalizerInfo (Handle);
GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;

View file

@ -110,6 +110,51 @@ namespace Gst {
Raw = gst_buffer_list_new_sized(size);
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_buffer_list_ref(IntPtr raw);
protected override void Ref (IntPtr raw)
{
if (!Owned) {
gst_buffer_list_ref (raw);
Owned = true;
}
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_buffer_list_unref(IntPtr raw);
protected override void Unref (IntPtr raw)
{
if (Owned) {
gst_buffer_list_unref (raw);
Owned = false;
}
}
class FinalizerInfo {
IntPtr handle;
public FinalizerInfo (IntPtr handle)
{
this.handle = handle;
}
public bool Handler ()
{
gst_buffer_list_unref (handle);
return false;
}
}
~BufferList ()
{
if (!Owned)
return;
FinalizerInfo info = new FinalizerInfo (Handle);
GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;

View file

@ -437,6 +437,51 @@ namespace Gst {
return result;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_caps_ref(IntPtr raw);
protected override void Ref (IntPtr raw)
{
if (!Owned) {
gst_caps_ref (raw);
Owned = true;
}
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_caps_unref(IntPtr raw);
protected override void Unref (IntPtr raw)
{
if (Owned) {
gst_caps_unref (raw);
Owned = false;
}
}
class FinalizerInfo {
IntPtr handle;
public FinalizerInfo (IntPtr handle)
{
this.handle = handle;
}
public bool Handler ()
{
gst_caps_unref (handle);
return false;
}
}
~Caps ()
{
if (!Owned)
return;
FinalizerInfo info = new FinalizerInfo (Handle);
GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;

View file

@ -13,6 +13,7 @@ namespace Gst {
Realtime = 0,
Monotonic = 1,
Other = 2,
Tai = 3,
}
internal class ClockTypeGType {

View file

@ -58,7 +58,9 @@ namespace Gst {
public const int MAP_READWRITE = 3;
public const string META_TAG_MEMORY_STR = @"memory";
public const long MSECOND = 1000000;
public const int PARAM_CONDITIONALLY_AVAILABLE = 16384;
public const int PARAM_CONTROLLABLE = 512;
public const int PARAM_DOC_SHOW_DEFAULT = 8192;
public const int PARAM_MUTABLE_PAUSED = 2048;
public const int PARAM_MUTABLE_PLAYING = 4096;
public const int PARAM_MUTABLE_READY = 1024;
@ -70,6 +72,7 @@ namespace Gst {
public const int QUERY_TYPE_BOTH = 3;
public const long SECOND = 1000000000;
public const string SEGMENT_FORMAT = @"paB";
public const int SEGMENT_INSTANT_FLAGS = 912;
public const int SEQNUM_INVALID = 0;
public const string STIME_FORMAT = @"c%";
public const string TAG_ALBUM = @"album";

View file

@ -219,6 +219,15 @@ namespace Gst {
Raw = gst_date_time_new_from_unix_epoch_local_time(secs);
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_date_time_new_from_unix_epoch_local_time_usecs(long usecs);
public static DateTime NewFromUnixEpochLocalTimeUsecs(long usecs)
{
DateTime result = new DateTime (gst_date_time_new_from_unix_epoch_local_time_usecs(usecs));
return result;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_date_time_new_from_unix_epoch_utc(long secs);
@ -228,6 +237,15 @@ namespace Gst {
return result;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_date_time_new_from_unix_epoch_utc_usecs(long usecs);
public static DateTime NewFromUnixEpochUtcUsecs(long usecs)
{
DateTime result = new DateTime (gst_date_time_new_from_unix_epoch_utc_usecs(usecs));
return result;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_date_time_new_local_time(int year, int month, int day, int hour, int minute, double seconds);

View file

@ -158,6 +158,25 @@ namespace Gst {
LogDefault (category, level, file, function, line, null, message, IntPtr.Zero);
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_debug_log_get_line(IntPtr category, int level, IntPtr file, IntPtr function, int line, IntPtr _object, IntPtr message);
public static string LogGetLine(Gst.DebugCategory category, Gst.DebugLevel level, string file, string function, int line, GLib.Object _object, Gst.DebugMessage message) {
IntPtr native_category = GLib.Marshaller.StructureToPtrAlloc (category);
IntPtr native_file = GLib.Marshaller.StringToPtrGStrdup (file);
IntPtr native_function = GLib.Marshaller.StringToPtrGStrdup (function);
IntPtr raw_ret = gst_debug_log_get_line(native_category, (int) level, native_file, native_function, line, _object == null ? IntPtr.Zero : _object.Handle, message == null ? IntPtr.Zero : message.Handle);
string ret = GLib.Marshaller.PtrToStringGFree(raw_ret);
Marshal.FreeHGlobal (native_category);
GLib.Marshaller.Free (native_file);
GLib.Marshaller.Free (native_function);
return ret;
}
public static string LogGetLine(Gst.DebugCategory category, Gst.DebugLevel level, string file, string function, int line, Gst.DebugMessage message) {
return LogGetLine (category, level, file, function, line, null, message);
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_debug_print_stack_trace();

View file

@ -28,6 +28,7 @@ namespace Gst {
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_debug_category_free(IntPtr raw);
[Obsolete]
public void Free() {
IntPtr this_as_native = System.Runtime.InteropServices.Marshal.AllocHGlobal (System.Runtime.InteropServices.Marshal.SizeOf (this));
System.Runtime.InteropServices.Marshal.StructureToPtr (this, this_as_native, false);

View file

@ -156,7 +156,7 @@ namespace Gst {
Device __obj = GLib.Object.GetObject (inst, false) as Device;
Gst.Element __result;
__result = __obj.OnCreateElement (GLib.Marshaller.Utf8PtrToString (name));
return __result == null ? IntPtr.Zero : __result.OwnedHandle;
return __result == null ? IntPtr.Zero : __result.Handle;
} catch (Exception e) {
GLib.ExceptionManager.RaiseUnhandledException (e, true);
// NOTREACHED: above call does not return.
@ -182,7 +182,7 @@ namespace Gst {
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
IntPtr __result = unmanaged (this.Handle, native_name);
GLib.Marshaller.Free (native_name);
return GLib.Object.GetObject(__result, true) as Gst.Element;
return GLib.Object.GetObject(__result) as Gst.Element;
}
static ReconfigureElementNativeDelegate ReconfigureElement_cb_delegate;
@ -300,7 +300,7 @@ namespace Gst {
public Gst.Element CreateElement(string name) {
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
IntPtr raw_ret = gst_device_create_element(Handle, native_name);
Gst.Element ret = GLib.Object.GetObject(raw_ret, true) as Gst.Element;
Gst.Element ret = GLib.Object.GetObject(raw_ret) as Gst.Element;
GLib.Marshaller.Free (native_name);
return ret;
}

View file

@ -1594,6 +1594,28 @@ namespace Gst {
return ret;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern ulong gst_element_get_current_clock_time(IntPtr raw);
public ulong CurrentClockTime {
get {
ulong raw_ret = gst_element_get_current_clock_time(Handle);
ulong ret = raw_ret;
return ret;
}
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern ulong gst_element_get_current_running_time(IntPtr raw);
public ulong CurrentRunningTime {
get {
ulong raw_ret = gst_element_get_current_running_time(Handle);
ulong ret = raw_ret;
return ret;
}
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_element_get_factory(IntPtr raw);

View file

@ -117,6 +117,15 @@ namespace Gst {
return ret;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_event_has_name_id(IntPtr raw, uint name);
public bool HasNameId(uint name) {
bool raw_ret = gst_event_has_name_id(Handle, name);
bool ret = raw_ret;
return ret;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_event_parse_buffer_size(IntPtr raw, out int format, out long minsize, out long maxsize, out bool async);
@ -162,6 +171,22 @@ namespace Gst {
return ret;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_event_parse_instant_rate_change(IntPtr raw, out double rate_multiplier, out int new_flags);
public void ParseInstantRateChange(out double rate_multiplier, out Gst.SegmentFlags new_flags) {
int native_new_flags;
gst_event_parse_instant_rate_change(Handle, out rate_multiplier, out native_new_flags);
new_flags = (Gst.SegmentFlags) native_new_flags;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_event_parse_instant_rate_sync_time(IntPtr raw, out double rate_multiplier, out ulong running_time, out ulong upstream_running_time);
public void ParseInstantRateSyncTime(out double rate_multiplier, out ulong running_time, out ulong upstream_running_time) {
gst_event_parse_instant_rate_sync_time(Handle, out rate_multiplier, out running_time, out upstream_running_time);
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_event_parse_latency(IntPtr raw, out ulong latency);
@ -465,6 +490,24 @@ namespace Gst {
return result;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_event_new_instant_rate_change(double rate_multiplier, int new_flags);
public static Event NewInstantRateChange(double rate_multiplier, Gst.SegmentFlags new_flags)
{
Event result = new Event (gst_event_new_instant_rate_change(rate_multiplier, (int) new_flags));
return result;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_event_new_instant_rate_sync_time(double rate_multiplier, ulong running_time, ulong upstream_running_time);
public static Event NewInstantRateSyncTime(double rate_multiplier, ulong running_time, ulong upstream_running_time)
{
Event result = new Event (gst_event_new_instant_rate_sync_time(rate_multiplier, running_time, upstream_running_time));
return result;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_event_new_latency(ulong latency);
@ -634,6 +677,51 @@ namespace Gst {
return result;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_event_ref(IntPtr raw);
protected override void Ref (IntPtr raw)
{
if (!Owned) {
gst_event_ref (raw);
Owned = true;
}
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_event_unref(IntPtr raw);
protected override void Unref (IntPtr raw)
{
if (Owned) {
gst_event_unref (raw);
Owned = false;
}
}
class FinalizerInfo {
IntPtr handle;
public FinalizerInfo (IntPtr handle)
{
this.handle = handle;
}
public bool Handler ()
{
gst_event_unref (handle);
return false;
}
}
~Event ()
{
if (!Owned)
return;
FinalizerInfo info = new FinalizerInfo (Handle);
GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;

View file

@ -26,6 +26,7 @@ namespace Gst {
Protection = 33310,
SegmentDone = 38406,
Gap = 40966,
InstantRateChange = 46090,
Qos = 48641,
Seek = 51201,
Navigation = 53761,
@ -34,6 +35,7 @@ namespace Gst {
Reconfigure = 61441,
TocSelect = 64001,
SelectStreams = 66561,
InstantRateSyncTime = 66817,
CustomUpstream = 69121,
CustomDownstream = 71686,
CustomDownstreamOob = 74242,

View file

@ -444,19 +444,6 @@ namespace Gst {
return ret;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_structure_from_string(IntPtr str1ng, out IntPtr end);
public static Gst.Structure StructureFromString(string str1ng, out string end) {
IntPtr native_str1ng = GLib.Marshaller.StringToPtrGStrdup (str1ng);
IntPtr native_end;
IntPtr raw_ret = gst_structure_from_string(native_str1ng, out native_end);
Gst.Structure ret = raw_ret == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Structure), true);
GLib.Marshaller.Free (native_str1ng);
end = GLib.Marshaller.Utf8PtrToString (native_end);
return ret;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_toc_entry_type_get_nick(int type);
@ -466,6 +453,15 @@ namespace Gst {
return ret;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_tracing_get_active_tracers();
public static Gst.Tracer[] TracingGetActiveTracers() {
IntPtr raw_ret = gst_tracing_get_active_tracers();
Gst.Tracer[] ret = (Gst.Tracer[]) GLib.Marshaller.ListPtrToArray (raw_ret, typeof(GLib.List), true, true, typeof(Gst.Tracer));
return ret;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_type_find_get_type();
@ -502,6 +498,24 @@ namespace Gst {
return TypeFindRegister (null, name, rank, func, null, possible_caps);
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_type_is_plugin_api(IntPtr type, out int flags);
public static bool TypeIsPluginApi(GLib.GType type, out Gst.PluginAPIFlags flags) {
int native_flags;
bool raw_ret = gst_type_is_plugin_api(type.Val, out native_flags);
bool ret = raw_ret;
flags = (Gst.PluginAPIFlags) native_flags;
return ret;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_type_mark_as_plugin_api(IntPtr type, int flags);
public static void TypeMarkAsPluginApi(GLib.GType type, Gst.PluginAPIFlags flags) {
gst_type_mark_as_plugin_api(type.Val, (int) flags);
}
#endregion
}
}

View file

@ -215,6 +215,51 @@ namespace Gst {
Raw = gst_memory_new_wrapped((int) flags, data, new UIntPtr (maxsize), new UIntPtr (offset), new UIntPtr (size), user_data, notify);
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_memory_ref(IntPtr raw);
protected override void Ref (IntPtr raw)
{
if (!Owned) {
gst_memory_ref (raw);
Owned = true;
}
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_memory_unref(IntPtr raw);
protected override void Unref (IntPtr raw)
{
if (Owned) {
gst_memory_unref (raw);
Owned = false;
}
}
class FinalizerInfo {
IntPtr handle;
public FinalizerInfo (IntPtr handle)
{
this.handle = handle;
}
public bool Handler ()
{
gst_memory_unref (handle);
return false;
}
}
~Memory ()
{
if (!Owned)
return;
FinalizerInfo info = new FinalizerInfo (Handle);
GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;

View file

@ -275,6 +275,15 @@ namespace Gst {
return structure;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_message_parse_instant_rate_request(IntPtr raw, out double rate_multiplier);
public double ParseInstantRateRequest() {
double rate_multiplier;
gst_message_parse_instant_rate_request(Handle, out rate_multiplier);
return rate_multiplier;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_message_parse_new_clock(IntPtr raw, out IntPtr clock);
@ -746,6 +755,15 @@ namespace Gst {
return result;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_message_new_instant_rate_request(IntPtr src, double rate_multiplier);
public static Message NewInstantRateRequest(Gst.Object src, double rate_multiplier)
{
Message result = new Message (gst_message_new_instant_rate_request(src == null ? IntPtr.Zero : src.Handle, rate_multiplier));
return result;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_message_new_latency(IntPtr src);
@ -984,6 +1002,51 @@ namespace Gst {
return result;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_message_ref(IntPtr raw);
protected override void Ref (IntPtr raw)
{
if (!Owned) {
gst_message_ref (raw);
Owned = true;
}
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_message_unref(IntPtr raw);
protected override void Unref (IntPtr raw)
{
if (Owned) {
gst_message_unref (raw);
Owned = false;
}
}
class FinalizerInfo {
IntPtr handle;
public FinalizerInfo (IntPtr handle)
{
this.handle = handle;
}
public bool Handler ()
{
gst_message_unref (handle);
return false;
}
}
~Message ()
{
if (!Owned)
return;
FinalizerInfo info = new FinalizerInfo (Handle);
GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;

View file

@ -50,7 +50,8 @@ namespace Gst {
StreamCollection = 2147483652,
StreamsSelected = 2147483653,
Redirect = 2147483654,
DeviceChanged = 2147483654,
DeviceChanged = 2147483655,
InstantRateRequest = 2147483656,
Any = 4294967295,
}

View file

@ -532,6 +532,17 @@ namespace Gst {
return ret;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_pad_get_single_internal_link(IntPtr raw);
public Gst.Pad SingleInternalLink {
get {
IntPtr raw_ret = gst_pad_get_single_internal_link(Handle);
Gst.Pad ret = GLib.Object.GetObject(raw_ret, true) as Gst.Pad;
return ret;
}
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_pad_get_sticky_event(IntPtr raw, int event_type, uint idx);

View file

@ -275,6 +275,23 @@ namespace Gst {
}
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_pad_template_get_documentation_caps(IntPtr raw);
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_pad_template_set_documentation_caps(IntPtr raw, IntPtr caps);
public Gst.Caps DocumentationCaps {
get {
IntPtr raw_ret = gst_pad_template_get_documentation_caps(Handle);
Gst.Caps ret = raw_ret == IntPtr.Zero ? null : (Gst.Caps) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Caps), true);
return ret;
}
set {
gst_pad_template_set_documentation_caps(Handle, value == null ? IntPtr.Zero : value.Handle);
}
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_pad_template_pad_created(IntPtr raw, IntPtr pad);
@ -337,17 +354,25 @@ namespace Gst {
, -1
, (uint) Marshal.SizeOf(typeof(GLib.GType)) // ABI.abi.gtype
, "caps"
, null
, "ABI.abi.documentation_caps"
, (long) Marshal.OffsetOf(typeof(GstPadTemplate_ABI_abi_gtypeAlign), "ABI_abi_gtype")
, 0
),
new GLib.AbiField("ABI.abi.documentation_caps"
, -1
, (uint) Marshal.SizeOf(typeof(IntPtr)) // ABI.abi.documentation_caps
, "ABI.abi.gtype"
, null
, (uint) Marshal.SizeOf(typeof(IntPtr))
, 0
),
// End ABI.abi
new GLib.AbiField("ABI"
, -1
, new List<List<string>>() { // union ABI
new List<string>() {"ABI._gst_reserved"},
new List<string>() {"ABI.abi.gtype"}
new List<string>() {"ABI.abi.gtype","ABI.abi.documentation_caps"}
}
, "caps"
, null

View file

@ -0,0 +1,28 @@
// This file was generated by the Gtk# code generator.
// Any changes made will be lost if regenerated.
namespace Gst {
using System;
using System.Runtime.InteropServices;
#region Autogenerated code
[Flags]
[GLib.GType (typeof (Gst.PluginAPIFlagsGType))]
public enum PluginAPIFlags {
Members = 1,
}
internal class PluginAPIFlagsGType {
[DllImport ("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_plugin_api_flags_get_type ();
public static GLib.GType GType {
get {
return new GLib.GType (gst_plugin_api_flags_get_type ());
}
}
}
#endregion
}

View file

@ -53,6 +53,10 @@ namespace Gst {
gst_promise_reply(Handle, s == null ? IntPtr.Zero : s.Handle);
}
public void Reply() {
Reply (null);
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_promise_wait(IntPtr raw);

View file

@ -810,6 +810,40 @@ namespace Gst {
return result;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_query_unref(IntPtr raw);
protected override void Unref (IntPtr raw)
{
if (Owned) {
gst_query_unref (raw);
Owned = false;
}
}
class FinalizerInfo {
IntPtr handle;
public FinalizerInfo (IntPtr handle)
{
this.handle = handle;
}
public bool Handler ()
{
gst_query_unref (handle);
return false;
}
}
~Query ()
{
if (!Owned)
return;
FinalizerInfo info = new FinalizerInfo (Handle);
GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;

View file

@ -126,6 +126,51 @@ namespace Gst {
Marshal.FreeHGlobal (native_segment);
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_sample_ref(IntPtr raw);
protected override void Ref (IntPtr raw)
{
if (!Owned) {
gst_sample_ref (raw);
Owned = true;
}
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_sample_unref(IntPtr raw);
protected override void Unref (IntPtr raw)
{
if (Owned) {
gst_sample_unref (raw);
Owned = false;
}
}
class FinalizerInfo {
IntPtr handle;
public FinalizerInfo (IntPtr handle)
{
this.handle = handle;
}
public bool Handler ()
{
gst_sample_unref (handle);
return false;
}
}
~Sample ()
{
if (!Owned)
return;
FinalizerInfo info = new FinalizerInfo (Handle);
GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;

View file

@ -23,6 +23,8 @@ namespace Gst {
SnapNearest = 96,
TrickmodeKeyUnits = 128,
TrickmodeNoAudio = 256,
TrickmodeForwardPredicted = 512,
InstantRateChange = 1024,
}
internal class SeekFlagsGType {

View file

@ -18,6 +18,7 @@ namespace Gst {
Skip = 16,
TrickmodeKeyUnits = 128,
TrickmodeNoAudio = 256,
TrickmodeForwardPredicted = 512,
}
internal class SegmentFlagsGType {

View file

@ -11,6 +11,7 @@ namespace Gst {
[GLib.GType (typeof (Gst.StackTraceFlagsGType))]
public enum StackTraceFlags {
None = 0,
Full = 1,
}

View file

@ -580,21 +580,20 @@ namespace Gst {
return ret;
}
public Structure(IntPtr raw) : base(raw) {}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_structure_from_string(IntPtr str1ng, out IntPtr end);
public static Gst.Structure FromString(string str1ng, out string end) {
public Structure (string str1ng, out string end)
{
IntPtr native_str1ng = GLib.Marshaller.StringToPtrGStrdup (str1ng);
IntPtr native_end;
IntPtr raw_ret = gst_structure_from_string(native_str1ng, out native_end);
Gst.Structure ret = raw_ret == IntPtr.Zero ? null : (Gst.Structure) GLib.Opaque.GetOpaque (raw_ret, typeof (Gst.Structure), true);
Raw = gst_structure_from_string(native_str1ng, out native_end);
GLib.Marshaller.Free (native_str1ng);
end = GLib.Marshaller.Utf8PtrToString (native_end);
return ret;
}
public Structure(IntPtr raw) : base(raw) {}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_structure_new_empty(IntPtr name);

View file

@ -483,6 +483,51 @@ namespace Gst {
GLib.Marshaller.Free (native_str);
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_tag_list_ref(IntPtr raw);
protected override void Ref (IntPtr raw)
{
if (!Owned) {
gst_tag_list_ref (raw);
Owned = true;
}
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_tag_list_unref(IntPtr raw);
protected override void Unref (IntPtr raw)
{
if (Owned) {
gst_tag_list_unref (raw);
Owned = false;
}
}
class FinalizerInfo {
IntPtr handle;
public FinalizerInfo (IntPtr handle)
{
this.handle = handle;
}
public bool Handler ()
{
gst_tag_list_unref (handle);
return false;
}
}
~TagList ()
{
if (!Owned)
return;
FinalizerInfo info = new FinalizerInfo (Handle);
GLib.Timeout.Add (50, new GLib.TimeoutHandler (info.Handler));
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;

View file

@ -176,6 +176,15 @@ namespace Gst {
return ret;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_task_resume(IntPtr raw);
public bool Resume() {
bool raw_ret = gst_task_resume(Handle);
bool ret = raw_ret;
return ret;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_task_set_enter_callback(IntPtr raw, GstSharp.TaskThreadFuncNative enter_func, IntPtr user_data, GLib.DestroyNotify notify);

View file

@ -68,6 +68,21 @@ namespace Gst {
}
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_tracer_register(IntPtr plugin, IntPtr name, IntPtr type);
public static bool Register(Gst.Plugin plugin, string name, GLib.GType type) {
IntPtr native_name = GLib.Marshaller.StringToPtrGStrdup (name);
bool raw_ret = gst_tracer_register(plugin == null ? IntPtr.Zero : plugin.Handle, native_name, type.Val);
bool ret = raw_ret;
GLib.Marshaller.Free (native_name);
return ret;
}
public static bool Register(string name, GLib.GType type) {
return Register (null, name, type);
}
// Internal representation of the wrapped structure ABI.
static GLib.AbiStruct _abi_info = null;

View file

@ -66,6 +66,17 @@ namespace Gst {
return ret;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_value_array_init(IntPtr value, uint prealloc);
public static GLib.Value Init(GLib.Value value, uint prealloc) {
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
IntPtr raw_ret = gst_value_array_init(native_value, prealloc);
GLib.Value ret = (GLib.Value) Marshal.PtrToStructure (raw_ret, typeof (GLib.Value));
Marshal.FreeHGlobal (native_value);
return ret;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_value_array_prepend_value(IntPtr value, IntPtr prepend_value);

View file

@ -82,6 +82,17 @@ namespace Gst {
return ret;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_value_list_init(IntPtr value, uint prealloc);
public static GLib.Value Init(GLib.Value value, uint prealloc) {
IntPtr native_value = GLib.Marshaller.StructureToPtrAlloc (value);
IntPtr raw_ret = gst_value_list_init(native_value, prealloc);
GLib.Value ret = (GLib.Value) Marshal.PtrToStructure (raw_ret, typeof (GLib.Value));
Marshal.FreeHGlobal (native_value);
return ret;
}
[DllImport("gstreamer-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_value_list_merge(IntPtr dest, IntPtr value1, IntPtr value2);

View file

@ -73,6 +73,7 @@ namespace GtkSharp.GstreamerSharp {
GLib.GType.Register (Gst.Video.VideoFilter.GType, typeof (Gst.Video.VideoFilter));
GLib.GType.Register (Gst.Video.VideoSink.GType, typeof (Gst.Video.VideoSink));
GLib.GType.Register (Gst.WebRTC.WebRTCDTLSTransport.GType, typeof (Gst.WebRTC.WebRTCDTLSTransport));
GLib.GType.Register (Gst.WebRTC.WebRTCDataChannel.GType, typeof (Gst.WebRTC.WebRTCDataChannel));
GLib.GType.Register (Gst.WebRTC.WebRTCICETransport.GType, typeof (Gst.WebRTC.WebRTCICETransport));
GLib.GType.Register (Gst.WebRTC.WebRTCRTPReceiver.GType, typeof (Gst.WebRTC.WebRTCRTPReceiver));
GLib.GType.Register (Gst.WebRTC.WebRTCRTPSender.GType, typeof (Gst.WebRTC.WebRTCRTPSender));

Some files were not shown because too many files have changed in this diff Show more