| FFmpegKit Linux API 6.0

Loading...
Searching...
No Matches
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
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
47 int show_sinks(void *optctx, const char *opt, const char *arg);
48
53 int show_sources(void *optctx, const char *opt, const char *arg);
54#endif
55
61 int show_license(void *optctx, const char *opt, const char *arg);
62
66 int show_help(void *optctx, const char *opt, const char *arg);
67
74 int show_version(void *optctx, const char *opt, const char *arg);
75
81 int show_buildconf(void *optctx, const char *opt, const char *arg);
82
88 int show_formats(void *optctx, const char *opt, const char *arg);
89
95 int show_muxers(void *optctx, const char *opt, const char *arg);
96
102 int show_demuxers(void *optctx, const char *opt, const char *arg);
103
109 int show_devices(void *optctx, const char *opt, const char *arg);
110
116 int show_codecs(void *optctx, const char *opt, const char *arg);
117
122 int show_decoders(void *optctx, const char *opt, const char *arg);
123
128 int show_encoders(void *optctx, const char *opt, const char *arg);
129
135 int show_bsfs(void *optctx, const char *opt, const char *arg);
136
142 int show_protocols(void *optctx, const char *opt, const char *arg);
143
149 int show_filters(void *optctx, const char *opt, const char *arg);
150
156 int show_pix_fmts(void *optctx, const char *opt, const char *arg);
157
163 int show_layouts(void *optctx, const char *opt, const char *arg);
164
169 int show_sample_fmts(void *optctx, const char *opt, const char *arg);
170
174 int show_dispositions(void *optctx, const char *opt, const char *arg);
175
180 int show_colors(void *optctx, const char *opt, const char *arg);
181
185 int opt_loglevel(void *optctx, const char *opt, const char *arg);
186
187 int opt_report(void *optctx, const char *opt, const char *arg);
188 int init_report(const char *env, FILE **file);
189
190 int opt_max_alloc(void *optctx, const char *opt, const char *arg);
191
195 int opt_cpuflags(void *optctx, const char *opt, const char *arg);
196
200 int opt_cpucount(void *optctx, const char *opt, const char *arg);
201
202#endif /* FFTOOLS_OPT_COMMON_H */
fftools_cmdutils.h
show_decoders
int show_decoders(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:794
opt_loglevel
int opt_loglevel(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:1263
opt_cpuflags
int opt_cpuflags(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:1076
show_help
int show_help(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:597
show_filters
int show_filters(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:818
show_sample_fmts
int show_sample_fmts(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:1057
show_muxers
int show_muxers(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:942
show_bsfs
int show_bsfs(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:806
show_dispositions
int show_dispositions(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:1066
show_layouts
int show_layouts(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:1024
show_encoders
int show_encoders(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:800
show_version
int show_version(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:273
opt_cpucount
int opt_cpucount(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:1088
show_license
int show_license(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:101
show_codecs
int show_codecs(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:697
show_buildconf
int show_buildconf(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:281
show_devices
int show_devices(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:952
init_report
int init_report(const char *env, FILE **file)
Definition fftools_opt_common.c:1162
show_formats
int show_formats(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:937
show_protocols
int show_protocols(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:957
opt_max_alloc
int opt_max_alloc(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:1249
opt_report
int opt_report(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:1244
show_colors
int show_colors(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:972
show_pix_fmts
int show_pix_fmts(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:986
show_demuxers
int show_demuxers(void *optctx, const char *opt, const char *arg)
Definition fftools_opt_common.c:947