[vlc-devel] commit: Remove Xsp ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun Nov 29 23:01:44 CET 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Nov 29 23:58:20 2009 +0200| [f17b581513409c1a4f44df172fe0ed7b4927a107] | committer: Rémi Denis-Courmont 

Remove Xsp

We don't use GLX with Xomap (rather XV or X11)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=f17b581513409c1a4f44df172fe0ed7b4927a107
---

 configure.ac                       |    6 ---
 modules/video_output/x11/xcommon.c |   60 ------------------------------------
 modules/video_output/x11/xcommon.h |    4 --
 3 files changed, 0 insertions(+), 70 deletions(-)

diff --git a/configure.ac b/configure.ac
index 1d56d5f..8ccd78f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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
diff --git a/modules/video_output/x11/xcommon.c b/modules/video_output/x11/xcommon.c
index 452909a..0dd87b4 100644
--- a/modules/video_output/x11/xcommon.c
+++ b/modules/video_output/x11/xcommon.c
@@ -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
 }
 
 /*****************************************************************************
diff --git a/modules/video_output/x11/xcommon.h b/modules/video_output/x11/xcommon.h
index c673635..793bd07 100644
--- a/modules/video_output/x11/xcommon.h
+++ b/modules/video_output/x11/xcommon.h
@@ -89,10 +89,6 @@ struct vout_sys_t
     GLXContext          gwctx;
     GLXWindow           gwnd;
 #endif
-
-#ifdef HAVE_XSP
-    int                 i_hw_scale;
-#endif
 };
 
 /*****************************************************************************




More information about the vlc-devel mailing list