Commit 43cfba30 authored by Christophe Massiot's avatar Christophe Massiot

By default, use the real size of the stream for the video output size.

parent 746e6074
...@@ -120,10 +120,10 @@ void foo() { int meuh; ntohl(meuh); }],, ...@@ -120,10 +120,10 @@ void foo() { int meuh; ntohl(meuh); }],,
AC_MSG_RESULT(yes), AC_MSG_RESULT(no)) AC_MSG_RESULT(yes), AC_MSG_RESULT(no))
dnl Check for inline function size limit 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_MSG_CHECKING([if \$CC accepts -finline-limit])
AC_TRY_COMPILE([],, 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)) AC_MSG_RESULT(no))
dnl Check for Darwin plugin linking flags dnl Check for Darwin plugin linking flags
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* thread, and destroy a previously oppenned video output thread. * thread, and destroy a previously oppenned video output thread.
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN * 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> * Authors: Vincent Seguin <seguin@via.ecp.fr>
* *
...@@ -278,7 +278,7 @@ typedef struct vout_thread_s ...@@ -278,7 +278,7 @@ typedef struct vout_thread_s
void vout_InitBank ( void ); void vout_InitBank ( void );
void vout_EndBank ( 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 ); void vout_DestroyThread ( vout_thread_t *p_vout, int *pi_status );
vout_fifo_t * vout_CreateFifo ( void ); vout_fifo_t * vout_CreateFifo ( void );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* vout_beos.cpp: beos video output display method * vout_beos.cpp: beos video output display method
***************************************************************************** *****************************************************************************
* Copyright (C) 2000, 2001 VideoLAN * 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> * Authors: Jean-Marc Dressler <polux@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org> * Samuel Hocevar <sam@zoy.org>
...@@ -350,10 +350,6 @@ int vout_Create( vout_thread_t *p_vout ) ...@@ -350,10 +350,6 @@ int vout_Create( vout_thread_t *p_vout )
} }
/* Set video window's size */ /* 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; p_vout->b_scale = true;
intf_Msg("Initial Width: %d Height: %d", intf_Msg("Initial Width: %d Height: %d",
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* vout_sdl.c: SDL video output display method * vout_sdl.c: SDL video output display method
***************************************************************************** *****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN * 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> * Authors: Samuel Hocevar <sam@zoy.org>
* Pierre Baillet <oct@zoy.org> * Pierre Baillet <oct@zoy.org>
...@@ -193,10 +193,8 @@ static int vout_Create( vout_thread_t *p_vout ) ...@@ -193,10 +193,8 @@ static int vout_Create( vout_thread_t *p_vout )
VOUT_FULLSCREEN_DEFAULT ); VOUT_FULLSCREEN_DEFAULT );
p_vout->p_sys->b_overlay = main_GetIntVariable( VOUT_OVERLAY_VAR, p_vout->p_sys->b_overlay = main_GetIntVariable( VOUT_OVERLAY_VAR,
VOUT_OVERLAY_DEFAULT ); VOUT_OVERLAY_DEFAULT );
p_vout->p_sys->i_width = main_GetIntVariable( VOUT_WIDTH_VAR, p_vout->p_sys->i_width = p_vout->i_width;
VOUT_WIDTH_DEFAULT ); p_vout->p_sys->i_height = p_vout->i_height;
p_vout->p_sys->i_height = main_GetIntVariable( VOUT_HEIGHT_VAR,
VOUT_HEIGHT_DEFAULT );
p_vout->p_sys->p_display = NULL; p_vout->p_sys->p_display = NULL;
p_vout->p_sys->p_overlay = NULL; p_vout->p_sys->p_overlay = NULL;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* vout_x11.c: X11 video output display method * vout_x11.c: X11 video output display method
***************************************************************************** *****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN * 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> * Authors: Vincent Seguin <seguin@via.ecp.fr>
* Samuel Hocevar <sam@zoy.org> * Samuel Hocevar <sam@zoy.org>
...@@ -794,12 +794,8 @@ static int X11CreateWindow( vout_thread_t *p_vout ) ...@@ -794,12 +794,8 @@ static int X11CreateWindow( vout_thread_t *p_vout )
else else
{ {
/* Set main window's size */ /* Set main window's size */
p_vout->p_sys->i_width = main_GetIntVariable( VOUT_WIDTH_VAR, p_vout->p_sys->i_width = p_vout->i_width;
VOUT_WIDTH_DEFAULT ); p_vout->p_sys->i_height = p_vout->i_height;
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;
} }
/* Prepare window manager hints and properties */ /* Prepare window manager hints and properties */
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* vout_xvideo.c: Xvideo video output display method * vout_xvideo.c: Xvideo video output display method
***************************************************************************** *****************************************************************************
* Copyright (C) 1998, 1999, 2000, 2001 VideoLAN * 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> * Authors: Shane Harper <shanegh@optusnet.com.au>
* Vincent Seguin <seguin@via.ecp.fr> * Vincent Seguin <seguin@via.ecp.fr>
...@@ -802,10 +802,8 @@ static int XVideoCreateWindow( vout_thread_t *p_vout ) ...@@ -802,10 +802,8 @@ static int XVideoCreateWindow( vout_thread_t *p_vout )
} }
else else
{ {
p_vout->p_sys->i_window_width = main_GetIntVariable( VOUT_WIDTH_VAR, p_vout->p_sys->i_window_width = p_vout->i_width;
VOUT_WIDTH_DEFAULT ); p_vout->p_sys->i_window_height = p_vout->i_height;
p_vout->p_sys->i_window_height = main_GetIntVariable( VOUT_HEIGHT_VAR,
VOUT_HEIGHT_DEFAULT );
} }
/* Prepare window manager hints and properties */ /* Prepare window manager hints and properties */
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* spu_decoder.c : spu decoder thread * spu_decoder.c : spu decoder thread
***************************************************************************** *****************************************************************************
* Copyright (C) 2000 VideoLAN * 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> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -96,7 +96,7 @@ vlc_thread_t spudec_CreateThread( vdec_config_t * p_config ) ...@@ -96,7 +96,7 @@ vlc_thread_t spudec_CreateThread( vdec_config_t * p_config )
{ {
intf_WarnMsg( 1, "spudec: no vout present, spawning one" ); 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 */ /* Everything failed */
if( p_spudec->p_vout == NULL ) if( p_spudec->p_vout == NULL )
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* vpar_headers.c : headers parsing * vpar_headers.c : headers parsing
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000 VideoLAN * 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> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* Stphane Borel <stef@via.ecp.fr> * Stphane Borel <stef@via.ecp.fr>
...@@ -419,7 +419,8 @@ static void SequenceHeader( vpar_thread_t * p_vpar ) ...@@ -419,7 +419,8 @@ static void SequenceHeader( vpar_thread_t * p_vpar )
{ {
intf_WarnMsg( 1, "vpar: no vout present, spawning one" ); 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 */ /* Everything failed */
if( p_vpar->p_vout == NULL ) if( p_vpar->p_vout == NULL )
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* thread, and destroy a previously oppened video output thread. * thread, and destroy a previously oppened video output thread.
***************************************************************************** *****************************************************************************
* Copyright (C) 2000 VideoLAN * 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> * Authors: Vincent Seguin <seguin@via.ecp.fr>
* *
...@@ -120,7 +120,7 @@ void vout_EndBank ( void ) ...@@ -120,7 +120,7 @@ void vout_EndBank ( void )
* If pi_status is NULL, then the function will block until the thread is ready. * 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. * 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 */ vout_thread_t * p_vout; /* thread descriptor */
int i_status; /* thread status */ int i_status; /* thread status */
...@@ -175,10 +175,16 @@ vout_thread_t * vout_CreateThread ( int *pi_status ) ...@@ -175,10 +175,16 @@ vout_thread_t * vout_CreateThread ( int *pi_status )
* fields will probably be modified by the method, and are only * fields will probably be modified by the method, and are only
* preferences */ * preferences */
p_vout->i_changes = 0; p_vout->i_changes = 0;
p_vout->i_width = main_GetIntVariable( VOUT_WIDTH_VAR, p_vout->i_width = main_GetIntVariable( VOUT_WIDTH_VAR, 0 );
VOUT_WIDTH_DEFAULT ); if( !p_vout->i_width )
p_vout->i_height = main_GetIntVariable( VOUT_HEIGHT_VAR, {
VOUT_HEIGHT_DEFAULT ); 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_bytes_per_line = p_vout->i_width * 2;
p_vout->i_screen_depth = main_GetIntVariable( VOUT_DEPTH_VAR, p_vout->i_screen_depth = main_GetIntVariable( VOUT_DEPTH_VAR,
VOUT_DEPTH_DEFAULT ); VOUT_DEPTH_DEFAULT );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment