-/*****************************************************************************
- * Init: initialize Wall video thread output method
- *****************************************************************************/
-static int Init( vout_thread_t *p_vout )
-{
- int i_index, i_row, i_col, i_width, i_height, i_left, i_top;
- unsigned int i_target_width,i_target_height;
- picture_t *p_pic;
- int i_aspect = 4*VOUT_ASPECT_FACTOR/3;
- int i_align = 0;
- unsigned int i_hstart, i_hend, i_vstart, i_vend;
- unsigned int w1,h1,w2,h2;
- int i_xpos, i_ypos;
-
- i_xpos = var_CreateGetInteger( p_vout, "video-x" );
- i_ypos = var_CreateGetInteger( p_vout, "video-y" );
- if( i_xpos < 0 ) i_xpos = 0;
- if( i_ypos < 0 ) i_ypos = 0;
-
- I_OUTPUTPICTURES = 0;
-
- /* Initialize the output structure */
- p_vout->output.i_chroma = p_vout->render.i_chroma;
- p_vout->output.i_width = p_vout->render.i_width;
- p_vout->output.i_height = p_vout->render.i_height;
- p_vout->output.i_aspect = p_vout->render.i_aspect;
- var_Create( p_vout, "align", VLC_VAR_INTEGER );
-
- w1 = p_vout->output.i_width / p_vout->p_sys->i_col;
- w1 &= ~1;
- h1 = w1 * VOUT_ASPECT_FACTOR / i_aspect&~1;
- h1 &= ~1;
-
- h2 = p_vout->output.i_height / p_vout->p_sys->i_row&~1;
- h2 &= ~1;
- w2 = h2 * i_aspect / VOUT_ASPECT_FACTOR&~1;
- w2 &= ~1;
-
- if ( h1 * p_vout->p_sys->i_row < p_vout->output.i_height )
+ unsigned i_target_width;
+ unsigned i_target_height;
+ unsigned i_hstart, i_hend;
+ unsigned i_vstart, i_vend;
+ bool b_vstart_rounded;
+ bool b_hstart_rounded;
+
+ if( h1 * p_sys->i_row < p_splitter->fmt.i_height )