Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
32b211e4
Commit
32b211e4
authored
Jul 22, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/video_output/x11/glx.c, modules/video_output/opengl.c: some fixes.
parent
d049b8aa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
3 deletions
+25
-3
modules/video_output/opengl.c
modules/video_output/opengl.c
+20
-3
modules/video_output/x11/glx.c
modules/video_output/x11/glx.c
+5
-0
No files found.
modules/video_output/opengl.c
View file @
32b211e4
...
@@ -53,10 +53,11 @@ static int CreateVout ( vlc_object_t * );
...
@@ -53,10 +53,11 @@ static int CreateVout ( vlc_object_t * );
static
void
DestroyVout
(
vlc_object_t
*
);
static
void
DestroyVout
(
vlc_object_t
*
);
static
int
Init
(
vout_thread_t
*
);
static
int
Init
(
vout_thread_t
*
);
static
void
End
(
vout_thread_t
*
);
static
void
End
(
vout_thread_t
*
);
static
void
Render
(
vout_thread_t
*
p_vout
,
picture_t
*
p_pic
);
static
int
Manage
(
vout_thread_t
*
);
static
void
Render
(
vout_thread_t
*
,
picture_t
*
);
static
void
DisplayVideo
(
vout_thread_t
*
,
picture_t
*
);
static
void
DisplayVideo
(
vout_thread_t
*
,
picture_t
*
);
static
inline
int
GetAlignedSize
(
int
i_size
);
static
inline
int
GetAlignedSize
(
int
);
/*****************************************************************************
/*****************************************************************************
* Module descriptor
* Module descriptor
...
@@ -85,7 +86,6 @@ struct vout_sys_t
...
@@ -85,7 +86,6 @@ struct vout_sys_t
GLuint
texture
;
GLuint
texture
;
int
i_effect
;
//XXX
int
i_effect
;
//XXX
};
};
/*****************************************************************************
/*****************************************************************************
...
@@ -126,6 +126,10 @@ static int CreateVout( vlc_object_t *p_this )
...
@@ -126,6 +126,10 @@ static int CreateVout( vlc_object_t *p_this )
p_sys
->
p_vout
->
i_window_width
=
p_vout
->
i_window_width
;
p_sys
->
p_vout
->
i_window_width
=
p_vout
->
i_window_width
;
p_sys
->
p_vout
->
i_window_height
=
p_vout
->
i_window_height
;
p_sys
->
p_vout
->
i_window_height
=
p_vout
->
i_window_height
;
p_sys
->
p_vout
->
b_fullscreen
=
p_vout
->
b_fullscreen
;
p_sys
->
p_vout
->
b_fullscreen
=
p_vout
->
b_fullscreen
;
p_sys
->
p_vout
->
render
.
i_width
=
p_vout
->
render
.
i_width
;
p_sys
->
p_vout
->
render
.
i_height
=
p_vout
->
render
.
i_height
;
p_sys
->
p_vout
->
render
.
i_aspect
=
p_vout
->
render
.
i_aspect
;
p_sys
->
p_vout
->
i_window_height
=
p_vout
->
i_window_height
;
p_sys
->
p_vout
->
p_module
=
p_sys
->
p_vout
->
p_module
=
module_Need
(
p_sys
->
p_vout
,
"opengl provider"
,
NULL
,
0
);
module_Need
(
p_sys
->
p_vout
,
"opengl provider"
,
NULL
,
0
);
...
@@ -139,6 +143,7 @@ static int CreateVout( vlc_object_t *p_this )
...
@@ -139,6 +143,7 @@ static int CreateVout( vlc_object_t *p_this )
p_vout
->
pf_init
=
Init
;
p_vout
->
pf_init
=
Init
;
p_vout
->
pf_end
=
End
;
p_vout
->
pf_end
=
End
;
p_vout
->
pf_manage
=
Manage
;
p_vout
->
pf_render
=
Render
;
p_vout
->
pf_render
=
Render
;
p_vout
->
pf_display
=
DisplayVideo
;
p_vout
->
pf_display
=
DisplayVideo
;
...
@@ -260,6 +265,18 @@ static void DestroyVout( vlc_object_t *p_this )
...
@@ -260,6 +265,18 @@ static void DestroyVout( vlc_object_t *p_this )
free
(
p_sys
);
free
(
p_sys
);
}
}
/*****************************************************************************
* Manage: handle Sys events
*****************************************************************************
* This function should be called regularly by video output thread. It returns
* a non null value if an error occured.
*****************************************************************************/
static
int
Manage
(
vout_thread_t
*
p_vout
)
{
vout_sys_t
*
p_sys
=
p_vout
->
p_sys
;
return
p_sys
->
p_vout
->
pf_manage
(
p_sys
->
p_vout
);
}
/*****************************************************************************
/*****************************************************************************
* Render: render previously calculated output
* Render: render previously calculated output
*****************************************************************************/
*****************************************************************************/
...
...
modules/video_output/x11/glx.c
View file @
32b211e4
...
@@ -171,6 +171,7 @@ static int CheckGLX( vlc_object_t *p_this, vlc_bool_t *b_glx13 )
...
@@ -171,6 +171,7 @@ static int CheckGLX( vlc_object_t *p_this, vlc_bool_t *b_glx13 )
if
(
!
p_display
)
if
(
!
p_display
)
{
{
msg_Err
(
p_this
,
"Cannot open display"
);
msg_Err
(
p_this
,
"Cannot open display"
);
XCloseDisplay
(
p_display
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
@@ -178,11 +179,13 @@ static int CheckGLX( vlc_object_t *p_this, vlc_bool_t *b_glx13 )
...
@@ -178,11 +179,13 @@ static int CheckGLX( vlc_object_t *p_this, vlc_bool_t *b_glx13 )
if
(
!
XQueryExtension
(
p_display
,
"GLX"
,
&
i_opcode
,
&
i_evt
,
&
i_err
)
)
if
(
!
XQueryExtension
(
p_display
,
"GLX"
,
&
i_opcode
,
&
i_evt
,
&
i_err
)
)
{
{
msg_Err
(
p_this
,
"GLX extension not supported"
);
msg_Err
(
p_this
,
"GLX extension not supported"
);
XCloseDisplay
(
p_display
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
if
(
!
glXQueryExtension
(
p_display
,
&
i_err
,
&
i_evt
)
)
if
(
!
glXQueryExtension
(
p_display
,
&
i_err
,
&
i_evt
)
)
{
{
msg_Err
(
p_this
,
"glXQueryExtension failed"
);
msg_Err
(
p_this
,
"glXQueryExtension failed"
);
XCloseDisplay
(
p_display
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
...
@@ -190,6 +193,7 @@ static int CheckGLX( vlc_object_t *p_this, vlc_bool_t *b_glx13 )
...
@@ -190,6 +193,7 @@ static int CheckGLX( vlc_object_t *p_this, vlc_bool_t *b_glx13 )
if
(
!
glXQueryVersion
(
p_display
,
&
i_maj
,
&
i_min
)
)
if
(
!
glXQueryVersion
(
p_display
,
&
i_maj
,
&
i_min
)
)
{
{
msg_Err
(
p_this
,
"glXQueryVersion failed"
);
msg_Err
(
p_this
,
"glXQueryVersion failed"
);
XCloseDisplay
(
p_display
);
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
}
}
if
(
i_maj
<=
0
||
((
i_maj
==
1
)
&&
(
i_min
<
3
))
)
if
(
i_maj
<=
0
||
((
i_maj
==
1
)
&&
(
i_min
<
3
))
)
...
@@ -203,6 +207,7 @@ static int CheckGLX( vlc_object_t *p_this, vlc_bool_t *b_glx13 )
...
@@ -203,6 +207,7 @@ static int CheckGLX( vlc_object_t *p_this, vlc_bool_t *b_glx13 )
msg_Dbg
(
p_this
,
"Using GLX 1.3 API"
);
msg_Dbg
(
p_this
,
"Using GLX 1.3 API"
);
}
}
XCloseDisplay
(
p_display
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
...
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