John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [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 |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [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. |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 10 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 11 | #ifndef AOM_AOMCX_H_ |
| 12 | #define AOM_AOMCX_H_ |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 13 | |
Yaowu Xu | 9c01aa1 | 2016-09-01 14:32:49 -0700 | [diff] [blame] | 14 | /*!\defgroup aom_encoder AOMedia AOM/AV1 Encoder |
| 15 | * \ingroup aom |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 16 | * |
| 17 | * @{ |
| 18 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 19 | #include "./aom.h" |
| 20 | #include "./aom_encoder.h" |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 21 | |
James Zern | f42d52e | 2011-02-16 17:54:49 -0800 | [diff] [blame] | 22 | /*!\file |
Yaowu Xu | 9c01aa1 | 2016-09-01 14:32:49 -0700 | [diff] [blame] | 23 | * \brief Provides definitions for using AOM or AV1 encoder algorithm within the |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 24 | * aom Codec Interface. |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 25 | */ |
Dmitry Kovalev | e288c60 | 2013-09-29 18:00:15 -0700 | [diff] [blame] | 26 | |
| 27 | #ifdef __cplusplus |
| 28 | extern "C" { |
| 29 | #endif |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 30 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 31 | /*!\name Algorithm interface for AV1 |
Jingning Han | 3ee6db6 | 2015-08-05 19:00:31 -0700 | [diff] [blame] | 32 | * |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 33 | * This interface provides the capability to encode raw AV1 streams. |
Jingning Han | 3ee6db6 | 2015-08-05 19:00:31 -0700 | [diff] [blame] | 34 | * @{ |
| 35 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 36 | extern aom_codec_iface_t aom_codec_av1_cx_algo; |
| 37 | extern aom_codec_iface_t *aom_codec_av1_cx(void); |
Jingning Han | 3ee6db6 | 2015-08-05 19:00:31 -0700 | [diff] [blame] | 38 | /*!@} - end algorithm interface member group*/ |
John Koleszar | 0952acb | 2010-06-01 11:14:25 -0400 | [diff] [blame] | 39 | |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 40 | /* |
| 41 | * Algorithm Flags |
| 42 | */ |
| 43 | |
| 44 | /*!\brief Don't reference the last frame |
| 45 | * |
| 46 | * When this flag is set, the encoder will not use the last frame as a |
| 47 | * predictor. When not set, the encoder will choose whether to use the |
| 48 | * last frame or not automatically. |
| 49 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 50 | #define AOM_EFLAG_NO_REF_LAST (1 << 16) |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 51 | |
| 52 | /*!\brief Don't reference the golden frame |
| 53 | * |
| 54 | * When this flag is set, the encoder will not use the golden frame as a |
| 55 | * predictor. When not set, the encoder will choose whether to use the |
| 56 | * golden frame or not automatically. |
| 57 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 58 | #define AOM_EFLAG_NO_REF_GF (1 << 17) |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 59 | |
| 60 | /*!\brief Don't reference the alternate reference frame |
| 61 | * |
| 62 | * When this flag is set, the encoder will not use the alt ref frame as a |
| 63 | * predictor. When not set, the encoder will choose whether to use the |
| 64 | * alt ref frame or not automatically. |
| 65 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 66 | #define AOM_EFLAG_NO_REF_ARF (1 << 21) |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 67 | |
| 68 | /*!\brief Don't update the last frame |
| 69 | * |
| 70 | * When this flag is set, the encoder will not update the last frame with |
| 71 | * the contents of the current frame. |
| 72 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 73 | #define AOM_EFLAG_NO_UPD_LAST (1 << 18) |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 74 | |
| 75 | /*!\brief Don't update the golden frame |
| 76 | * |
| 77 | * When this flag is set, the encoder will not update the golden frame with |
| 78 | * the contents of the current frame. |
| 79 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 80 | #define AOM_EFLAG_NO_UPD_GF (1 << 22) |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 81 | |
| 82 | /*!\brief Don't update the alternate reference frame |
| 83 | * |
| 84 | * When this flag is set, the encoder will not update the alt ref frame with |
| 85 | * the contents of the current frame. |
| 86 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 87 | #define AOM_EFLAG_NO_UPD_ARF (1 << 23) |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 88 | |
| 89 | /*!\brief Force golden frame update |
| 90 | * |
| 91 | * When this flag is set, the encoder copy the contents of the current frame |
| 92 | * to the golden frame buffer. |
| 93 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 94 | #define AOM_EFLAG_FORCE_GF (1 << 19) |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 95 | |
| 96 | /*!\brief Force alternate reference frame update |
| 97 | * |
| 98 | * When this flag is set, the encoder copy the contents of the current frame |
| 99 | * to the alternate reference frame buffer. |
| 100 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 101 | #define AOM_EFLAG_FORCE_ARF (1 << 24) |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 102 | |
| 103 | /*!\brief Disable entropy update |
| 104 | * |
| 105 | * When this flag is set, the encoder will not update its internal entropy |
| 106 | * model based on the entropy of this frame. |
| 107 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 108 | #define AOM_EFLAG_NO_UPD_ENTROPY (1 << 20) |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 109 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 110 | /*!\brief AVx encoder control functions |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 111 | * |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 112 | * This set of macros define the control functions available for AVx |
James Zern | 8e17e82 | 2011-02-24 14:12:57 -0800 | [diff] [blame] | 113 | * encoder interface. |
| 114 | * |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 115 | * \sa #aom_codec_control |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 116 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 117 | enum aome_enc_control_id { |
Yunqing Wang | bdcc140 | 2016-03-25 09:05:25 -0700 | [diff] [blame] | 118 | /*!\brief Codec control function to set which reference frame encoder can use. |
Yunqing Wang | bdcc140 | 2016-03-25 09:05:25 -0700 | [diff] [blame] | 119 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 120 | AOME_USE_REFERENCE = 7, |
Yunqing Wang | bdcc140 | 2016-03-25 09:05:25 -0700 | [diff] [blame] | 121 | |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 122 | /*!\brief Codec control function to pass an ROI map to encoder. |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 123 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 124 | AOME_SET_ROI_MAP = 8, |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 125 | |
| 126 | /*!\brief Codec control function to pass an Active map to encoder. |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 127 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 128 | AOME_SET_ACTIVEMAP, |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 129 | |
| 130 | /*!\brief Codec control function to set encoder scaling mode. |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 131 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 132 | AOME_SET_SCALEMODE = 11, |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 133 | |
| 134 | /*!\brief Codec control function to set encoder internal speed settings. |
John Koleszar | c6b9039 | 2012-07-13 15:21:29 -0700 | [diff] [blame] | 135 | * |
| 136 | * Changes in this value influences, among others, the encoder's selection |
| 137 | * of motion estimation methods. Values greater than 0 will increase encoder |
| 138 | * speed at the expense of quality. |
John Koleszar | c6b9039 | 2012-07-13 15:21:29 -0700 | [diff] [blame] | 139 | * |
Alex Converse | 561d0af | 2017-03-23 12:58:04 -0700 | [diff] [blame] | 140 | * \note Valid range: 0..8 |
John Koleszar | c6b9039 | 2012-07-13 15:21:29 -0700 | [diff] [blame] | 141 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 142 | AOME_SET_CPUUSED = 13, |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 143 | |
| 144 | /*!\brief Codec control function to enable automatic set and use alf frames. |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 145 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 146 | AOME_SET_ENABLEAUTOALTREF, |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 147 | |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 148 | /*!\brief Codec control function to set sharpness. |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 149 | */ |
Alex Converse | 0f4bcda | 2016-12-12 15:43:35 -0800 | [diff] [blame] | 150 | AOME_SET_SHARPNESS = AOME_SET_ENABLEAUTOALTREF + 2, |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 151 | |
| 152 | /*!\brief Codec control function to set the threshold for MBs treated static. |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 153 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 154 | AOME_SET_STATIC_THRESHOLD, |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 155 | |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 156 | /*!\brief Codec control function to get last quantizer chosen by the encoder. |
| 157 | * |
| 158 | * Return value uses internal quantizer scale defined by the codec. |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 159 | */ |
Alex Converse | 0f4bcda | 2016-12-12 15:43:35 -0800 | [diff] [blame] | 160 | AOME_GET_LAST_QUANTIZER = AOME_SET_STATIC_THRESHOLD + 2, |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 161 | |
| 162 | /*!\brief Codec control function to get last quantizer chosen by the encoder. |
| 163 | * |
| 164 | * Return value uses the 0..63 scale as used by the rc_*_quantizer config |
| 165 | * parameters. |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 166 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 167 | AOME_GET_LAST_QUANTIZER_64, |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 168 | |
| 169 | /*!\brief Codec control function to set the max no of frames to create arf. |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 170 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 171 | AOME_SET_ARNR_MAXFRAMES, |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 172 | |
| 173 | /*!\brief Codec control function to set the filter strength for the arf. |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 174 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 175 | AOME_SET_ARNR_STRENGTH, |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 176 | |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 177 | /*!\brief Codec control function to set visual tuning. |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 178 | */ |
Alex Converse | fab6224 | 2016-12-13 10:09:15 -0800 | [diff] [blame] | 179 | AOME_SET_TUNING = AOME_SET_ARNR_STRENGTH + 2, |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 180 | |
| 181 | /*!\brief Codec control function to set constrained quality level. |
John Koleszar | c6b9039 | 2012-07-13 15:21:29 -0700 | [diff] [blame] | 182 | * |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 183 | * \attention For this value to be used aom_codec_enc_cfg_t::g_usage must be |
| 184 | * set to #AOM_CQ. |
John Koleszar | c6b9039 | 2012-07-13 15:21:29 -0700 | [diff] [blame] | 185 | * \note Valid range: 0..63 |
| 186 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 187 | AOME_SET_CQ_LEVEL, |
John Koleszar | 1654ae9 | 2011-07-28 09:17:32 -0400 | [diff] [blame] | 188 | |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 189 | /*!\brief Codec control function to set Max data rate for Intra frames. |
John Koleszar | c6b9039 | 2012-07-13 15:21:29 -0700 | [diff] [blame] | 190 | * |
| 191 | * This value controls additional clamping on the maximum size of a |
| 192 | * keyframe. It is expressed as a percentage of the average |
| 193 | * per-frame bitrate, with the special (and default) value 0 meaning |
| 194 | * unlimited, or no additional clamping beyond the codec's built-in |
| 195 | * algorithm. |
| 196 | * |
| 197 | * For example, to allocate no more than 4.5 frames worth of bitrate |
| 198 | * to a keyframe, set this to 450. |
John Koleszar | c6b9039 | 2012-07-13 15:21:29 -0700 | [diff] [blame] | 199 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 200 | AOME_SET_MAX_INTRA_BITRATE_PCT, |
John Koleszar | 83b1d90 | 2012-11-05 12:37:14 -0800 | [diff] [blame] | 201 | |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 202 | /*!\brief Codec control function to set max data rate for Inter frames. |
Yaowu Xu | 636099f | 2014-10-24 09:31:16 -0700 | [diff] [blame] | 203 | * |
| 204 | * This value controls additional clamping on the maximum size of an |
| 205 | * inter frame. It is expressed as a percentage of the average |
| 206 | * per-frame bitrate, with the special (and default) value 0 meaning |
| 207 | * unlimited, or no additional clamping beyond the codec's built-in |
| 208 | * algorithm. |
| 209 | * |
| 210 | * For example, to allow no more than 4.5 frames worth of bitrate |
| 211 | * to an inter frame, set this to 450. |
Yaowu Xu | 636099f | 2014-10-24 09:31:16 -0700 | [diff] [blame] | 212 | */ |
Alex Converse | 0f4bcda | 2016-12-12 15:43:35 -0800 | [diff] [blame] | 213 | AV1E_SET_MAX_INTER_BITRATE_PCT = AOME_SET_MAX_INTRA_BITRATE_PCT + 2, |
Yaowu Xu | 636099f | 2014-10-24 09:31:16 -0700 | [diff] [blame] | 214 | |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 215 | /*!\brief Boost percentage for Golden Frame in CBR mode. |
Yaowu Xu | 03a60b7 | 2014-10-27 13:13:14 -0700 | [diff] [blame] | 216 | * |
| 217 | * This value controls the amount of boost given to Golden Frame in |
| 218 | * CBR mode. It is expressed as a percentage of the average |
| 219 | * per-frame bitrate, with the special (and default) value 0 meaning |
| 220 | * the feature is off, i.e., no golden frame boost in CBR mode and |
| 221 | * average bitrate target is used. |
| 222 | * |
| 223 | * For example, to allow 100% more bits, i.e, 2X, in a golden frame |
| 224 | * than average frame, set this to 100. |
Yaowu Xu | 03a60b7 | 2014-10-27 13:13:14 -0700 | [diff] [blame] | 225 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 226 | AV1E_SET_GF_CBR_BOOST_PCT, |
John Koleszar | 83b1d90 | 2012-11-05 12:37:14 -0800 | [diff] [blame] | 227 | |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 228 | /*!\brief Codec control function to set lossless encoding mode. |
Yaowu Xu | 87c436f | 2015-01-13 12:39:42 -0800 | [diff] [blame] | 229 | * |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 230 | * AV1 can operate in lossless encoding mode, in which the bitstream |
Yaowu Xu | 87c436f | 2015-01-13 12:39:42 -0800 | [diff] [blame] | 231 | * produced will be able to decode and reconstruct a perfect copy of |
| 232 | * input source. This control function provides a mean to switch encoder |
| 233 | * into lossless coding mode(1) or normal coding mode(0) that may be lossy. |
| 234 | * 0 = lossy coding mode |
| 235 | * 1 = lossless coding mode |
| 236 | * |
| 237 | * By default, encoder operates in normal coding mode (maybe lossy). |
| 238 | */ |
Alex Converse | 0f4bcda | 2016-12-12 15:43:35 -0800 | [diff] [blame] | 239 | AV1E_SET_LOSSLESS = AV1E_SET_GF_CBR_BOOST_PCT + 2, |
Thomas Davies | af6df17 | 2016-11-09 14:04:18 +0000 | [diff] [blame] | 240 | |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 241 | /*!\brief Codec control function to set number of tile columns. |
Yaowu Xu | 87c436f | 2015-01-13 12:39:42 -0800 | [diff] [blame] | 242 | * |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 243 | * In encoding and decoding, AV1 allows an input image frame be partitioned |
Yaowu Xu | 87c436f | 2015-01-13 12:39:42 -0800 | [diff] [blame] | 244 | * into separated vertical tile columns, which can be encoded or decoded |
| 245 | * independently. This enables easy implementation of parallel encoding and |
| 246 | * decoding. This control requests the encoder to use column tiles in |
| 247 | * encoding an input frame, with number of tile columns (in Log2 unit) as |
| 248 | * the parameter: |
| 249 | * 0 = 1 tile column |
| 250 | * 1 = 2 tile columns |
| 251 | * 2 = 4 tile columns |
| 252 | * ..... |
| 253 | * n = 2**n tile columns |
| 254 | * The requested tile columns will be capped by encoder based on image size |
| 255 | * limitation (The minimum width of a tile column is 256 pixel, the maximum |
| 256 | * is 4096). |
| 257 | * |
| 258 | * By default, the value is 0, i.e. one single column tile for entire image. |
| 259 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 260 | AV1E_SET_TILE_COLUMNS, |
Yaowu Xu | 87c436f | 2015-01-13 12:39:42 -0800 | [diff] [blame] | 261 | |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 262 | /*!\brief Codec control function to set number of tile rows. |
Yaowu Xu | 87c436f | 2015-01-13 12:39:42 -0800 | [diff] [blame] | 263 | * |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 264 | * In encoding and decoding, AV1 allows an input image frame be partitioned |
Yaowu Xu | 87c436f | 2015-01-13 12:39:42 -0800 | [diff] [blame] | 265 | * into separated horizontal tile rows. Tile rows are encoded or decoded |
| 266 | * sequentially. Even though encoding/decoding of later tile rows depends on |
| 267 | * earlier ones, this allows the encoder to output data packets for tile rows |
| 268 | * prior to completely processing all tile rows in a frame, thereby reducing |
| 269 | * the latency in processing between input and output. The parameter |
| 270 | * for this control describes the number of tile rows, which has a valid |
| 271 | * range [0, 2]: |
| 272 | * 0 = 1 tile row |
| 273 | * 1 = 2 tile rows |
| 274 | * 2 = 4 tile rows |
| 275 | * |
| 276 | * By default, the value is 0, i.e. one single row tile for entire image. |
| 277 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 278 | AV1E_SET_TILE_ROWS, |
Ryan Lei | 7386eda | 2016-12-08 21:08:31 -0800 | [diff] [blame] | 279 | |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 280 | /*!\brief Codec control function to enable frame parallel decoding feature. |
Yaowu Xu | 87c436f | 2015-01-13 12:39:42 -0800 | [diff] [blame] | 281 | * |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 282 | * AV1 has a bitstream feature to reduce decoding dependency between frames |
Yaowu Xu | 87c436f | 2015-01-13 12:39:42 -0800 | [diff] [blame] | 283 | * by turning off backward update of probability context used in encoding |
| 284 | * and decoding. This allows staged parallel processing of more than one |
| 285 | * video frames in the decoder. This control function provides a mean to |
| 286 | * turn this feature on or off for bitstreams produced by encoder. |
| 287 | * |
| 288 | * By default, this feature is off. |
| 289 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 290 | AV1E_SET_FRAME_PARALLEL_DECODING, |
Yaowu Xu | 87c436f | 2015-01-13 12:39:42 -0800 | [diff] [blame] | 291 | |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 292 | /*!\brief Codec control function to set adaptive quantization mode. |
Yaowu Xu | 87c436f | 2015-01-13 12:39:42 -0800 | [diff] [blame] | 293 | * |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 294 | * AV1 has a segment based feature that allows encoder to adaptively change |
Yaowu Xu | 87c436f | 2015-01-13 12:39:42 -0800 | [diff] [blame] | 295 | * quantization parameter for each segment within a frame to improve the |
| 296 | * subjective quality. This control makes encoder operate in one of the |
| 297 | * several AQ_modes supported. |
| 298 | * |
| 299 | * By default, encoder operates with AQ_Mode 0(adaptive quantization off). |
| 300 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 301 | AV1E_SET_AQ_MODE, |
Yaowu Xu | 4ab39e1 | 2015-01-14 09:07:02 -0800 | [diff] [blame] | 302 | |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 303 | /*!\brief Codec control function to enable/disable periodic Q boost. |
Yaowu Xu | 4ab39e1 | 2015-01-14 09:07:02 -0800 | [diff] [blame] | 304 | * |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 305 | * One AV1 encoder speed feature is to enable quality boost by lowering |
Yaowu Xu | 4ab39e1 | 2015-01-14 09:07:02 -0800 | [diff] [blame] | 306 | * frame level Q periodically. This control function provides a mean to |
| 307 | * turn on/off this feature. |
| 308 | * 0 = off |
| 309 | * 1 = on |
| 310 | * |
| 311 | * By default, the encoder is allowed to use this feature for appropriate |
| 312 | * encoding modes. |
| 313 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 314 | AV1E_SET_FRAME_PERIODIC_BOOST, |
Yaowu Xu | 4ab39e1 | 2015-01-14 09:07:02 -0800 | [diff] [blame] | 315 | |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 316 | /*!\brief Codec control function to set noise sensitivity. |
JackyChen | bb1a236 | 2014-09-12 11:48:44 -0700 | [diff] [blame] | 317 | * |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 318 | * 0: off, 1: On(YOnly) |
JackyChen | bb1a236 | 2014-09-12 11:48:44 -0700 | [diff] [blame] | 319 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 320 | AV1E_SET_NOISE_SENSITIVITY, |
Ivan Maltz | 01b35c3 | 2013-09-05 08:55:47 -0700 | [diff] [blame] | 321 | |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 322 | /*!\brief Codec control function to set content type. |
Yaowu Xu | dc08b20 | 2015-01-14 11:17:09 -0800 | [diff] [blame] | 323 | * \note Valid parameter range: |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 324 | * AOM_CONTENT_DEFAULT = Regular video content (Default) |
| 325 | * AOM_CONTENT_SCREEN = Screen capture content |
Yaowu Xu | dc08b20 | 2015-01-14 11:17:09 -0800 | [diff] [blame] | 326 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 327 | AV1E_SET_TUNE_CONTENT, |
Yaowu Xu | 193ca4b | 2015-01-14 11:48:29 -0800 | [diff] [blame] | 328 | |
Yaowu Xu | 268f106 | 2015-03-13 09:42:57 -0700 | [diff] [blame] | 329 | /*!\brief Codec control function to set color space info. |
anorkin | 76fb126 | 2017-03-22 15:12:12 -0700 | [diff] [blame] | 330 | * \note Valid ranges: 0..9, default is "UNKNOWN". |
Yaowu Xu | e94b415 | 2015-01-13 10:07:20 -0800 | [diff] [blame] | 331 | * 0 = UNKNOWN, |
| 332 | * 1 = BT_601 |
| 333 | * 2 = BT_709 |
| 334 | * 3 = SMPTE_170 |
| 335 | * 4 = SMPTE_240 |
anorkin | 76fb126 | 2017-03-22 15:12:12 -0700 | [diff] [blame] | 336 | * 5 = BT_2020_NCL |
| 337 | * 6 = BT_2020_CL |
Yaowu Xu | e94b415 | 2015-01-13 10:07:20 -0800 | [diff] [blame] | 338 | * 7 = SRGB |
anorkin | 76fb126 | 2017-03-22 15:12:12 -0700 | [diff] [blame] | 339 | * 8 = ICtCp |
| 340 | * 9 = RESERVED |
Yaowu Xu | e94b415 | 2015-01-13 10:07:20 -0800 | [diff] [blame] | 341 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 342 | AV1E_SET_COLOR_SPACE, |
Alex Converse | 4dcb839 | 2015-03-20 14:55:43 -0700 | [diff] [blame] | 343 | |
anorkin | 76fb126 | 2017-03-22 15:12:12 -0700 | [diff] [blame] | 344 | #if CONFIG_COLORSPACE_HEADERS |
| 345 | /*!\brief Codec control function to set transfer function info. |
| 346 | * \note Valid ranges: 0..4, default is "UNKNOWN". |
| 347 | * 0 = UNKNOWN, |
| 348 | * 1 = BT_709 |
| 349 | * 2 = PQ |
| 350 | * 3 = HLG |
| 351 | * 4 = RESERVED |
| 352 | */ |
| 353 | AV1E_SET_TRANSFER_FUNCTION, |
| 354 | |
| 355 | /*!\brief Codec control function to set chroma 4:2:0 sample position info. |
| 356 | * \note Valid ranges: 0..3, default is "UNKNOWN". |
| 357 | * 0 = UNKNOWN, |
| 358 | * 1 = VERTICAL |
| 359 | * 2 = COLOCATED |
| 360 | * 3 = RESERVED |
| 361 | */ |
| 362 | AV1E_SET_CHROMA_SAMPLE_POSITION, |
| 363 | #endif |
| 364 | |
Debargha Mukherjee | 9852643 | 2015-04-01 16:39:06 -0700 | [diff] [blame] | 365 | /*!\brief Codec control function to set minimum interval between GF/ARF frames |
| 366 | * |
| 367 | * By default the value is set as 4. |
Debargha Mukherjee | 9852643 | 2015-04-01 16:39:06 -0700 | [diff] [blame] | 368 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 369 | AV1E_SET_MIN_GF_INTERVAL, |
Debargha Mukherjee | 9852643 | 2015-04-01 16:39:06 -0700 | [diff] [blame] | 370 | |
| 371 | /*!\brief Codec control function to set minimum interval between GF/ARF frames |
| 372 | * |
| 373 | * By default the value is set as 16. |
Debargha Mukherjee | 9852643 | 2015-04-01 16:39:06 -0700 | [diff] [blame] | 374 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 375 | AV1E_SET_MAX_GF_INTERVAL, |
Debargha Mukherjee | 9852643 | 2015-04-01 16:39:06 -0700 | [diff] [blame] | 376 | |
Alex Converse | 4dcb839 | 2015-03-20 14:55:43 -0700 | [diff] [blame] | 377 | /*!\brief Codec control function to get an Active map back from the encoder. |
Alex Converse | 4dcb839 | 2015-03-20 14:55:43 -0700 | [diff] [blame] | 378 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 379 | AV1E_GET_ACTIVEMAP, |
Ronald S. Bultje | eeb5ef0 | 2015-09-15 21:56:51 -0400 | [diff] [blame] | 380 | |
| 381 | /*!\brief Codec control function to set color range bit. |
| 382 | * \note Valid ranges: 0..1, default is 0 |
| 383 | * 0 = Limited range (16..235 or HBD equivalent) |
| 384 | * 1 = Full range (0..255 or HBD equivalent) |
Ronald S. Bultje | eeb5ef0 | 2015-09-15 21:56:51 -0400 | [diff] [blame] | 385 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 386 | AV1E_SET_COLOR_RANGE, |
Yaowu Xu | 7c514e2 | 2015-09-28 15:55:46 -0700 | [diff] [blame] | 387 | |
Yaowu Xu | 7c514e2 | 2015-09-28 15:55:46 -0700 | [diff] [blame] | 388 | /*!\brief Codec control function to set intended rendering image size. |
| 389 | * |
| 390 | * By default, this is identical to the image size in pixels. |
Yaowu Xu | 7c514e2 | 2015-09-28 15:55:46 -0700 | [diff] [blame] | 391 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 392 | AV1E_SET_RENDER_SIZE, |
Geza Lore | 454989f | 2016-03-24 13:56:05 +0000 | [diff] [blame] | 393 | |
hui su | be3f069 | 2016-05-05 15:37:37 -0700 | [diff] [blame] | 394 | /*!\brief Codec control function to set target level. |
| 395 | * |
| 396 | * 255: off (default); 0: only keep level stats; 10: target for level 1.0; |
| 397 | * 11: target for level 1.1; ... 62: target for level 6.2 |
hui su | be3f069 | 2016-05-05 15:37:37 -0700 | [diff] [blame] | 398 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 399 | AV1E_SET_TARGET_LEVEL, |
hui su | 72d4890 | 2016-05-05 12:04:42 -0700 | [diff] [blame] | 400 | |
| 401 | /*!\brief Codec control function to get bitstream level. |
hui su | 72d4890 | 2016-05-05 12:04:42 -0700 | [diff] [blame] | 402 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 403 | AV1E_GET_LEVEL, |
Yaowu Xu | 6fe07a2 | 2016-07-14 10:57:35 -0700 | [diff] [blame] | 404 | |
Geza Lore | 454989f | 2016-03-24 13:56:05 +0000 | [diff] [blame] | 405 | /*!\brief Codec control function to set intended superblock size. |
| 406 | * |
| 407 | * By default, the superblock size is determined separately for each |
| 408 | * frame by the encoder. |
Alex Converse | 85370ae | 2016-12-13 11:18:28 -0800 | [diff] [blame] | 409 | * |
| 410 | * Experiment: EXT_PARTITION |
Geza Lore | 454989f | 2016-03-24 13:56:05 +0000 | [diff] [blame] | 411 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 412 | AV1E_SET_SUPERBLOCK_SIZE, |
Alex Converse | 85370ae | 2016-12-13 11:18:28 -0800 | [diff] [blame] | 413 | |
| 414 | /*!\brief Codec control function to enable automatic set and use |
| 415 | * bwd-pred frames. |
| 416 | * |
| 417 | * Experiment: EXT_REFS |
| 418 | */ |
| 419 | AOME_SET_ENABLEAUTOBWDREF, |
| 420 | |
| 421 | /*!\brief Codec control function to encode with quantisation matrices. |
| 422 | * |
| 423 | * AOM can operate with default quantisation matrices dependent on |
| 424 | * quantisation level and block type. |
| 425 | * 0 = do not use quantisation matrices |
| 426 | * 1 = use quantisation matrices |
| 427 | * |
| 428 | * By default, the encoder operates without quantisation matrices. |
| 429 | * |
| 430 | * Experiment: AOM_QM |
| 431 | */ |
| 432 | AV1E_SET_ENABLE_QM, |
| 433 | |
| 434 | /*!\brief Codec control function to set the min quant matrix flatness. |
| 435 | * |
| 436 | * AOM can operate with different ranges of quantisation matrices. |
| 437 | * As quantisation levels increase, the matrices get flatter. This |
| 438 | * control sets the minimum level of flatness from which the matrices |
| 439 | * are determined. |
| 440 | * |
| 441 | * By default, the encoder sets this minimum at half the available |
| 442 | * range. |
| 443 | * |
| 444 | * Experiment: AOM_QM |
| 445 | */ |
| 446 | AV1E_SET_QM_MIN, |
| 447 | |
| 448 | /*!\brief Codec control function to set the max quant matrix flatness. |
| 449 | * |
| 450 | * AOM can operate with different ranges of quantisation matrices. |
| 451 | * As quantisation levels increase, the matrices get flatter. This |
| 452 | * control sets the maximum level of flatness possible. |
| 453 | * |
| 454 | * By default, the encoder sets this maximum at the top of the |
| 455 | * available range. |
| 456 | * |
| 457 | * Experiment: AOM_QM |
| 458 | */ |
| 459 | AV1E_SET_QM_MAX, |
| 460 | |
| 461 | /*!\brief Codec control function to set a maximum number of tile groups. |
| 462 | * |
| 463 | * This will set the maximum number of tile groups. This will be |
| 464 | * overridden if an MTU size is set. The default value is 1. |
| 465 | * |
| 466 | * Experiment: TILE_GROUPS |
| 467 | */ |
| 468 | AV1E_SET_NUM_TG, |
| 469 | |
| 470 | /*!\brief Codec control function to set an MTU size for a tile group. |
| 471 | * |
| 472 | * This will set the maximum number of bytes in a tile group. This can be |
| 473 | * exceeded only if a single tile is larger than this amount. |
| 474 | * |
| 475 | * By default, the value is 0, in which case a fixed number of tile groups |
| 476 | * is used. |
| 477 | * |
| 478 | * Experiment: TILE_GROUPS |
| 479 | */ |
| 480 | AV1E_SET_MTU, |
Alex Converse | eb780e7 | 2016-12-13 12:46:41 -0800 | [diff] [blame] | 481 | |
Fangwen Fu | 7b9f2b3 | 2017-01-17 14:01:52 -0800 | [diff] [blame] | 482 | /*!\brief Codec control function to set dependent_horz_tiles. |
| 483 | * |
| 484 | * In encoding and decoding, AV1 allows enabling dependent horizontal tile |
| 485 | * The parameter for this control describes the value of this flag, |
| 486 | * which has a valid range [0, 1]: |
| 487 | * 0 = disable dependent horizontal tile |
| 488 | * 1 = enable dependent horizontal tile, |
| 489 | * |
| 490 | * By default, the value is 0, i.e. disable dependent horizontal tile. |
Fangwen Fu | 7b9f2b3 | 2017-01-17 14:01:52 -0800 | [diff] [blame] | 491 | */ |
| 492 | AV1E_SET_TILE_DEPENDENT_ROWS, |
| 493 | |
Alex Converse | eb780e7 | 2016-12-13 12:46:41 -0800 | [diff] [blame] | 494 | /*!\brief Codec control function to set the number of symbols in an ANS data |
| 495 | * window. |
| 496 | * |
| 497 | * The number of ANS symbols (both boolean and non-booleans alphabets) in an |
| 498 | * ANS data window is set to 1 << value. |
| 499 | * |
| 500 | * \note Valid range: [8, 23] |
| 501 | * |
| 502 | * Experiment: ANS |
| 503 | */ |
| 504 | AV1E_SET_ANS_WINDOW_SIZE_LOG2, |
Alex Converse | 00b7e27 | 2017-03-22 18:14:08 -0700 | [diff] [blame] | 505 | |
| 506 | /*!\brief Codec control function to set temporal mv prediction |
| 507 | * enabling/disabling. |
| 508 | * |
| 509 | * This will enable or disable temporal mv predicton. The default value is 0. |
| 510 | * |
| 511 | * Experiment: TEMPMV_SIGNALING |
| 512 | */ |
| 513 | AV1E_SET_DISABLE_TEMPMV, |
| 514 | |
| 515 | /*!\brief Codec control function to set loop_filter_across_tiles_enabled. |
| 516 | * |
| 517 | * In encoding and decoding, AV1 allows disabling loop filter across tile |
| 518 | * boundary The parameter for this control describes the value of this flag, |
| 519 | * which has a valid range [0, 1]: |
| 520 | * 0 = disable loop filter across tile boundary |
| 521 | * 1 = enable loop filter across tile boundary |
| 522 | * |
| 523 | * By default, the value is 1, i.e. enable loop filter across tile boundary. |
| 524 | * |
| 525 | * Experiment: LOOPFILTERING_ACROSS_TILES |
| 526 | */ |
| 527 | AV1E_SET_TILE_LOOPFILTER, |
Yunqing Wang | d8cd55f | 2017-02-27 12:16:00 -0800 | [diff] [blame] | 528 | |
Fangwen Fu | 6160df2 | 2017-04-24 09:45:51 -0700 | [diff] [blame] | 529 | /*!\brief Codec control function to set the delta q mode |
| 530 | * |
| 531 | * AV1 has a segment based feature that allows encoder to adaptively change |
| 532 | * quantization parameter for each segment within a frame to improve the |
| 533 | * subjective quality. the delta q mode is added on top of segment based |
| 534 | * feature, and allows control per 64x64 q and lf delta.This control makes |
| 535 | * encoder operate in one of the several DELTA_Q_modes supported. |
| 536 | * |
| 537 | * By default, encoder operates with DELTAQ_Mode 0(deltaq signaling off). |
| 538 | */ |
| 539 | AV1E_SET_DELTAQ_MODE, |
| 540 | |
Yunqing Wang | d8cd55f | 2017-02-27 12:16:00 -0800 | [diff] [blame] | 541 | /*!\brief Codec control function to set the tile encoding mode to 0 or 1. |
| 542 | * |
| 543 | * 0 means that the tile encoding mode is TILE_NORMAL, and 1 means that the |
| 544 | * tile encoding mode is TILE_VR. |
| 545 | * |
| 546 | * Experiment: EXT_TILE |
| 547 | */ |
| 548 | AV1E_SET_TILE_ENCODING_MODE, |
Yunqing Wang | ff4fa06 | 2017-04-21 10:56:08 -0700 | [diff] [blame] | 549 | |
| 550 | /*!\brief Codec control function to enable the extreme motion vector unit test |
| 551 | * in AV1. Please note that this is only used in motion vector unit test. |
| 552 | * |
| 553 | * 0 : off, 1 : MAX_EXTREME_MV, 2 : MIN_EXTREME_MV |
| 554 | */ |
| 555 | AV1E_ENABLE_MOTION_VECTOR_UNIT_TEST, |
John Koleszar | b0da9b3 | 2010-12-17 09:43:39 -0500 | [diff] [blame] | 556 | }; |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 557 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 558 | /*!\brief aom 1-D scaling mode |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 559 | * |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 560 | * This set of constants define 1-D aom scaling modes |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 561 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 562 | typedef enum aom_scaling_mode_1d { |
| 563 | AOME_NORMAL = 0, |
| 564 | AOME_FOURFIVE = 1, |
| 565 | AOME_THREEFIVE = 2, |
| 566 | AOME_ONETWO = 3 |
| 567 | } AOM_SCALING_MODE; |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 568 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 569 | /*!\brief aom region of interest map |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 570 | * |
| 571 | * These defines the data structures for the region of interest map |
| 572 | * |
| 573 | */ |
| 574 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 575 | typedef struct aom_roi_map { |
Adrian Grange | f58eca9 | 2013-10-24 15:11:36 -0700 | [diff] [blame] | 576 | /*! An id between 0 and 3 for each 16x16 region within a frame. */ |
| 577 | unsigned char *roi_map; |
clang-format | 83a5207 | 2016-08-08 20:22:13 -0700 | [diff] [blame] | 578 | unsigned int rows; /**< Number of rows. */ |
| 579 | unsigned int cols; /**< Number of columns. */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 580 | // TODO(paulwilkins): broken for AV1 which has 8 segments |
Paul Wilkins | 31ee193 | 2013-04-24 13:04:45 +0100 | [diff] [blame] | 581 | // q and loop filter deltas for each segment |
| 582 | // (see MAX_MB_SEGMENTS) |
clang-format | 83a5207 | 2016-08-08 20:22:13 -0700 | [diff] [blame] | 583 | int delta_q[4]; /**< Quantizer deltas. */ |
| 584 | int delta_lf[4]; /**< Loop filter deltas. */ |
Adrian Grange | f58eca9 | 2013-10-24 15:11:36 -0700 | [diff] [blame] | 585 | /*! Static breakout threshold for each segment. */ |
| 586 | unsigned int static_threshold[4]; |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 587 | } aom_roi_map_t; |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 588 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 589 | /*!\brief aom active region map |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 590 | * |
| 591 | * These defines the data structures for active region map |
| 592 | * |
| 593 | */ |
| 594 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 595 | typedef struct aom_active_map { |
clang-format | 83a5207 | 2016-08-08 20:22:13 -0700 | [diff] [blame] | 596 | /*!\brief specify an on (1) or off (0) each 16x16 region within a frame */ |
| 597 | unsigned char *active_map; |
| 598 | unsigned int rows; /**< number of rows */ |
| 599 | unsigned int cols; /**< number of cols */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 600 | } aom_active_map_t; |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 601 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 602 | /*!\brief aom image scaling mode |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 603 | * |
| 604 | * This defines the data structure for image scaling mode |
| 605 | * |
| 606 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 607 | typedef struct aom_scaling_mode { |
| 608 | AOM_SCALING_MODE h_scaling_mode; /**< horizontal scaling mode */ |
| 609 | AOM_SCALING_MODE v_scaling_mode; /**< vertical scaling mode */ |
| 610 | } aom_scaling_mode_t; |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 611 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 612 | /*!brief AV1 encoder content type */ |
Alex Converse | 572de92 | 2014-07-31 08:27:32 -0700 | [diff] [blame] | 613 | typedef enum { |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 614 | AOM_CONTENT_DEFAULT, |
| 615 | AOM_CONTENT_SCREEN, |
| 616 | AOM_CONTENT_INVALID |
| 617 | } aom_tune_content; |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 618 | |
Alex Converse | 6e3c805 | 2016-12-16 09:48:56 -0800 | [diff] [blame] | 619 | /*!\brief Model tuning parameters |
John Koleszar | b0da9b3 | 2010-12-17 09:43:39 -0500 | [diff] [blame] | 620 | * |
| 621 | * Changes the encoder to tune for certain types of input material. |
| 622 | * |
| 623 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 624 | typedef enum { AOM_TUNE_PSNR, AOM_TUNE_SSIM } aom_tune_metric; |
John Koleszar | b0da9b3 | 2010-12-17 09:43:39 -0500 | [diff] [blame] | 625 | |
James Zern | 7dd7a7d | 2015-10-09 16:31:17 -0700 | [diff] [blame] | 626 | /*!\cond */ |
Alex Converse | 6e3c805 | 2016-12-16 09:48:56 -0800 | [diff] [blame] | 627 | /*!\brief Encoder control function parameter type |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 628 | * |
Alex Converse | 6e3c805 | 2016-12-16 09:48:56 -0800 | [diff] [blame] | 629 | * Defines the data types that AOME/AV1E control functions take. Note that |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 630 | * additional common controls are defined in aom.h |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 631 | * |
| 632 | */ |
| 633 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 634 | AOM_CTRL_USE_TYPE_DEPRECATED(AOME_USE_REFERENCE, int) |
| 635 | #define AOM_CTRL_AOME_USE_REFERENCE |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 636 | AOM_CTRL_USE_TYPE(AOME_SET_ROI_MAP, aom_roi_map_t *) |
| 637 | #define AOM_CTRL_AOME_SET_ROI_MAP |
| 638 | AOM_CTRL_USE_TYPE(AOME_SET_ACTIVEMAP, aom_active_map_t *) |
| 639 | #define AOM_CTRL_AOME_SET_ACTIVEMAP |
| 640 | AOM_CTRL_USE_TYPE(AOME_SET_SCALEMODE, aom_scaling_mode_t *) |
| 641 | #define AOM_CTRL_AOME_SET_SCALEMODE |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 642 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 643 | AOM_CTRL_USE_TYPE(AOME_SET_CPUUSED, int) |
| 644 | #define AOM_CTRL_AOME_SET_CPUUSED |
| 645 | AOM_CTRL_USE_TYPE(AOME_SET_ENABLEAUTOALTREF, unsigned int) |
| 646 | #define AOM_CTRL_AOME_SET_ENABLEAUTOALTREF |
Zoe Liu | cf5083d | 2016-02-04 09:47:46 -0800 | [diff] [blame] | 647 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 648 | AOM_CTRL_USE_TYPE(AOME_SET_ENABLEAUTOBWDREF, unsigned int) |
| 649 | #define AOM_CTRL_AOME_SET_ENABLEAUTOBWDREF |
Zoe Liu | cf5083d | 2016-02-04 09:47:46 -0800 | [diff] [blame] | 650 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 651 | AOM_CTRL_USE_TYPE(AOME_SET_SHARPNESS, unsigned int) |
| 652 | #define AOM_CTRL_AOME_SET_SHARPNESS |
| 653 | AOM_CTRL_USE_TYPE(AOME_SET_STATIC_THRESHOLD, unsigned int) |
| 654 | #define AOM_CTRL_AOME_SET_STATIC_THRESHOLD |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 655 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 656 | AOM_CTRL_USE_TYPE(AOME_SET_ARNR_MAXFRAMES, unsigned int) |
| 657 | #define AOM_CTRL_AOME_SET_ARNR_MAXFRAMES |
| 658 | AOM_CTRL_USE_TYPE(AOME_SET_ARNR_STRENGTH, unsigned int) |
| 659 | #define AOM_CTRL_AOME_SET_ARNR_STRENGTH |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 660 | AOM_CTRL_USE_TYPE(AOME_SET_TUNING, int) /* aom_tune_metric */ |
| 661 | #define AOM_CTRL_AOME_SET_TUNING |
| 662 | AOM_CTRL_USE_TYPE(AOME_SET_CQ_LEVEL, unsigned int) |
| 663 | #define AOM_CTRL_AOME_SET_CQ_LEVEL |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 664 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 665 | AOM_CTRL_USE_TYPE(AV1E_SET_TILE_COLUMNS, int) |
| 666 | #define AOM_CTRL_AV1E_SET_TILE_COLUMNS |
| 667 | AOM_CTRL_USE_TYPE(AV1E_SET_TILE_ROWS, int) |
| 668 | #define AOM_CTRL_AV1E_SET_TILE_ROWS |
Fangwen Fu | 7b9f2b3 | 2017-01-17 14:01:52 -0800 | [diff] [blame] | 669 | |
Fangwen Fu | 7b9f2b3 | 2017-01-17 14:01:52 -0800 | [diff] [blame] | 670 | AOM_CTRL_USE_TYPE(AV1E_SET_TILE_DEPENDENT_ROWS, int) |
| 671 | #define AOM_CTRL_AV1E_SET_TILE_DEPENDENT_ROWS |
Fangwen Fu | 7b9f2b3 | 2017-01-17 14:01:52 -0800 | [diff] [blame] | 672 | |
Ryan Lei | 7386eda | 2016-12-08 21:08:31 -0800 | [diff] [blame] | 673 | AOM_CTRL_USE_TYPE(AV1E_SET_TILE_LOOPFILTER, int) |
| 674 | #define AOM_CTRL_AV1E_SET_TILE_LOOPFILTER |
Ronald S. Bultje | 1407bdc | 2013-02-01 09:35:28 -0800 | [diff] [blame] | 675 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 676 | AOM_CTRL_USE_TYPE(AOME_GET_LAST_QUANTIZER, int *) |
| 677 | #define AOM_CTRL_AOME_GET_LAST_QUANTIZER |
| 678 | AOM_CTRL_USE_TYPE(AOME_GET_LAST_QUANTIZER_64, int *) |
| 679 | #define AOM_CTRL_AOME_GET_LAST_QUANTIZER_64 |
John Koleszar | 0ea50ce | 2010-05-18 11:58:33 -0400 | [diff] [blame] | 680 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 681 | AOM_CTRL_USE_TYPE(AOME_SET_MAX_INTRA_BITRATE_PCT, unsigned int) |
| 682 | #define AOM_CTRL_AOME_SET_MAX_INTRA_BITRATE_PCT |
| 683 | AOM_CTRL_USE_TYPE(AOME_SET_MAX_INTER_BITRATE_PCT, unsigned int) |
| 684 | #define AOM_CTRL_AOME_SET_MAX_INTER_BITRATE_PCT |
John Koleszar | 1654ae9 | 2011-07-28 09:17:32 -0400 | [diff] [blame] | 685 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 686 | AOM_CTRL_USE_TYPE(AV1E_SET_GF_CBR_BOOST_PCT, unsigned int) |
| 687 | #define AOM_CTRL_AV1E_SET_GF_CBR_BOOST_PCT |
Yaowu Xu | 4165290 | 2015-03-12 17:59:18 -0700 | [diff] [blame] | 688 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 689 | AOM_CTRL_USE_TYPE(AV1E_SET_LOSSLESS, unsigned int) |
| 690 | #define AOM_CTRL_AV1E_SET_LOSSLESS |
John Koleszar | 1654ae9 | 2011-07-28 09:17:32 -0400 | [diff] [blame] | 691 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 692 | AOM_CTRL_USE_TYPE(AV1E_SET_ENABLE_QM, unsigned int) |
| 693 | #define AOM_CTRL_AV1E_SET_ENABLE_QM |
Yaowu Xu | 0818a7c | 2016-08-11 09:39:47 -0700 | [diff] [blame] | 694 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 695 | AOM_CTRL_USE_TYPE(AV1E_SET_QM_MIN, unsigned int) |
| 696 | #define AOM_CTRL_AV1E_SET_QM_MIN |
Yaowu Xu | 0818a7c | 2016-08-11 09:39:47 -0700 | [diff] [blame] | 697 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 698 | AOM_CTRL_USE_TYPE(AV1E_SET_QM_MAX, unsigned int) |
| 699 | #define AOM_CTRL_AV1E_SET_QM_MAX |
Yaowu Xu | 0818a7c | 2016-08-11 09:39:47 -0700 | [diff] [blame] | 700 | |
Thomas Davies | af6df17 | 2016-11-09 14:04:18 +0000 | [diff] [blame] | 701 | AOM_CTRL_USE_TYPE(AV1E_SET_NUM_TG, unsigned int) |
| 702 | #define AOM_CTRL_AV1E_SET_NUM_TG |
| 703 | AOM_CTRL_USE_TYPE(AV1E_SET_MTU, unsigned int) |
| 704 | #define AOM_CTRL_AV1E_SET_MTU |
Thomas Davies | af6df17 | 2016-11-09 14:04:18 +0000 | [diff] [blame] | 705 | |
Fangwen Fu | 8d164de | 2016-12-14 13:40:54 -0800 | [diff] [blame] | 706 | AOM_CTRL_USE_TYPE(AV1E_SET_DISABLE_TEMPMV, unsigned int) |
| 707 | #define AOM_CTRL_AV1E_SET_DISABLE_TEMPMV |
Fangwen Fu | 8d164de | 2016-12-14 13:40:54 -0800 | [diff] [blame] | 708 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 709 | AOM_CTRL_USE_TYPE(AV1E_SET_FRAME_PARALLEL_DECODING, unsigned int) |
| 710 | #define AOM_CTRL_AV1E_SET_FRAME_PARALLEL_DECODING |
Ivan Maltz | 01b35c3 | 2013-09-05 08:55:47 -0700 | [diff] [blame] | 711 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 712 | AOM_CTRL_USE_TYPE(AV1E_SET_AQ_MODE, unsigned int) |
| 713 | #define AOM_CTRL_AV1E_SET_AQ_MODE |
Guillaume Martres | 1708465 | 2013-11-14 19:23:57 +0100 | [diff] [blame] | 714 | |
Fangwen Fu | 6160df2 | 2017-04-24 09:45:51 -0700 | [diff] [blame] | 715 | AOM_CTRL_USE_TYPE(AV1E_SET_DELTAQ_MODE, unsigned int) |
| 716 | #define AOM_CTRL_AV1E_SET_DELTAQ_MODE |
| 717 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 718 | AOM_CTRL_USE_TYPE(AV1E_SET_FRAME_PERIODIC_BOOST, unsigned int) |
| 719 | #define AOM_CTRL_AV1E_SET_FRAME_PERIODIC_BOOST |
Marco Paniconi | 0eb88c9 | 2014-04-03 15:49:03 -0700 | [diff] [blame] | 720 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 721 | AOM_CTRL_USE_TYPE(AV1E_SET_NOISE_SENSITIVITY, unsigned int) |
| 722 | #define AOM_CTRL_AV1E_SET_NOISE_SENSITIVITY |
JackyChen | bb1a236 | 2014-09-12 11:48:44 -0700 | [diff] [blame] | 723 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 724 | AOM_CTRL_USE_TYPE(AV1E_SET_TUNE_CONTENT, int) /* aom_tune_content */ |
| 725 | #define AOM_CTRL_AV1E_SET_TUNE_CONTENT |
Yaowu Xu | e94b415 | 2015-01-13 10:07:20 -0800 | [diff] [blame] | 726 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 727 | AOM_CTRL_USE_TYPE(AV1E_SET_COLOR_SPACE, int) |
| 728 | #define AOM_CTRL_AV1E_SET_COLOR_SPACE |
Alex Converse | 4dcb839 | 2015-03-20 14:55:43 -0700 | [diff] [blame] | 729 | |
anorkin | 76fb126 | 2017-03-22 15:12:12 -0700 | [diff] [blame] | 730 | #if CONFIG_COLORSPACE_HEADERS |
| 731 | AOM_CTRL_USE_TYPE(AV1E_SET_TRANSFER_FUNCTION, int) |
| 732 | #define AOM_CTRL_AV1E_SET_TRANSFER_FUNCTION |
| 733 | |
| 734 | AOM_CTRL_USE_TYPE(AV1E_SET_CHROMA_SAMPLE_POSITION, int) |
| 735 | #define AOM_CTRL_AV1E_SET_CHROMA_SAMPLE_POSITION |
| 736 | #endif |
| 737 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 738 | AOM_CTRL_USE_TYPE(AV1E_SET_MIN_GF_INTERVAL, unsigned int) |
| 739 | #define AOM_CTRL_AV1E_SET_MIN_GF_INTERVAL |
Debargha Mukherjee | 9852643 | 2015-04-01 16:39:06 -0700 | [diff] [blame] | 740 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 741 | AOM_CTRL_USE_TYPE(AV1E_SET_MAX_GF_INTERVAL, unsigned int) |
| 742 | #define AOM_CTRL_AV1E_SET_MAX_GF_INTERVAL |
Debargha Mukherjee | 9852643 | 2015-04-01 16:39:06 -0700 | [diff] [blame] | 743 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 744 | AOM_CTRL_USE_TYPE(AV1E_GET_ACTIVEMAP, aom_active_map_t *) |
| 745 | #define AOM_CTRL_AV1E_GET_ACTIVEMAP |
Ronald S. Bultje | eeb5ef0 | 2015-09-15 21:56:51 -0400 | [diff] [blame] | 746 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 747 | AOM_CTRL_USE_TYPE(AV1E_SET_COLOR_RANGE, int) |
| 748 | #define AOM_CTRL_AV1E_SET_COLOR_RANGE |
Yaowu Xu | 7c514e2 | 2015-09-28 15:55:46 -0700 | [diff] [blame] | 749 | |
Yaowu Xu | 7c514e2 | 2015-09-28 15:55:46 -0700 | [diff] [blame] | 750 | /*!\brief |
| 751 | * |
| 752 | * TODO(rbultje) : add support of the control in ffmpeg |
| 753 | */ |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 754 | #define AOM_CTRL_AV1E_SET_RENDER_SIZE |
| 755 | AOM_CTRL_USE_TYPE(AV1E_SET_RENDER_SIZE, int *) |
Geza Lore | 454989f | 2016-03-24 13:56:05 +0000 | [diff] [blame] | 756 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 757 | AOM_CTRL_USE_TYPE(AV1E_SET_SUPERBLOCK_SIZE, unsigned int) |
| 758 | #define AOM_CTRL_AV1E_SET_SUPERBLOCK_SIZE |
James Zern | 7dd7a7d | 2015-10-09 16:31:17 -0700 | [diff] [blame] | 759 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 760 | AOM_CTRL_USE_TYPE(AV1E_SET_TARGET_LEVEL, unsigned int) |
| 761 | #define AOM_CTRL_AV1E_SET_TARGET_LEVEL |
hui su | be3f069 | 2016-05-05 15:37:37 -0700 | [diff] [blame] | 762 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 763 | AOM_CTRL_USE_TYPE(AV1E_GET_LEVEL, int *) |
| 764 | #define AOM_CTRL_AV1E_GET_LEVEL |
Alex Converse | eb780e7 | 2016-12-13 12:46:41 -0800 | [diff] [blame] | 765 | |
| 766 | AOM_CTRL_USE_TYPE(AV1E_SET_ANS_WINDOW_SIZE_LOG2, unsigned int) |
| 767 | #define AOM_CTRL_AV1E_SET_ANS_WINDOW_SIZE_LOG2 |
Yunqing Wang | d8cd55f | 2017-02-27 12:16:00 -0800 | [diff] [blame] | 768 | |
| 769 | AOM_CTRL_USE_TYPE(AV1E_SET_TILE_ENCODING_MODE, unsigned int) |
| 770 | #define AOM_CTRL_AV1E_SET_TILE_ENCODING_MODE |
Yunqing Wang | ff4fa06 | 2017-04-21 10:56:08 -0700 | [diff] [blame] | 771 | |
| 772 | AOM_CTRL_USE_TYPE(AV1E_ENABLE_MOTION_VECTOR_UNIT_TEST, unsigned int) |
| 773 | #define AOM_CTRL_AV1E_ENABLE_MOTION_VECTOR_UNIT_TEST |
| 774 | |
James Zern | 7dd7a7d | 2015-10-09 16:31:17 -0700 | [diff] [blame] | 775 | /*!\endcond */ |
Alex Converse | c77b2ff | 2016-12-12 17:29:32 -0800 | [diff] [blame] | 776 | /*! @} - end defgroup aom_encoder */ |
Dmitry Kovalev | e288c60 | 2013-09-29 18:00:15 -0700 | [diff] [blame] | 777 | #ifdef __cplusplus |
| 778 | } // extern "C" |
| 779 | #endif |
| 780 | |
Yaowu Xu | f883b42 | 2016-08-30 14:01:10 -0700 | [diff] [blame] | 781 | #endif // AOM_AOMCX_H_ |