gl: build gl mixer elements, moved from -base
authorTim-Philipp Müller <tim@centricular.com>
Thu, 27 Dec 2018 16:35:00 +0000 (17:35 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 28 Dec 2018 11:16:25 +0000 (12:16 +0100)
docs/plugins/gst-plugins-base-plugins-docs.sgml
docs/plugins/gst-plugins-base-plugins-sections.txt
ext/gl/Makefile.am
ext/gl/gstopengl.c
ext/gl/meson.build

index 57659de..a95f6eb 100644 (file)
     <xi:include href="xml/element-glfilterglass.xml" />
     <xi:include href="xml/element-glimagesinkelement.xml" />
     <xi:include href="xml/element-glimagesink.xml" />
+    <xi:include href="xml/element-glmixerbin.xml" />
+    <xi:include href="xml/element-glmosaic.xml" />
     <xi:include href="xml/element-gloverlay.xml" />
     <xi:include href="xml/element-glshader.xml" />
     <xi:include href="xml/element-glsinkbin.xml" />
     <xi:include href="xml/element-glsrcbin.xml" />
+    <xi:include href="xml/element-glstereomix.xml" />
     <xi:include href="xml/element-glstereosplit.xml" />
     <xi:include href="xml/element-gltestsrc.xml" />
     <xi:include href="xml/element-gltransformation.xml" />
     <xi:include href="xml/element-glupload.xml" />
+    <xi:include href="xml/element-glvideomixerelement.xml" />
+    <xi:include href="xml/element-glvideomixer.xml" />
     <xi:include href="xml/element-glviewconvert.xml" />
     <xi:include href="xml/element-multifdsink.xml" />
     <xi:include href="xml/element-multisocketsink.xml" />
index c5c2b54..fdbb50e 100644 (file)
@@ -886,6 +886,39 @@ gst_gl_image_sink_bin_get_type
 </SECTION>
 
 <SECTION>
+<FILE>element-glmixerbin</FILE>
+<TITLE>glmixerbin</TITLE>
+GstGLMixerBin
+GstGLMixerBinStartTimeSelection
+<SUBSECTION Standard>
+GstGLMixerBinClass
+GST_GL_MIXER_BIN
+GST_GL_MIXER_BIN_CAST
+GST_IS_GL_MIXER_BIN
+GST_GL_MIXER_BIN_CLASS
+GST_IS_GL_MIXER_BIN_CLASS
+GST_TYPE_GL_MIXER_BIN
+<SUBSECTION Private>
+gst_gl_mixer_bin_get_type
+</SECTION>
+
+<SECTION>
+<FILE>element-glmosaic</FILE>
+<TITLE>glmosaic</TITLE>
+GstGLMosaic
+<SUBSECTION Standard>
+GstGLMosaicClass
+GST_GL_MOSAIC
+GST_GL_MOSAIC_CAST
+GST_IS_GL_MOSAIC
+GST_GL_MOSAIC_CLASS
+GST_IS_GL_MOSAIC_CLASS
+GST_TYPE_GL_MOSAIC
+<SUBSECTION Private>
+gst_gl_mosaic_get_type
+</SECTION>
+
+<SECTION>
 <FILE>element-gloverlay</FILE>
 <TITLE>gloverlay</TITLE>
 GstGLOverlay
@@ -934,6 +967,22 @@ gst_gl_src_bin_get_type
 </SECTION>
 
 <SECTION>
+<FILE>element-glstereomix</FILE>
+<TITLE>glstereomix</TITLE>
+GstGLStereoMix
+<SUBSECTION Standard>
+GstGLStereoMixClass
+GST_GL_STEREO_MIX
+GST_GL_STEREO_MIX_CAST
+GST_IS_GL_STEREO_MIX
+GST_GL_STEREO_MIX_CLASS
+GST_IS_GL_STEREO_MIX_CLASS
+GST_TYPE_GL_STEREO_MIX
+<SUBSECTION Private>
+gst_gl_stereo_mix_get_type
+</SECTION>
+
+<SECTION>
 <FILE>element-glstereosplit</FILE>
 <TITLE>glstereosplit</TITLE>
 GstGLStereoSplit
@@ -996,6 +1045,39 @@ gst_gl_upload_element_get_type
 </SECTION>
 
 <SECTION>
+<FILE>element-glvideomixerelement</FILE>
+<TITLE>glvideomixerelement</TITLE>
+GstGLVideoMixer
+GstGLVideoMixerBackground
+<SUBSECTION Standard>
+GstGLVideoMixerClass
+GST_GL_VIDEO_MIXER
+GST_GL_VIDEO_MIXER_CAST
+GST_IS_GL_VIDEO_MIXER
+GST_GL_VIDEO_MIXER_CLASS
+GST_IS_GL_VIDEO_MIXER_CLASS
+GST_TYPE_GL_VIDEO_MIXER
+<SUBSECTION Private>
+gst_gl_video_mixer_get_type
+</SECTION>
+
+<SECTION>
+<FILE>element-glvideomixer</FILE>
+<TITLE>glvideomixer</TITLE>
+GstGLVideoMixerBin
+<SUBSECTION Standard>
+GstGLVideoMixerBinClass
+GST_GL_VIDEO_MIXER_BIN
+GST_GL_VIDEO_MIXER_BIN_CAST
+GST_IS_GL_VIDEO_MIXER_BIN
+GST_GL_VIDEO_MIXER_BIN_CLASS
+GST_IS_GL_VIDEO_MIXER_BIN_CLASS
+GST_TYPE_GL_VIDEO_MIXER_BIN
+<SUBSECTION Private>
+gst_gl_video_mixer_bin_get_type
+</SECTION>
+
+<SECTION>
 <FILE>element-glviewconvert</FILE>
 <TITLE>glviewconvert</TITLE>
 GstGLViewConvertElement
index 7c8c886..bf4bd11 100644 (file)
@@ -1,17 +1,5 @@
 plugin_LTLIBRARIES = libgstopengl.la
 
-# These have to stay in -bad until we can move GstVideoAggregator to -base
-#      gstglbasemixer.c
-#      gstglbasemixer.h
-#      gstglmixer.c
-#      gstglmixer.h
-#      gstglmixerbin.h
-#      gstglmixerbin.c
-#      gstglstereomix.c
-#      gstglstereomix.h
-#      gstglvideomixer.c
-#      gstglvideomixer.h
-
 libgstopengl_la_SOURCES = \
        gstopengl.c \
        gstglalpha.c \
@@ -43,13 +31,18 @@ libgstopengl_la_SOURCES = \
        effects/gstgleffectblur.c \
        effects/gstgleffectsobel.c \
        effects/gstgleffectlaplacian.c \
+       gstglbasemixer.c \
        gstglcolorscale.c \
        gstglcolorbalance.c \
+       gstgldeinterlace.c \
        gstglfiltershader.c \
        gstglfilterapp.c \
-       gstglviewconvert.c \
+       gstglmixer.c \
+       gstglmixerbin.c \
+       gstglstereomix.c \
        gstglstereosplit.c \
-       gstgldeinterlace.c \
+       gstglvideomixer.c \
+       gstglviewconvert.c \
        gltestsrc.c \
        gstgltestsrc.c \
        gstgloverlaycompositorelement.c \
@@ -67,12 +60,17 @@ noinst_HEADERS = \
        gstglfiltercube.h \
        gstgleffects.h \
        effects/gstgleffectssources.h \
+       gstglbasemixer.h \
        gstglcolorscale.h \
        gstglcolorbalance.h \
+       gstgldeinterlace.h \
        gstglfiltershader.h \
        gstglfilterapp.h \
+       gstglmixer.h \
+       gstglmixerbin.h \
+       gstglstereomix.h \
        gstglstereosplit.h \
-       gstgldeinterlace.h \
+       gstglvideomixer.h \
        gstglviewconvert.h \
        gltestsrc.h \
        gstgltestsrc.h \
@@ -81,13 +79,13 @@ noinst_HEADERS = \
 
 # full opengl required
 if USE_OPENGL
-#      gstglmosaic.c
 libgstopengl_la_SOURCES += \
+       gstglmosaic.c \
        gstglfilterglass.c
 
-#      gstglmosaic.h
 noinst_HEADERS += \
        gstglfilterglass.h \
+       gstglmosaic.h \
        effects/gstgleffectscurves.h \
        effects/gstgleffectlumatocurve.h
 
index 43f6462..302e845 100644 (file)
@@ -43,8 +43,6 @@
 #include "config.h"
 #endif
 
-#undef HAVE_VIDEO_AGGREGATOR_IN_BASE
-
 #include "gstglimagesink.h"
 #include "gstgluploadelement.h"
 #include "gstgldownloadelement.h"
 #include "gstgleffects.h"
 #include "gstglcolorscale.h"
 
-#ifdef HAVE_VIDEO_AGGREGATOR_IN_BASE
 #include "gstglmixerbin.h"
 #include "gstglvideomixer.h"
 #include "gstglstereomix.h"
-#endif
 
 #include "gstglfiltershader.h"
 #include "gstglfilterapp.h"
 #include "gstgloverlay.h"
 #endif
 
+#include "gstglmixerbin.h"
+#include "gstglvideomixer.h"
+#include "gstglstereomix.h"
+
+#if GST_GL_HAVE_OPENGL
+#endif /* GST_GL_HAVE_OPENGL */
+
 #if GST_GL_HAVE_OPENGL
 #include "gstglfilterglass.h"
 /* #include "gstglfilterreflectedscreen.h" */
-#ifdef HAVE_VIDEO_AGGREGATOR_IN_BASE
 #include "gstglmosaic.h"
-#endif
 #ifdef HAVE_PNG
 #include "gstgldifferencematte.h"
 /* #include "gstglbumper.h" */
@@ -169,12 +170,11 @@ plugin_init (GstPlugin * plugin)
           GST_RANK_NONE, GST_TYPE_GL_SRC_BIN)) {
     return FALSE;
   }
