- /* adjust index to the next logo */
- p_logo_list->i_counter =
- ( p_logo_list->i_counter + 1 )%p_logo_list->i_count;
-
- p_pic = p_logo_list->p_logo[p_logo_list->i_counter].p_pic;
- /* 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;
- p_vout->fmt_out = p_vout->fmt_in;
- fmt = p_vout->fmt_out;
-
- /* Load the video blending filter */
- p_sys->p_blend = vlc_object_create( p_vout, sizeof(filter_t) );
- vlc_object_attach( p_sys->p_blend, p_vout );
- p_sys->p_blend->fmt_out.video.i_x_offset =
- p_sys->p_blend->fmt_out.video.i_y_offset = 0;
- p_sys->p_blend->fmt_in.video.i_x_offset =
- p_sys->p_blend->fmt_in.video.i_y_offset = 0;
- p_sys->p_blend->fmt_out.video.i_aspect = p_vout->render.i_aspect;
- p_sys->p_blend->fmt_out.video.i_chroma = p_vout->output.i_chroma;
- p_sys->p_blend->fmt_in.video.i_chroma = VLC_FOURCC('Y','U','V','A');
- p_sys->p_blend->fmt_in.video.i_aspect = VOUT_ASPECT_FACTOR;
- p_sys->i_width =
- p_sys->p_blend->fmt_in.video.i_width =
- p_sys->p_blend->fmt_in.video.i_visible_width =
- p_pic ? p_pic->p[Y_PLANE].i_visible_pitch : 0;
- p_sys->i_height =
- p_sys->p_blend->fmt_in.video.i_height =
- p_sys->p_blend->fmt_in.video.i_visible_height =
- p_pic ? p_pic->p[Y_PLANE].i_visible_lines : 0;
- p_sys->p_blend->fmt_out.video.i_width =
- p_sys->p_blend->fmt_out.video.i_visible_width =
- p_vout->output.i_width;
- p_sys->p_blend->fmt_out.video.i_height =
- p_sys->p_blend->fmt_out.video.i_visible_height =
- p_vout->output.i_height;
-
- p_sys->p_blend->p_module =
- module_Need( p_sys->p_blend, "video blending", 0, 0 );
- if( !p_sys->p_blend->p_module )