Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: source/libvpx/args.h

Issue 148913004: libvpx: Pull from upstream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/deps/third_party/libvpx/
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « source/config/win/x64/vpx_scale_rtcd.h ('k') | source/libvpx/build/make/Android.mk » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved. 2 * Copyright (c) 2010 The WebM project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 11
12 #ifndef ARGS_H_ 12 #ifndef ARGS_H_
13 #define ARGS_H_ 13 #define ARGS_H_
14 #include <stdio.h> 14 #include <stdio.h>
15 15
16 #ifdef __cplusplus
17 extern "C" {
18 #endif
19
16 struct arg { 20 struct arg {
17 char **argv; 21 char **argv;
18 const char *name; 22 const char *name;
19 const char *val; 23 const char *val;
20 unsigned int argv_step; 24 unsigned int argv_step;
21 const struct arg_def *def; 25 const struct arg_def *def;
22 }; 26 };
23 27
24 struct arg_enum_list { 28 struct arg_enum_list {
25 const char *name; 29 const char *name;
(...skipping 15 matching lines...) Expand all
41 struct arg arg_init(char **argv); 45 struct arg arg_init(char **argv);
42 int arg_match(struct arg *arg_, const struct arg_def *def, char **argv); 46 int arg_match(struct arg *arg_, const struct arg_def *def, char **argv);
43 const char *arg_next(struct arg *arg); 47 const char *arg_next(struct arg *arg);
44 void arg_show_usage(FILE *fp, const struct arg_def *const *defs); 48 void arg_show_usage(FILE *fp, const struct arg_def *const *defs);
45 char **argv_dup(int argc, const char **argv); 49 char **argv_dup(int argc, const char **argv);
46 50
47 unsigned int arg_parse_uint(const struct arg *arg); 51 unsigned int arg_parse_uint(const struct arg *arg);
48 int arg_parse_int(const struct arg *arg); 52 int arg_parse_int(const struct arg *arg);
49 struct vpx_rational arg_parse_rational(const struct arg *arg); 53 struct vpx_rational arg_parse_rational(const struct arg *arg);
50 int arg_parse_enum_or_int(const struct arg *arg); 54 int arg_parse_enum_or_int(const struct arg *arg);
55 #ifdef __cplusplus
56 } // extern "C"
57 #endif
58
51 #endif // ARGS_H_ 59 #endif // ARGS_H_
OLDNEW
« no previous file with comments | « source/config/win/x64/vpx_scale_rtcd.h ('k') | source/libvpx/build/make/Android.mk » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698