-#ifdef HAVE_VIDEO_AGGREGATOR_IN_BASE
+
   if (!gst_element_register (plugin, "glmixerbin",
           GST_RANK_NONE, GST_TYPE_GL_MIXER_BIN)) {
     return FALSE;
   }
-#endif
 
   if (!gst_element_register (plugin, "glfiltercube",
           GST_RANK_NONE, GST_TYPE_GL_FILTER_CUBE)) {
@@ -200,7 +200,7 @@ plugin_init (GstPlugin * plugin)
           GST_RANK_NONE, GST_TYPE_GL_COLORSCALE)) {
     return FALSE;
   }
-#ifdef HAVE_VIDEO_AGGREGATOR_IN_BASE
+
   if (!gst_element_register (plugin, "glvideomixer",
           GST_RANK_NONE, gst_gl_video_mixer_bin_get_type ())) {
     return FALSE;
@@ -210,7 +210,6 @@ plugin_init (GstPlugin * plugin)
           GST_RANK_NONE, gst_gl_video_mixer_get_type ())) {
     return FALSE;
   }
-#endif
 
   if (!gst_element_register (plugin, "glshader",
           GST_RANK_NONE, gst_gl_filtershader_get_type ())) {
@@ -231,12 +230,11 @@ plugin_init (GstPlugin * plugin)
           GST_RANK_NONE, GST_TYPE_GL_STEREOSPLIT)) {
     return FALSE;
   }
