Skip to content

Commit

Permalink
[733/906] gl: Major header and include cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sdroege authored and tp-m committed Dec 9, 2017
1 parent d17a438 commit f7998a2
Show file tree
Hide file tree
Showing 33 changed files with 82 additions and 118 deletions.
5 changes: 4 additions & 1 deletion gst-libs/gst/gl/Makefile.am
@@ -1,7 +1,8 @@

lib_LTLIBRARIES = libgstgl-@GST_API_VERSION@.la

SUBDIRS =
SUBDIRS = glprototypes
DIST_SUBDIRS = glprototypes x11 win32 cocoa wayland

noinst_HEADERS =

Expand Down Expand Up @@ -66,6 +67,7 @@ endif

libgstgl_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/gl
libgstgl_@GST_API_VERSION@include_HEADERS = \
gstglconfig.h \
gstglwindow.h \
gstgldisplay.h \
gstglmemory.h \
Expand All @@ -86,6 +88,7 @@ libgstgl_@GST_API_VERSION@include_HEADERS = \
gl.h

libgstgl_@GST_API_VERSION@_la_CFLAGS = \
-I$(top_srcdir)/gst-libs \
$(GL_CFLAGS) \
$(X_CFLAGS) \
$(GST_PLUGINS_BASE_CFLAGS) \
Expand Down
9 changes: 3 additions & 6 deletions gst-libs/gst/gl/cocoa/Makefile.am
Expand Up @@ -2,13 +2,10 @@

noinst_LTLIBRARIES = libgstgl-cocoa.la

libgstgl_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/gl
libgstglcocoaincludedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/gl/cocoa

libgstgl_cocoa_la_SOURCES = \
gstglwindow_cocoa.m

libgstglcocoainclude_HEADERS = \
noinst_HEADERS = \
gstglwindow_cocoa.h

libgstgl_cocoa_la_CFLAGS = \
Expand All @@ -17,7 +14,7 @@ libgstgl_cocoa_la_CFLAGS = \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) \
$(GST_CFLAGS) \
-I$(top_srcdir)/gst-libs/gst/gl
-I$(top_srcdir)/gst-libs

libgstgl_cocoa_la_OBJCFLAGS = \
$(GL_CFLAGS) \
Expand All @@ -26,7 +23,7 @@ libgstgl_cocoa_la_OBJCFLAGS = \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) \
$(GST_CFLAGS) \
-I$(top_srcdir)/gst-libs/gst/gl
-I$(top_srcdir)/gst-libs

libgstgl_cocoa_la_LDFLAGS = \
$(GST_LIB_LDFLAGS) \
Expand Down
2 changes: 1 addition & 1 deletion gst-libs/gst/gl/cocoa/gstglwindow_cocoa.h
Expand Up @@ -23,7 +23,7 @@

#include <gst/gst.h>

#include "gstglwindow.h"
#include <gst/gl/gl.h>

G_BEGIN_DECLS

Expand Down
Empty file modified gst-libs/gst/gl/cocoa/gstglwindow_cocoa.m 100755 → 100644
Empty file.
32 changes: 16 additions & 16 deletions gst-libs/gst/gl/gl.h
Expand Up @@ -21,21 +21,21 @@
#ifndef __GL_H__
#define __GL_H__

#include "gstgl_fwd.h"
#include "gstglconfig.h"
#include "gstglapi.h"
#include "gstgldisplay.h"
#include "gstglfeature.h"
#include "gstglutils.h"
#include "gstglwindow.h"
#include "gstglshader.h"
#include "gstglupload.h"
#include "gstgldownload.h"
#include "gstglmemory.h"
#include "gstglbufferpool.h"
#include "gstglframebuffer.h"
#include "gstglfilter.h"
#include "gstglmixer.h"
#include "gstglshadervariables.h"
#include <gst/gl/gstgl_fwd.h>
#include <gst/gl/gstglconfig.h>
#include <gst/gl/gstglapi.h>
#include <gst/gl/gstgldisplay.h>
#include <gst/gl/gstglfeature.h>
#include <gst/gl/gstglutils.h>
#include <gst/gl/gstglwindow.h>
#include <gst/gl/gstglshader.h>
#include <gst/gl/gstglupload.h>
#include <gst/gl/gstgldownload.h>
#include <gst/gl/gstglmemory.h>
#include <gst/gl/gstglbufferpool.h>
#include <gst/gl/gstglframebuffer.h>
#include <gst/gl/gstglfilter.h>
#include <gst/gl/gstglmixer.h>
#include <gst/gl/gstglshadervariables.h>

#endif /* __GL_H__ */
16 changes: 16 additions & 0 deletions gst-libs/gst/gl/glprototypes/Makefile.am
@@ -0,0 +1,16 @@
prototypedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/gl/glprototypes

