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
a3d70eb3
Commit
a3d70eb3
authored
Aug 16, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GLX: remove some useless stuff (that should never have been in GLX)
parent
32a1da0d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
modules/video_output/x11/xcommon.c
modules/video_output/x11/xcommon.c
+14
-11
No files found.
modules/video_output/x11/xcommon.c
View file @
a3d70eb3
...
@@ -88,9 +88,11 @@
...
@@ -88,9 +88,11 @@
int
Activate
(
vlc_object_t
*
);
int
Activate
(
vlc_object_t
*
);
void
Deactivate
(
vlc_object_t
*
);
void
Deactivate
(
vlc_object_t
*
);
#ifndef MODULE_NAME_IS_glx
static
int
InitVideo
(
vout_thread_t
*
);
static
int
InitVideo
(
vout_thread_t
*
);
static
void
EndVideo
(
vout_thread_t
*
);
static
void
EndVideo
(
vout_thread_t
*
);
static
void
DisplayVideo
(
vout_thread_t
*
,
picture_t
*
);
static
void
DisplayVideo
(
vout_thread_t
*
,
picture_t
*
);
#endif
static
int
ManageVideo
(
vout_thread_t
*
);
static
int
ManageVideo
(
vout_thread_t
*
);
static
int
Control
(
vout_thread_t
*
,
int
,
va_list
);
static
int
Control
(
vout_thread_t
*
,
int
,
va_list
);
...
@@ -99,8 +101,10 @@ static int InitDisplay ( vout_thread_t * );
...
@@ -99,8 +101,10 @@ static int InitDisplay ( vout_thread_t * );
static
int
CreateWindow
(
vout_thread_t
*
,
x11_window_t
*
);
static
int
CreateWindow
(
vout_thread_t
*
,
x11_window_t
*
);
static
void
DestroyWindow
(
vout_thread_t
*
,
x11_window_t
*
);
static
void
DestroyWindow
(
vout_thread_t
*
,
x11_window_t
*
);
#ifndef MODULE_NAME_IS_glx
static
int
NewPicture
(
vout_thread_t
*
,
picture_t
*
);
static
int
NewPicture
(
vout_thread_t
*
,
picture_t
*
);
static
void
FreePicture
(
vout_thread_t
*
,
picture_t
*
);
static
void
FreePicture
(
vout_thread_t
*
,
picture_t
*
);
#endif
#ifdef HAVE_SYS_SHM_H
#ifdef HAVE_SYS_SHM_H
static
int
i_shm_major
=
0
;
static
int
i_shm_major
=
0
;
...
@@ -164,15 +168,17 @@ int Activate ( vlc_object_t *p_this )
...
@@ -164,15 +168,17 @@ int Activate ( vlc_object_t *p_this )
bool
b_chroma
=
0
;
bool
b_chroma
=
0
;
#endif
#endif
#ifndef MODULE_NAME_IS_glx
p_vout
->
pf_init
=
InitVideo
;
p_vout
->
pf_init
=
InitVideo
;
p_vout
->
pf_end
=
EndVideo
;
p_vout
->
pf_end
=
EndVideo
;
p_vout
->
pf_manage
=
ManageVideo
;
p_vout
->
pf_display
=
DisplayVideo
;
#endif
#ifdef MODULE_NAME_IS_xvmc
#ifdef MODULE_NAME_IS_xvmc
p_vout
->
pf_render
=
RenderVideo
;
p_vout
->
pf_render
=
RenderVideo
;
#else
#else
p_vout
->
pf_render
=
NULL
;
p_vout
->
pf_render
=
NULL
;
#endif
#endif
p_vout
->
pf_
display
=
Display
Video
;
p_vout
->
pf_
manage
=
Manage
Video
;
p_vout
->
pf_control
=
Control
;
p_vout
->
pf_control
=
Control
;
/* Allocate structure */
/* Allocate structure */
...
@@ -756,7 +762,7 @@ static void DisablePixelDoubling( vout_thread_t *p_vout )
...
@@ -756,7 +762,7 @@ static void DisablePixelDoubling( vout_thread_t *p_vout )
#endif
#endif
#if !defined(MODULE_NAME_IS_glx)
/*****************************************************************************
/*****************************************************************************
* InitVideo: initialize X11 video thread output method
* InitVideo: initialize X11 video thread output method
*****************************************************************************
*****************************************************************************
...
@@ -1089,6 +1095,7 @@ static void DisplayVideo( vout_thread_t *p_vout, picture_t *p_pic )
...
@@ -1089,6 +1095,7 @@ static void DisplayVideo( vout_thread_t *p_vout, picture_t *p_pic )
/* Make sure the command is sent now - do NOT use XFlush !*/
/* Make sure the command is sent now - do NOT use XFlush !*/
XSync
(
p_vout
->
p_sys
->
p_display
,
False
);
XSync
(
p_vout
->
p_sys
->
p_display
,
False
);
}
}
#endif
/*****************************************************************************
/*****************************************************************************
* ManageVideo: handle X11 events
* ManageVideo: handle X11 events
...
@@ -1483,6 +1490,7 @@ static int ManageVideo( vout_thread_t *p_vout )
...
@@ -1483,6 +1490,7 @@ static int ManageVideo( vout_thread_t *p_vout )
return
0
;
return
0
;
}
}
#if !defined( MODULE_NAME_IS_glx )
/*****************************************************************************
/*****************************************************************************
* EndVideo: terminate X11 video thread output method
* EndVideo: terminate X11 video thread output method
*****************************************************************************
*****************************************************************************
...
@@ -1500,6 +1508,7 @@ static void EndVideo( vout_thread_t *p_vout )
...
@@ -1500,6 +1508,7 @@ static void EndVideo( vout_thread_t *p_vout )
FreePicture
(
p_vout
,
PP_OUTPUTPICTURE
[
i_index
]
);
FreePicture
(
p_vout
,
PP_OUTPUTPICTURE
[
i_index
]
);
}
}
}
}
#endif
/* following functions are local */
/* following functions are local */
...
@@ -1720,10 +1729,9 @@ static void DestroyWindow( vout_thread_t *p_vout, x11_window_t *p_win )
...
@@ -1720,10 +1729,9 @@ static void DestroyWindow( vout_thread_t *p_vout, x11_window_t *p_win )
*****************************************************************************
*****************************************************************************
* Returns 0 on success, -1 otherwise
* Returns 0 on success, -1 otherwise
*****************************************************************************/
*****************************************************************************/
#if !defined(MODULE_NAME_IS_glx)
static
int
NewPicture
(
vout_thread_t
*
p_vout
,
picture_t
*
p_pic
)
static
int
NewPicture
(
vout_thread_t
*
p_vout
,
picture_t
*
p_pic
)
{
{
#ifndef MODULE_NAME_IS_glx
#if defined(MODULE_NAME_IS_xvideo) || defined(MODULE_NAME_IS_xvmc)
#if defined(MODULE_NAME_IS_xvideo) || defined(MODULE_NAME_IS_xvmc)
int
i_plane
;
int
i_plane
;
#endif
#endif
...
@@ -1863,12 +1871,6 @@ static int NewPicture( vout_thread_t *p_vout, picture_t *p_pic )
...
@@ -1863,12 +1871,6 @@ static int NewPicture( vout_thread_t *p_vout, picture_t *p_pic )
p_pic
->
i_planes
=
0
;
p_pic
->
i_planes
=
0
;
return
-
1
;
return
-
1
;
}
}
#else
VLC_UNUSED
(
p_vout
);
VLC_UNUSED
(
p_pic
);
#endif
/* !MODULE_NAME_IS_glx */
return
0
;
return
0
;
}
}
...
@@ -1914,6 +1916,7 @@ static void FreePicture( vout_thread_t *p_vout, picture_t *p_pic )
...
@@ -1914,6 +1916,7 @@ static void FreePicture( vout_thread_t *p_vout, picture_t *p_pic )
free
(
p_pic
->
p_sys
);
free
(
p_pic
->
p_sys
);
}
}
#endif
/* !MODULE_NAME_IS_glx */
/*****************************************************************************
/*****************************************************************************
* ToggleFullScreen: Enable or disable full screen mode
* ToggleFullScreen: Enable or disable full screen mode
...
...
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