mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
[366/906] docs: make remaining elements show up in docs
Split out declarations into header files and hook everything up so that five more elements show up in the plugin docs. Fixes #559135.
This commit is contained in:
parent
ca891db2a6
commit
6516ecb3cc
9 changed files with 225 additions and 118 deletions
|
@ -15,7 +15,9 @@ libgstopengl_la_SOURCES = \
|
|||
gstgldownload.c \
|
||||
gstgldownload.h \
|
||||
gstglfilterblur.c \
|
||||
gstglfilterblur.h \
|
||||
gstglfiltersobel.c \
|
||||
gstglfiltersobel.h \
|
||||
gstglfiltercube.c \
|
||||
gstglfiltercube.h \
|
||||
gstglfilterlaplacian.c \
|
||||
|
@ -29,6 +31,7 @@ libgstopengl_la_SOURCES = \
|
|||
gstgldeinterlace.c \
|
||||
gstgldeinterlace.h \
|
||||
gstgldifferencematte.c \
|
||||
gstgldifferencematte.h \
|
||||
gstgloverlay.c \
|
||||
gltestsrc.c \
|
||||
gltestsrc.h \
|
||||
|
|
|
@ -38,40 +38,9 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <png.h>
|
||||
#include <gstglfilter.h>
|
||||
#include "gstgldifferencematte.h"
|
||||
#include <gstgleffectssources.h>
|
||||
|
||||
#define GST_TYPE_GL_DIFFERENCEMATTE (gst_gl_differencematte_get_type())
|
||||
#define GST_GL_DIFFERENCEMATTE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_GL_DIFFERENCEMATTE,GstGLDifferenceMatte))
|
||||
#define GST_IS_GL_DIFFERENCEMATTE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_GL_DIFFERENCEMATTE))
|
||||
#define GST_GL_DIFFERENCEMATTE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass) , GST_TYPE_GL_DIFFERENCEMATTE,GstGLDifferenceMatteClass))
|
||||
#define GST_IS_GL_DIFFERENCEMATTE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass) , GST_TYPE_GL_DIFFERENCEMATTE))
|
||||
#define GST_GL_DIFFERENCEMATTE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj) , GST_TYPE_GL_DIFFERENCEMATTE,GstGLDifferenceMatteClass))
|
||||
|
||||
struct _GstGLDifferenceMatte
|
||||
{
|
||||
GstGLFilter filter;
|
||||
|
||||
GstGLShader *shader[4];
|
||||
|
||||
gchar *location;
|
||||
gboolean bg_has_changed;
|
||||
|
||||
guchar *pixbuf;
|
||||
GLuint savedbgtexture;
|
||||
GLuint newbgtexture;
|
||||
GLuint midtexture[4];
|
||||
GLuint intexture;
|
||||
};
|
||||
|
||||
struct _GstGLDifferenceMatteClass
|
||||
{
|
||||
GstGLFilterClass filter_class;
|
||||
};
|
||||
|
||||
typedef struct _GstGLDifferenceMatte GstGLDifferenceMatte;
|
||||
typedef struct _GstGLDifferenceMatteClass GstGLDifferenceMatteClass;
|
||||
|
||||
#define GST_CAT_DEFAULT gst_gl_differencematte_debug
|
||||
GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);
|
||||
|
||||
|
|
57
gst/gl/gstgldifferencematte.h
Normal file
57
gst/gl/gstgldifferencematte.h
Normal file
|
@ -0,0 +1,57 @@
|
|||
/*
|
||||
* GStreamer
|
||||
* Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef _GST_GL_DIFFERENCEMATTE_H_
|
||||
#define _GST_GL_DIFFERENCEMATTE_H_
|
||||
|
||||
#include <gstglfilter.h>
|
||||
|
||||
#define GST_TYPE_GL_DIFFERENCEMATTE (gst_gl_differencematte_get_type())
|
||||
#define GST_GL_DIFFERENCEMATTE(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_GL_DIFFERENCEMATTE,GstGLDifferenceMatte))
|
||||
#define GST_IS_GL_DIFFERENCEMATTE(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_GL_DIFFERENCEMATTE))
|
||||
#define GST_GL_DIFFERENCEMATTE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass) , GST_TYPE_GL_DIFFERENCEMATTE,GstGLDifferenceMatteClass))
|
||||
#define GST_IS_GL_DIFFERENCEMATTE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass) , GST_TYPE_GL_DIFFERENCEMATTE))
|
||||
#define GST_GL_DIFFERENCEMATTE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj) , GST_TYPE_GL_DIFFERENCEMATTE,GstGLDifferenceMatteClass))
|
||||
|
||||
typedef struct _GstGLDifferenceMatte GstGLDifferenceMatte;
|
||||
typedef struct _GstGLDifferenceMatteClass GstGLDifferenceMatteClass;
|
||||
|
||||
struct _GstGLDifferenceMatte
|
||||
{
|
||||
GstGLFilter filter;
|
||||
|
||||
GstGLShader *shader[4];
|
||||
|
||||
gchar *location;
|
||||
gboolean bg_has_changed;
|
||||
|
||||
guchar *pixbuf;
|
||||
GLuint savedbgtexture;
|
||||
GLuint newbgtexture;
|
||||
GLuint midtexture[4];
|
||||
GLuint intexture;
|
||||
};
|
||||
|
||||
struct _GstGLDifferenceMatteClass
|
||||
{
|
||||
GstGLFilterClass filter_class;
|
||||
};
|
||||
|
||||
#endif /* _GST_GL_DIFFERENCEMATTE_H_ */
|
|
@ -36,33 +36,7 @@
|
|||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <gstglfilter.h>
|
||||
|
||||
#define GST_TYPE_GL_FILTERBLUR (gst_gl_filterblur_get_type())
|
||||
#define GST_GL_FILTERBLUR(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GL_FILTERBLUR,GstGLFilterBlur))
|
||||
#define GST_IS_GL_FILTERBLUR(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GL_FILTERBLUR))
|
||||
#define GST_GL_FILTERBLUR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass) ,GST_TYPE_GL_FILTERBLUR,GstGLFilterBlurClass))
|
||||
#define GST_IS_GL_FILTERBLUR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass) ,GST_TYPE_GL_FILTERBLUR))
|
||||
#define GST_GL_FILTERBLUR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj) ,GST_TYPE_GL_FILTERBLUR,GstGLFilterBlurClass))
|
||||
|
||||
typedef struct _GstGLFilterBlur GstGLFilterBlur;
|
||||
typedef struct _GstGLFilterBlurClass GstGLFilterBlurClass;
|
||||
|
||||
struct _GstGLFilterBlur
|
||||
{
|
||||
GstGLFilter filter;
|
||||
GstGLShader *shader0;
|
||||
GstGLShader *shader1;
|
||||
|
||||
GLuint midtexture;
|
||||
};
|
||||
|
||||
struct _GstGLFilterBlurClass
|
||||
{
|
||||
GstGLFilterClass filter_class;
|
||||
};
|
||||
|
||||
GType gst_gl_glfilterblur_get_type (void);
|
||||
#include "gstglfilterblur.h"
|
||||
|
||||
/* horizontal convolution */
|
||||
static const gchar *hconv9_fragment_source =
|
||||
|
|
52
gst/gl/gstglfilterblur.h
Normal file
52
gst/gl/gstglfilterblur.h
Normal file
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* GStreamer
|
||||
* Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef _GST_GL_FILTERBLUR_H_
|
||||
#define _GST_GL_FILTERBLUR_H_
|
||||
|
||||
#include <gstglfilter.h>
|
||||
|
||||
#define GST_TYPE_GL_FILTERBLUR (gst_gl_filterblur_get_type())
|
||||
#define GST_GL_FILTERBLUR(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GL_FILTERBLUR,GstGLFilterBlur))
|
||||
#define GST_IS_GL_FILTERBLUR(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GL_FILTERBLUR))
|
||||
#define GST_GL_FILTERBLUR_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass) ,GST_TYPE_GL_FILTERBLUR,GstGLFilterBlurClass))
|
||||
#define GST_IS_GL_FILTERBLUR_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass) ,GST_TYPE_GL_FILTERBLUR))
|
||||
#define GST_GL_FILTERBLUR_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj) ,GST_TYPE_GL_FILTERBLUR,GstGLFilterBlurClass))
|
||||
|
||||
typedef struct _GstGLFilterBlur GstGLFilterBlur;
|
||||
typedef struct _GstGLFilterBlurClass GstGLFilterBlurClass;
|
||||
|
||||
struct _GstGLFilterBlur
|
||||
{
|
||||
GstGLFilter filter;
|
||||
GstGLShader *shader0;
|
||||
GstGLShader *shader1;
|
||||
|
||||
GLuint midtexture;
|
||||
};
|
||||
|
||||
struct _GstGLFilterBlurClass
|
||||
{
|
||||
GstGLFilterClass filter_class;
|
||||
};
|
||||
|
||||
GType gst_gl_glfilterblur_get_type (void);
|
||||
|
||||
#endif /* _GST_GL_FILTERBLUR_H_ */
|
|
@ -36,42 +36,15 @@
|
|||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#include <gstglfilter.h>
|
||||
#include "gstglfiltersobel.h"
|
||||
#include <gstgleffectssources.h>
|
||||
|
||||
#define GST_TYPE_GL_FILTERSOBEL (gst_gl_filtersobel_get_type())
|
||||
#define GST_GL_FILTERSOBEL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GL_FILTERSOBEL,GstGLFilterSobel))
|
||||
#define GST_IS_GL_FILTERSOBEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GL_FILTERSOBEL))
|
||||
#define GST_GL_FILTERSOBEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass) ,GST_TYPE_GL_FILTERSOBEL,GstGLFilterSobelClass))
|
||||
#define GST_IS_GL_FILTERSOBEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass) ,GST_TYPE_GL_FILTERSOBEL))
|
||||
#define GST_GL_FILTERSOBEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj) ,GST_TYPE_GL_FILTERSOBEL,GstGLFilterSobelClass))
|
||||
|
||||
typedef struct _GstGLFilterSobel GstGLFilterSobel;
|
||||
typedef struct _GstGLFilterSobelClass GstGLFilterSobelClass;
|
||||
|
||||
struct _GstGLFilterSobel
|
||||
{
|
||||
GstGLFilter filter;
|
||||
GstGLShader *shader0;
|
||||
|
||||
gboolean invert;
|
||||
|
||||
GLuint midtexture;
|
||||
};
|
||||
|
||||
struct _GstGLFilterSobelClass
|
||||
{
|
||||
GstGLFilterClass filter_class;
|
||||
};
|
||||
|
||||
enum
|
||||
{
|
||||
PROP_0,
|
||||
PROP_INVERT,
|
||||
PROP_INVERT
|
||||
};
|
||||
|
||||
GType gst_gl_glfiltersobel_get_type (void);
|
||||
|
||||
#define GST_CAT_DEFAULT gst_gl_filtersobel_debug
|
||||
GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);
|
||||
|
||||
|
|
53
gst/gl/gstglfiltersobel.h
Normal file
53
gst/gl/gstglfiltersobel.h
Normal file
|
@ -0,0 +1,53 @@
|
|||
/*
|
||||
* GStreamer
|
||||
* Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef _GST_GL_FILTERSOBEL_H_
|
||||
#define _GST_GL_FILTERSOBEL_H_
|
||||
|
||||
#include <gstglfilter.h>
|
||||
|
||||
#define GST_TYPE_GL_FILTERSOBEL (gst_gl_filtersobel_get_type())
|
||||
#define GST_GL_FILTERSOBEL(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GL_FILTERSOBEL,GstGLFilterSobel))
|
||||
#define GST_IS_GL_FILTERSOBEL(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_GL_FILTERSOBEL))
|
||||
#define GST_GL_FILTERSOBEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass) ,GST_TYPE_GL_FILTERSOBEL,GstGLFilterSobelClass))
|
||||
#define GST_IS_GL_FILTERSOBEL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass) ,GST_TYPE_GL_FILTERSOBEL))
|
||||
#define GST_GL_FILTERSOBEL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj) ,GST_TYPE_GL_FILTERSOBEL,GstGLFilterSobelClass))
|
||||
|
||||
typedef struct _GstGLFilterSobel GstGLFilterSobel;
|
||||
typedef struct _GstGLFilterSobelClass GstGLFilterSobelClass;
|
||||
|
||||
struct _GstGLFilterSobel
|
||||
{
|
||||
GstGLFilter filter;
|
||||
GstGLShader *shader0;
|
||||
|
||||
gboolean invert;
|
||||
|
||||
GLuint midtexture;
|
||||
};
|
||||
|
||||
struct _GstGLFilterSobelClass
|
||||
{
|
||||
GstGLFilterClass filter_class;
|
||||
};
|
||||
|
||||
GType gst_gl_glfiltersobel_get_type (void);
|
||||
|
||||
#endif /* _GST_GL_FILTERSOBEL_H_ */
|
|
@ -38,38 +38,9 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <png.h>
|
||||
#include <gstglfilter.h>
|
||||
#include "gstgloverlay.h"
|
||||
#include <gstgleffectssources.h>
|
||||
|
||||
#define GST_TYPE_GL_OVERLAY (gst_gl_overlay_get_type())
|
||||
#define GST_GL_OVERLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_GL_OVERLAY,GstGLOverlay))
|
||||
#define GST_IS_GL_OVERLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_GL_OVERLAY))
|
||||
#define GST_GL_OVERLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass) , GST_TYPE_GL_OVERLAY,GstGLOverlayClass))
|
||||
#define GST_IS_GL_OVERLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass) , GST_TYPE_GL_OVERLAY))
|
||||
#define GST_GL_OVERLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj) , GST_TYPE_GL_OVERLAY,GstGLOverlayClass))
|
||||
|
||||
struct _GstGLOverlay
|
||||
{
|
||||
GstGLFilter filter;
|
||||
|
||||
gchar *location;
|
||||
gboolean pbuf_has_changed;
|
||||
|
||||
guchar *pixbuf;
|
||||
gint width, height;
|
||||
GLuint pbuftexture;
|
||||
|
||||
// gboolean stretch;
|
||||
};
|
||||
|
||||
struct _GstGLOverlayClass
|
||||
{
|
||||
GstGLFilterClass filter_class;
|
||||
};
|
||||
|
||||
typedef struct _GstGLOverlay GstGLOverlay;
|
||||
typedef struct _GstGLOverlayClass GstGLOverlayClass;
|
||||
|
||||
#define GST_CAT_DEFAULT gst_gl_overlay_debug
|
||||
GST_DEBUG_CATEGORY_STATIC (GST_CAT_DEFAULT);
|
||||
|
||||
|
|
55
gst/gl/gstgloverlay.h
Normal file
55
gst/gl/gstgloverlay.h
Normal file
|
@ -0,0 +1,55 @@
|
|||
/*
|
||||
* GStreamer
|
||||
* Copyright (C) 2008 Filippo Argiolas <filippo.argiolas@gmail.com>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#ifndef _GST_GL_OVERLAY_H_
|
||||
#define _GST_GL_OVERLAY_H_
|
||||
|
||||
#include <gstglfilter.h>
|
||||
|
||||
#define GST_TYPE_GL_OVERLAY (gst_gl_overlay_get_type())
|
||||
#define GST_GL_OVERLAY(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_GL_OVERLAY,GstGLOverlay))
|
||||
#define GST_IS_GL_OVERLAY(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), GST_TYPE_GL_OVERLAY))
|
||||
#define GST_GL_OVERLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass) , GST_TYPE_GL_OVERLAY,GstGLOverlayClass))
|
||||
#define GST_IS_GL_OVERLAY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass) , GST_TYPE_GL_OVERLAY))
|
||||
#define GST_GL_OVERLAY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj) , GST_TYPE_GL_OVERLAY,GstGLOverlayClass))
|
||||
|
||||
typedef struct _GstGLOverlay GstGLOverlay;
|
||||
typedef struct _GstGLOverlayClass GstGLOverlayClass;
|
||||
|
||||
struct _GstGLOverlay
|
||||
{
|
||||
GstGLFilter filter;
|
||||
|
||||
gchar *location;
|
||||
gboolean pbuf_has_changed;
|
||||
|
||||
guchar *pixbuf;
|
||||
gint width, height;
|
||||
GLuint pbuftexture;
|
||||
|
||||
/* gboolean stretch; */
|
||||
};
|
||||
|
||||
struct _GstGLOverlayClass
|
||||
{
|
||||
GstGLFilterClass filter_class;
|
||||
};
|
||||
|
||||
#endif /* _GST_GL_OVERLAY_H_ */
|
Loading…
Reference in a new issue