prototype_HEADERS = \
all_functions.h \
gles1_functions.h \
gles1gles2.h \
gles1gles2opengl.h \
gles1.h \
gles1opengl.h \
gles2_functions.h \
gles2.h \
gles2opengl.h \
gles3opengl.h \
opengl_functions.h \
opengl.h

38 changes: 0 additions & 38 deletions gst-libs/gst/gl/glprototypes/gstgl_compat.h

This file was deleted.

2 changes: 1 addition & 1 deletion gst-libs/gst/gl/gstgl_fwd.h
Expand Up @@ -23,7 +23,7 @@

#include <gst/gst.h>

#include "gstglapi.h"
#include <gst/gl/gstglapi.h>

G_BEGIN_DECLS

Expand Down
22 changes: 10 additions & 12 deletions gst-libs/gst/gl/gstglapi.h
Expand Up @@ -21,14 +21,14 @@
#ifndef __GST_GL_API_H__
#define __GST_GL_API_H__

#include "gstglconfig.h"
#include <gst/gl/gstglconfig.h>

/* OpenGL 2.0 for Embedded Systems */
#if GST_GL_HAVE_GLES2
# include <GLES2/gl2.h>
# include <GLES2/gl2ext.h>
# if !GST_GL_HAVE_OPENGL
# include "gstgles2.h"
# include <gst/gl/gstgles2.h>
# endif
#endif

Expand All @@ -55,8 +55,6 @@

#include <gst/gst.h>

#include "glprototypes/gstgl_compat.h"

G_BEGIN_DECLS

typedef enum {
Expand Down Expand Up @@ -88,21 +86,21 @@ typedef enum

typedef struct _GstGLFuncs
{
#include "glprototypes/opengl.h"
#include <gst/gl/glprototypes/opengl.h>
gpointer padding1[GST_PADDING_LARGE];
#include "glprototypes/gles1.h"
#include <gst/gl/glprototypes/gles1.h>
gpointer padding2[GST_PADDING_LARGE];
#include "glprototypes/gles1gles2.h"
#include <gst/gl/glprototypes/gles1gles2.h>
gpointer padding3[GST_PADDING_LARGE];
#include "glprototypes/gles1opengl.h"
#include <gst/gl/glprototypes/gles1opengl.h>
gpointer padding4[GST_PADDING_LARGE*2];
#include "glprototypes/gles2.h"
#include <gst/gl/glprototypes/gles2.h>
gpointer padding5[GST_PADDING_LARGE*2];
#include "glprototypes/gles2opengl.h"
#include <gst/gl/glprototypes/gles2opengl.h>
gpointer padding6[GST_PADDING_LARGE*2];
#include "glprototypes/gles1gles2opengl.h"
#include <gst/gl/glprototypes/gles1gles2opengl.h>
gpointer padding7[GST_PADDING_LARGE*2];
#include "glprototypes/gles3opengl.h"
#include <gst/gl/glprototypes/gles3opengl.h>
gpointer padding8[GST_PADDING_LARGE*4];
} GstGLFuncs;

Expand Down
2 changes: 1 addition & 1 deletion gst-libs/gst/gl/gstglbufferpool.h
Expand Up @@ -25,7 +25,7 @@
#include <gst/video/gstvideometa.h>
#include <gst/video/gstvideopool.h>

#include "gstgl_fwd.h"
#include <gst/gl/gstgl_fwd.h>

G_BEGIN_DECLS

Expand Down
2 changes: 1 addition & 1 deletion gst-libs/gst/gl/gstgldisplay.h
Expand Up @@ -24,7 +24,7 @@
#ifndef __GST_GL_DISPLAY_H__
#define __GST_GL_DISPLAY_H__

#include "gstgl_fwd.h"
#include <gst/gl/gstgl_fwd.h>

G_BEGIN_DECLS

Expand Down
2 changes: 1 addition & 1 deletion gst-libs/gst/gl/gstgldownload.h
Expand Up @@ -24,7 +24,7 @@
#include <gst/video/video.h>
#include <gst/gstmemory.h>

#include "gstgl_fwd.h"
#include <gst/gl/gstgl_fwd.h>

G_BEGIN_DECLS

Expand Down
2 changes: 1 addition & 1 deletion gst-libs/gst/gl/gstglegl.h
Expand Up @@ -24,7 +24,7 @@
#include <gst/gst.h>
#include <EGL/egl.h>

#include "gstgl_fwd.h"
#include <gst/gl/gstgl_fwd.h>

G_BEGIN_DECLS

Expand Down
2 changes: 1 addition & 1 deletion gst-libs/gst/gl/gstglfeature.h
Expand Up @@ -45,7 +45,7 @@

#include <gst/gst.h>

#include "gstgl_fwd.h"
#include <gst/gl/gstgl_fwd.h>

#define GST_GL_CHECK_GL_VERSION(driver_major, driver_minor, \
target_major, target_minor) \
Expand Down
2 changes: 1 addition & 1 deletion gst-libs/gst/gl/gstglfilter.h
Expand Up @@ -27,7 +27,7 @@
#include <gst/base/gstbasetransform.h>
#include <gst/video/video.h>

