[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 | * |
---|
[872] | 6 | * Copyright (c) 2010-2014, 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 | //! \{ |
---|
| 44 | |
---|
[2] | 45 | // ==================================================================================================================== |
---|
| 46 | // Constants |
---|
| 47 | // ==================================================================================================================== |
---|
| 48 | |
---|
[56] | 49 | #define MAX_NUM_CTX_MOD 512 ///< maximum number of supported contexts |
---|
| 50 | |
---|
[2] | 51 | #define NUM_SPLIT_FLAG_CTX 3 ///< number of context models for split flag |
---|
| 52 | #define NUM_SKIP_FLAG_CTX 3 ///< number of context models for skip flag |
---|
[983] | 53 | #if MTK_SINGLE_DEPTH_MODE_I0095 |
---|
| 54 | #define NUM_SINGLEDEPTH_FLAG_CTX 1 |
---|
| 55 | #define NUM_SINGLE_DEPTH_VALUE_DATA_CTX 1 |
---|
| 56 | #endif |
---|
[56] | 57 | #define NUM_MERGE_FLAG_EXT_CTX 1 ///< number of context models for merge flag of merge extended |
---|
| 58 | #define NUM_MERGE_IDX_EXT_CTX 1 ///< number of context models for merge index of merge extended |
---|
[2] | 59 | |
---|
[56] | 60 | #define NUM_PART_SIZE_CTX 4 ///< number of context models for partition size |
---|
| 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 |
---|
[872] | 71 | #define NUM_QT_CBF_CTX 4 ///< number of context models for QT CBF |
---|
[56] | 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 | |
---|
[872] | 90 | #define NUM_MVP_IDX_CTX 1 ///< number of context models for MVP index |
---|
[2] | 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 |
---|
[833] | 99 | #define NUM_ARPW_CTX 3 ///< number of context models for weighting factor index used by advanced residual prediction |
---|
[443] | 100 | #endif |
---|
[608] | 101 | |
---|
| 102 | #if H_3D_IC |
---|
[833] | 103 | #define NUM_IC_FLAG_CTX 1 ///< number of context models for illumination compensation flag |
---|
[608] | 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 |
---|
[833] | 109 | #define NUM_DEPTH_INTRA_MODE_CTX 1 ///< number of context models for depth intra modes |
---|
[608] | 110 | #define NUM_DDC_FLAG_CTX 2 ///< number of context models for deltaDC flag (DMM or RBC) |
---|
[724] | 111 | #define NUM_DDC_DATA_CTX 1 ///< number of context models for deltaDC data (DMM or RBC) |
---|
[608] | 112 | #if H_3D_DIM_DMM |
---|
| 113 | #define NUM_DMM1_DATA_CTX 1 ///< number of context models for DMM1 data |
---|
[296] | 114 | #endif |
---|
[950] | 115 | #define NUM_ANGLE_FLAG_CTX 1 |
---|
[724] | 116 | #endif |
---|
[100] | 117 | |
---|
[608] | 118 | #if H_3D_DIM_SDC |
---|
[884] | 119 | #define SDC_NUM_RESIDUAL_FLAG_CTX 1 |
---|
| 120 | #define SDC_NUM_RESIDUAL_CTX 1 |
---|
[833] | 121 | #define NUM_SDC_FLAG_CTX 1 ///< number of context |
---|
| 122 | #endif |
---|
| 123 | #if H_3D_DBBP |
---|
| 124 | #define DBBP_NUM_FLAG_CTX 1 |
---|
| 125 | #endif |
---|
[2] | 126 | // ==================================================================================================================== |
---|
| 127 | // Tables |
---|
| 128 | // ==================================================================================================================== |
---|
| 129 | |
---|
[608] | 130 | // initial probability for cu_transquant_bypass flag |
---|
| 131 | static const UChar |
---|
| 132 | INIT_CU_TRANSQUANT_BYPASS_FLAG[3][NUM_CU_TRANSQUANT_BYPASS_FLAG_CTX] = |
---|
| 133 | { |
---|
| 134 | { 154 }, |
---|
| 135 | { 154 }, |
---|
| 136 | { 154 }, |
---|
| 137 | }; |
---|
| 138 | |
---|
[56] | 139 | // initial probability for split flag |
---|
| 140 | static const UChar |
---|
| 141 | INIT_SPLIT_FLAG[3][NUM_SPLIT_FLAG_CTX] = |
---|
[2] | 142 | { |
---|
[608] | 143 | { 107, 139, 126, }, |
---|
| 144 | { 107, 139, 126, }, |
---|
[56] | 145 | { 139, 141, 157, }, |
---|
[2] | 146 | }; |
---|
| 147 | |
---|
[56] | 148 | static const UChar |
---|
| 149 | INIT_SKIP_FLAG[3][NUM_SKIP_FLAG_CTX] = |
---|
[2] | 150 | { |
---|
[56] | 151 | { 197, 185, 201, }, |
---|
| 152 | { 197, 185, 201, }, |
---|
[189] | 153 | { CNU, CNU, CNU, }, |
---|
| 154 | }; |
---|
[983] | 155 | #if MTK_SINGLE_DEPTH_MODE_I0095 |
---|
| 156 | static const UChar |
---|
| 157 | INIT_SINGLEDEPTH_FLAG[3][NUM_SINGLEDEPTH_FLAG_CTX] = |
---|
| 158 | { |
---|
| 159 | { 185 }, |
---|
| 160 | { 185 }, |
---|
| 161 | { 185 }, |
---|
| 162 | }; |
---|
[608] | 163 | static const UChar |
---|
[983] | 164 | INIT_SINGLE_DEPTH_VALUE_DATA[3][NUM_SINGLE_DEPTH_VALUE_DATA_CTX] = |
---|
| 165 | { |
---|
| 166 | { 137 }, |
---|
| 167 | { 137 }, |
---|
| 168 | { 137 }, |
---|
| 169 | }; |
---|
| 170 | #endif |
---|
| 171 | static const UChar |
---|
[56] | 172 | INIT_MERGE_FLAG_EXT[3][NUM_MERGE_FLAG_EXT_CTX] = |
---|
| 173 | { |
---|
[608] | 174 | { 154, }, |
---|
| 175 | { 110, }, |
---|
[56] | 176 | { CNU, }, |
---|
| 177 | }; |
---|
[2] | 178 | |
---|
[56] | 179 | static const UChar |
---|
| 180 | INIT_MERGE_IDX_EXT[3][NUM_MERGE_IDX_EXT_CTX] = |
---|
[2] | 181 | { |
---|
[608] | 182 | { 137, }, |
---|
| 183 | { 122, }, |
---|
[56] | 184 | { CNU, }, |
---|
| 185 | }; |
---|
| 186 | |
---|
| 187 | static const UChar |
---|
| 188 | INIT_PART_SIZE[3][NUM_PART_SIZE_CTX] = |
---|
| 189 | { |
---|
[872] | 190 | { 154, 139, 154, 154 }, |
---|
| 191 | { 154, 139, 154, 154 }, |
---|
| 192 | { 184, CNU, CNU, CNU }, |
---|
[56] | 193 | }; |
---|
| 194 | |
---|
| 195 | static const UChar |
---|
| 196 | INIT_PRED_MODE[3][NUM_PRED_MODE_CTX] = |
---|
| 197 | { |
---|
[608] | 198 | { 134, }, |
---|
| 199 | { 149, }, |
---|
[56] | 200 | { CNU, }, |
---|
| 201 | }; |
---|
| 202 | |
---|
| 203 | static const UChar |
---|
| 204 | INIT_INTRA_PRED_MODE[3][NUM_ADI_CTX] = |
---|
| 205 | { |
---|
[608] | 206 | { 183, }, |
---|
| 207 | { 154, }, |
---|
[56] | 208 | { 184, }, |
---|
| 209 | }; |
---|
| 210 | |
---|
| 211 | static const UChar |
---|
| 212 | INIT_CHROMA_PRED_MODE[3][NUM_CHROMA_PRED_CTX] = |
---|
| 213 | { |
---|
| 214 | { 152, 139, }, |
---|
| 215 | { 152, 139, }, |
---|
[608] | 216 | { 63, 139, }, |
---|
[56] | 217 | }; |
---|
| 218 | |
---|
| 219 | static const UChar |
---|
| 220 | INIT_INTER_DIR[3][NUM_INTER_DIR_CTX] = |
---|
| 221 | { |
---|
[608] | 222 | { 95, 79, 63, 31, 31, }, |
---|
| 223 | { 95, 79, 63, 31, 31, }, |
---|
| 224 | { CNU, CNU, CNU, CNU, CNU, }, |
---|
[56] | 225 | }; |
---|
| 226 | |
---|
| 227 | static const UChar |
---|
| 228 | INIT_MVD[3][NUM_MV_RES_CTX] = |
---|
| 229 | { |
---|
[608] | 230 | { 169, 198, }, |
---|
| 231 | { 140, 198, }, |
---|
[56] | 232 | { CNU, CNU, }, |
---|
| 233 | }; |
---|
| 234 | |
---|
| 235 | static const UChar |
---|
| 236 | INIT_REF_PIC[3][NUM_REF_NO_CTX] = |
---|
| 237 | { |
---|
[608] | 238 | { 153, 153 }, |
---|
| 239 | { 153, 153 }, |
---|
| 240 | { CNU, CNU }, |
---|
[56] | 241 | }; |
---|
| 242 | |
---|
| 243 | static const UChar |
---|
| 244 | INIT_DQP[3][NUM_DELTA_QP_CTX] = |
---|
| 245 | { |
---|
| 246 | { 154, 154, 154, }, |
---|
| 247 | { 154, 154, 154, }, |
---|
| 248 | { 154, 154, 154, }, |
---|
| 249 | }; |
---|
| 250 | |
---|
| 251 | static const UChar |
---|
| 252 | INIT_QT_CBF[3][2*NUM_QT_CBF_CTX] = |
---|
| 253 | { |
---|
[872] | 254 | { 153, 111, CNU, CNU, 149, 92, 167, 154 }, |
---|
| 255 | { 153, 111, CNU, CNU, 149, 107, 167, 154 }, |
---|
| 256 | { 111, 141, CNU, CNU, 94, 138, 182, 154 }, |
---|
[56] | 257 | }; |
---|
| 258 | |
---|
| 259 | static const UChar |
---|
| 260 | INIT_QT_ROOT_CBF[3][NUM_QT_ROOT_CBF_CTX] = |
---|
| 261 | { |
---|
| 262 | { 79, }, |
---|
| 263 | { 79, }, |
---|
[608] | 264 | { CNU, }, |
---|
[56] | 265 | }; |
---|
| 266 | |
---|
| 267 | static const UChar |
---|
| 268 | INIT_LAST[3][2*NUM_CTX_LAST_FLAG_XY] = |
---|
| 269 | { |
---|
[608] | 270 | { 125, 110, 124, 110, 95, 94, 125, 111, 111, 79, 125, 126, 111, 111, 79, |
---|
| 271 | 108, 123, 93, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, |
---|
[56] | 272 | }, |
---|
[608] | 273 | { 125, 110, 94, 110, 95, 79, 125, 111, 110, 78, 110, 111, 111, 95, 94, |
---|
[56] | 274 | 108, 123, 108, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, |
---|
| 275 | }, |
---|
[608] | 276 | { 110, 110, 124, 125, 140, 153, 125, 127, 140, 109, 111, 143, 127, 111, 79, |
---|
| 277 | 108, 123, 63, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, CNU, |
---|
[56] | 278 | }, |
---|
| 279 | }; |
---|
| 280 | |
---|
| 281 | static const UChar |
---|
| 282 | INIT_SIG_CG_FLAG[3][2 * NUM_SIG_CG_FLAG_CTX] = |
---|
| 283 | { |
---|
[608] | 284 | { 121, 140, |
---|
| 285 | 61, 154, |
---|
[56] | 286 | }, |
---|
| 287 | { 121, 140, |
---|
| 288 | 61, 154, |
---|
| 289 | }, |
---|
[608] | 290 | { 91, 171, |
---|
| 291 | 134, 141, |
---|
[56] | 292 | }, |
---|
| 293 | }; |
---|
| 294 | |
---|
| 295 | static const UChar |
---|
| 296 | INIT_SIG_FLAG[3][NUM_SIG_FLAG_CTX] = |
---|
| 297 | { |
---|
[608] | 298 | { 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, }, |
---|
| 299 | { 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, }, |
---|
| 300 | { 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] | 301 | }; |
---|
| 302 | |
---|
| 303 | static const UChar |
---|
| 304 | INIT_ONE_FLAG[3][NUM_ONE_FLAG_CTX] = |
---|
| 305 | { |
---|
[608] | 306 | { 154, 196, 167, 167, 154, 152, 167, 182, 182, 134, 149, 136, 153, 121, 136, 122, 169, 208, 166, 167, 154, 152, 167, 182, }, |
---|
| 307 | { 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] | 308 | { 140, 92, 137, 138, 140, 152, 138, 139, 153, 74, 149, 92, 139, 107, 122, 152, 140, 179, 166, 182, 140, 227, 122, 197, }, |
---|
| 309 | }; |
---|
| 310 | |
---|
| 311 | static const UChar |
---|
| 312 | INIT_ABS_FLAG[3][NUM_ABS_FLAG_CTX] = |
---|
| 313 | { |
---|
[608] | 314 | { 107, 167, 91, 107, 107, 167, }, |
---|
| 315 | { 107, 167, 91, 122, 107, 167, }, |
---|
[56] | 316 | { 138, 153, 136, 167, 152, 152, }, |
---|
| 317 | }; |
---|
| 318 | |
---|
| 319 | static const UChar |
---|
| 320 | INIT_MVP_IDX[3][NUM_MVP_IDX_CTX] = |
---|
| 321 | { |
---|
[872] | 322 | { 168 }, |
---|
| 323 | { 168 }, |
---|
| 324 | { CNU }, |
---|
[56] | 325 | }; |
---|
| 326 | |
---|
| 327 | static const UChar |
---|
[608] | 328 | INIT_SAO_MERGE_FLAG[3][NUM_SAO_MERGE_FLAG_CTX] = |
---|
[56] | 329 | { |
---|
[608] | 330 | { 153, }, |
---|
| 331 | { 153, }, |
---|
| 332 | { 153, }, |
---|
[56] | 333 | }; |
---|
| 334 | |
---|
| 335 | static const UChar |
---|
[608] | 336 | INIT_SAO_TYPE_IDX[3][NUM_SAO_TYPE_IDX_CTX] = |
---|
[56] | 337 | { |
---|
[608] | 338 | { 160, }, |
---|
| 339 | { 185, }, |
---|
| 340 | { 200, }, |
---|
[56] | 341 | }; |
---|
| 342 | |
---|
[443] | 343 | static const UChar |
---|
[608] | 344 | INIT_TRANS_SUBDIV_FLAG[3][NUM_TRANS_SUBDIV_FLAG_CTX] = |
---|
[443] | 345 | { |
---|
[608] | 346 | { 224, 167, 122, }, |
---|
| 347 | { 124, 138, 94, }, |
---|
| 348 | { 153, 138, 138, }, |
---|
[56] | 349 | }; |
---|
| 350 | |
---|
[608] | 351 | static const UChar |
---|
| 352 | INIT_TRANSFORMSKIP_FLAG[3][2*NUM_TRANSFORMSKIP_FLAG_CTX] = |
---|
[56] | 353 | { |
---|
[608] | 354 | { 139, 139}, |
---|
| 355 | { 139, 139}, |
---|
| 356 | { 139, 139}, |
---|
[56] | 357 | }; |
---|
| 358 | |
---|
[608] | 359 | #if H_3D_ARP |
---|
[56] | 360 | static const UChar |
---|
[608] | 361 | INIT_ARPW[3][NUM_ARPW_CTX] = |
---|
[56] | 362 | { |
---|
[833] | 363 | { 162, 153, 162 }, |
---|
| 364 | { 162, 153, 162 }, |
---|
| 365 | { 162, 153, 162 }, |
---|
| 366 | }; |
---|
[884] | 367 | |
---|
[608] | 368 | #endif |
---|
| 369 | #if H_3D_IC |
---|
[56] | 370 | static const UChar |
---|
[608] | 371 | INIT_IC_FLAG[3][NUM_IC_FLAG_CTX] = |
---|
[56] | 372 | { |
---|
[833] | 373 | { 154 }, |
---|
| 374 | { 154 }, |
---|
| 375 | { 154 }, |
---|
| 376 | }; |
---|
[884] | 377 | |
---|
[608] | 378 | #endif |
---|
| 379 | #if H_3D_DIM |
---|
| 380 | static const UChar |
---|
| 381 | INIT_DEPTH_INTRA_MODE[3][NUM_DEPTH_INTRA_MODE_CTX] = |
---|
[56] | 382 | { |
---|
[833] | 383 | { 154, }, |
---|
| 384 | { 154, }, |
---|
| 385 | { 154, } |
---|
| 386 | }; |
---|
[655] | 387 | |
---|
[56] | 388 | static const UChar |
---|
[833] | 389 | INIT_ANGLE_FLAG[3][NUM_ANGLE_FLAG_CTX] = |
---|
| 390 | { |
---|
[950] | 391 | { 154 }, |
---|
| 392 | { 141 }, |
---|
| 393 | { 155 }, |
---|
| 394 | }; |
---|
[833] | 395 | |
---|
| 396 | static const UChar |
---|
[608] | 397 | INIT_DDC_FLAG[3][NUM_DDC_FLAG_CTX] = |
---|
[56] | 398 | { |
---|
[608] | 399 | {0 , CNU}, |
---|
| 400 | {0 , CNU}, |
---|
| 401 | {64, CNU} |
---|
[56] | 402 | }; |
---|
| 403 | static const UChar |
---|
[608] | 404 | INIT_DDC_DATA[3][NUM_DDC_DATA_CTX] = |
---|
[2] | 405 | { |
---|
[724] | 406 | { 154 }, |
---|
| 407 | { 154 }, |
---|
| 408 | { 154 }, |
---|
[2] | 409 | }; |
---|
[608] | 410 | #if H_3D_DIM_DMM |
---|
[56] | 411 | static const UChar |
---|
[608] | 412 | INIT_DMM1_DATA[3][NUM_DMM1_DATA_CTX] = |
---|
[56] | 413 | { |
---|
[608] | 414 | { CNU }, |
---|
| 415 | { CNU }, |
---|
| 416 | { CNU }, |
---|
[2] | 417 | }; |
---|
| 418 | #endif |
---|
[608] | 419 | #if H_3D_DIM_SDC |
---|
| 420 | static const UChar |
---|
| 421 | INIT_SDC_RESIDUAL_FLAG[3][SDC_NUM_RESIDUAL_FLAG_CTX] = |
---|
[443] | 422 | { |
---|
[608] | 423 | { CNU }, |
---|
| 424 | { CNU }, |
---|
| 425 | { CNU }, |
---|
[443] | 426 | }; |
---|
[608] | 427 | static const UChar |
---|
| 428 | INIT_SDC_RESIDUAL[3][SDC_NUM_RESIDUAL_CTX] = |
---|
[443] | 429 | { |
---|
[608] | 430 | { 155 }, |
---|
| 431 | { 155 }, |
---|
| 432 | { 155 }, |
---|
[443] | 433 | }; |
---|
| 434 | #endif |
---|
[608] | 435 | #endif |
---|
[443] | 436 | |
---|
[189] | 437 | |
---|
[56] | 438 | //! \} |
---|
[884] | 439 | #if H_3D_DIM_SDC |
---|
[833] | 440 | static const UChar |
---|
| 441 | INIT_SDC_FLAG[3][NUM_SDC_FLAG_CTX] = |
---|
| 442 | { |
---|
| 443 | { 154 }, |
---|
| 444 | { 154 }, |
---|
| 445 | { 154 }, |
---|
| 446 | }; |
---|
| 447 | #endif |
---|
[56] | 448 | |
---|
[833] | 449 | #if H_3D_DBBP |
---|
| 450 | static const UChar INIT_DBBP_FLAG[3][DBBP_NUM_FLAG_CTX] = |
---|
| 451 | { |
---|
[950] | 452 | { 161 }, |
---|
| 453 | { 161 }, |
---|
| 454 | { 161 }, |
---|
| 455 | }; |
---|
[833] | 456 | #endif |
---|
[608] | 457 | |
---|
[2] | 458 | #endif |
---|