blob: 935d5fcd1648219e0b86887ba284a69dce67767d [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 */
James Zerne1cbb132018-08-22 14:10:36 -070011#ifndef AOM_APPS_AOMENC_H_
12#define AOM_APPS_AOMENC_H_
Tom Finegan49dc9ca2013-11-21 16:46:40 -080013
Ryan44276df2019-10-29 17:11:45 -070014#include "aom/aom_codec.h"
Yaowu Xuf883b422016-08-30 14:01:10 -070015#include "aom/aom_encoder.h"
Bohan Lic1d42fe2020-12-21 13:27:47 -080016#include "av1/arg_defs.h"
Tom Finegan49dc9ca2013-11-21 16:46:40 -080017
James Zern25cfd8e2014-01-18 12:16:11 -080018#ifdef __cplusplus
19extern "C" {
20#endif
21
Deb Mukherjee090f4d42014-07-16 09:37:13 -070022typedef 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 Jiangd116cab2022-01-21 13:17:02 -080027 NV12, // 4:2:0 with uv interleaved, only 8-bit depth
Deb Mukherjee090f4d42014-07-16 09:37:13 -070028} ColorInputType;
29
Tom Finegan49dc9ca2013-11-21 16:46:40 -080030/* Configuration elements common to all streams. */
Yaowu Xuf883b422016-08-30 14:01:10 -070031struct AvxEncoderConfig {
Elliott Karpilovsky67e84d42020-04-26 16:03:39 -070032 aom_codec_iface_t *codec;
Tom Finegan49dc9ca2013-11-21 16:46:40 -080033 int passes;
34 int pass;
Wan-Teh Chang7787d5c2020-03-28 17:11:57 -070035 unsigned int usage;
Deb Mukherjee090f4d42014-07-16 09:37:13 -070036 ColorInputType color_type;
Tom Finegan49dc9ca2013-11-21 16:46:40 -080037 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 Xuf883b422016-08-30 14:01:10 -070044 struct aom_rational framerate;
Tom Finegan49dc9ca2013-11-21 16:46:40 -080045 int debug;
46 int show_q_hist_buckets;
47 int show_rate_hist_buckets;
48 int disable_warnings;
49 int disable_warning_prompt;
Alex Conversed66bd222014-02-21 10:52:09 -080050 int experimental_bitstream;
elliottkb63b5712018-09-17 11:20:20 -070051 aom_chroma_sample_position_t csp;
Ryan44276df2019-10-29 17:11:45 -070052 cfg_options_t encoder_config;
Tom Finegan49dc9ca2013-11-21 16:46:40 -080053};
54
James Zern25cfd8e2014-01-18 12:16:11 -080055#ifdef __cplusplus
56} // extern "C"
57#endif
58
James Zerne1cbb132018-08-22 14:10:36 -070059#endif // AOM_APPS_AOMENC_H_