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
f17b5815
Commit
f17b5815
authored
Nov 29, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Xsp
We don't use GLX with Xomap (rather XV or X11)
parent
40ae1df5
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
70 deletions
+0
-70
configure.ac
configure.ac
+0
-6
modules/video_output/x11/xcommon.c
modules/video_output/x11/xcommon.c
+0
-60
modules/video_output/x11/xcommon.h
modules/video_output/x11/xcommon.h
+0
-4
No files found.
configure.ac
View file @
f17b5815
...
...
@@ -5084,12 +5084,6 @@ fi
AC_LANG_POP(C++)
AM_CONDITIONAL(BUILD_MOZILLA,${mozilla})
dnl Tests for Xsp
AC_CHECK_LIB(Xsp, XSPSetPixelDoubling,[
VLC_ADD_CPPFLAGS([glx],[-DHAVE_XSP])
VLC_ADD_LIBS([glx],[-lXsp])
])
dnl
dnl test plugins
dnl
...
...
modules/video_output/x11/xcommon.c
View file @
f17b5815
...
...
@@ -44,10 +44,6 @@
# include <sys/ipc.h>
#endif
#ifdef HAVE_XSP
#include <X11/extensions/Xsp.h>
#endif
#include <X11/Xlib.h>
#include <X11/Xproto.h>
#include <X11/Xmd.h>
...
...
@@ -85,13 +81,6 @@ static void ToggleCursor ( vout_thread_t * );
static
int
X11ErrorHandler
(
Display
*
,
XErrorEvent
*
);
#ifdef HAVE_XSP
static
void
EnablePixelDoubling
(
vout_thread_t
*
p_vout
);
static
void
DisablePixelDoubling
(
vout_thread_t
*
p_vout
);
#endif
/*****************************************************************************
* Activate: allocate X11 video thread output method
*****************************************************************************
...
...
@@ -208,10 +197,6 @@ int Activate ( vlc_object_t *p_this )
/* Misc init */
p_vout
->
p_sys
->
i_time_button_last_pressed
=
0
;
#ifdef HAVE_XSP
p_vout
->
p_sys
->
i_hw_scale
=
1
;
#endif
/* Variable to indicate if the window should be on top of others */
/* Trigger a callback right now */
var_TriggerCallback
(
p_vout
,
"video-on-top"
);
...
...
@@ -234,10 +219,6 @@ void Deactivate ( vlc_object_t *p_this )
ToggleCursor
(
p_vout
);
}
#ifdef HAVE_XSP
DisablePixelDoubling
(
p_vout
);
#endif
DestroyCursor
(
p_vout
);
EnableXScreenSaver
(
p_vout
);
DestroyWindow
(
p_vout
,
&
p_vout
->
p_sys
->
window
);
...
...
@@ -247,40 +228,6 @@ void Deactivate ( vlc_object_t *p_this )
free
(
p_vout
->
p_sys
);
}
#ifdef HAVE_XSP
/*****************************************************************************
* EnablePixelDoubling: Enables pixel doubling
*****************************************************************************
* Checks if the double size image fits in current window, and enables pixel
* doubling accordingly. The i_hw_scale is the integer scaling factor.
*****************************************************************************/
static
void
EnablePixelDoubling
(
vout_thread_t
*
p_vout
)
{
int
i_hor_scale
=
(
p_vout
->
p_sys
->
window
.
i_width
)
/
p_vout
->
render
.
i_width
;
int
i_vert_scale
=
(
p_vout
->
p_sys
->
window
.
i_height
)
/
p_vout
->
render
.
i_height
;
if
(
(
i_hor_scale
>
1
)
&&
(
i_vert_scale
>
1
)
)
{
p_vout
->
p_sys
->
i_hw_scale
=
2
;
msg_Dbg
(
p_vout
,
"Enabling pixel doubling, scaling factor %d"
,
p_vout
->
p_sys
->
i_hw_scale
);
XSPSetPixelDoubling
(
p_vout
->
p_sys
->
p_display
,
0
,
1
);
}
}
/*****************************************************************************
* DisablePixelDoubling: Disables pixel doubling
*****************************************************************************
* The scaling factor i_hw_scale is reset to the no-scaling value 1.
*****************************************************************************/
static
void
DisablePixelDoubling
(
vout_thread_t
*
p_vout
)
{
if
(
p_vout
->
p_sys
->
i_hw_scale
>
1
)
{
msg_Dbg
(
p_vout
,
"Disabling pixel doubling"
);
XSPSetPixelDoubling
(
p_vout
->
p_sys
->
p_display
,
0
,
0
);
p_vout
->
p_sys
->
i_hw_scale
=
1
;
}
}
#endif
/*****************************************************************************
* ManageVideo: handle X11 events
*****************************************************************************
...
...
@@ -798,13 +745,6 @@ static void ToggleFullScreen ( vout_thread_t *p_vout )
p_vout
->
b_fullscreen
=
!
p_vout
->
b_fullscreen
;
vout_window_SetFullScreen
(
p_vout
->
p_sys
->
window
.
owner_window
,
p_vout
->
b_fullscreen
);
#ifdef HAVE_XSP
if
(
p_vout
->
b_fullscreen
)
EnablePixelDoubling
(
p_vout
);
else
DisablePixelDoubling
(
p_vout
);
#endif
}
/*****************************************************************************
...
...
modules/video_output/x11/xcommon.h
View file @
f17b5815
...
...
@@ -89,10 +89,6 @@ struct vout_sys_t
GLXContext
gwctx
;
GLXWindow
gwnd
;
#endif
#ifdef HAVE_XSP
int
i_hw_scale
;
#endif
};
/*****************************************************************************
...
...
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