/*****************************************************************************
* Module descriptor
*****************************************************************************/
-vlc_module_begin();
- set_description( N_("MPEG I/II video decoder (using libmpeg2)") );
- set_capability( "decoder", 150 );
- set_category( CAT_INPUT );
- set_subcategory( SUBCAT_INPUT_VCODEC );
- set_callbacks( OpenDecoder, CloseDecoder );
- add_shortcut( "libmpeg2" );
-vlc_module_end();
+vlc_module_begin ()
+ set_description( N_("MPEG I/II video decoder (using libmpeg2)") )
+ set_capability( "decoder", 150 )
+ set_category( CAT_INPUT )
+ set_subcategory( SUBCAT_INPUT_VCODEC )
+ set_callbacks( OpenDecoder, CloseDecoder )
+ add_shortcut( "libmpeg2" )
+vlc_module_end ()
/*****************************************************************************
* OpenDecoder: probe the decoder and return score
/* For some reason, libmpeg2 will put this pic twice in
* discard_picture. This can be considered a bug in libmpeg2. */
- p_dec->pf_picture_link( p_dec, p_pic );
+ decoder_LinkPicture( p_dec, p_pic );
if( p_sys->p_synchro )
{
if( p_sys->p_info->discard_fbuf &&
p_sys->p_info->discard_fbuf->id )
{
- p_dec->pf_picture_unlink( p_dec,
- p_sys->p_info->discard_fbuf->id );
+ decoder_UnlinkPicture( p_dec,
+ p_sys->p_info->discard_fbuf->id );
}
/* For still frames */
VLC_FOURCC('I','4','2','0') : VLC_FOURCC('I','4','2','2');
/* Get a new picture */
- p_pic = p_dec->pf_vout_buffer_new( p_dec );
+ p_pic = decoder_NewPicture( p_dec );
if( p_pic == NULL ) return NULL;
p_pic->i_nb_fields = p_sys->p_info->current_picture != NULL ?
p_sys->p_info->current_picture->nb_fields : 2;
- p_dec->pf_picture_link( p_dec, p_pic );
+ decoder_LinkPicture( p_dec, p_pic );
pp_buf[0] = p_pic->p[0].p_pixels;
pp_buf[1] = p_pic->p[1].p_pixels;