boolean_t b_scale; /* allow picture scaling */
mtime_t render_time; /* last picture render time */
+
/* Idle screens management */
mtime_t last_display_date; /* last non idle display date */
mtime_t last_idle_date; /* last idle display date */
SDL_YV12_OVERLAY,
p_vout->p_sys->p_display
);
- intf_Msg("[YUV acceleration] : %d\n",
- p_vout->p_sys->p_overlay->hw_overlay);
+ intf_Msg("[YUV acceleration] : %d,\n",
+ p_vout->p_sys->p_overlay->hw_overlay);
}
SDL_LockYUVOverlay(p_vout->p_sys->p_overlay);
p_vout->p_rendered_pic->p_u,
p_vout->p_sys->p_overlay->h *
p_vout->p_sys->p_overlay->pitches[2] / 2);
-
- disp.x = 0;
- disp.y = 0;
- disp.w = p_vout->i_width;
- disp.h = p_vout->i_height;
-
+
+ disp.w = (&p_vout->p_buffer[p_vout->i_buffer_index])->i_pic_width;
+ disp.h = (&p_vout->p_buffer[p_vout->i_buffer_index])->i_pic_height;
+ disp.x = (p_vout->i_width - disp.w)/2;
+ disp.y = (p_vout->i_height - disp.h)/2;
+
SDL_DisplayYUVOverlay( p_vout->p_sys->p_overlay , &disp );
SDL_UnlockYUVOverlay(p_vout->p_sys->p_overlay);
}
b_display = p_vout->b_active;
p_vout->last_display_date = display_date;
p_vout->p_rendered_pic = p_pic;
+
+
+
/* FIXME: if b_need_render == 0 we need to do something with
* the subpictures one day. */
/* Set picture position */
i_pic_x = (p_vout->i_width - i_pic_width) / 2;
i_pic_y = (p_vout->i_height - i_pic_height) / 2;
+
}
else
{
#ifdef DEBUG_VOUT
render_time = mdate();
#endif
+
+
/*
* Choose appropriate rendering function and render picture
*/