blob: 248e58356e6878d529548182f5e354ee0b0d9b33 [file] [log] [blame]
Tom Finegan49dc9ca2013-11-21 16:46:40 -08001/*
Yaowu Xu9c01aa12016-09-01 14:32:49 -07002 * Copyright (c) 2016, Alliance for Open Media. All rights reserved
Tom Finegan49dc9ca2013-11-21 16:46:40 -08003 *
Yaowu Xu9c01aa12016-09-01 14:32:49 -07004 * This source code is subject to the terms of the BSD 2 Clause License and
5 * the Alliance for Open Media Patent License 1.0. If the BSD 2 Clause License
6 * was not distributed with this source code in the LICENSE file, you can
7 * obtain it at www.aomedia.org/license/software. If the Alliance for Open
8 * Media Patent License 1.0 was not distributed with this source code in the
9 * PATENTS file, you can obtain it at www.aomedia.org/license/patent.
Tom Finegan49dc9ca2013-11-21 16:46:40 -080010 */
Yaowu Xuf883b422016-08-30 14:01:10 -070011#ifndef AOMENC_H_
12#define AOMENC_H_
Tom Finegan49dc9ca2013-11-21 16:46:40 -080013
Yaowu Xuf883b422016-08-30 14:01:10 -070014#include "aom/aom_encoder.h"
Tom Finegan49dc9ca2013-11-21 16:46:40 -080015
James Zern25cfd8e2014-01-18 12:16:11 -080016#ifdef __cplusplus
17extern "C" {
18#endif
19
Tom Finegan49dc9ca2013-11-21 16:46:40 -080020enum TestDecodeFatality {
21 TEST_DECODE_OFF,
22 TEST_DECODE_FATAL,
23 TEST_DECODE_WARN,
24};
25
Deb Mukherjee090f4d42014-07-16 09:37:13 -070026typedef enum {
27 I420, // 4:2:0 8+ bit-depth
28 I422, // 4:2:2 8+ bit-depth
29 I444, // 4:4:4 8+ bit-depth
Deb Mukherjeea30774c2014-10-01 12:17:37 -070030 I440, // 4:4:0 8+ bit-depth
Deb Mukherjee090f4d42014-07-16 09:37:13 -070031 YV12, // 4:2:0 with uv flipped, only 8-bit depth
32} ColorInputType;
33
Yaowu Xuf883b422016-08-30 14:01:10 -070034struct AvxInterface;
Dmitry Kovalev70d96642014-02-11 21:12:23 -080035
Tom Finegan49dc9ca2013-11-21 16:46:40 -080036/* Configuration elements common to all streams. */
Yaowu Xuf883b422016-08-30 14:01:10 -070037struct AvxEncoderConfig {
38 const struct AvxInterface *codec;
Tom Finegan49dc9ca2013-11-21 16:46:40 -080039 int passes;
40 int pass;
41 int usage;
42 int deadline;
Deb Mukherjee090f4d42014-07-16 09:37:13 -070043 ColorInputType color_type;
Tom Finegan49dc9ca2013-11-21 16:46:40 -080044 int quiet;
45 int verbose;
46 int limit;
47 int skip_frames;
48 int show_psnr;
49 enum TestDecodeFatality test_decode;
50 int have_framerate;
Yaowu Xuf883b422016-08-30 14:01:10 -070051 struct aom_rational framerate;
Tom Finegan49dc9ca2013-11-21 16:46:40 -080052 int out_part;
53 int debug;
54 int show_q_hist_buckets;
55 int show_rate_hist_buckets;
56 int disable_warnings;
57 int disable_warning_prompt;
Alex Conversed66bd222014-02-21 10:52:09 -080058 int experimental_bitstream;
Tom Finegan49dc9ca2013-11-21 16:46:40 -080059};
60
James Zern25cfd8e2014-01-18 12:16:11 -080061#ifdef __cplusplus
62} // extern "C"
63#endif
64
Yaowu Xuf883b422016-08-30 14:01:10 -070065#endif // AOMENC_H_