Tom Finegan | 49dc9ca | 2013-11-21 16:46:40 -0800 | [diff] [blame] | 1 | /* |
Yaowu Xu | 9c01aa1 | 2016-09-01 14:32:49 -0700 | [diff] [blame] | 2 | * Copyright (c) 2016, Alliance for Open Media. All rights reserved |
Tom Finegan | 49dc9ca | 2013-11-21 16:46:40 -0800 | [diff] [blame] | 3 | * |
Yaowu Xu | 9c01aa1 | 2016-09-01 14:32:49 -0700 | [diff] [blame] | 4 | * 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 Finegan | 49dc9ca | 2013-11-21 16:46:40 -0800 | [diff] [blame] | 10 | */ |
James Zern | e1cbb13 | 2018-08-22 14:10:36 -0700 | [diff] [blame] | 11 | #ifndef AOM_APPS_AOMENC_H_ |
| 12 | #define AOM_APPS_AOMENC_H_ |
Tom Finegan | 49dc9ca | 2013-11-21 16:46:40 -0800 | [diff] [blame] | 13 | |
Ryan | 44276df | 2019-10-29 17:11:45 -0700 | [diff] [blame] | 14 | #include "aom/aom_codec.h" |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 15 | #include "aom/aom_encoder.h" |
Bohan Li | c1d42fe | 2020-12-21 13:27:47 -0800 | [diff] [blame] | 16 | #include "av1/arg_defs.h" |
Tom Finegan | 49dc9ca | 2013-11-21 16:46:40 -0800 | [diff] [blame] | 17 | |
James Zern | 25cfd8e | 2014-01-18 12:16:11 -0800 | [diff] [blame] | 18 | #ifdef __cplusplus |
| 19 | extern "C" { |
| 20 | #endif |
| 21 | |
Deb Mukherjee | 090f4d4 | 2014-07-16 09:37:13 -0700 | [diff] [blame] | 22 | typedef enum { |
| 23 | I420, // 4:2:0 8+ bit-depth |
| 24 | I422, // 4:2:2 8+ bit-depth |
| 25 | I444, // 4:4:4 8+ bit-depth |
| 26 | YV12, // 4:2:0 with uv flipped, only 8-bit depth |
Jerome Jiang | d116cab | 2022-01-21 13:17:02 -0800 | [diff] [blame] | 27 | NV12, // 4:2:0 with uv interleaved, only 8-bit depth |
Deb Mukherjee | 090f4d4 | 2014-07-16 09:37:13 -0700 | [diff] [blame] | 28 | } ColorInputType; |
| 29 | |
Tom Finegan | 49dc9ca | 2013-11-21 16:46:40 -0800 | [diff] [blame] | 30 | /* Configuration elements common to all streams. */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 31 | struct AvxEncoderConfig { |
Elliott Karpilovsky | 67e84d4 | 2020-04-26 16:03:39 -0700 | [diff] [blame] | 32 | aom_codec_iface_t *codec; |
Tom Finegan | 49dc9ca | 2013-11-21 16:46:40 -0800 | [diff] [blame] | 33 | int passes; |
| 34 | int pass; |
Wan-Teh Chang | 7787d5c | 2020-03-28 17:11:57 -0700 | [diff] [blame] | 35 | unsigned int usage; |
Deb Mukherjee | 090f4d4 | 2014-07-16 09:37:13 -0700 | [diff] [blame] | 36 | ColorInputType color_type; |
Tom Finegan | 49dc9ca | 2013-11-21 16:46:40 -0800 | [diff] [blame] | 37 | int quiet; |
| 38 | int verbose; |
| 39 | int limit; |
| 40 | int skip_frames; |
| 41 | int show_psnr; |
| 42 | enum TestDecodeFatality test_decode; |
| 43 | int have_framerate; |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 44 | struct aom_rational framerate; |
Tom Finegan | 49dc9ca | 2013-11-21 16:46:40 -0800 | [diff] [blame] | 45 | int debug; |
| 46 | int show_q_hist_buckets; |
| 47 | int show_rate_hist_buckets; |
| 48 | int disable_warnings; |
| 49 | int disable_warning_prompt; |
Alex Converse | d66bd22 | 2014-02-21 10:52:09 -0800 | [diff] [blame] | 50 | int experimental_bitstream; |
elliottk | b63b571 | 2018-09-17 11:20:20 -0700 | [diff] [blame] | 51 | aom_chroma_sample_position_t csp; |
Ryan | 44276df | 2019-10-29 17:11:45 -0700 | [diff] [blame] | 52 | cfg_options_t encoder_config; |
Tom Finegan | 49dc9ca | 2013-11-21 16:46:40 -0800 | [diff] [blame] | 53 | }; |
| 54 | |
James Zern | 25cfd8e | 2014-01-18 12:16:11 -0800 | [diff] [blame] | 55 | #ifdef __cplusplus |
| 56 | } // extern "C" |
| 57 | #endif |
| 58 | |
James Zern | e1cbb13 | 2018-08-22 14:10:36 -0700 | [diff] [blame] | 59 | #endif // AOM_APPS_AOMENC_H_ |