]> git.sesse.net Git - vlc/commitdiff
By default, use the real size of the stream for the video output size.
authorChristophe Massiot <massiot@videolan.org>
Wed, 26 Sep 2001 12:32:25 +0000 (12:32 +0000)
committerChristophe Massiot <massiot@videolan.org>
Wed, 26 Sep 2001 12:32:25 +0000 (12:32 +0000)
configure.in
include/video_output.h
plugins/beos/vout_beos.cpp
plugins/sdl/vout_sdl.c
plugins/x11/vout_x11.c
plugins/x11/vout_xvideo.c
src/spu_decoder/spu_decoder.c
src/video_decoder/vpar_headers.c
src/video_output/video_output.c

index 6981997f7bc509579fa73b24710f2b75984955ab..d02a0d66e96cba79620dfc0d812dc8293358eb6d 100644 (file)
@@ -120,10 +120,10 @@ void foo() { int meuh; ntohl(meuh); }],,
  AC_MSG_RESULT(yes), AC_MSG_RESULT(no))
 
 dnl Check for inline function size limit
-CFLAGS="${save_CFLAGS} -finline-limit-20000"
+CFLAGS="${save_CFLAGS} -finline-limit-30000"
 AC_MSG_CHECKING([if \$CC accepts -finline-limit])
 AC_TRY_COMPILE([],,
- save_CFLAGS="${save_CFLAGS} -finline-limit-20000"; AC_MSG_RESULT(yes),
+ save_CFLAGS="${save_CFLAGS} -finline-limit-30000"; AC_MSG_RESULT(yes),
  AC_MSG_RESULT(no))
 
 dnl Check for Darwin plugin linking flags
index 4c7bcfa970f7e164045b5788db97ed0a307c61ac..1d236417d344101155620e2a74f51e46541a7b77 100644 (file)
@@ -5,7 +5,7 @@
  * thread, and destroy a previously oppenned video output thread.
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
- * $Id: video_output.h,v 1.61 2001/05/30 17:03:11 sam Exp $
+ * $Id: video_output.h,v 1.62 2001/09/26 12:32:25 massiot Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *
@@ -278,7 +278,7 @@ typedef struct vout_thread_s
 void            vout_InitBank           ( void );
 void            vout_EndBank            ( void );
 
-vout_thread_t * vout_CreateThread   ( int *pi_status );
+vout_thread_t * vout_CreateThread   ( int *pi_status, int i_width, int i_height );
 void            vout_DestroyThread  ( vout_thread_t *p_vout, int *pi_status );
 
 vout_fifo_t *   vout_CreateFifo         ( void );
index 3031996b3b38d7102bca5b2dbb4beea48c1f9873..625852f3aac8b8f6ac1e524deb7b7525a07b6e1b 100644 (file)
@@ -2,7 +2,7 @@
  * vout_beos.cpp: beos video output display method
  *****************************************************************************
  * Copyright (C) 2000, 2001 VideoLAN
- * $Id: vout_beos.cpp,v 1.29 2001/09/12 01:30:07 tcastley Exp $
+ * $Id: vout_beos.cpp,v 1.30 2001/09/26 12:32:25 massiot Exp $
  *
  * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -350,10 +350,6 @@ int vout_Create( vout_thread_t *p_vout )
     }
     
     /* Set video window's size */
-    p_vout->i_width =  main_GetIntVariable( VOUT_WIDTH_VAR,
-                                            VOUT_WIDTH_DEFAULT );
-    p_vout->i_height = main_GetIntVariable( VOUT_HEIGHT_VAR,
-                                            VOUT_HEIGHT_DEFAULT );
        p_vout->b_scale = true;
                                                    
     intf_Msg("Initial Width: %d Height: %d", 
index 39c826b8c1ef9b53e658f55cc1a2c02de54af998..ec21d18476f062f09df8fa9f4bb3281a51c2b769 100644 (file)
@@ -2,7 +2,7 @@
  * vout_sdl.c: SDL video output display method
  *****************************************************************************
  * Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: vout_sdl.c,v 1.62 2001/08/06 20:45:55 gbazin Exp $
+ * $Id: vout_sdl.c,v 1.63 2001/09/26 12:32:25 massiot Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *          Pierre Baillet <oct@zoy.org>
@@ -193,10 +193,8 @@ static int vout_Create( vout_thread_t *p_vout )
                                 VOUT_FULLSCREEN_DEFAULT );
     p_vout->p_sys->b_overlay = main_GetIntVariable( VOUT_OVERLAY_VAR,
                                 VOUT_OVERLAY_DEFAULT );
