csharp: GstApp: update for new 1.28 API

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9620>
This commit is contained in:
Tim-Philipp Müller 2025-08-29 11:54:18 +01:00 committed by GStreamer Marge Bot
parent 246bd61b07
commit ae7a5eff7c
4 changed files with 219 additions and 6 deletions

View File

@ -51,12 +51,49 @@ namespace Gst.App {
}
}
[DllImport("gstapp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern ulong gst_app_sink_get_current_level_buffers(IntPtr raw);
[GLib.Property ("current-level-buffers")]
public ulong CurrentLevelBuffers {
get {
ulong raw_ret = gst_app_sink_get_current_level_buffers(Handle);
ulong ret = raw_ret;
return ret;
}
}
[DllImport("gstapp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern ulong gst_app_sink_get_current_level_bytes(IntPtr raw);
[GLib.Property ("current-level-bytes")]
public ulong CurrentLevelBytes {
get {
ulong raw_ret = gst_app_sink_get_current_level_bytes(Handle);
ulong ret = raw_ret;
return ret;
}
}
[DllImport("gstapp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern ulong gst_app_sink_get_current_level_time(IntPtr raw);
[GLib.Property ("current-level-time")]
public ulong CurrentLevelTime {
get {
ulong raw_ret = gst_app_sink_get_current_level_time(Handle);
ulong ret = raw_ret;
return ret;
}
}
[DllImport("gstapp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_app_sink_get_drop(IntPtr raw);
[DllImport("gstapp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_app_sink_set_drop(IntPtr raw, bool drop);
[Obsolete]
[GLib.Property ("drop")]
public bool Drop {
get {
@ -69,6 +106,16 @@ namespace Gst.App {
}
}
[GLib.Property ("dropped")]
public ulong Dropped {
get {
GLib.Value val = GetProperty ("dropped");
ulong ret = (ulong) val;
val.Dispose ();
return ret;
}
}
[DllImport("gstapp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_app_sink_get_emit_signals(IntPtr raw);
@ -98,6 +145,34 @@ namespace Gst.App {
}
}
[GLib.Property ("in")]
public ulong In {
get {
GLib.Value val = GetProperty ("in");
ulong ret = (ulong) val;
val.Dispose ();
return ret;
}
}
[DllImport("gstapp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_app_sink_get_leaky_type(IntPtr raw);
[DllImport("gstapp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_app_sink_set_leaky_type(IntPtr raw, int leaky);
[GLib.Property ("leaky-type")]
public Gst.App.AppLeakyType LeakyType {
get {
int raw_ret = gst_app_sink_get_leaky_type(Handle);
Gst.App.AppLeakyType ret = (Gst.App.AppLeakyType) raw_ret;
return ret;
}
set {
gst_app_sink_set_leaky_type(Handle, (int) value);
}
}
[DllImport("gstapp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern uint gst_app_sink_get_max_buffers(IntPtr raw);
@ -152,6 +227,31 @@ namespace Gst.App {
}
}
[GLib.Property ("out")]
public ulong Out {
get {
GLib.Value val = GetProperty ("out");
ulong ret = (ulong) val;
val.Dispose ();
return ret;
}
}
[GLib.Property ("silent")]
public bool Silent {
get {
GLib.Value val = GetProperty ("silent");
bool ret = (bool) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("silent", val);
val.Dispose ();
}
}
[DllImport("gstapp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern bool gst_app_sink_get_wait_on_eos(IntPtr raw);

View File

@ -87,6 +87,16 @@ namespace Gst.App {
}
}
[GLib.Property ("dropped")]
public ulong Dropped {
get {
GLib.Value val = GetProperty ("dropped");
ulong ret = (ulong) val;
val.Dispose ();
return ret;
}
}
[DllImport("gstapp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern ulong gst_app_src_get_duration(IntPtr raw);
@ -153,6 +163,16 @@ namespace Gst.App {
}
}
[GLib.Property ("in")]
public ulong In {
get {
GLib.Value val = GetProperty ("in");
ulong ret = (ulong) val;
val.Dispose ();
return ret;
}
}
[GLib.Property ("is-live")]
public bool IsLive {
get {
@ -285,6 +305,31 @@ namespace Gst.App {
}
}
[GLib.Property ("out")]
public ulong Out {
get {
GLib.Value val = GetProperty ("out");
ulong ret = (ulong) val;
val.Dispose ();
return ret;
}
}
[GLib.Property ("silent")]
public bool Silent {
get {
GLib.Value val = GetProperty ("silent");
bool ret = (bool) val;
val.Dispose ();
return ret;
}
set {
GLib.Value val = new GLib.Value(value);
SetProperty("silent", val);
val.Dispose ();
}
}
[DllImport("gstapp-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern long gst_app_src_get_size(IntPtr raw);

View File

@ -14559,7 +14559,19 @@
</return-type>
<parameters />
</method>
<method name="GetDrop" cname="gst_app_sink_get_drop">
<method name="GetCurrentLevelBuffers" cname="gst_app_sink_get_current_level_buffers" version="1.28">
<return-type type="guint64" />
<parameters />
</method>
<method name="GetCurrentLevelBytes" cname="gst_app_sink_get_current_level_bytes" version="1.28">
<return-type type="guint64" />
<parameters />
</method>
<method name="GetCurrentLevelTime" cname="gst_app_sink_get_current_level_time" version="1.28">
<return-type type="guint64" />
<parameters />
</method>
<method name="GetDrop" cname="gst_app_sink_get_drop" deprecated="true" deprecated-version="1.28">
<return-type type="gboolean" />
<parameters />
</method>
@ -14567,6 +14579,10 @@
<return-type type="gboolean" />
<parameters />
</method>
<method name="GetLeakyType" cname="gst_app_sink_get_leaky_type" version="1.28">
<return-type type="GstAppLeakyType" />
<parameters />
</method>
<method name="GetMaxBuffers" cname="gst_app_sink_get_max_buffers">
<return-type type="guint" />
<parameters />
@ -14613,7 +14629,7 @@
</parameter>
</parameters>
</method>
<method name="SetDrop" cname="gst_app_sink_set_drop">
<method name="SetDrop" cname="gst_app_sink_set_drop" deprecated="true" deprecated-version="1.28">
<return-type type="void" />
<parameters>
<parameter name="drop" type="gboolean" />
@ -14625,6 +14641,12 @@
<parameter name="emit" type="gboolean" />
</parameters>
</method>
<method name="SetLeakyType" cname="gst_app_sink_set_leaky_type" version="1.28">
<return-type type="void" />
<parameters>
<parameter name="leaky" type="GstAppLeakyType" />
</parameters>
</method>
<method name="SetMaxBuffers" cname="gst_app_sink_set_max_buffers">
<return-type type="void" />
<parameters>
@ -14667,12 +14689,20 @@
</method>
<property name="BufferList" cname="buffer-list" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false" />
<property name="Caps" cname="caps" type="GstCaps*" readable="true" writeable="true" construct="false" construct-only="false" />
<property name="Drop" cname="drop" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false" />
<property name="CurrentLevelBuffers" cname="current-level-buffers" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.28" />
<property name="CurrentLevelBytes" cname="current-level-bytes" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.28" />
<property name="CurrentLevelTime" cname="current-level-time" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.28" />
<property name="Drop" cname="drop" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false" deprecated="true" deprecated-version="1.28" />
<property name="Dropped" cname="dropped" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.28" />
<property name="EmitSignals" cname="emit-signals" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false" />
<property name="EosProp&#xA; " cname="eos" type="gboolean" readable="true" writeable="false" construct="false" construct-only="false" />
<property name="In" cname="in" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.28" />
<property name="LeakyType" cname="leaky-type" type="GstAppLeakyType" readable="true" writeable="true" construct="false" construct-only="false" version="1.28" />
<property name="MaxBuffers" cname="max-buffers" type="guint" readable="true" writeable="true" construct="false" construct-only="false" />
<property name="MaxBytes" cname="max-bytes" type="guint64" readable="true" writeable="true" construct="false" construct-only="false" version="1.24" />
<property name="MaxTime" cname="max-time" type="guint64" readable="true" writeable="true" construct="false" construct-only="false" version="1.24" />
<property name="Out" cname="out" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.28" />
<property name="Silent" cname="silent" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false" version="1.28" />
<property name="WaitOnEos" cname="wait-on-eos" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false" version="1.8" />
<field cname="basesink" access="public" writeable="false" readable="true" is_callback="false" name="Basesink" type="GstBaseSink*" />
<field cname="priv" access="private" writeable="false" readable="false" is_callback="false" name="Priv" type="GstAppSinkPrivate*">
@ -14918,10 +14948,12 @@
<property name="CurrentLevelBuffers" cname="current-level-buffers" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.20" />
<property name="CurrentLevelBytes" cname="current-level-bytes" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.2" />
<property name="CurrentLevelTime" cname="current-level-time" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.20" />
<property name="Dropped" cname="dropped" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.28" />
<property name="Duration" cname="duration" type="guint64" readable="true" writeable="true" construct="false" construct-only="false" version="1.10" />
<property name="EmitSignals" cname="emit-signals" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false" />
<property name="Format" cname="format" type="GstFormat" readable="true" writeable="true" construct="false" construct-only="false" />
<property name="HandleSegmentChange" cname="handle-segment-change" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false" version="1.18" />
<property name="In" cname="in" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.28" />
<property name="IsLive" cname="is-live" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false" />
<property name="LeakyType" cname="leaky-type" type="GstAppLeakyType" readable="true" writeable="true" construct="false" construct-only="false" version="1.20" />
<property name="MaxBuffers" cname="max-buffers" type="guint64" readable="true" writeable="true" construct="false" construct-only="false" version="1.20" />
@ -14930,6 +14962,8 @@
<property name="MaxTime" cname="max-time" type="guint64" readable="true" writeable="true" construct="false" construct-only="false" version="1.20" />
<property name="MinLatency" cname="min-latency" type="gint64" readable="true" writeable="true" construct="false" construct-only="false" />
<property name="MinPercent" cname="min-percent" type="guint" readable="true" writeable="true" construct="false" construct-only="false" />
<property name="Out" cname="out" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.28" />
<property name="Silent" cname="silent" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false" version="1.28" />
<property name="Size" cname="size" type="gint64" readable="true" writeable="true" construct="false" construct-only="false" />
<property name="StreamType" cname="stream-type" type="GstAppStreamType" readable="true" writeable="true" construct="false" construct-only="false" />
<field cname="basesrc" access="public" writeable="false" readable="true" is_callback="false" name="Basesrc" type="GstBaseSrc*" />

View File

@ -14252,7 +14252,19 @@
</return-type>
<parameters/>
</method>
<method name="GetDrop" cname="gst_app_sink_get_drop">
<method name="GetCurrentLevelBuffers" cname="gst_app_sink_get_current_level_buffers" version="1.28">
<return-type type="guint64"/>
<parameters/>
</method>
<method name="GetCurrentLevelBytes" cname="gst_app_sink_get_current_level_bytes" version="1.28">
<return-type type="guint64"/>
<parameters/>
</method>
<method name="GetCurrentLevelTime" cname="gst_app_sink_get_current_level_time" version="1.28">
<return-type type="guint64"/>
<parameters/>
</method>
<method name="GetDrop" cname="gst_app_sink_get_drop" deprecated="true" deprecated-version="1.28">
<return-type type="gboolean"/>
<parameters/>
</method>
@ -14260,6 +14272,10 @@
<return-type type="gboolean"/>
<parameters/>
</method>
<method name="GetLeakyType" cname="gst_app_sink_get_leaky_type" version="1.28">
<return-type type="GstAppLeakyType"/>
<parameters/>
</method>
<method name="GetMaxBuffers" cname="gst_app_sink_get_max_buffers">
<return-type type="guint"/>
<parameters/>
@ -14306,7 +14322,7 @@
</parameter>
</parameters>
</method>
<method name="SetDrop" cname="gst_app_sink_set_drop">
<method name="SetDrop" cname="gst_app_sink_set_drop" deprecated="true" deprecated-version="1.28">
<return-type type="void"/>
<parameters>
<parameter name="drop" type="gboolean"/>
@ -14318,6 +14334,12 @@
<parameter name="emit" type="gboolean"/>
</parameters>
</method>
<method name="SetLeakyType" cname="gst_app_sink_set_leaky_type" version="1.28">
<return-type type="void"/>
<parameters>
<parameter name="leaky" type="GstAppLeakyType"/>
</parameters>
</method>
<method name="SetMaxBuffers" cname="gst_app_sink_set_max_buffers">
<return-type type="void"/>
<parameters>
@ -14360,12 +14382,20 @@
</method>
<property name="BufferList" cname="buffer-list" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false"/>
<property name="Caps" cname="caps" type="GstCaps*" readable="true" writeable="true" construct="false" construct-only="false"/>
<property name="Drop" cname="drop" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false"/>
<property name="CurrentLevelBuffers" cname="current-level-buffers" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.28"/>
<property name="CurrentLevelBytes" cname="current-level-bytes" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.28"/>
<property name="CurrentLevelTime" cname="current-level-time" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.28"/>
<property name="Drop" cname="drop" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false" deprecated="true" deprecated-version="1.28"/>
<property name="Dropped" cname="dropped" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.28"/>
<property name="EmitSignals" cname="emit-signals" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false"/>
<property name="EosProp&#10;&#9;&#9;&#9;&#9;&#9;&#9;" cname="eos" type="gboolean" readable="true" writeable="false" construct="false" construct-only="false"/>
<property name="In" cname="in" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.28"/>
<property name="LeakyType" cname="leaky-type" type="GstAppLeakyType" readable="true" writeable="true" construct="false" construct-only="false" version="1.28"/>
<property name="MaxBuffers" cname="max-buffers" type="guint" readable="true" writeable="true" construct="false" construct-only="false"/>
<property name="MaxBytes" cname="max-bytes" type="guint64" readable="true" writeable="true" construct="false" construct-only="false" version="1.24"/>
<property name="MaxTime" cname="max-time" type="guint64" readable="true" writeable="true" construct="false" construct-only="false" version="1.24"/>
<property name="Out" cname="out" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.28"/>
<property name="Silent" cname="silent" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false" version="1.28"/>
<property name="WaitOnEos" cname="wait-on-eos" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false" version="1.8"/>
<field cname="basesink" access="public" writeable="false" readable="true" is_callback="false" name="Basesink" type="GstBaseSink*"/>
<field cname="priv" access="private" writeable="false" readable="false" is_callback="false" name="Priv" type="GstAppSinkPrivate*">
@ -14611,10 +14641,12 @@
<property name="CurrentLevelBuffers" cname="current-level-buffers" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.20"/>
<property name="CurrentLevelBytes" cname="current-level-bytes" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.2"/>
<property name="CurrentLevelTime" cname="current-level-time" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.20"/>
<property name="Dropped" cname="dropped" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.28"/>
<property name="Duration" cname="duration" type="guint64" readable="true" writeable="true" construct="false" construct-only="false" version="1.10"/>
<property name="EmitSignals" cname="emit-signals" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false"/>
<property name="Format" cname="format" type="GstFormat" readable="true" writeable="true" construct="false" construct-only="false"/>
<property name="HandleSegmentChange" cname="handle-segment-change" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false" version="1.18"/>
<property name="In" cname="in" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.28"/>
<property name="IsLive" cname="is-live" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false"/>
<property name="LeakyType" cname="leaky-type" type="GstAppLeakyType" readable="true" writeable="true" construct="false" construct-only="false" version="1.20"/>
<property name="MaxBuffers" cname="max-buffers" type="guint64" readable="true" writeable="true" construct="false" construct-only="false" version="1.20"/>
@ -14623,6 +14655,8 @@
<property name="MaxTime" cname="max-time" type="guint64" readable="true" writeable="true" construct="false" construct-only="false" version="1.20"/>
<property name="MinLatency" cname="min-latency" type="gint64" readable="true" writeable="true" construct="false" construct-only="false"/>
<property name="MinPercent" cname="min-percent" type="guint" readable="true" writeable="true" construct="false" construct-only="false"/>
<property name="Out" cname="out" type="guint64" readable="true" writeable="false" construct="false" construct-only="false" version="1.28"/>
<property name="Silent" cname="silent" type="gboolean" readable="true" writeable="true" construct="false" construct-only="false" version="1.28"/>
<property name="Size" cname="size" type="gint64" readable="true" writeable="true" construct="false" construct-only="false"/>
<property name="StreamType" cname="stream-type" type="GstAppStreamType" readable="true" writeable="true" construct="false" construct-only="false"/>
<field cname="basesrc" access="public" writeable="false" readable="true" is_callback="false" name="Basesrc" type="GstBaseSrc*"/>