1 /*****************************************************************************
2 * swscale.c: scaling and chroma conversion using libswscale
3 *****************************************************************************
4 * Copyright (C) 1999-2008 the VideoLAN team
7 * Authors: Laurent Aimar <fenrir@via.ecp.fr>
8 * Gildas Bazin <gbazin@videolan.org>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
25 /*****************************************************************************
27 *****************************************************************************/
32 #include <vlc_common.h>
33 #include <vlc_plugin.h>
37 /****************************************************************************
39 ****************************************************************************/
40 static const int pi_mode_values[] = { 0, 1, 2, 4, 8, 5, 6, 9, 10 };
41 static const char *const ppsz_mode_descriptions[] =
42 { N_("Fast bilinear"), N_("Bilinear"), N_("Bicubic (good quality)"),
43 N_("Experimental"), N_("Nearest neighbour (bad quality)"),
44 N_("Area"), N_("Luma bicubic / chroma bilinear"), N_("Gauss"),
45 N_("SincR"), N_("Lanczos"), N_("Bicubic spline") };
47 /*****************************************************************************
49 *****************************************************************************/
51 set_description( N_("Video scaling filter") );
52 set_capability( "video filter2", 1000 );
53 set_category( CAT_VIDEO );
54 set_subcategory( SUBCAT_VIDEO_VFILTER );
55 set_callbacks( OpenScaler, CloseScaler );
56 add_integer( "swscale-mode", 0, NULL, SCALEMODE_TEXT, SCALEMODE_LONGTEXT, true );
57 change_integer_list( pi_mode_values, ppsz_mode_descriptions, 0 );