-    p_vout->p_sys->i_width = main_GetIntVariable( VOUT_WIDTH_VAR, 
-                                VOUT_WIDTH_DEFAULT );
-    p_vout->p_sys->i_height = main_GetIntVariable( VOUT_HEIGHT_VAR,
-                                VOUT_HEIGHT_DEFAULT );
+    p_vout->p_sys->i_width = p_vout->i_width;
+    p_vout->p_sys->i_height = p_vout->i_height;
 
     p_vout->p_sys->p_display = NULL;
     p_vout->p_sys->p_overlay = NULL;
index 555e7aa4f51a2f98c97c8215f8553bbe81d5f2bb..9b98c076e2ae0c5367c1e03e1ff4492f931cf24c 100644 (file)
@@ -2,7 +2,7 @@
  * vout_x11.c: X11 video output display method
  *****************************************************************************
  * Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: vout_x11.c,v 1.30 2001/08/03 16:04:17 gbazin Exp $
+ * $Id: vout_x11.c,v 1.31 2001/09/26 12:32:25 massiot Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -794,12 +794,8 @@ static int X11CreateWindow( vout_thread_t *p_vout )
     else
     {
         /* Set main window's size */
-        p_vout->p_sys->i_width =  main_GetIntVariable( VOUT_WIDTH_VAR,
-                                                       VOUT_WIDTH_DEFAULT );
-        p_vout->p_sys->i_height = main_GetIntVariable( VOUT_HEIGHT_VAR,
-                                                       VOUT_HEIGHT_DEFAULT );
-        p_vout->i_width =  p_vout->p_sys->i_width;
-        p_vout->i_height = p_vout->p_sys->i_height;
+        p_vout->p_sys->i_width = p_vout->i_width;
+        p_vout->p_sys->i_height = p_vout->i_height;
     }
 
     /* Prepare window manager hints and properties */
index e6c0a798ce30d01eb6e68d9d61236e39b1ad36dd..4a1636e29aa0647274b1b7edb49337acb113e782 100644 (file)
@@ -2,7 +2,7 @@
  * vout_xvideo.c: Xvideo video output display method
  *****************************************************************************
  * Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
- * $Id: vout_xvideo.c,v 1.26 2001/08/22 14:23:57 sam Exp $
+ * $Id: vout_xvideo.c,v 1.27 2001/09/26 12:32:25 massiot Exp $
  *
  * Authors: Shane Harper <shanegh@optusnet.com.au>
  *          Vincent Seguin <seguin@via.ecp.fr>
@@ -802,10 +802,8 @@ static int XVideoCreateWindow( vout_thread_t *p_vout )
     }
     else
     {
-        p_vout->p_sys->i_window_width =  main_GetIntVariable( VOUT_WIDTH_VAR,
-                                                       VOUT_WIDTH_DEFAULT );
-        p_vout->p_sys->i_window_height = main_GetIntVariable( VOUT_HEIGHT_VAR,
-                                                       VOUT_HEIGHT_DEFAULT );
+        p_vout->p_sys->i_window_width =  p_vout->i_width;
+        p_vout->p_sys->i_window_height = p_vout->i_height;
     }
 
     /* Prepare window manager hints and properties */
index 09949ef6b531a02fda92fbc195f5d38783b95d4a..be9b49f94997c68a85b7f511957a70208948024c 100644 (file)
@@ -2,7 +2,7 @@
  * spu_decoder.c : spu decoder thread
  *****************************************************************************
  * Copyright (C) 2000 VideoLAN
