From 0c93eaec4fe84091b5608485ae8a107eebf8a10d Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Mon, 9 Dec 2024 15:12:57 +0530 Subject: [PATCH] vtenc: Mark rate-control enum as plugin API, and update cache Part-of: --- .../docs/plugins/gst_plugins_cache.json | 15 +++++++++++++++ .../gst-plugins-bad/sys/applemedia/vtenc.c | 2 ++ 2 files changed, 17 insertions(+) diff --git a/subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json b/subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json index 41d8d6ebb7..3b82ef040e 100644 --- a/subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json +++ b/subprojects/gst-plugins-bad/docs/plugins/gst_plugins_cache.json @@ -5565,6 +5565,21 @@ "value": "0" } ] + }, + "GstVtencRateControl": { + "kind": "enum", + "values": [ + { + "desc": "Average Bitrate", + "name": "abr", + "value": "0" + }, + { + "desc": "Constant Bitrate", + "name": "cbr", + "value": "1" + } + ] } }, "package": "GStreamer Bad Plug-ins", diff --git a/subprojects/gst-plugins-bad/sys/applemedia/vtenc.c b/subprojects/gst-plugins-bad/sys/applemedia/vtenc.c index ccc1a4db67..0c3e9aa7dc 100644 --- a/subprojects/gst-plugins-bad/sys/applemedia/vtenc.c +++ b/subprojects/gst-plugins-bad/sys/applemedia/vtenc.c @@ -531,6 +531,8 @@ gst_vtenc_class_init (GstVTEncClass * klass) VTENC_DEFAULT_PRESERVE_ALPHA, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS)); } + + gst_type_mark_as_plugin_api (GST_TYPE_VTENC_RATE_CONTROL, 0); } static void