atenc: Add missing since markers and mark plugin API
authorNirbheek Chauhan <nirbheek@centricular.com>
Mon, 9 Dec 2024 09:48:55 +0000 (15:18 +0530)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 16 Dec 2024 18:52:20 +0000 (18:52 +0000)
Also update the plugin docs cache.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8120>

subprojects/gst-plugins-good/docs/gst_plugins_cache.json
subprojects/gst-plugins-good/sys/osxaudio/gstatenc.c

index 1673eb38de4ae87b6cb84eb4d419710daea0c19b..0bebec27c6162323dda8bdef44fc3d6a0927ddda 100644 (file)
         "filename": "gstosxaudio",
         "license": "LGPL",
         "other-types": {
+            "GstATEncRateControl": {
+                "kind": "enum",
+                "values": [
+                    {
+                        "desc": "Constant bitrate",
+                        "name": "cbr",
+                        "value": "0"
+                    },
+                    {
+                        "desc": "Long-term-average bitrate",
+                        "name": "lta",
+                        "value": "1"
+                    },
+                    {
+                        "desc": "Constrained variable bitrate",
+                        "name": "cvbr",
+                        "value": "2"
+                    },
+                    {
+                        "desc": "Variable bitrate",
+                        "name": "vbr",
+                        "value": "3"
+                    }
+                ]
+            },
             "GstOsxAudioElement": {
                 "hierarchy": [
                     "GstOsxAudioElement",
index a5496782015dfd8d6deed06c8e66ae01a55d5178..4db5e1a123bcbef153a553dd59aceb29105d6125 100644 (file)
@@ -27,6 +27,7 @@
  * ]|
  * Encodes audio from audiotestsrc and writes it to a file.
  *
+ * Since: 1.26
  */
 
 #ifdef HAVE_CONFIG_H
@@ -183,7 +184,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_atenc_debug);
 G_DEFINE_TYPE (GstATEnc, gst_atenc, GST_TYPE_AUDIO_ENCODER);
 GST_ELEMENT_REGISTER_DEFINE (atenc, "atenc", GST_RANK_PRIMARY, GST_TYPE_ATENC);
 
-#define GST_ATENC_RATE_CONTROL (gst_atenc_rate_control_get_type ())
+#define GST_TYPE_ATENC_RATE_CONTROL (gst_atenc_rate_control_get_type ())
 static GType
 gst_atenc_rate_control_get_type (void)
 {
@@ -913,7 +914,7 @@ gst_atenc_class_init (GstATEncClass * klass)
       g_param_spec_enum ("rate-control",
           "Rate control",
           "Mode of output bitrate control to be applied",
-          GST_ATENC_RATE_CONTROL,
+          GST_TYPE_ATENC_RATE_CONTROL,
           DEFAULT_RATE_CONTROL, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
 
   /**
@@ -940,4 +941,6 @@ gst_atenc_class_init (GstATEncClass * klass)
 
   GST_DEBUG_CATEGORY_INIT (gst_atenc_debug, "atenc", 0,
       "AudioToolbox based audio encoder");
+
+  gst_type_mark_as_plugin_api (GST_TYPE_ATENC_RATE_CONTROL, 0);
 }