Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
2023e0bb
Commit
2023e0bb
authored
Feb 19, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Partial support for Mesa GL ES v1 and v2
v1 does not work and v2 does not compile but nevermind...
parent
3c762ac1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
26 deletions
+64
-26
configure.ac
configure.ac
+4
-1
modules/video_output/Modules.am
modules/video_output/Modules.am
+25
-8
modules/video_output/opengl.c
modules/video_output/opengl.c
+17
-7
modules/video_output/opengl.h
modules/video_output/opengl.h
+18
-10
No files found.
configure.ac
View file @
2023e0bb
...
...
@@ -3247,8 +3247,11 @@ AC_SUBST([GL_CFLAGS])
AC_SUBST([GL_LIBS])
dnl
dnl
E
GL
dnl
Open
GL
dnl
PKG_ENABLE_MODULES_VLC([GL], [], [gl], [OpenGL support], [auto])
PKG_ENABLE_MODULES_VLC([GLES1], [], [glesv1_cm], [OpenGL ES v1 support], [auto])
PKG_ENABLE_MODULES_VLC([GLES2], [], [glesv2], [OpenGL ES v2 support], [auto])
PKG_ENABLE_MODULES_VLC([EGL], [], [egl], [EGL support], [auto])
dnl
...
...
modules/video_output/Modules.am
View file @
2023e0bb
...
...
@@ -15,16 +15,33 @@ SOURCES_yuv = yuv.c
SOURCES_vout_macosx = macosx.m opengl.h opengl.c
SOURCES_vout_ios = ios.m opengl.h opengl.c
### OpenGL ###
# TODO: merge all three source files (?)
libopengl_plugin_la_SOURCES = \
opengl.c opengl.h \
gl.c
libopengl_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS)
libopengl_plugin_la_LIBADD = $(AM_LIBADD) $(GL_LIBS)
libopengl_plugin_la_DEPENDENCIES =
EXTRA_LTLIBRARIES += libopengl_plugin.la
libvlc_LTLIBRARIES += $(LTLIBopengl)
libgles2_plugin_la_SOURCES = opengl.c opengl.h gl.c
libgles2_plugin_la_CFLAGS = $(AM_CFLAGS) $(GLES2_CFLAGS) -DUSE_OPENGL_ES=2
libgles2_plugin_la_LIBADD = $(AM_LIBADD) $(GLES2_LIBS)
libgles2_plugin_la_DEPENDENCIES =
libgles1_plugin_la_SOURCES = opengl.c opengl.h gl.c
libgles1_plugin_la_CFLAGS = $(AM_CFLAGS) $(GLES1_CFLAGS) -DUSE_OPENGL_ES=1
libgles1_plugin_la_LIBADD = $(AM_LIBADD) $(GLES1_LIBS)
libgles1_plugin_la_DEPENDENCIES =
libgl_plugin_la_SOURCES = opengl.c opengl.h gl.c
libgl_plugin_la_CFLAGS = $(AM_CFLAGS) $(GL_CFLAGS)
libgl_plugin_la_LIBADD = $(AM_LIBADD) $(GL_LIBS)
libgl_plugin_la_DEPENDENCIES =
EXTRA_LTLIBRARIES += \
libgles2_plugin.la \
libgles1_plugin.la \
libgl_plugin.la
libvlc_LTLIBRARIES += \
$(LTLIBgles2) \
$(LTLIBgles1) \
$(LTLIBgl)
### XCB ###
libxcb_x11_plugin_la_SOURCES = \
...
...
modules/video_output/opengl.c
View file @
2023e0bb
...
...
@@ -32,13 +32,23 @@
#include "opengl.h"
// Define USE_OPENGL_ES to the GL ES Version you want to select
#if USE_OPENGL_ES == 1
# include <OpenGLES/ES1/glext.h>
#elif USE_OPENGL_ES == 2
# include <OpenGLES/ES2/glext.h>
#elif defined(__APPLE__)
# define MACOS_OPENGL
# include <OpenGL/glext.h>
#if !defined (__APPLE__)
# if USE_OPENGL_ES == 2
# include <GLES2/gl2ext.h>
# elif USE_OPENGL_ES == 1
# include <GLES/glext.h>
//# else
//# include <GL/glext.h>
# endif
#else
# if USE_OPENGL_ES == 2
# include <OpenGLES/ES2/gl.h>
# elif USE_OPENGL_ES == 1
# include <OpenGLES/ES1/gl.h>
# else
# define MACOS_OPENGL
# include <OpenGL/glext.h>
# endif
#endif
#ifndef YCBCR_MESA
...
...
modules/video_output/opengl.h
View file @
2023e0bb
...
...
@@ -36,17 +36,25 @@
#define VLCGL_TEXTURE_COUNT 1
#if USE_OPENGL_ES == 1
# include <OpenGLES/ES1/gl.h>
#elif USE_OPENGL_ES == 2
# include <OpenGLES/ES2/gl.h>
#elif defined(__APPLE__)
# define MACOS_OPENGL
# include <OpenGL/gl.h>
# undef VLCGL_TEXTURE_COUNT
# define VLCGL_TEXTURE_COUNT 2
#if !defined (__APPLE__)
# if USE_OPENGL_ES == 2
# include <GLES2/gl2.h>
# elif USE_OPENGL_ES == 1
# include <GLES/gl.h>
# else
# include <GL/gl.h>
# endif
#else
# include <GL/gl.h>
# if USE_OPENGL_ES == 2
# include <OpenGLES/ES2/gl.h>
# elif USE_OPENGL_ES == 1
# include <OpenGLES/ES1/gl.h>
# else
# define MACOS_OPENGL
# include <OpenGL/gl.h>
# undef VLCGL_TEXTURE_COUNT
# define VLCGL_TEXTURE_COUNT 2
# endif
#endif
typedef
struct
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment