mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-11 17:20:00 +00:00
fftools/cmdutils: renumber option flags sequentially
Also, document them.
This commit is contained in:
parent
5b1b132072
commit
66fcfc0009
@ -125,23 +125,31 @@ typedef struct OptionDef {
|
|||||||
* - all other types do
|
* - all other types do
|
||||||
*/
|
*/
|
||||||
#define OPT_FUNC_ARG (1 << 0)
|
#define OPT_FUNC_ARG (1 << 0)
|
||||||
|
/* Program will immediately exit after processing this option */
|
||||||
|
#define OPT_EXIT (1 << 1)
|
||||||
|
/* Option is intended for advanced users. Only affects
|
||||||
|
* help output.
|
||||||
|
*/
|
||||||
#define OPT_EXPERT (1 << 2)
|
#define OPT_EXPERT (1 << 2)
|
||||||
#define OPT_VIDEO (1 << 4)
|
#define OPT_VIDEO (1 << 3)
|
||||||
#define OPT_AUDIO (1 << 5)
|
#define OPT_AUDIO (1 << 4)
|
||||||
#define OPT_SUBTITLE (1 << 8)
|
#define OPT_SUBTITLE (1 << 5)
|
||||||
#define OPT_EXIT (1 << 10)
|
#define OPT_DATA (1 << 6)
|
||||||
#define OPT_DATA (1 << 11)
|
/* The option is per-file (currently ffmpeg-only). Implied by OPT_OFFSET or
|
||||||
/* The option is per-file (currently ffmpeg-only).
|
* OPT_SPEC. At least one of OPT_INPUT or OPT_OUTPUT must be set when this flag
|
||||||
implied by OPT_OFFSET or OPT_SPEC */
|
* is in use.
|
||||||
#define OPT_PERFILE (1 << 12)
|
*/
|
||||||
|
#define OPT_PERFILE (1 << 7)
|
||||||
/* Option is specified as an offset in a passed optctx */
|
/* Option is specified as an offset in a passed optctx */
|
||||||
#define OPT_OFFSET (1 << 13)
|
#define OPT_OFFSET (1 << 8)
|
||||||
/* Option is to be stored in an array of SpecifierOpt. Implies OPT_OFFSET.
|
/* Option is to be stored in an array of SpecifierOpt. Implies OPT_OFFSET.
|
||||||
Next element after the offset is an int containing element count in the
|
Next element after the offset is an int containing element count in the
|
||||||
array. */
|
array. */
|
||||||
#define OPT_SPEC (1 << 14)
|
#define OPT_SPEC (1 << 9)
|
||||||
#define OPT_INPUT (1 << 17)
|
/* ffmpeg-only - specifies whether an OPT_PERFILE option applies to input,
|
||||||
#define OPT_OUTPUT (1 << 18)
|
* output, or both. */
|
||||||
|
#define OPT_INPUT (1 << 10)
|
||||||
|
#define OPT_OUTPUT (1 << 11)
|
||||||
union {
|
union {
|
||||||
void *dst_ptr;
|
void *dst_ptr;
|
||||||
int (*func_arg)(void *, const char *, const char *);
|
int (*func_arg)(void *, const char *, const char *);
|
||||||
|
Loading…
Reference in New Issue
Block a user