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
902056ed
Commit
902056ed
authored
Nov 08, 2013
by
Adrien Maglo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EGL: add the OpenGL ES 2.0 support for android
parent
3de6ae03
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
5 deletions
+21
-5
modules/video_output/Modules.am
modules/video_output/Modules.am
+7
-0
modules/video_output/egl.c
modules/video_output/egl.c
+9
-0
modules/video_output/gl.c
modules/video_output/gl.c
+5
-5
No files found.
modules/video_output/Modules.am
View file @
902056ed
...
...
@@ -182,12 +182,19 @@ endif
### Android ###
libegl_android_plugin_la_SOURCES = egl.c
libegl_android_plugin_la_CFLAGS = $(AM_CFLAGS) $(EGL_CFLAGS) -DUSE_PLATFORM_ANDROID=1
libegl_android_plugin_la_LIBADD = $(EGL_LIBS)
libandroid_native_window_plugin_la_SOURCES = android/nativewindow.c
libandroid_native_window_plugin_la_CFLAGS = $(AM_CFLAGS)
libandroid_native_window_plugin_la_LIBADD = -ldl
if HAVE_ANDROID
vout_LTLIBRARIES += libandroid_native_window_plugin.la
if HAVE_EGL
vout_LTLIBRARIES += libegl_android_plugin.la
endif
endif
### Coloured ASCII art ###
...
...
modules/video_output/egl.c
View file @
902056ed
...
...
@@ -209,6 +209,15 @@ static int Open (vlc_object_t *obj, const struct gl_api *api)
window
.
native
=
wnd
->
handle
.
hwnd
;
# endif
#elif defined (USE_PLATFORM_ANDROID)
if
(
wnd
->
type
!=
VOUT_WINDOW_TYPE_ANDROID_NATIVE
)
goto
error
;
# if USE_DEFAULT_PLATFORM
sys
->
display
=
eglGetDisplay
(
EGL_DEFAULT_DISPLAY
);
window
.
native
=
wnd
->
handle
.
anativewindow
;
# endif
#endif
if
(
sys
->
display
==
EGL_NO_DISPLAY
)
...
...
modules/video_output/gl.c
View file @
902056ed
...
...
@@ -105,14 +105,14 @@ static vout_window_t *MakeWindow (vout_display_t *vd)
};
vout_window_t
*
wnd
;
#if
def _WIN32
#if
defined(_WIN32)
cfg
.
type
=
VOUT_WINDOW_TYPE_HWND
;
wnd
=
vout_display_NewWindow
(
vd
,
&
cfg
);
if
(
wnd
!=
NULL
)
return
wnd
;
#elif defined(__ANDROID__)
cfg
.
type
=
VOUT_WINDOW_TYPE_ANDROID_NATIVE
;
#else
cfg
.
type
=
VOUT_WINDOW_TYPE_XID
;
#endif
cfg
.
type
=
VOUT_WINDOW_TYPE_XID
;
wnd
=
vout_display_NewWindow
(
vd
,
&
cfg
);
if
(
wnd
!=
NULL
)
return
wnd
;
...
...
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