summaryrefslogtreecommitdiff
path: root/sources/generated/Gst.Video/VideoDecoder.cs
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2020-10-16 15:37:35 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2020-10-16 16:29:42 -0400
commit2cdb1e714db11e0c404ca1cce00b9115fd08e498 (patch)
tree8be956a92bcf1dc8e461636a0c967a5fb8640452 /sources/generated/Gst.Video/VideoDecoder.cs
parent9d02a62ec8ea1a935e911344d50514de72977db8 (diff)
Update bindings
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-sharp/-/merge_requests/25>
Diffstat (limited to 'sources/generated/Gst.Video/VideoDecoder.cs')
-rw-r--r--sources/generated/Gst.Video/VideoDecoder.cs56
1 files changed, 56 insertions, 0 deletions
diff --git a/sources/generated/Gst.Video/VideoDecoder.cs b/sources/generated/Gst.Video/VideoDecoder.cs
index 9856f49..c269efd 100644
--- a/sources/generated/Gst.Video/VideoDecoder.cs
+++ b/sources/generated/Gst.Video/VideoDecoder.cs
@@ -18,6 +18,21 @@ namespace Gst.Video {
CreateNativeObject (new string [0], new GLib.Value [0]);
}
+ [GLib.Property ("discard-corrupted-frames")]
+ public bool DiscardCorruptedFrames {
+ get {
+ GLib.Value val = GetProperty ("discard-corrupted-frames");
+ bool ret = (bool) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("discard-corrupted-frames", val);
+ val.Dispose ();
+ }
+ }
+
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern int gst_video_decoder_get_max_errors(IntPtr raw);
@@ -36,6 +51,21 @@ namespace Gst.Video {
}
}
+ [GLib.Property ("min-force-key-unit-interval")]
+ public ulong MinForceKeyUnitInterval {
+ get {
+ GLib.Value val = GetProperty ("min-force-key-unit-interval");
+ ulong ret = (ulong) val;
+ val.Dispose ();
+ return ret;
+ }
+ set {
+ GLib.Value val = new GLib.Value(value);
+ SetProperty("min-force-key-unit-interval", val);
+ val.Dispose ();
+ }
+ }
+
[GLib.Property ("qos")]
public bool Qos {
get {
@@ -1568,6 +1598,23 @@ namespace Gst.Video {
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern bool gst_video_decoder_get_needs_sync_point(IntPtr raw);
+
+ [DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern void gst_video_decoder_set_needs_sync_point(IntPtr raw, bool enabled);
+
+ public bool NeedsSyncPoint {
+ get {
+ bool raw_ret = gst_video_decoder_get_needs_sync_point(Handle);
+ bool ret = raw_ret;
+ return ret;
+ }
+ set {
+ gst_video_decoder_set_needs_sync_point(Handle, value);
+ }
+ }
+
+ [DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern IntPtr gst_video_decoder_get_oldest_frame(IntPtr raw);
public Gst.Video.VideoCodecFrame OldestFrame {
@@ -1680,6 +1727,15 @@ namespace Gst.Video {
}
[DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
+ static extern void gst_video_decoder_request_sync_point(IntPtr raw, IntPtr frame, int flags);
+
+ public void RequestSyncPoint(Gst.Video.VideoCodecFrame frame, Gst.Video.VideoDecoderRequestSyncPointFlags flags) {
+ IntPtr native_frame = GLib.Marshaller.StructureToPtrAlloc (frame);
+ gst_video_decoder_request_sync_point(Handle, native_frame, (int) flags);
+ Marshal.FreeHGlobal (native_frame);
+ }
+
+ [DllImport("gstvideo-1.0-0.dll", CallingConvention = CallingConvention.Cdecl)]
static extern void gst_video_decoder_set_estimate_rate(IntPtr raw, bool enabled);
public void SetEstimateRate(bool enabled) {