* thread which direct buffer needs to be displayed.
*/
picture_t *vout_RenderPicture( vout_thread_t *p_vout, picture_t *p_pic,
- subpicture_t *p_subpic, bool b_paused )
+ subpicture_t *p_subpic, mtime_t render_date )
{
if( p_pic == NULL )
return NULL;
spu_RenderSubpictures( p_vout->p_spu,
PP_OUTPUTPICTURE[0], &p_vout->fmt_out,
- p_subpic, &p_vout->fmt_in, b_paused );
+ p_subpic, &p_vout->fmt_in, render_date );
vout_UnlockPicture( p_vout, PP_OUTPUTPICTURE[0] );
picture_Copy( PP_OUTPUTPICTURE[0], p_pic );
spu_RenderSubpictures( p_vout->p_spu,
PP_OUTPUTPICTURE[0], &p_vout->fmt_out,
- p_subpic, &p_vout->fmt_in, b_paused );
+ p_subpic, &p_vout->fmt_in, render_date );
vout_UnlockPicture( p_vout, PP_OUTPUTPICTURE[0] );
/* Render subpictures on the first direct buffer */
spu_RenderSubpictures( p_vout->p_spu,
p_tmp_pic, &p_vout->fmt_out,
- p_subpic, &p_vout->fmt_in, b_paused );
+ p_subpic, &p_vout->fmt_in, render_date );
if( vout_LockPicture( p_vout, &p_vout->p_picture[0] ) )
return NULL;
/* Render subpictures on the first direct buffer */
spu_RenderSubpictures( p_vout->p_spu,
&p_vout->p_picture[0], &p_vout->fmt_out,
- p_subpic, &p_vout->fmt_in, b_paused );
+ p_subpic, &p_vout->fmt_in, render_date );
}
vout_UnlockPicture( p_vout, &p_vout->p_picture[0] );
vlc_fourcc_t i_chroma,
int i_width, int i_height, int i_aspect )
{
+ VLC_UNUSED(p_this);
int i_bytes, i_index, i_width_aligned, i_height_aligned;
/* Make sure the real dimensions are a multiple of 16 */
video_format_t *p_fmt,
picture_t *p_picture,
vlc_fourcc_t i_format,
- int i_override_width, int i_override_height )
+ unsigned i_override_width, unsigned i_override_height )
{
/* */
video_format_t fmt_in = p_picture->format;
}
/* */
- fmt_out.i_width = ( i_override_width < 0 ) ?
- i_original_width : i_override_width;
- fmt_out.i_height = ( i_override_height < 0 ) ?
- i_original_height : i_override_height;
+ fmt_out.i_width = i_override_width > 0 ? i_override_width : i_original_width;
+ fmt_out.i_height = i_override_height > 0 ? i_override_height : i_original_height;
/* scale if only one direction is provided */
if( fmt_out.i_height == 0 && fmt_out.i_width > 0 )