#include "gl.h"
#include <gst/gl/gl.h>

G_BEGIN_DECLS

Expand Down
2 changes: 1 addition & 1 deletion gst-libs/gst/gl/gstglframebuffer.h
Expand Up @@ -21,7 +21,7 @@
#ifndef __GST_GL_FRAMEBUFFER_H__
#define __GST_GL_FRAMEBUFFER_H__

#include "gstgl_fwd.h"
#include <gst/gl/gstgl_fwd.h>

G_BEGIN_DECLS

Expand Down
2 changes: 1 addition & 1 deletion gst-libs/gst/gl/gstglmemory.h
Expand Up @@ -26,7 +26,7 @@
#include <gst/gstmemory.h>
#include <gst/video/video.h>

#include "gl.h"
#include <gst/gl/gl.h>

G_BEGIN_DECLS

Expand Down
5 changes: 2 additions & 3 deletions gst-libs/gst/gl/gstglmixer.h
Expand Up @@ -23,9 +23,8 @@

#include <gst/gst.h>
#include <gst/video/video.h>
#include "gstglmixerpad.h"

#include "gl.h"
#include <gst/gl/gl.h>
#include <gst/gl/gstglmixerpad.h>

G_BEGIN_DECLS

Expand Down
4 changes: 2 additions & 2 deletions gst-libs/gst/gl/gstglmixerpad.h
Expand Up @@ -24,8 +24,8 @@
#include <gst/gst.h>
#include <gst/base/gstcollectpads.h>

#include "gstgldisplay.h"
#include "gstglupload.h"
#include <gst/gl/gstgldisplay.h>
#include <gst/gl/gstglupload.h>

G_BEGIN_DECLS

Expand Down
2 changes: 1 addition & 1 deletion gst-libs/gst/gl/gstglshader.h
Expand Up @@ -21,7 +21,7 @@
#ifndef __GST_GL_SHADER_H__
#define __GST_GL_SHADER_H__

#include "gstgl_fwd.h"
#include <gst/gl/gstgl_fwd.h>

G_BEGIN_DECLS

Expand Down
2 changes: 1 addition & 1 deletion gst-libs/gst/gl/gstglshadervariables.h
Expand Up @@ -24,7 +24,7 @@
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <gstglshader.h>
#include <gst/gl/gstglshader.h>

#define VALID_VARNAME_CHARS "abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_"

Expand Down
2 changes: 1 addition & 1 deletion gst-libs/gst/gl/gstglupload.h
Expand Up @@ -24,7 +24,7 @@
#include <gst/video/video.h>
#include <gst/gstmemory.h>

#include "gstgl_fwd.h"
#include <gst/gl/gstgl_fwd.h>

G_BEGIN_DECLS

Expand Down
2 changes: 1 addition & 1 deletion gst-libs/gst/gl/gstglutils.h
Expand Up @@ -23,7 +23,7 @@

#include <gst/video/video.h>

#include "gstgl_fwd.h"
#include <gst/gl/gstgl_fwd.h>

/**
* GstGLDisplayProjection:
Expand Down
2 changes: 1 addition & 1 deletion gst-libs/gst/gl/gstglwindow.h
Expand Up @@ -24,7 +24,7 @@

#include <gst/gst.h>

#include "gstgl_fwd.h"
#include <gst/gl/gstgl_fwd.h>

G_BEGIN_DECLS

Expand Down
7 changes: 2 additions & 5 deletions gst-libs/gst/gl/wayland/Makefile.am
Expand Up @@ -2,14 +2,11 @@

noinst_LTLIBRARIES = libgstgl-wayland.la

libgstgl_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/gl
libgstglwaylandincludedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/gl/wayland

libgstgl_wayland_la_SOURCES = \
gstglwindow_wayland_egl.c \
wayland_event_source.c

libgstglwaylandinclude_HEADERS = \
noinst_HEADERS = \
gstglwindow_wayland_egl.h \
wayland_event_source.h

Expand All @@ -19,7 +16,7 @@ libgstgl_wayland_la_CFLAGS = \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) \
$(GST_CFLAGS) \
-I$(top_srcdir)/gst-libs/gst/gl
-I$(top_srcdir)/gst-libs

libgstgl_wayland_la_LDFLAGS = \
$(GST_LIB_LDFLAGS) \
Expand Down

0 comments on commit f7998a2

Please sign in to comment.