aboutsummaryrefslogtreecommitdiffstats
path: root/fftools/cmdutils.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-12-22 12:41:25 +0100
committerAnton Khirnov <anton@khirnov.net>2024-01-20 10:37:32 +0100
commit03aedbdd4090788fac029719b97903d1a11d64f4 (patch)
tree59bb4fe29e645eb23da9934b92ff87350bc3c5ee /fftools/cmdutils.h
parentd8173cfcafac3019cd05b0c92af5631f6b27dd3a (diff)
downloadffmpeg-03aedbdd4090788fac029719b97903d1a11d64f4.tar.gz
fftools/cmdutils: add a flag for per-stream options
Not all OPT_SPEC options are per-stream, this will allow identifying those that are, which will be useful in following commits.
Diffstat (limited to 'fftools/cmdutils.h')
-rw-r--r--fftools/cmdutils.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/fftools/cmdutils.h b/fftools/cmdutils.h
index 8fa5ad4fc7..0c3b475876 100644
--- a/fftools/cmdutils.h
+++ b/fftools/cmdutils.h
@@ -158,17 +158,22 @@ typedef struct OptionDef {
Always use as OPT_SPEC in option definitions. */
#define OPT_FLAG_SPEC (1 << 9)
#define OPT_SPEC (OPT_FLAG_SPEC | OPT_OFFSET)
+
+/* Option applies per-stream (implies OPT_SPEC). */
+#define OPT_FLAG_PERSTREAM (1 << 10)
+#define OPT_PERSTREAM (OPT_FLAG_PERSTREAM | OPT_SPEC)
+
/* ffmpeg-only - specifies whether an OPT_PERFILE option applies to input,
* output, or both. */
-#define OPT_INPUT (1 << 10)
-#define OPT_OUTPUT (1 << 11)
+#define OPT_INPUT (1 << 11)
+#define OPT_OUTPUT (1 << 12)
/* This option is a "canonical" form, to which one or more alternatives
* exist. These alternatives are listed in u1.names_alt. */
-#define OPT_HAS_ALT (1 << 12)
+#define OPT_HAS_ALT (1 << 13)
/* This option is an alternative form of some other option, whose
* name is stored in u1.name_canon */
-#define OPT_HAS_CANON (1 << 13)
+#define OPT_HAS_CANON (1 << 14)
union {
void *dst_ptr;