Tom Finegan | 49dc9ca | 2013-11-21 16:46:40 -0800 | [diff] [blame] | 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 | |
James Zern | 25cfd8e | 2014-01-18 12:16:11 -0800 | [diff] [blame] | 15 | #ifdef __cplusplus |
| 16 | extern "C" { |
| 17 | #endif |
| 18 | |
Tom Finegan | 49dc9ca | 2013-11-21 16:46:40 -0800 | [diff] [blame] | 19 | enum TestDecodeFatality { |
| 20 | TEST_DECODE_OFF, |
| 21 | TEST_DECODE_FATAL, |
| 22 | TEST_DECODE_WARN, |
| 23 | }; |
| 24 | |
Dmitry Kovalev | 70d9664 | 2014-02-11 21:12:23 -0800 | [diff] [blame] | 25 | struct VpxInterface; |
| 26 | |
Tom Finegan | 49dc9ca | 2013-11-21 16:46:40 -0800 | [diff] [blame] | 27 | /* Configuration elements common to all streams. */ |
| 28 | struct VpxEncoderConfig { |
Dmitry Kovalev | 70d9664 | 2014-02-11 21:12:23 -0800 | [diff] [blame] | 29 | const struct VpxInterface *codec; |
Tom Finegan | 49dc9ca | 2013-11-21 16:46:40 -0800 | [diff] [blame] | 30 | int passes; |
| 31 | int pass; |
| 32 | int usage; |
| 33 | int deadline; |
| 34 | int use_i420; |
| 35 | int quiet; |
| 36 | int verbose; |
| 37 | int limit; |
| 38 | int skip_frames; |
| 39 | int show_psnr; |
| 40 | enum TestDecodeFatality test_decode; |
| 41 | int have_framerate; |
| 42 | struct vpx_rational framerate; |
| 43 | int out_part; |
| 44 | int debug; |
| 45 | int show_q_hist_buckets; |
| 46 | int show_rate_hist_buckets; |
| 47 | int disable_warnings; |
| 48 | int disable_warning_prompt; |
Alex Converse | d66bd22 | 2014-02-21 10:52:09 -0800 | [diff] [blame] | 49 | int experimental_bitstream; |
Tom Finegan | 49dc9ca | 2013-11-21 16:46:40 -0800 | [diff] [blame] | 50 | }; |
| 51 | |
James Zern | 25cfd8e | 2014-01-18 12:16:11 -0800 | [diff] [blame] | 52 | #ifdef __cplusplus |
| 53 | } // extern "C" |
| 54 | #endif |
| 55 | |
Tom Finegan | 49dc9ca | 2013-11-21 16:46:40 -0800 | [diff] [blame] | 56 | #endif // VPXENC_H_ |