diff --git a/subprojects/gst-plugins-base/ext/gl/gstglmosaic.c b/subprojects/gst-plugins-base/ext/gl/gstglmosaic.c index 505782922f..6b0ef638ec 100644 --- a/subprojects/gst-plugins-base/ext/gl/gstglmosaic.c +++ b/subprojects/gst-plugins-base/ext/gl/gstglmosaic.c @@ -42,6 +42,8 @@ #include "config.h" #endif +#include + #include "gstglelements.h" #include "gstglmosaic.h" #include "gstglutils.h" diff --git a/subprojects/gst-plugins-base/ext/gl/gstglmosaic.h b/subprojects/gst-plugins-base/ext/gl/gstglmosaic.h index 6bdb249271..731f523cbe 100644 --- a/subprojects/gst-plugins-base/ext/gl/gstglmosaic.h +++ b/subprojects/gst-plugins-base/ext/gl/gstglmosaic.h @@ -21,7 +21,7 @@ #ifndef _GST_GL_MOSAIC_H_ #define _GST_GL_MOSAIC_H_ -#include "gstglmixer.h" +#include G_BEGIN_DECLS diff --git a/subprojects/gst-plugins-base/ext/gl/gstglstereomix.h b/subprojects/gst-plugins-base/ext/gl/gstglstereomix.h index 9971a89101..530c355649 100644 --- a/subprojects/gst-plugins-base/ext/gl/gstglstereomix.h +++ b/subprojects/gst-plugins-base/ext/gl/gstglstereomix.h @@ -22,7 +22,7 @@ #ifndef __GST_GL_STEREO_MIX_H__ #define __GST_GL_STEREO_MIX_H__ -#include "gstglmixer.h" +#include G_BEGIN_DECLS @@ -64,7 +64,7 @@ struct _GstGLStereoMix { GstGLMixer mixer; - GLuint out_tex_id; + guint out_tex_id; GstGLViewConvert *viewconvert; GstGLStereoDownmix downmix_mode; diff --git a/subprojects/gst-plugins-base/ext/gl/gstglvideomixer.h b/subprojects/gst-plugins-base/ext/gl/gstglvideomixer.h index 1109af1c4a..25482cdbf0 100644 --- a/subprojects/gst-plugins-base/ext/gl/gstglvideomixer.h +++ b/subprojects/gst-plugins-base/ext/gl/gstglvideomixer.h @@ -21,7 +21,7 @@ #ifndef _GST_GL_VIDEO_MIXER_H_ #define _GST_GL_VIDEO_MIXER_H_ -#include "gstglmixer.h" +#include G_BEGIN_DECLS @@ -140,9 +140,9 @@ struct _GstGLVideoMixer GstGLShader *shader; GstGLShader *checker; - GLuint vao; - GLuint vbo_indices; - GLuint checker_vbo; + guint vao; + guint vbo_indices; + guint checker_vbo; GstGLMemory *out_tex; gboolean output_geo_change; diff --git a/subprojects/gst-plugins-base/ext/gl/meson.build b/subprojects/gst-plugins-base/ext/gl/meson.build index f1a94e2da0..ad514014e9 100644 --- a/subprojects/gst-plugins-base/ext/gl/meson.build +++ b/subprojects/gst-plugins-base/ext/gl/meson.build @@ -30,14 +30,12 @@ opengl_sources = [ 'effects/gstgleffectblur.c', 'effects/gstgleffectsobel.c', 'effects/gstgleffectlaplacian.c', - 'gstglbasemixer.c', 'gstglcolorscale.c', 'gstglcolorbalance.c', 'gstgldeinterlace.c', 'gstglfiltershader.c', 'gstglfilterapp.c', 'gstglmixerbin.c', - 'gstglmixer.c', 'gstglvideomixer.c', 'gstglstereomix.c', 'gstglstereosplit.c', diff --git a/subprojects/gst-plugins-base/ext/gl/gstglbasemixer.c b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglbasemixer.c similarity index 100% rename from subprojects/gst-plugins-base/ext/gl/gstglbasemixer.c rename to subprojects/gst-plugins-base/gst-libs/gst/gl/gstglbasemixer.c diff --git a/subprojects/gst-plugins-base/ext/gl/gstglbasemixer.h b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglbasemixer.h similarity index 99% rename from subprojects/gst-plugins-base/ext/gl/gstglbasemixer.h rename to subprojects/gst-plugins-base/gst-libs/gst/gl/gstglbasemixer.h index c82347904a..4440fc1744 100644 --- a/subprojects/gst-plugins-base/ext/gl/gstglbasemixer.h +++ b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglbasemixer.h @@ -54,6 +54,7 @@ struct _GstGLBaseMixerPadClass GstVideoAggregatorPadClass parent_class; }; +GST_GL_API GType gst_gl_base_mixer_pad_get_type (void); #define GST_TYPE_GL_BASE_MIXER (gst_gl_base_mixer_get_type()) @@ -95,8 +96,10 @@ struct _GstGLBaseMixerClass gpointer _padding[GST_PADDING]; }; +GST_GL_API GType gst_gl_base_mixer_get_type(void); +GST_GL_API GstGLContext * gst_gl_base_mixer_get_gl_context (GstGLBaseMixer * mix); G_END_DECLS diff --git a/subprojects/gst-plugins-base/ext/gl/gstglmixer.c b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglmixer.c similarity index 99% rename from subprojects/gst-plugins-base/ext/gl/gstglmixer.c rename to subprojects/gst-plugins-base/gst-libs/gst/gl/gstglmixer.c index 41c634d8d8..7d56662d4d 100644 --- a/subprojects/gst-plugins-base/ext/gl/gstglmixer.c +++ b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglmixer.c @@ -30,6 +30,8 @@ #include "gstglmixer.h" +#include + #define GST_CAT_DEFAULT gst_gl_mixer_debug GST_DEBUG_CATEGORY (gst_gl_mixer_debug); diff --git a/subprojects/gst-plugins-base/ext/gl/gstglmixer.h b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglmixer.h similarity index 99% rename from subprojects/gst-plugins-base/ext/gl/gstglmixer.h rename to subprojects/gst-plugins-base/gst-libs/gst/gl/gstglmixer.h index 886e00940a..773396d1db 100644 --- a/subprojects/gst-plugins-base/ext/gl/gstglmixer.h +++ b/subprojects/gst-plugins-base/gst-libs/gst/gl/gstglmixer.h @@ -24,7 +24,6 @@ #include #include #include -#include #include "gstglbasemixer.h" G_BEGIN_DECLS @@ -61,6 +60,7 @@ struct _GstGLMixerPadClass GstGLBaseMixerPadClass parent_class; }; +GST_GL_API GType gst_gl_mixer_pad_get_type (void); #define GST_TYPE_GL_MIXER (gst_gl_mixer_get_type()) @@ -102,8 +102,10 @@ struct _GstGLMixerClass GstGLMixerProcessTextures process_textures; }; +GST_GL_API GType gst_gl_mixer_get_type(void); +GST_GL_API gboolean gst_gl_mixer_process_textures (GstGLMixer * mix, GstBuffer * outbuf); G_END_DECLS diff --git a/subprojects/gst-plugins-base/gst-libs/gst/gl/meson.build b/subprojects/gst-plugins-base/gst-libs/gst/gl/meson.build index 3c91efc78e..3c255a9659 100644 --- a/subprojects/gst-plugins-base/gst-libs/gst/gl/meson.build +++ b/subprojects/gst-plugins-base/gst-libs/gst/gl/meson.build @@ -14,6 +14,7 @@ gl_sources = files([ 'gstglapi.c', 'gstglbasefilter.c', 'gstglbasememory.c', + 'gstglbasemixer.c', 'gstglbasesrc.c', 'gstglcolorconvert.c', 'gstglbuffer.c', @@ -29,6 +30,7 @@ gl_sources = files([ 'gstglframebuffer.c', 'gstglmemory.c', 'gstglmemorypbo.c', + 'gstglmixer.c', 'gstgloverlaycompositor.c', 'gstglquery.c', 'gstglrenderbuffer.c', @@ -53,6 +55,7 @@ gir_gl_headers = files([ 'gstglapi.h', 'gstglbasefilter.h', 'gstglbasememory.h', + 'gstglbasemixer.h', 'gstglbasesrc.h', 'gstglbuffer.h', 'gstglbufferpool.h', @@ -67,6 +70,7 @@ gir_gl_headers = files([ 'gstglframebuffer.h', 'gstglmemory.h', 'gstglmemorypbo.h', + 'gstglmixer.h', 'gstgloverlaycompositor.h', 'gstglquery.h', 'gstglrenderbuffer.h',