Changeset 1412 in 3DVCSoftware for branches/HTM-16.2-dev/source/Lib/TLibCommon/ContextTables.h
- Timestamp:
- 12 Apr 2018, 11:12:21 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-16.2-dev/source/Lib/TLibCommon/ContextTables.h
r1405 r1412 4 4 * granted under this license. 5 5 * 6 * Copyright (c) 2010-201 6, ITU/ISO/IEC6 * Copyright (c) 2010-2017, ITU/ISO/IEC 7 7 * All rights reserved. 8 8 * … … 51 51 #define NUM_SPLIT_FLAG_CTX 3 ///< number of context models for split flag 52 52 #define NUM_SKIP_FLAG_CTX 3 ///< number of context models for skip flag 53 #if NH_3D _DIS53 #if NH_3D 54 54 #define NUM_DIS_FLAG_CTX 1 55 55 #define NUM_DIS_TYPE_CTX 1 … … 162 162 #define NUM_CU_TRANSQUANT_BYPASS_FLAG_CTX 1 163 163 164 #if NH_3D _ARP164 #if NH_3D 165 165 #define NUM_ARPW_CTX 3 ///< number of context models for weighting factor index used by advanced residual prediction 166 #endif167 168 #if NH_3D_IC169 166 #define NUM_IC_FLAG_CTX 1 ///< number of context models for illumination compensation flag 170 167 #endif 168 171 169 #define NUM_CROSS_COMPONENT_PREDICTION_CTX 10 172 170 173 171 #define CNU 154 ///< dummy initialization value for unused context models 'Context model Not Used' 174 172 175 #if NH_3D _DMM173 #if NH_3D 176 174 #define NUM_NOTDMM_FLAG_CTX 1 ///< number of context models for not-DMM flag 177 175 #define NUM_DMM_MODE_CTX 1 ///< number of context models for DMM modes 178 #endif179 #if NH_3D_DMM || NH_3D_SDC_INTRA180 176 #define NUM_DDC_DATA_CTX 1 ///< number of context models for deltaDC data (DMM or SDC) 181 #endif182 #if NH_3D_SDC_INTRA183 177 #define SDC_NUM_RESIDUAL_FLAG_CTX 1 184 178 #define SDC_NUM_RESIDUAL_CTX 1 185 179 #define NUM_SDC_FLAG_CTX 1 ///< number of context 186 180 #define NUM_DDC_FLAG_CTX 2 ///< number of context models for deltaDC flag (SDC only) 187 #endif 188 #if NH_3D_DBBP 189 #define DBBP_NUM_FLAG_CTX 1 181 #define DBBP_NUM_FLAG_CTX 1 190 182 #endif 191 183 // ==================================================================================================================== … … 218 210 { CNU, CNU, CNU, }, 219 211 }; 220 #if NH_3D _DIS212 #if NH_3D 221 213 static const UChar 222 214 INIT_DIS_FLAG[3][NUM_DIS_FLAG_CTX] = … … 540 532 //! \} 541 533 542 #if NH_3D _ARP534 #if NH_3D 543 535 static const UChar 544 536 INIT_ARPW[3][NUM_ARPW_CTX] = … … 549 541 }; 550 542 551 #endif552 #if NH_3D_IC553 543 static const UChar 554 544 INIT_IC_FLAG[3][NUM_IC_FLAG_CTX] = … … 559 549 }; 560 550 561 #endif562 563 #if NH_3D_DMM564 551 static const UChar 565 552 INIT_NOTDMM_FLAG[3][NUM_NOTDMM_FLAG_CTX] = … … 576 563 { CNU } 577 564 }; 578 #endif 579 #if NH_3D_DMM || NH_3D_SDC_INTRA 565 580 566 static const UChar 581 567 INIT_DDC_DATA[3][NUM_DDC_DATA_CTX] = … … 585 571 { CNU }, 586 572 }; 587 #endif 588 #if NH_3D_SDC_INTRA 573 589 574 static const UChar 590 575 INIT_SDC_RESIDUAL_FLAG[3][SDC_NUM_RESIDUAL_FLAG_CTX] = … … 615 600 {64, CNU} 616 601 }; 602 static const UChar INIT_DBBP_FLAG[3][DBBP_NUM_FLAG_CTX] = 603 { 604 { CNU }, 605 { CNU }, 606 { CNU }, 607 }; 617 608 #endif 618 #if NH_3D_DBBP 619 static const UChar INIT_DBBP_FLAG[3][DBBP_NUM_FLAG_CTX] = 620 { 621 { CNU }, 622 { CNU }, 623 { CNU }, 624 }; 609 625 610 #endif 626 627 #endif
Note: See TracChangeset for help on using the changeset viewer.