codecs: Add basic documentation stubs
authorThibault Saunier <tsaunier@igalia.com>
Wed, 8 Apr 2020 12:47:37 +0000 (08:47 -0400)
committerThibault Saunier <tsaunier@igalia.com>
Wed, 8 Apr 2020 12:47:46 +0000 (08:47 -0400)
docs/libs/codecs/index.md [new file with mode: 0644]
docs/libs/codecs/sitemap.txt [new file with mode: 0644]
docs/meson.build
gst-libs/gst/codecs/gsth264decoder.c
gst-libs/gst/codecs/gsth265decoder.c
gst-libs/gst/codecs/gstvp9decoder.c
gst-libs/gst/codecs/meson.build

diff --git a/docs/libs/codecs/index.md b/docs/libs/codecs/index.md
new file mode 100644 (file)
index 0000000..9e6dd6f
--- /dev/null
@@ -0,0 +1,3 @@
+# GstCodecs
+
+> NOTE: This library API is considered *unstable*
diff --git a/docs/libs/codecs/sitemap.txt b/docs/libs/codecs/sitemap.txt
new file mode 100644 (file)
index 0000000..4f91fcd
--- /dev/null
@@ -0,0 +1 @@
+gi-index
index a8f66f2..465bd81 100644 (file)
@@ -104,6 +104,7 @@ if build_gir
         {'name': 'webrtc', 'gir': webrtc_gir, 'lib': gstwebrtc_dep, 'suffix': 'lib'},
         {'name': 'audio', 'gir': audio_gir, 'lib': gstbadaudio_dep, 'prefix': 'bad-'},
         {'name': 'transcoder', 'gir': transcoder_gir, 'lib': gst_transcoder_dep},
+        {'name': 'codecs', 'gir': codecs_gir, 'lib': gstcodecs_dep},
    ]
 endif
 
index 26127f5..a235d74 100644 (file)
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+/**
+ * SECTION:gsth264decoder
+ * @title: GstH264Decoder
+ * @short_description: Base class to implement stateless H.264 decoders
+ * @sources:
+ * - gsth264picture.h
+ */
 
 #ifdef HAVE_CONFIG_H
 #include <config.h>
index 33af638..9203369 100644 (file)
  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
  * Boston, MA 02110-1301, USA.
  */
+/**
+ * SECTION:gsth265decoder
+ * @title: GstH265Decoder
+ * @short_description: Base class to implement stateless H.265 decoders
+ * @sources:
+ * - gsth265picture.h
+ */
 
 #ifdef HAVE_CONFIG_H
 #include <config.h>
index 92ca74e..5d80af5 100644 (file)
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
+/**
+ * SECTION:gstvp9decoder
+ * @title: Gstvp9Decoder
+ * @short_description: Base class to implement stateless VP9 decoders
+ * @sources:
+ * - gstvp9picture.h
+ */
 
 #ifdef HAVE_CONFIG_H
 #include <config.h>
index 37d4d10..455fafc 100644 (file)
@@ -32,6 +32,26 @@ gstcodecs = library('gstcodecs-' + api_version,
   dependencies : [gstvideo_dep, gstcodecparsers_dep],
 )
 
+gen_sources = []
+if build_gir
+  codecs_gir = gnome.generate_gir(gstcodecs,
+    sources : codecs_sources + codecs_headers,
+    namespace : 'GstCodecs',
+    nsversion : api_version,
+    identifier_prefix : 'Gst',
+    symbol_prefix : 'gst',
+    export_packages : 'gstreamer-codecs-1.0',
+    includes : ['Gst-1.0', 'GstVideo-1.0'],
+    install : true,
+    extra_args : gir_init_section + ['-DGST_USE_UNSTABLE_API'] +
+      ['--c-include=gst/codecs/gsth264decoder.h',
+      '--c-include=gst/codecs/gsth265decoder.h',
+      '--c-include=gst/codecs/gstvp9decoder.h', ],
+    dependencies : [gstvideo_dep, gstcodecparsers_dep]
+  )
+endif
+
 gstcodecs_dep = declare_dependency(link_with : gstcodecs,
   include_directories : [libsinc],
+  sources: gen_sources,
   dependencies : [gstvideo_dep, gstcodecparsers_dep])