/*****************************************************************************
* canvas.c : automatically resize and padd a video to fit in canvas
*****************************************************************************
- * Copyright (C) 2008 the VideoLAN team
+ * Copyright (C) 2008 VLC authors and VideoLAN
* $Id$
*
* Authors: Antoine Cellerier <dionoea at videolan dot org>
*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published by
+ * the Free Software Foundation; either version 2.1 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
*
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
/*****************************************************************************
set_category( CAT_VIDEO )
set_subcategory( SUBCAT_VIDEO_VFILTER )
- add_integer_with_range( CFG_PREFIX "width", 0, 0, INT_MAX, NULL,
+ add_integer_with_range( CFG_PREFIX "width", 0, 0, INT_MAX,
WIDTH_TEXT, WIDTH_LONGTEXT, false )
- add_integer_with_range( CFG_PREFIX "height", 0, 0, INT_MAX, NULL,
+ add_integer_with_range( CFG_PREFIX "height", 0, 0, INT_MAX,
HEIGHT_TEXT, HEIGHT_LONGTEXT, false )
- add_string( CFG_PREFIX "aspect", NULL, NULL,
+ add_string( CFG_PREFIX "aspect", NULL,
ASPECT_TEXT, ASPECT_LONGTEXT, false )
- add_bool( CFG_PREFIX "padd", true, NULL,
+ add_bool( CFG_PREFIX "padd", true,
PADD_TEXT, PADD_LONGTEXT, false )
vlc_module_end ()
static int alloc_init( filter_t *p_filter, void *p_data )
{
p_filter->p_owner = p_data;
- p_filter->pf_vout_buffer_new = video_new;
- p_filter->pf_vout_buffer_del = video_del;
+ p_filter->pf_video_buffer_new = video_new;
+ p_filter->pf_video_buffer_del = video_del;
return VLC_SUCCESS;
}