Changeset 837 in 3DVCSoftware for branches/HTM-10.0rc1-dev0/source/Lib/TLibCommon/ContextTables.h
- Timestamp:
- 8 Feb 2014, 00:23:11 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-10.0rc1-dev0/source/Lib/TLibCommon/ContextTables.h
r833 r837 4 4 * granted under this license. 5 5 * 6 * Copyright (c) 2010-2013, ITU/ISO/IEC6 * Copyright (c) 2010-2014, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 42 42 //! \ingroup TLibCommon 43 43 //! \{ 44 #define FIX827 1 ///< Fix for issue #827: CABAC init tables45 #define FIX712 1 ///< Fix for issue #712: CABAC init tables46 44 47 45 // ==================================================================================================================== … … 58 56 59 57 #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 58 #define NUM_PRED_MODE_CTX 1 ///< number of context models for prediction mode 62 59 … … 69 66 #define NUM_REF_NO_CTX 2 ///< number of context models for reference index 70 67 #define NUM_TRANS_SUBDIV_FLAG_CTX 3 ///< number of context models for transform subdivision flags 71 #define NUM_QT_CBF_CTX 5///< number of context models for QT CBF68 #define NUM_QT_CBF_CTX 4 ///< number of context models for QT CBF 72 69 #define NUM_QT_ROOT_CBF_CTX 1 ///< number of context models for QT ROOT CBF 73 70 #define NUM_DELTA_QP_CTX 3 ///< number of context models for dQP … … 88 85 #define NUM_ABS_FLAG_CTX_CHROMA 2 ///< number of context models for greater than 2 flag of chroma 89 86 90 #define NUM_MVP_IDX_CTX 2///< number of context models for MVP index87 #define NUM_MVP_IDX_CTX 1 ///< number of context models for MVP index 91 88 92 89 #define NUM_SAO_MERGE_FLAG_CTX 1 ///< number of context models for SAO merge flags … … 199 196 INIT_PART_SIZE[3][NUM_PART_SIZE_CTX] = 200 197 { 201 { 154, 139, CNU, CNU, }, 202 { 154, 139, CNU, CNU, }, 203 { 184, CNU, CNU, CNU, }, 204 }; 205 206 static const UChar 207 INIT_CU_AMP_POS[3][NUM_CU_AMP_CTX] = 208 { 209 { 154, }, 210 { 154, }, 211 { CNU, }, 198 { 154, 139, 154, 154 }, 199 { 154, 139, 154, 154 }, 200 { 184, CNU, CNU, CNU }, 212 201 }; 213 202 … … 271 260 INIT_QT_CBF[3][2*NUM_QT_CBF_CTX] = 272 261 { 273 { 153, 111, CNU, CNU, CNU, 149, 92, 167, CNU, CNU, },274 { 153, 111, CNU, CNU, CNU, 149, 107, 167, CNU, CNU, },275 { 111, 141, CNU, CNU, CNU, 94, 138, 182, CNU, CNU, },262 { 153, 111, CNU, CNU, 149, 92, 167, 154 }, 263 { 153, 111, CNU, CNU, 149, 107, 167, 154 }, 264 { 111, 141, CNU, CNU, 94, 138, 182, 154 }, 276 265 }; 277 266 … … 339 328 INIT_MVP_IDX[3][NUM_MVP_IDX_CTX] = 340 329 { 341 { 168 , CNU, },342 { 168 , CNU, },343 { CNU , CNU,},330 { 168 }, 331 { 168 }, 332 { CNU }, 344 333 }; 345 334 … … 355 344 INIT_SAO_TYPE_IDX[3][NUM_SAO_TYPE_IDX_CTX] = 356 345 { 357 #if FIX827358 346 { 160, }, 359 347 { 185, }, 360 348 { 200, }, 361 #else362 { 200, },363 { 185, },364 { 160, },365 #endif366 349 }; 367 350 … … 369 352 INIT_TRANS_SUBDIV_FLAG[3][NUM_TRANS_SUBDIV_FLAG_CTX] = 370 353 { 371 #if FIX712372 354 { 224, 167, 122, }, 373 355 { 124, 138, 94, }, 374 356 { 153, 138, 138, }, 375 #else376 { 153, 138, 138, },377 { 124, 138, 94, },378 { 224, 167, 122, },379 #endif380 357 }; 381 358
Note: See TracChangeset for help on using the changeset viewer.