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
99bf49b1
Commit
99bf49b1
authored
Dec 12, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a way to retreive an opengl context from a vout display.
parent
4b8038be
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
1 deletion
+13
-1
include/vlc_vout_display.h
include/vlc_vout_display.h
+3
-0
include/vlc_vout_wrapper.h
include/vlc_vout_wrapper.h
+2
-0
src/libvlccore.sym
src/libvlccore.sym
+1
-0
src/video_output/display.c
src/video_output/display.c
+7
-1
No files found.
include/vlc_vout_display.h
View file @
99bf49b1
...
...
@@ -157,6 +157,9 @@ enum {
* The cropping requested is stored by video_format_t::i_x/y_offset and
* video_format_t::i_visible_width/height */
VOUT_DISPLAY_CHANGE_SOURCE_CROP
,
/* const video_format_t *p_source */
/* Ask an opengl interface if available. */
VOUT_DISPLAY_GET_OPENGL
,
/* vout_opengl_t ** */
};
/**
...
...
include/vlc_vout_wrapper.h
View file @
99bf49b1
...
...
@@ -25,6 +25,7 @@
#define VLC_VOUT_WRAPPER_H 1
#include <vlc_vout_display.h>
#include <vlc_vout_opengl.h>
/* XXX DO NOT use it outside the vout module wrapper XXX */
...
...
@@ -87,6 +88,7 @@ VLC_EXPORT(void, vout_SetDisplayZoom, (vout_display_t *, int num, int den));
VLC_EXPORT
(
void
,
vout_SetDisplayOnTop
,
(
vout_display_t
*
,
bool
is_on_top
));
VLC_EXPORT
(
void
,
vout_SetDisplayAspect
,
(
vout_display_t
*
,
unsigned
sar_num
,
unsigned
sar_den
));
VLC_EXPORT
(
void
,
vout_SetDisplayCrop
,
(
vout_display_t
*
,
unsigned
crop_num
,
unsigned
crop_den
,
unsigned
x
,
unsigned
y
,
unsigned
width
,
unsigned
height
));
VLC_EXPORT
(
vout_opengl_t
*
,
vout_GetDisplayOpengl
,
(
vout_display_t
*
));
#endif
/* VLC_VOUT_WRAPPER_H */
src/libvlccore.sym
View file @
99bf49b1
...
...
@@ -597,6 +597,7 @@ vout_AreDisplayPicturesInvalid
vout_IsDisplayFiltered
vout_FilterDisplay
vout_ManageDisplay
vout_GetDisplayOpengl
vout_SetDisplayFullscreen
vout_SetDisplayFilled
vout_SetDisplayZoom
...
...
src/video_output/display.c
View file @
99bf49b1
...
...
@@ -1012,7 +1012,13 @@ void vout_SetDisplayCrop(vout_display_t *vd,
osys
->
ch_crop
=
true
;
}
}
vout_opengl_t
*
vout_GetDisplayOpengl
(
vout_display_t
*
vd
)
{
vout_opengl_t
*
gl
;
if
(
vout_display_Control
(
vd
,
VOUT_DISPLAY_GET_OPENGL
,
&
gl
))
return
NULL
;
return
gl
;
}
static
vout_display_t
*
DisplayNew
(
vout_thread_t
*
vout
,
const
video_format_t
*
source_org
,
...
...
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