Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
c1763208
Commit
c1763208
authored
May 25, 2011
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added vlc_gl_t::getProcAddress() declaration.
parent
5ebee8d0
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
0 deletions
+11
-0
include/vlc_opengl.h
include/vlc_opengl.h
+6
-0
modules/video_output/egl.c
modules/video_output/egl.c
+1
-0
modules/video_output/ios.m
modules/video_output/ios.m
+1
-0
modules/video_output/macosx.m
modules/video_output/macosx.m
+1
-0
modules/video_output/msw/glwin32.c
modules/video_output/msw/glwin32.c
+1
-0
modules/video_output/xcb/glx.c
modules/video_output/xcb/glx.c
+1
-0
No files found.
include/vlc_opengl.h
View file @
c1763208
...
...
@@ -48,6 +48,7 @@ struct vlc_gl_t
void
(
*
swap
)(
vlc_gl_t
*
);
int
(
*
lock
)(
vlc_gl_t
*
);
void
(
*
unlock
)(
vlc_gl_t
*
);
void
*
(
*
getProcAddress
)(
vlc_gl_t
*
,
const
char
*
);
};
enum
{
...
...
@@ -80,4 +81,9 @@ static inline void vlc_gl_Swap(vlc_gl_t *gl)
gl
->
swap
(
gl
);
}
static
inline
void
*
vlc_gl_GetProcAddress
(
vlc_gl_t
*
gl
,
const
char
*
name
)
{
return
(
gl
->
getProcAddress
!=
NULL
)
?
gl
->
getProcAddress
(
gl
,
name
)
:
NULL
;
}
#endif
/* VLC_GL_H */
modules/video_output/egl.c
View file @
c1763208
...
...
@@ -195,6 +195,7 @@ static int Open (vlc_object_t *obj, const struct gl_api *api)
gl
->
swap
=
SwapBuffers
;
gl
->
lock
=
NULL
;
gl
->
unlock
=
NULL
;
gl
->
getProcAddress
=
NULL
;
return
VLC_SUCCESS
;
error:
...
...
modules/video_output/ios.m
View file @
c1763208
...
...
@@ -148,6 +148,7 @@ static int Open(vlc_object_t *this)
sys
->
gl
.
lock
=
OpenglClean
;
// We don't do locking, but sometimes we need to cleanup the framebuffer
sys
->
gl
.
unlock
=
NULL
;
sys
->
gl
.
swap
=
OpenglSwap
;
sys
->
gl
.
getProcAddress
=
NULL
;
sys
->
gl
.
sys
=
sys
;
if
(
vout_display_opengl_Init
(
&
sys
->
vgl
,
&
vd
->
fmt
,
&
sys
->
gl
))
...
...
modules/video_output/macosx.m
View file @
c1763208
...
...
@@ -187,6 +187,7 @@ static int Open(vlc_object_t *this)
sys
->
gl
.
lock
=
OpenglLock
;
sys
->
gl
.
unlock
=
OpenglUnlock
;
sys
->
gl
.
swap
=
OpenglSwap
;
sys
->
gl
.
getProcAddress
=
NULL
;
sys
->
gl
.
sys
=
sys
;
if
(
vout_display_opengl_Init
(
&
sys
->
vgl
,
&
vd
->
fmt
,
&
sys
->
gl
))
...
...
modules/video_output/msw/glwin32.c
View file @
c1763208
...
...
@@ -111,6 +111,7 @@ static int Open(vlc_object_t *object)
sys
->
gl
.
lock
=
NULL
;
sys
->
gl
.
unlock
=
NULL
;
sys
->
gl
.
swap
=
Swap
;
sys
->
gl
.
getProcAddress
=
NULL
;
sys
->
gl
.
sys
=
vd
;
video_format_t
fmt
=
vd
->
fmt
;
...
...
modules/video_output/xcb/glx.c
View file @
c1763208
...
...
@@ -362,6 +362,7 @@ static int Open (vlc_object_t *obj)
sys
->
gl
.
lock
=
NULL
;
sys
->
gl
.
unlock
=
NULL
;
sys
->
gl
.
swap
=
SwapBuffers
;
sys
->
gl
.
getProcAddress
=
NULL
;
sys
->
gl
.
sys
=
sys
;
if
(
vout_display_opengl_Init
(
&
sys
->
vgl
,
&
vd
->
fmt
,
&
sys
->
gl
))
...
...
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