[5] | 1 | /* The copyright in this software is being made available under the BSD |
---|
| 2 | * License, included below. This software may be subject to other third party |
---|
| 3 | * and contributor rights, including patent rights, and no such rights are |
---|
[56] | 4 | * granted under this license. |
---|
[5] | 5 | * |
---|
[608] | 6 | * Copyright (c) 2010-2013, ITU/ISO/IEC |
---|
[5] | 7 | * All rights reserved. |
---|
| 8 | * |
---|
| 9 | * Redistribution and use in source and binary forms, with or without |
---|
| 10 | * modification, are permitted provided that the following conditions are met: |
---|
| 11 | * |
---|
| 12 | * * Redistributions of source code must retain the above copyright notice, |
---|
| 13 | * this list of conditions and the following disclaimer. |
---|
| 14 | * * Redistributions in binary form must reproduce the above copyright notice, |
---|
| 15 | * this list of conditions and the following disclaimer in the documentation |
---|
| 16 | * and/or other materials provided with the distribution. |
---|
[56] | 17 | * * Neither the name of the ITU/ISO/IEC nor the names of its contributors may |
---|
[5] | 18 | * be used to endorse or promote products derived from this software without |
---|
| 19 | * specific prior written permission. |
---|
| 20 | * |
---|
| 21 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" |
---|
| 22 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
---|
| 23 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
---|
| 24 | * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS |
---|
| 25 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
---|
| 26 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
---|
| 27 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
---|
| 28 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
---|
| 29 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
---|
| 30 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
---|
| 31 | * THE POSSIBILITY OF SUCH DAMAGE. |
---|
| 32 | */ |
---|
[2] | 33 | |
---|
| 34 | /** \file ContextTables.h |
---|
| 35 | \brief Defines constants and tables for SBAC |
---|
| 36 | \todo number of context models is not matched to actual use, should be fixed |
---|
| 37 | */ |
---|
| 38 | |
---|
| 39 | #ifndef __CONTEXTTABLES__ |
---|
| 40 | #define __CONTEXTTABLES__ |
---|
| 41 | |
---|
[56] | 42 | //! \ingroup TLibCommon |
---|
| 43 | //! \{ |
---|
[608] | 44 | #define FIX827 1 ///< Fix for issue #827: CABAC init tables |
---|
| 45 | #define FIX712 1 ///< Fix for issue #712: CABAC init tables |
---|
[56] | 46 | |
---|
[2] | 47 | // ==================================================================================================================== |
---|
| 48 | // Constants |
---|
| 49 | // ==================================================================================================================== |
---|
| 50 | |
---|
[56] | 51 | #define MAX_NUM_CTX_MOD 512 ///< maximum number of supported contexts |
---|
| 52 | |
---|
[2] | 53 | #define NUM_SPLIT_FLAG_CTX 3 ///< number of context models for split flag |
---|
| 54 | #define NUM_SKIP_FLAG_CTX 3 ///< number of context models for skip flag |
---|
| 55 | |
---|
[56] | 56 | #define NUM_MERGE_FLAG_EXT_CTX 1 ///< number of context models for merge flag of merge extended |
---|
| 57 | #define NUM_MERGE_IDX_EXT_CTX 1 ///< number of context models for merge index of merge extended |
---|
[2] | 58 | |
---|
[56] | 59 | #define NUM_PART_SIZE_CTX 4 ///< number of context models for partition size |
---|
| 60 | #define NUM_CU_AMP_CTX 1 ///< number of context models for partition size (AMP) |
---|
| 61 | #define NUM_PRED_MODE_CTX 1 ///< number of context models for prediction mode |
---|
[2] | 62 | |
---|
[56] | 63 | #define NUM_ADI_CTX 1 ///< number of context models for intra prediction |
---|
| 64 | |
---|
| 65 | #define NUM_CHROMA_PRED_CTX 2 ///< number of context models for intra prediction (chroma) |
---|
[608] | 66 | #define NUM_INTER_DIR_CTX 5 ///< number of context models for inter prediction direction |
---|
[56] | 67 | #define NUM_MV_RES_CTX 2 ///< number of context models for motion vector difference |
---|
[2] | 68 | |
---|
[608] | 69 | #define NUM_REF_NO_CTX 2 ///< number of context models for reference index |
---|
| 70 | #define NUM_TRANS_SUBDIV_FLAG_CTX 3 ///< number of context models for transform subdivision flags |
---|
[56] | 71 | #define NUM_QT_CBF_CTX 5 ///< number of context models for QT CBF |
---|
| 72 | #define NUM_QT_ROOT_CBF_CTX 1 ///< number of context models for QT ROOT CBF |
---|
| 73 | #define NUM_DELTA_QP_CTX 3 ///< number of context models for dQP |
---|
[2] | 74 | |
---|
[56] | 75 | #define NUM_SIG_CG_FLAG_CTX 2 ///< number of context models for MULTI_LEVEL_SIGNIFICANCE |
---|
| 76 | |
---|
[608] | 77 | #define NUM_SIG_FLAG_CTX 42 ///< number of context models for sig flag |
---|
| 78 | #define NUM_SIG_FLAG_CTX_LUMA 27 ///< number of context models for luma sig flag |
---|
| 79 | #define NUM_SIG_FLAG_CTX_CHROMA 15 ///< number of context models for chroma sig flag |
---|
[56] | 80 | |
---|
| 81 | #define NUM_CTX_LAST_FLAG_XY 15 ///< number of context models for last coefficient position |
---|
[2] | 82 | |
---|
[56] | 83 | #define NUM_ONE_FLAG_CTX 24 ///< number of context models for greater than 1 flag |
---|
| 84 | #define NUM_ONE_FLAG_CTX_LUMA 16 ///< number of context models for greater than 1 flag of luma |
---|
| 85 | #define NUM_ONE_FLAG_CTX_CHROMA 8 ///< number of context models for greater than 1 flag of chroma |
---|
| 86 | #define NUM_ABS_FLAG_CTX 6 ///< number of context models for greater than 2 flag |
---|
| 87 | #define NUM_ABS_FLAG_CTX_LUMA 4 ///< number of context models for greater than 2 flag of luma |
---|
| 88 | #define NUM_ABS_FLAG_CTX_CHROMA 2 ///< number of context models for greater than 2 flag of chroma |
---|
| 89 | |
---|
[2] | 90 | #define NUM_MVP_IDX_CTX 2 ///< number of context models for MVP index |
---|
| 91 | |
---|
[443] | 92 | #define NUM_SAO_MERGE_FLAG_CTX 1 ///< number of context models for SAO merge flags |
---|
| 93 | #define NUM_SAO_TYPE_IDX_CTX 1 ///< number of context models for SAO type index |
---|
[608] | 94 | |
---|
| 95 | #define NUM_TRANSFORMSKIP_FLAG_CTX 1 ///< number of context models for transform skipping |
---|
| 96 | #define NUM_CU_TRANSQUANT_BYPASS_FLAG_CTX 1 |
---|
| 97 | |
---|
| 98 | #if H_3D_ARP |
---|
| 99 | #define NUM_ARPW_CTX 4 ///< number of context models for weighting factor index used by advanced residual prediction |
---|
[443] | 100 | #endif |
---|
[608] | 101 | |
---|
| 102 | #if H_3D_IC |
---|
| 103 | #define NUM_IC_FLAG_CTX 3 ///< number of context models for illumination compensation flag |
---|
| 104 | #endif |
---|
| 105 | |
---|
[56] | 106 | #define CNU 154 ///< dummy initialization value for unused context models 'Context model Not Used' |
---|
[2] | 107 | |
---|
[608] | 108 | #if H_3D_DIM |
---|
| 109 | #define NUM_DEPTH_INTRA_MODE_CTX 8 ///< number of context models for depth intra modes |
---|
| 110 | #define NUM_DDC_FLAG_CTX 2 ///< number of context models for deltaDC flag (DMM or RBC) |
---|
[724] | 111 | #if QC_DIM_DELTADC_UNIFY_F0132 |
---|
| 112 | #define NUM_DDC_DATA_CTX 1 ///< number of context models for deltaDC data (DMM or RBC) |
---|
| 113 | #else |
---|
[608] | 114 | #define NUM_DDC_DATA_CTX 2 ///< number of context models for deltaDC data (DMM or RBC) |
---|
[724] | 115 | #endif |
---|
[608] | 116 | #if H_3D_DIM_DMM |
---|
| 117 | #define NUM_DMM1_DATA_CTX 1 ///< number of context models for DMM1 data |
---|
[724] | 118 | #if !SEC_DMM3_RBC_F0147 |
---|
[608] | 119 | #define NUM_DMM3_DATA_CTX 1 ///< number of context models for DMM3 data |
---|
[296] | 120 | #endif |
---|
[724] | 121 | #endif |
---|
[608] | 122 | #if H_3D_DIM_RBC |
---|
| 123 | #define NUM_RBC_DATA_CTX 1 ///< number of context models for RBC data |
---|
[100] | 124 | #endif |
---|
| 125 | #endif |
---|
| 126 | |
---|
[608] | 127 | #if H_3D_DIM_SDC |
---|
[189] | 128 | #define SDC_NUM_RESIDUAL_FLAG_CTX 1 |
---|
[443] | 129 | #define SDC_NUM_RESIDUAL_CTX 1 |
---|
| 130 | #endif |
---|
[189] | 131 | |
---|
[655] | 132 | #if H_3D_INTER_SDC |
---|
[608] | 133 | #define NUM_INTER_SDC_FLAG_CTX 1 ///< number of context models for inter SDC flag |
---|
| 134 | #define NUM_INTER_SDC_SIGN_FLAG_CTX 1 ///< number of context models for sign of inter SDC residual |
---|
| 135 | #define NUM_INTER_SDC_RESIDUAL_CTX 1 ///< number of context models for abs of inter SDC residual |
---|
[189] | 136 | #endif |
---|
[2] | 137 | // ==================================================================================================================== |
---|
| 138 | // Tables |
---|
| 139 | // ==================================================================================================================== |
---|
| 140 | |
---|
[608] | 141 | // initial probability for cu_transquant_bypass flag |
---|
| 142 | static const UChar |
---|
| 143 | INIT_CU_TRANSQUANT_BYPASS_FLAG[3][NUM_CU_TRANSQUANT_BYPASS_FLAG_CTX] = |
---|
| 144 | { |
---|
| 145 | { 154 }, |
---|
| 146 | { 154 }, |
---|
| 147 | { 154 }, |
---|
| 148 | }; |
---|
| 149 | |
---|
[56] | 150 | // initial probability for split flag |
---|
| 151 | static const UChar |
---|
| 152 | INIT_SPLIT_FLAG[3][NUM_SPLIT_FLAG_CTX] = |
---|
[2] | 153 | { |
---|
[608] | 154 | { 107, 139, 126, }, |
---|
| 155 | { 107, 139, 126, }, |
---|
[56] | 156 | { 139, 141, 157, }, |
---|
[2] | 157 | }; |
---|
| 158 | |
---|
[56] | 159 | static const UChar |
---|
| 160 | INIT_SKIP_FLAG[3][NUM_SKIP_FLAG_CTX] = |
---|
[2] | 161 | { |
---|
[56] | 162 | { 197, 185, 201, }, |
---|
| 163 | { 197, 185, 201, }, |
---|
[189] | 164 | { CNU, CNU, CNU, }, |
---|
| 165 | }; |
---|
| 166 | |
---|
[608] | 167 | static const UChar |
---|
[56] | 168 | INIT_MERGE_FLAG_EXT[3][NUM_MERGE_FLAG_EXT_CTX] = |
---|
| 169 | { |
---|
[608] | 170 | { 154, }, |
---|
| 171 | { 110, }, |
---|
[56] | 172 | { CNU, }, |
---|
| 173 | }; |
---|
[2] | 174 | |
---|
[56] | 175 | static const UChar |
---|
| 176 | INIT_MERGE_IDX_EXT[3][NUM_MERGE_IDX_EXT_CTX] = |
---|
[2] | 177 | { |
---|
[608] | 178 | { 137, }, |
---|
| 179 | { 122, }, |
---|
[56] | 180 | { CNU, }, |
---|
| 181 | }; |
---|
| 182 | |
---|
| 183 | static const UChar |
---|
| 184 | INIT_PART_SIZE[3][NUM_PART_SIZE_CTX] = |
---|
| 185 | { |
---|
| 186 | { 154, 139, CNU, CNU, }, |
---|
| 187 | { 154, 139, CNU, CNU, }, |
---|
[608] | 188 | { 184, CNU, CNU, CNU, }, |
---|
[56] | 189 | }; |
---|
| 190 | |
---|
| 191 | static const UChar |
---|
| 192 | INIT_CU_AMP_POS[3][NUM_CU_AMP_CTX] = |
---|
| 193 | { |
---|
| 194 | { 154, }, |
---|
| 195 | { 154, }, |
---|
[608] | 196 | { CNU, }, |
---|
[56] | 197 | }; |
---|
| 198 | |
---|
| 199 | static const UChar |
---|
| 200 | INIT_PRED_MODE[3][NUM_PRED_MODE_CTX] = |
---|
| 201 | { |
---|
[608] | 202 | { 134, }, |
---|
| 203 | { 149, }, |
---|
[56] | 204 | { CNU, }, |
---|
| 205 | }; |
---|
| 206 | |
---|
| 207 | static const UChar |
---|
| 208 | INIT_INTRA_PRED_MODE[3][NUM_ADI_CTX] = |
---|
| 209 | { |
---|
[608] | 210 | { 183, }, |
---|
| 211 | { 154, }, |
---|
[56] | 212 | { 184, }, |
---|
| 213 | }; |
---|
| 214 | |
---|
| 215 | static const UChar |
---|
| 216 | INIT_CHROMA_PRED_MODE[3][NUM_CHROMA_PRED_CTX] = |
---|
| 217 | { |
---|
| 218 | { 152, 139, }, |
---|
| 219 | { 152, 139, }, |
---|
[608] | 220 | { 63, 139, }, |
---|
[56] | 221 | }; |
---|
| 222 | |
---|
| 223 | static const UChar |
---|
| 224 | INIT_INTER_DIR[3][NUM_INTER_DIR_CTX] = |
---|
| 225 | { |
---|
[608] | 226 | { 95, 79, 63, 31, 31, }, |
---|
| 227 | { 95, 79, 63, 31, 31, }, |
---|
| 228 | { CNU, CNU, CNU, CNU, CNU, }, |
---|
[56] | 229 | }; |
---|
| 230 | |
---|
| 231 | static const UChar |
---|
| 232 | INIT_MVD[3][NUM_MV_RES_CTX] = |
---|
| 233 | { |
---|
[608] | 234 | { 169, 198, }, |
---|
| 235 | { 140, 198, }, |
---|
[56] | 236 | { CNU, CNU, }, |
---|
| 237 | }; |
---|
| 238 | |
---|
| 239 | static const UChar |
---|
| 240 | INIT_REF_PIC[3][NUM_REF_NO_CTX] = |
---|
| 241 | { |
---|
[608] | 242 | { 153, 153 }, |
---|
| 243 | { 153, 153 }, |
---|
| 244 | { CNU, CNU }, |
---|
[56] | 245 | }; |
---|
| 246 | |
---|
| 247 | static const UChar |
---|
| 248 | INIT_DQP[3][NUM_DELTA_QP_CTX] = |
---|
| 249 | { |
---|
| 250 | { 154, 154, 154, }, |
---|
| 251 | { 154, 154, 154, }, |
---|
| 252 | { 154, 154, 154, }, |
---|
| 253 | }; |
---|
| 254 | |
---|
| 255 | static const UChar |
---|
| 256 | INIT_QT_CBF[3][2*NUM_QT_CBF_CTX] = |
---|
| 257 | { |
---|
[608] | 258 | { 153, 111, CNU, CNU, CNU, 149, 92, 167, CNU, CNU, }, |
---|
| 259 | { 153, 111, CNU, CNU, CNU, 149, 107, 167, CNU, CNU, }, |
---|
[56] | 260 | { 111, 141, CNU, CNU, CNU, 94, 138, 182, CNU, CNU, }, |
---|
| 261 | }; |
---|
| 262 | |
---|
| 263 | static const UChar |
---|
| 264 | INIT_QT_ROOT_CBF[3][NUM_QT_ROOT_CBF_CTX] = |
---|
| 265 | { |
---|
| 266 | { 79, }, |
---|
| 267 | { 79, }, |
---|
[608] | 268 | { CNU, }, |
---|
[56] | 269 | }; |
---|
| 270 | |
---|
| 271 | static const UChar |
---|
| 272 | INIT_LAST[3][2*NUM_CTX_LAST_FLAG_XY] = |
---|
| 273 | { |
---|
[608] | 274 | { 125, 110, 124, 110, 95, 94, 125, 111, 111, 79, 125, 126, 111, 111, 79, |
---|
| 275 | 108, 123, 93, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, |
---|
[56] | 276 | }, |
---|
[608] | 277 | { 125, 110, 94, 110, 95, 79, 125, 111, 110, 78, 110, 111, 111, 95, 94, |
---|
[56] | 278 | 108, 123, 108, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, |
---|
| 279 | }, |
---|
[608] | 280 | { 110, 110, 124, 125, 140, 153, 125, 127, 140, 109, 111, 143, 127, 111, 79, |
---|
| 281 | 108, 123, 63, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, |
---|
[56] | 282 | }, |
---|
| 283 | }; |
---|
| 284 | |
---|
| 285 | static const UChar |
---|
| 286 | INIT_SIG_CG_FLAG[3][2 * NUM_SIG_CG_FLAG_CTX] = |
---|
| 287 | { |
---|
[608] | 288 | { 121, 140, |
---|
| 289 | 61, 154, |
---|
[56] | 290 | }, |
---|
| 291 | { 121, 140, |
---|
| 292 | 61, 154, |
---|
| 293 | }, |
---|
[608] | 294 | { 91, 171, |
---|
| 295 | 134, 141, |
---|
[56] | 296 | }, |
---|
| 297 | }; |
---|
| 298 | |
---|
| 299 | static const UChar |
---|
| 300 | INIT_SIG_FLAG[3][NUM_SIG_FLAG_CTX] = |
---|
| 301 | { |
---|
[608] | 302 | { 170, 154, 139, 153, 139, 123, 123, 63, 124, 166, 183, 140, 136, 153, 154, 166, 183, 140, 136, 153, 154, 166, 183, 140, 136, 153, 154, 170, 153, 138, 138, 122, 121, 122, 121, 167, 151, 183, 140, 151, 183, 140, }, |
---|
| 303 | { 155, 154, 139, 153, 139, 123, 123, 63, 153, 166, 183, 140, 136, 153, 154, 166, 183, 140, 136, 153, 154, 166, 183, 140, 136, 153, 154, 170, 153, 123, 123, 107, 121, 107, 121, 167, 151, 183, 140, 151, 183, 140, }, |
---|
| 304 | { 111, 111, 125, 110, 110, 94, 124, 108, 124, 107, 125, 141, 179, 153, 125, 107, 125, 141, 179, 153, 125, 107, 125, 141, 179, 153, 125, 140, 139, 182, 182, 152, 136, 152, 136, 153, 136, 139, 111, 136, 139, 111, }, |
---|
[56] | 305 | }; |
---|
| 306 | |
---|
| 307 | static const UChar |
---|
| 308 | INIT_ONE_FLAG[3][NUM_ONE_FLAG_CTX] = |
---|
| 309 | { |
---|
[608] | 310 | { 154, 196, 167, 167, 154, 152, 167, 182, 182, 134, 149, 136, 153, 121, 136, 122, 169, 208, 166, 167, 154, 152, 167, 182, }, |
---|
| 311 | { 154, 196, 196, 167, 154, 152, 167, 182, 182, 134, 149, 136, 153, 121, 136, 137, 169, 194, 166, 167, 154, 167, 137, 182, }, |
---|
[56] | 312 | { 140, 92, 137, 138, 140, 152, 138, 139, 153, 74, 149, 92, 139, 107, 122, 152, 140, 179, 166, 182, 140, 227, 122, 197, }, |
---|
| 313 | }; |
---|
| 314 | |
---|
| 315 | static const UChar |
---|
| 316 | INIT_ABS_FLAG[3][NUM_ABS_FLAG_CTX] = |
---|
| 317 | { |
---|
[608] | 318 | { 107, 167, 91, 107, 107, 167, }, |
---|
| 319 | { 107, 167, 91, 122, 107, 167, }, |
---|
[56] | 320 | { 138, 153, 136, 167, 152, 152, }, |
---|
| 321 | }; |
---|
| 322 | |
---|
| 323 | static const UChar |
---|
| 324 | INIT_MVP_IDX[3][NUM_MVP_IDX_CTX] = |
---|
| 325 | { |
---|
| 326 | { 168, CNU, }, |
---|
| 327 | { 168, CNU, }, |
---|
[608] | 328 | { CNU, CNU, }, |
---|
[56] | 329 | }; |
---|
| 330 | |
---|
| 331 | static const UChar |
---|
[608] | 332 | INIT_SAO_MERGE_FLAG[3][NUM_SAO_MERGE_FLAG_CTX] = |
---|
[56] | 333 | { |
---|
[608] | 334 | { 153, }, |
---|
| 335 | { 153, }, |
---|
| 336 | { 153, }, |
---|
[56] | 337 | }; |
---|
| 338 | |
---|
| 339 | static const UChar |
---|
[608] | 340 | INIT_SAO_TYPE_IDX[3][NUM_SAO_TYPE_IDX_CTX] = |
---|
[56] | 341 | { |
---|
[608] | 342 | #if FIX827 |
---|
| 343 | { 160, }, |
---|
| 344 | { 185, }, |
---|
| 345 | { 200, }, |
---|
| 346 | #else |
---|
| 347 | { 200, }, |
---|
| 348 | { 185, }, |
---|
| 349 | { 160, }, |
---|
| 350 | #endif |
---|
[56] | 351 | }; |
---|
| 352 | |
---|
[443] | 353 | static const UChar |
---|
[608] | 354 | INIT_TRANS_SUBDIV_FLAG[3][NUM_TRANS_SUBDIV_FLAG_CTX] = |
---|
[443] | 355 | { |
---|
[608] | 356 | #if FIX712 |
---|
| 357 | { 224, 167, 122, }, |
---|
| 358 | { 124, 138, 94, }, |
---|
| 359 | { 153, 138, 138, }, |
---|
[443] | 360 | #else |
---|
[608] | 361 | { 153, 138, 138, }, |
---|
| 362 | { 124, 138, 94, }, |
---|
| 363 | { 224, 167, 122, }, |
---|
| 364 | #endif |
---|
[56] | 365 | }; |
---|
| 366 | |
---|
[608] | 367 | static const UChar |
---|
| 368 | INIT_TRANSFORMSKIP_FLAG[3][2*NUM_TRANSFORMSKIP_FLAG_CTX] = |
---|
[56] | 369 | { |
---|
[608] | 370 | { 139, 139}, |
---|
| 371 | { 139, 139}, |
---|
| 372 | { 139, 139}, |
---|
[56] | 373 | }; |
---|
| 374 | |
---|
[608] | 375 | #if H_3D_ARP |
---|
[56] | 376 | static const UChar |
---|
[608] | 377 | INIT_ARPW[3][NUM_ARPW_CTX] = |
---|
[56] | 378 | { |
---|
[724] | 379 | #if LGE_ARP_CTX_F0161 |
---|
| 380 | { 162, 153, 154, 162 }, |
---|
| 381 | { 162, 153, 154, 162 }, |
---|
| 382 | { 162, 153, 154, 162 }, |
---|
| 383 | #else |
---|
[608] | 384 | { 154, 154, 154, 154 }, |
---|
| 385 | { 154, 154, 154, 154 }, |
---|
| 386 | { 154, 154, 154, 154 }, |
---|
[724] | 387 | #endif |
---|
[56] | 388 | }; |
---|
[608] | 389 | #endif |
---|
[56] | 390 | |
---|
[608] | 391 | #if H_3D_IC |
---|
[56] | 392 | static const UChar |
---|
[608] | 393 | INIT_IC_FLAG[3][NUM_IC_FLAG_CTX] = |
---|
[56] | 394 | { |
---|
[724] | 395 | #if LGE_IC_CTX_F0160 |
---|
| 396 | { 154, 154, 154, }, |
---|
| 397 | { 154, 154, 154, }, |
---|
| 398 | { 154, 154, 154, }, |
---|
| 399 | #else |
---|
[608] | 400 | { CNU, CNU, CNU, }, |
---|
| 401 | { 197, 185, 201, }, |
---|
| 402 | { 197, 185, 201, }, |
---|
[724] | 403 | #endif |
---|
[56] | 404 | }; |
---|
[608] | 405 | #endif |
---|
| 406 | #if H_3D_DIM |
---|
| 407 | static const UChar |
---|
| 408 | INIT_DEPTH_INTRA_MODE[3][NUM_DEPTH_INTRA_MODE_CTX] = |
---|
[56] | 409 | { |
---|
[608] | 410 | {0, 0, 64, 168, 168, 124, CNU, 0}, |
---|
| 411 | {0, 64, 0, 183, CNU, 108, 0, 0}, |
---|
| 412 | {64, 0, CNU, CNU, 168, 109, 0, 0} |
---|
[56] | 413 | }; |
---|
[655] | 414 | |
---|
[56] | 415 | static const UChar |
---|
[608] | 416 | INIT_DDC_FLAG[3][NUM_DDC_FLAG_CTX] = |
---|
[56] | 417 | { |
---|
[608] | 418 | {0 , CNU}, |
---|
| 419 | {0 , CNU}, |
---|
| 420 | {64, CNU} |
---|
[56] | 421 | }; |
---|
| 422 | static const UChar |
---|
[608] | 423 | INIT_DDC_DATA[3][NUM_DDC_DATA_CTX] = |
---|
[2] | 424 | { |
---|
[724] | 425 | #if QC_DIM_DELTADC_UNIFY_F0132 |
---|
| 426 | { 154 }, |
---|
| 427 | { 154 }, |
---|
| 428 | { 154 }, |
---|
| 429 | #else |
---|
[608] | 430 | { CNU, CNU }, |
---|
| 431 | { CNU, CNU }, |
---|
| 432 | { CNU, CNU }, |
---|
[724] | 433 | #endif |
---|
[2] | 434 | }; |
---|
[608] | 435 | #if H_3D_DIM_DMM |
---|
[56] | 436 | static const UChar |
---|
[608] | 437 | INIT_DMM1_DATA[3][NUM_DMM1_DATA_CTX] = |
---|
[56] | 438 | { |
---|
[608] | 439 | { CNU }, |
---|
| 440 | { CNU }, |
---|
| 441 | { CNU }, |
---|
[2] | 442 | }; |
---|
[724] | 443 | #if !SEC_DMM3_RBC_F0147 |
---|
[296] | 444 | static const UChar |
---|
[608] | 445 | INIT_DMM3_DATA[3][NUM_DMM3_DATA_CTX] = |
---|
[100] | 446 | { |
---|
[608] | 447 | { CNU }, |
---|
| 448 | { CNU }, |
---|
| 449 | { CNU }, |
---|
[100] | 450 | }; |
---|
[2] | 451 | #endif |
---|
[724] | 452 | #endif |
---|
[608] | 453 | #if H_3D_DIM_RBC |
---|
| 454 | static const UChar |
---|
| 455 | INIT_RBC_DATA[3][NUM_RBC_DATA_CTX] = |
---|
[443] | 456 | { |
---|
[608] | 457 | { CNU }, |
---|
| 458 | { CNU }, |
---|
| 459 | { CNU }, |
---|
[443] | 460 | }; |
---|
| 461 | #endif |
---|
[608] | 462 | #if H_3D_DIM_SDC |
---|
| 463 | static const UChar |
---|
| 464 | INIT_SDC_RESIDUAL_FLAG[3][SDC_NUM_RESIDUAL_FLAG_CTX] = |
---|
[443] | 465 | { |
---|
[608] | 466 | { CNU }, |
---|
| 467 | { CNU }, |
---|
| 468 | { CNU }, |
---|
[443] | 469 | }; |
---|
[608] | 470 | static const UChar |
---|
| 471 | INIT_SDC_RESIDUAL[3][SDC_NUM_RESIDUAL_CTX] = |
---|
[443] | 472 | { |
---|
[608] | 473 | { 155 }, |
---|
| 474 | { 155 }, |
---|
| 475 | { 155 }, |
---|
[443] | 476 | }; |
---|
| 477 | #endif |
---|
[608] | 478 | #endif |
---|
[443] | 479 | |
---|
[655] | 480 | #if H_3D_INTER_SDC |
---|
[608] | 481 | static const UChar |
---|
| 482 | INIT_INTER_SDC_FLAG[3][NUM_INTER_SDC_FLAG_CTX] = |
---|
[443] | 483 | { |
---|
[608] | 484 | { CNU }, |
---|
| 485 | { 154 }, |
---|
| 486 | { 154 }, |
---|
[443] | 487 | }; |
---|
[189] | 488 | |
---|
[608] | 489 | static const UChar |
---|
| 490 | INIT_INTER_SDC_SIGN_FLAG[3][NUM_INTER_SDC_SIGN_FLAG_CTX] = |
---|
[189] | 491 | { |
---|
[608] | 492 | { CNU }, |
---|
| 493 | { 154 }, |
---|
| 494 | { 154 }, |
---|
[189] | 495 | }; |
---|
| 496 | |
---|
[608] | 497 | static const UChar |
---|
| 498 | INIT_INTER_SDC_RESIDUAL[3][NUM_INTER_SDC_RESIDUAL_CTX] = |
---|
[189] | 499 | { |
---|
[608] | 500 | { CNU }, |
---|
| 501 | { 154 }, |
---|
| 502 | { 154 }, |
---|
[189] | 503 | }; |
---|
| 504 | #endif |
---|
[56] | 505 | //! \} |
---|
| 506 | |
---|
[608] | 507 | |
---|
[2] | 508 | #endif |
---|