top-level: add extern "C" to headers
[platform/upstream/libvpx.git] / vpxenc.h
1 /*
2  *  Copyright (c) 2013 The WebM project authors. All Rights Reserved.
3  *
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
6  *  tree. An additional intellectual property rights grant can be found
7  *  in the file PATENTS.  All contributing project authors may
8  *  be found in the AUTHORS file in the root of the source tree.
9  */
10 #ifndef VPXENC_H_
11 #define VPXENC_H_
12
13 #include "vpx/vpx_encoder.h"
14
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18
19 enum TestDecodeFatality {
20   TEST_DECODE_OFF,
21   TEST_DECODE_FATAL,
22   TEST_DECODE_WARN,
23 };
24
25 /* Configuration elements common to all streams. */
26 struct VpxEncoderConfig {
27   const struct codec_item *codec;
28   int passes;
29   int pass;
30   int usage;
31   int deadline;
32   int use_i420;
33   int quiet;
34   int verbose;
35   int limit;
36   int skip_frames;
37   int show_psnr;
38   enum TestDecodeFatality test_decode;
39   int have_framerate;
40   struct vpx_rational framerate;
41   int out_part;
42   int debug;
43   int show_q_hist_buckets;
44   int show_rate_hist_buckets;
45   int disable_warnings;
46   int disable_warning_prompt;
47 };
48
49 #ifdef __cplusplus
50 }  // extern "C"
51 #endif
52
53 #endif  // VPXENC_H_