Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
52867 views
1
/*****************************************************************************
2
* filters.h: common filter functions
3
*****************************************************************************
4
* Copyright (C) 2010-2016 x264 project
5
*
6
* Authors: Diogo Franco <[email protected]>
7
* Steven Walters <[email protected]>
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 [email protected].
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_string( char *string, char *sep, int limit );
34
void x264_free_string_array( char **array );
35
36
char **x264_split_options( const char *opt_str, const char *options[] );
37
char *x264_get_option( const char *name, char **split_options );
38
int x264_otob( char *str, int def ); // option to bool
39
double x264_otof( char *str, double def ); // option to float/double
40
int x264_otoi( char *str, int def ); // option to int
41
char *x264_otos( char *str, char *def ); // option to string
42
43
#endif
44
45