2 * Copyright (c) 2010 The VP8 project authors. All Rights Reserved.
4 * Use of this source code is governed by a BSD-style license and patent
5 * grant that can be found in the LICENSE file in the root of the source
6 * tree. All contributing project authors may be found in the AUTHORS
7 * file in the root of the source tree.
20 unsigned int argv_step
;
21 const struct arg_def
*def
;
24 typedef struct arg_def
26 const char *short_name
;
27 const char *long_name
;
31 #define ARG_DEF(s,l,v,d) {s,l,v,d}
32 #define ARG_DEF_LIST_END {0}
34 struct arg
arg_init(char **argv
);
35 int arg_match(struct arg
*arg_
, const struct arg_def
*def
, char **argv
);
36 const char *arg_next(struct arg
*arg
);
37 void arg_show_usage(FILE *fp
, const struct arg_def
*const *defs
);
38 char **argv_dup(int argc
, const char **argv
);
40 unsigned int arg_parse_uint(const struct arg
*arg
);
41 int arg_parse_int(const struct arg
*arg
);
42 struct vpx_rational
arg_parse_rational(const struct arg
*arg
);