-#ifdef HAVE_VIDEO_AGGREGATOR_IN_BASE
+
   if (!gst_element_register (plugin, "glstereomix",
           GST_RANK_NONE, GST_TYPE_GL_STEREO_MIX)) {
     return FALSE;
   }
-#endif
 
   if (!gst_element_register (plugin, "gltestsrc",
           GST_RANK_NONE, GST_TYPE_GL_TEST_SRC)) {
@@ -274,12 +272,11 @@ plugin_init (GstPlugin * plugin)
     return FALSE;
   }
 #endif
-#ifdef HAVE_VIDEO_AGGREGATOR_IN_BASE
+
   if (!gst_element_register (plugin, "glmosaic",
           GST_RANK_NONE, GST_TYPE_GL_MOSAIC)) {
     return FALSE;
   }
-#endif
 #ifdef HAVE_PNG
   if (!gst_element_register (plugin, "gldifferencematte",
           GST_RANK_NONE, gst_gl_differencematte_get_type ())) {
index 433134b..8bbbcbe 100644 (file)
@@ -1,9 +1,3 @@
-# These have to stay in -bad until we can move GstVideoAggregator to -base
-#  'gstglbasemixer.c',
-#  'gstglmixerbin.c',
-#  'gstglmixer.c',
-#  'gstglvideomixer.c',
-#  'gstglstereomix.c',
 opengl_sources = [
   'gstopengl.c',
   'gstglalpha.c',
@@ -35,13 +29,18 @@ opengl_sources = [
   'effects/gstgleffectblur.c',
   'effects/gstgleffectsobel.c',
   'effects/gstgleffectlaplacian.c',
+  'gstglbasemixer.c',
   'gstglcolorscale.c',
   'gstglcolorbalance.c',
+  'gstgldeinterlace.c',
   'gstglfiltershader.c',
   'gstglfilterapp.c',
-  'gstglviewconvert.c',
+  'gstglmixerbin.c',
+  'gstglmixer.c',
+  'gstglvideomixer.c',
+  'gstglstereomix.c',
   'gstglstereosplit.c',
-  'gstgldeinterlace.c',
+  'gstglviewconvert.c',
   'gltestsrc.c',
   'gstgltestsrc.c',
   'gstgloverlaycompositorelement.c',
@@ -55,10 +54,9 @@ endif
 optional_deps = []
 
 if gl_dep.found() # have desktop GL
-  # These have to stay in -bad until we can move GstVideoAggregator to -base
-  # 'gstglmosaic.c',
   opengl_sources += [
     'gstglfilterglass.c',
+    'gstglmosaic.c',
   ]
 endif