- * $Id: spu_decoder.c,v 1.48 2001/08/06 13:13:06 sam Exp $
+ * $Id: spu_decoder.c,v 1.49 2001/09/26 12:32:25 massiot Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
@@ -96,7 +96,7 @@ vlc_thread_t spudec_CreateThread( vdec_config_t * p_config )
     {
         intf_WarnMsg( 1, "spudec: no vout present, spawning one" );
 
-        p_spudec->p_vout = vout_CreateThread( NULL );
+        p_spudec->p_vout = vout_CreateThread( NULL, 0, 0 );
 
         /* Everything failed */
         if( p_spudec->p_vout == NULL )
index f4d8e2c7466b4421f8709698b5756d32be962446..2f410aba8e9b880049c43252373a920c3ebe3154 100644 (file)
@@ -2,7 +2,7 @@
  * vpar_headers.c : headers parsing
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
- * $Id: vpar_headers.c,v 1.8 2001/09/06 13:16:26 massiot Exp $
+ * $Id: vpar_headers.c,v 1.9 2001/09/26 12:32:25 massiot Exp $
  *
  * Authors: Christophe Massiot <massiot@via.ecp.fr>
  *          Stéphane Borel <stef@via.ecp.fr>
@@ -419,7 +419,8 @@ static void SequenceHeader( vpar_thread_t * p_vpar )
     {
         intf_WarnMsg( 1, "vpar: no vout present, spawning one" );
 
-        p_vpar->p_vout = vout_CreateThread( NULL );
+        p_vpar->p_vout = vout_CreateThread( NULL, p_vpar->sequence.i_width,
+                                            p_vpar->sequence.i_height );
 
         /* Everything failed */
         if( p_vpar->p_vout == NULL )
index d19e3db4e36e438ccf9d709ed2864b67f20034c3..6ccd6756e81204be63f7f0a8c91812910c915e0b 100644 (file)
@@ -5,7 +5,7 @@
  * thread, and destroy a previously oppened video output thread.
  *****************************************************************************
  * Copyright (C) 2000 VideoLAN
- * $Id: video_output.c,v 1.139 2001/09/25 11:46:14 massiot Exp $
+ * $Id: video_output.c,v 1.140 2001/09/26 12:32:25 massiot Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *
@@ -120,7 +120,7 @@ void vout_EndBank ( void )
  * If pi_status is NULL, then the function will block until the thread is ready.
  * If not, it will be updated using one of the THREAD_* constants.
  *****************************************************************************/
-vout_thread_t * vout_CreateThread   ( int *pi_status )
+vout_thread_t * vout_CreateThread   ( int *pi_status, int i_width, int i_height )
 {
     vout_thread_t * p_vout;                             /* thread descriptor */
     int             i_status;                               /* thread status */
@@ -174,26 +174,32 @@ vout_thread_t * vout_CreateThread   ( int *pi_status )
     /* Initialize some fields used by the system-dependant method - these
      * fields will probably be modified by the method, and are only
      * preferences */
-    p_vout->i_changes             = 0;
-    p_vout->i_width               = main_GetIntVariable( VOUT_WIDTH_VAR,
-                                                         VOUT_WIDTH_DEFAULT );
-    p_vout->i_height              = main_GetIntVariable( VOUT_HEIGHT_VAR,
-                                                         VOUT_HEIGHT_DEFAULT );
-    p_vout->i_bytes_per_line      = p_vout->i_width * 2;
-    p_vout->i_screen_depth        = main_GetIntVariable( VOUT_DEPTH_VAR,
+    p_vout->i_changes           = 0;
+    p_vout->i_width             = main_GetIntVariable( VOUT_WIDTH_VAR, 0 );
+    if( !p_vout->i_width )
+    {
+        p_vout->i_width         = i_width ? i_width : VOUT_WIDTH_DEFAULT;
+    }
+    p_vout->i_height            = main_GetIntVariable( VOUT_HEIGHT_VAR, 0 );
+    if( !p_vout->i_height )
+    {
+        p_vout->i_height        = i_height ? i_height : VOUT_HEIGHT_DEFAULT;
+    }
+    p_vout->i_bytes_per_line    = p_vout->i_width * 2;
+    p_vout->i_screen_depth      = main_GetIntVariable( VOUT_DEPTH_VAR,
                                                          VOUT_DEPTH_DEFAULT );
-    p_vout->i_bytes_per_pixel     = 2;
-    p_vout->f_gamma               = VOUT_GAMMA_DEFAULT; // FIXME: replace with
-                                                        // variable
-    p_vout->b_need_render         = 1;
-    p_vout->b_YCbr                = 0;
-
-    p_vout->b_grayscale           = main_GetIntVariable( VOUT_GRAYSCALE_VAR,
-                                                     VOUT_GRAYSCALE_DEFAULT );
-    p_vout->b_info                = 0;
-    p_vout->b_interface           = 0;
-    p_vout->b_scale               = 1;
-    p_vout->b_fullscreen          = main_GetIntVariable( VOUT_FULLSCREEN_VAR,
+    p_vout->i_bytes_per_pixel   = 2;
+    p_vout->f_gamma             = VOUT_GAMMA_DEFAULT; // FIXME: replace with
+                                                      // variable
+    p_vout->b_need_render       = 1;
+    p_vout->b_YCbr              = 0;
+
+    p_vout->b_grayscale         = main_GetIntVariable( VOUT_GRAYSCALE_VAR,
+                                                       VOUT_GRAYSCALE_DEFAULT );
+    p_vout->b_info              = 0;
+    p_vout->b_interface         = 0;
+    p_vout->b_scale             = 1;
+    p_vout->b_fullscreen        = main_GetIntVariable( VOUT_FULLSCREEN_VAR,
                                                      VOUT_FULLSCREEN_DEFAULT );
 
     intf_WarnMsg( 3, "vout info: asking for %dx%d, %d/%d bpp (%d Bpl)",