FFmpegKit Linux API 5.1
fftools_opt_common.h
Go to the documentation of this file.
1/*
2 * Option handlers shared between the tools.
3 * copyright (c) 2022 Taner Sener ( tanersener gmail com )
4 *
5 * This file is part of FFmpeg.
6 *
7 * FFmpeg is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * FFmpeg is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with FFmpeg; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21
22/*
23 * This file is the modified version of opt_common.h file living in ffmpeg source code under the fftools folder. We
24 * manually update it each time we depend on a new ffmpeg version. Below you can see the list of changes applied
25 * by us to develop the ffmpeg-kit library.
26 *
27 * ffmpeg-kit changes by Taner Sener
28 *
29 * 09.2022
30 * --------------------------------------------------------
31 * - CMDUTILS_COMMON_OPTIONS and CMDUTILS_COMMON_OPTIONS_AVDEVICE defines dropped
32 * - fftools_ prefix added to fftools headers
33 */
34
35#ifndef FFTOOLS_OPT_COMMON_H
36#define FFTOOLS_OPT_COMMON_H
37
38#include "config.h"
39
40#include "fftools_cmdutils.h"
41
42#if CONFIG_AVDEVICE
47int show_sinks(void *optctx, const char *opt, const char *arg);
48
53int show_sources(void *optctx, const char *opt, const char *arg);
54#endif
55
61int show_license(void *optctx, const char *opt, const char *arg);
62
66int show_help(void *optctx, const char *opt, const char *arg);
67
74int show_version(void *optctx, const char *opt, const char *arg);
75
81int show_buildconf(void *optctx, const char *opt, const char *arg);
82
88int show_formats(void *optctx, const char *opt, const char *arg);
89
95int show_muxers(void *optctx, const char *opt, const char *arg);
96
102int show_demuxers(void *optctx, const char *opt, const char *arg);
103
109int show_devices(void *optctx, const char *opt, const char *arg);
110
116int show_codecs(void *optctx, const char *opt, const char *arg);
117
122int show_decoders(void *optctx, const char *opt, const char *arg);
123
128int show_encoders(void *optctx, const char *opt, const char *arg);
129
135int show_bsfs(void *optctx, const char *opt, const char *arg);
136
142int show_protocols(void *optctx, const char *opt, const char *arg);
143
149int show_filters(void *optctx, const char *opt, const char *arg);
150
156int show_pix_fmts(void *optctx, const char *opt, const char *arg);
157
163int show_layouts(void *optctx, const char *opt, const char *arg);
164
169int show_sample_fmts(void *optctx, const char *opt, const char *arg);
170
174int show_dispositions(void *optctx, const char *opt, const char *arg);
175
180int show_colors(void *optctx, const char *opt, const char *arg);
181
185int opt_loglevel(void *optctx, const char *opt, const char *arg);
186
187int opt_report(void *optctx, const char *opt, const char *arg);
188int init_report(const char *env, FILE **file);
189
190int opt_max_alloc(void *optctx, const char *opt, const char *arg);
191
195int opt_cpuflags(void *optctx, const char *opt, const char *arg);
196
200int opt_cpucount(void *optctx, const char *opt, const char *arg);
201
202#endif /* FFTOOLS_OPT_COMMON_H */
int show_decoders(void *optctx, const char *opt, const char *arg)
int opt_loglevel(void *optctx, const char *opt, const char *arg)
int opt_cpuflags(void *optctx, const char *opt, const char *arg)
int show_help(void *optctx, const char *opt, const char *arg)
int show_filters(void *optctx, const char *opt, const char *arg)
int show_sample_fmts(void *optctx, const char *opt, const char *arg)
int show_muxers(void *optctx, const char *opt, const char *arg)
int show_bsfs(void *optctx, const char *opt, const char *arg)
int show_dispositions(void *optctx, const char *opt, const char *arg)
int show_layouts(void *optctx, const char *opt, const char *arg)
int show_encoders(void *optctx, const char *opt, const char *arg)
int show_version(void *optctx, const char *opt, const char *arg)
int opt_cpucount(void *optctx, const char *opt, const char *arg)
int show_license(void *optctx, const char *opt, const char *arg)
int show_codecs(void *optctx, const char *opt, const char *arg)
int show_buildconf(void *optctx, const char *opt, const char *arg)
int show_devices(void *optctx, const char *opt, const char *arg)
int init_report(const char *env, FILE **file)
int show_formats(void *optctx, const char *opt, const char *arg)
int show_protocols(void *optctx, const char *opt, const char *arg)
int opt_max_alloc(void *optctx, const char *opt, const char *arg)
int opt_report(void *optctx, const char *opt, const char *arg)
int show_colors(void *optctx, const char *opt, const char *arg)
int show_pix_fmts(void *optctx, const char *opt, const char *arg)
int show_demuxers(void *optctx, const char *opt, const char *arg)