Changeset 1390 in 3DVCSoftware for branches/HTM-16.0-MV-draft-5/source/Lib/TLibCommon/ContextTables.h
- Timestamp:
- 13 Nov 2015, 17:00:20 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-16.0-MV-draft-5/source/Lib/TLibCommon/ContextTables.h
r1313 r1390 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_DIS54 #define NUM_DIS_FLAG_CTX 155 #define NUM_DIS_TYPE_CTX 156 #endif57 53 #define NUM_MERGE_FLAG_EXT_CTX 1 ///< number of context models for merge flag of merge extended 58 54 #define NUM_MERGE_IDX_EXT_CTX 1 ///< number of context models for merge index of merge extended … … 162 158 #define NUM_CU_TRANSQUANT_BYPASS_FLAG_CTX 1 163 159 164 #if NH_3D_ARP 165 #define NUM_ARPW_CTX 3 ///< number of context models for weighting factor index used by advanced residual prediction 166 #endif 167 168 #if NH_3D_IC 169 #define NUM_IC_FLAG_CTX 1 ///< number of context models for illumination compensation flag 170 #endif 160 171 161 #define NUM_CROSS_COMPONENT_PREDICTION_CTX 10 172 162 173 163 #define CNU 154 ///< dummy initialization value for unused context models 'Context model Not Used' 174 164 175 #if NH_3D_DMM176 #define NUM_NOTDMM_FLAG_CTX 1 ///< number of context models for not-DMM flag177 #define NUM_DMM_MODE_CTX 1 ///< number of context models for DMM modes178 #endif179 #if NH_3D_DMM || NH_3D_SDC_INTRA180 #define NUM_DDC_DATA_CTX 1 ///< number of context models for deltaDC data (DMM or SDC)181 #endif182 #if NH_3D_SDC_INTRA183 #define SDC_NUM_RESIDUAL_FLAG_CTX 1184 #define SDC_NUM_RESIDUAL_CTX 1185 #define NUM_SDC_FLAG_CTX 1 ///< number of context186 #define NUM_DDC_FLAG_CTX 2 ///< number of context models for deltaDC flag (SDC only)187 #endif188 #if NH_3D_DBBP189 #define DBBP_NUM_FLAG_CTX 1190 #endif191 165 // ==================================================================================================================== 192 166 // Tables … … 218 192 { CNU, CNU, CNU, }, 219 193 }; 220 #if NH_3D_DIS221 static const UChar222 INIT_DIS_FLAG[3][NUM_DIS_FLAG_CTX] =223 {224 { 185 },225 { 185 },226 { 185 },227 };228 static const UChar229 INIT_DIS_TYPE[3][NUM_DIS_TYPE_CTX] =230 {231 { 137 },232 { 137 },233 { 137 },234 };235 #endif236 194 static const UChar 237 195 INIT_MERGE_FLAG_EXT[NUMBER_OF_SLICE_TYPES][NUM_MERGE_FLAG_EXT_CTX] = … … 540 498 //! \} 541 499 542 #if NH_3D_ARP 543 static const UChar 544 INIT_ARPW[3][NUM_ARPW_CTX] = 545 { 546 { 162, 153, 162 }, 547 { 162, 153, 162 }, 548 { 162, 153, 162 }, 549 }; 500 550 501 551 502 #endif 552 #if NH_3D_IC553 static const UChar554 INIT_IC_FLAG[3][NUM_IC_FLAG_CTX] =555 {556 { 154 },557 { 154 },558 { 154 },559 };560 561 #endif562 563 #if NH_3D_DMM564 static const UChar565 INIT_NOTDMM_FLAG[3][NUM_NOTDMM_FLAG_CTX] =566 {567 { 154 },568 { 141 },569 { 155 },570 };571 static const UChar572 INIT_DMM_MODE[3][NUM_DMM_MODE_CTX] =573 {574 { CNU },575 { CNU },576 { CNU }577 };578 #endif579 #if NH_3D_DMM || NH_3D_SDC_INTRA580 static const UChar581 INIT_DDC_DATA[3][NUM_DDC_DATA_CTX] =582 {583 { CNU },584 { CNU },585 { CNU },586 };587 #endif588 #if NH_3D_SDC_INTRA589 static const UChar590 INIT_SDC_RESIDUAL_FLAG[3][SDC_NUM_RESIDUAL_FLAG_CTX] =591 {592 { CNU },593 { CNU },594 { CNU },595 };596 static const UChar597 INIT_SDC_RESIDUAL[3][SDC_NUM_RESIDUAL_CTX] =598 {599 { 155 },600 { 155 },601 { 155 },602 };603 static const UChar604 INIT_SDC_FLAG[3][NUM_SDC_FLAG_CTX] =605 {606 { 154 },607 { 154 },608 { 154 },609 };610 static const UChar611 INIT_DDC_FLAG[3][NUM_DDC_FLAG_CTX] =612 {613 {0 , CNU},614 {0 , CNU},615 {64, CNU}616 };617 #endif618 #if NH_3D_DBBP619 static const UChar INIT_DBBP_FLAG[3][DBBP_NUM_FLAG_CTX] =620 {621 { CNU },622 { CNU },623 { CNU },624 };625 #endif626 627 #endif
Note: See TracChangeset for help on using the changeset viewer.