From 15102e2eefaaab7b041a7b5ab6c8f98107500438 Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Thu, 13 Apr 2023 00:54:41 +0200 Subject: [PATCH] docs: mark GstGLSinkBin as plugin API Part-of: --- .../docs/plugins/gst_plugins_cache.json | 236 ++++++++++++++++++ .../gst-plugins-base/ext/gl/gstglsinkbin.c | 2 + 2 files changed, 238 insertions(+) diff --git a/subprojects/gst-plugins-base/docs/plugins/gst_plugins_cache.json b/subprojects/gst-plugins-base/docs/plugins/gst_plugins_cache.json index 36795634d4..959a59cb57 100644 --- a/subprojects/gst-plugins-base/docs/plugins/gst_plugins_cache.json +++ b/subprojects/gst-plugins-base/docs/plugins/gst_plugins_cache.json @@ -7119,6 +7119,242 @@ } ] }, + "GstGLSinkBin": { + "hierarchy": [ + "GstGLSinkBin", + "GstBin", + "GstElement", + "GstObject", + "GInitiallyUnowned", + "GObject" + ], + "interfaces": [ + "GstChildProxy", + "GstVideoOverlay", + "GstNavigation", + "GstColorBalance" + ], + "kind": "object", + "properties": { + "async": { + "blurb": "Go asynchronously to PAUSED", + "conditionally-available": false, + "construct": false, + "construct-only": false, + "controllable": false, + "default": "true", + "mutable": "null", + "readable": true, + "type": "gboolean", + "writable": true + }, + "blocksize": { + "blurb": "Size in bytes to pull per buffer (0 = default)", + "conditionally-available": false, + "construct": false, + "construct-only": false, + "controllable": false, + "default": "4096", + "max": "-1", + "min": "0", + "mutable": "null", + "readable": true, + "type": "guint", + "writable": true + }, + "brightness": { + "blurb": "brightness", + "conditionally-available": false, + "construct": false, + "construct-only": false, + "controllable": true, + "default": "0", + "max": "1", + "min": "-1", + "mutable": "null", + "readable": true, + "type": "gdouble", + "writable": true + }, + "contrast": { + "blurb": "contrast", + "conditionally-available": false, + "construct": false, + "construct-only": false, + "controllable": true, + "default": "1", + "max": "2", + "min": "0", + "mutable": "null", + "readable": true, + "type": "gdouble", + "writable": true + }, + "enable-last-sample": { + "blurb": "Enable the last-sample property", + "conditionally-available": false, + "construct": false, + "construct-only": false, + "controllable": false, + "default": "true", + "mutable": "null", + "readable": true, + "type": "gboolean", + "writable": true + }, + "hue": { + "blurb": "hue", + "conditionally-available": false, + "construct": false, + "construct-only": false, + "controllable": true, + "default": "0", + "max": "1", + "min": "-1", + "mutable": "null", + "readable": true, + "type": "gdouble", + "writable": true + }, + "last-sample": { + "blurb": "The last sample received in the sink", + "conditionally-available": false, + "construct": false, + "construct-only": false, + "controllable": false, + "mutable": "null", + "readable": true, + "type": "GstSample", + "writable": false + }, + "max-bitrate": { + "blurb": "The maximum bits per second to render (0 = disabled)", + "conditionally-available": false, + "construct": false, + "construct-only": false, + "controllable": false, + "default": "0", + "max": "18446744073709551615", + "min": "0", + "mutable": "null", + "readable": true, + "type": "guint64", + "writable": true + }, + "max-lateness": { + "blurb": "Maximum number of nanoseconds that a buffer can be late before it is dropped (-1 unlimited)", + "conditionally-available": false, + "construct": false, + "construct-only": false, + "controllable": false, + "default": "5000000", + "max": "9223372036854775807", + "min": "-1", + "mutable": "null", + "readable": true, + "type": "gint64", + "writable": true + }, + "qos": { + "blurb": "Generate Quality-of-Service events upstream", + "conditionally-available": false, + "construct": false, + "construct-only": false, + "controllable": false, + "default": "true", + "mutable": "null", + "readable": true, + "type": "gboolean", + "writable": true + }, + "render-delay": { + "blurb": "Additional render delay of the sink in nanoseconds", + "conditionally-available": false, + "construct": false, + "construct-only": false, + "controllable": false, + "default": "0", + "max": "18446744073709551615", + "min": "0", + "mutable": "null", + "readable": true, + "type": "guint64", + "writable": true + }, + "saturation": { + "blurb": "saturation", + "conditionally-available": false, + "construct": false, + "construct-only": false, + "controllable": true, + "default": "1", + "max": "2", + "min": "0", + "mutable": "null", + "readable": true, + "type": "gdouble", + "writable": true + }, + "sink": { + "blurb": "The GL sink chain to use", + "conditionally-available": false, + "construct": false, + "construct-only": false, + "controllable": false, + "mutable": "ready", + "readable": true, + "type": "GstElement", + "writable": true + }, + "sync": { + "blurb": "Sync on the clock", + "conditionally-available": false, + "construct": false, + "construct-only": false, + "controllable": false, + "default": "true", + "mutable": "null", + "readable": true, + "type": "gboolean", + "writable": true + }, + "throttle-time": { + "blurb": "The time to keep between rendered buffers (0 = disabled)", + "conditionally-available": false, + "construct": false, + "construct-only": false, + "controllable": false, + "default": "0", + "max": "18446744073709551615", + "min": "0", + "mutable": "null", + "readable": true, + "type": "guint64", + "writable": true + }, + "ts-offset": { + "blurb": "Timestamp offset in nanoseconds", + "conditionally-available": false, + "construct": false, + "construct-only": false, + "controllable": false, + "default": "0", + "max": "9223372036854775807", + "min": "-9223372036854775808", + "mutable": "null", + "readable": true, + "type": "gint64", + "writable": true + } + }, + "signals": { + "create-element": { + "args": [], + "return-type": "GstElement", + "when": "last" + } + } + }, "GstGLStereoDownmix": { "kind": "enum", "values": [ diff --git a/subprojects/gst-plugins-base/ext/gl/gstglsinkbin.c b/subprojects/gst-plugins-base/ext/gl/gstglsinkbin.c index 1c4306c8ed..f32fac5de8 100644 --- a/subprojects/gst-plugins-base/ext/gl/gstglsinkbin.c +++ b/subprojects/gst-plugins-base/ext/gl/gstglsinkbin.c @@ -266,6 +266,8 @@ gst_gl_sink_bin_init (GstGLSinkBin * self) if (!res) { GST_WARNING_OBJECT (self, "Failed to add/connect the necessary machinery"); } + + gst_type_mark_as_plugin_api (GST_TYPE_GL_SINK_BIN, 0); } static void