]> git.sesse.net Git - x264/blob - filters/filters.h
cli: Refactor filter option parsing
[x264] / filters / filters.h
1 /*****************************************************************************
2  * filters.h: common filter functions
3  *****************************************************************************
4  * Copyright (C) 2010-2016 x264 project
5  *
6  * Authors: Diogo Franco <diogomfranco@gmail.com>
7  *          Steven Walters <kemuri9@gmail.com>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111, USA.
22  *
23  * This program is also available under a commercial proprietary license.
24  * For more information, contact us at licensing@x264.com.
25  *****************************************************************************/
26
27 #ifndef X264_FILTERS_H
28 #define X264_FILTERS_H
29
30 #include "x264cli.h"
31 #include "filters/video/video.h"
32
33 char **x264_split_options( const char *opt_str, const char * const *options );
34 char  *x264_get_option( const char *name, char **split_options );
35 int    x264_otob( const char *str, int def );    // option to bool
36 double x264_otof( const char *str, double def ); // option to float/double
37 int    x264_otoi( const char *str, int def );    // option to int
38 char  *x264_otos( char *str, char *def );        // option to string
39
40 #endif