Changeset 1191 in 3DVCSoftware for branches/HTM-14.0-MV-draft-3/source/Lib/TLibCommon/ContextTables.h
- Timestamp:
- 15 Apr 2015, 11:36:33 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HTM-14.0-MV-draft-3/source/Lib/TLibCommon/ContextTables.h
r1179 r1191 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 SEC_DEPTH_INTRA_SKIP_MODE_K003354 #define NUM_DIS_FLAG_CTX 155 #define NUM_DIS_TYPE_CTX 156 #else57 #if H_3D_SINGLE_DEPTH58 #define NUM_SINGLEDEPTH_FLAG_CTX 159 #define NUM_SINGLE_DEPTH_VALUE_DATA_CTX 160 #endif61 #endif62 53 #define NUM_MERGE_FLAG_EXT_CTX 1 ///< number of context models for merge flag of merge extended 63 54 #define NUM_MERGE_IDX_EXT_CTX 1 ///< number of context models for merge index of merge extended … … 101 92 #define NUM_CU_TRANSQUANT_BYPASS_FLAG_CTX 1 102 93 103 #if H_3D_ARP 104 #define NUM_ARPW_CTX 3 ///< number of context models for weighting factor index used by advanced residual prediction 105 #endif 106 107 #if H_3D_IC 108 #define NUM_IC_FLAG_CTX 1 ///< number of context models for illumination compensation flag 109 #endif 94 110 95 111 96 #define CNU 154 ///< dummy initialization value for unused context models 'Context model Not Used' 112 97 113 #if H_3D_DIM 114 #define NUM_DEPTH_INTRA_MODE_CTX 1 ///< number of context models for depth intra modes 115 #define NUM_DDC_FLAG_CTX 2 ///< number of context models for deltaDC flag (DMM or RBC) 116 #define NUM_DDC_DATA_CTX 1 ///< number of context models for deltaDC data (DMM or RBC) 117 #if H_3D_DIM_DMM 118 #define NUM_DMM1_DATA_CTX 1 ///< number of context models for DMM1 data 119 #endif 120 #define NUM_ANGLE_FLAG_CTX 1 121 #endif 122 123 #if H_3D_DIM_SDC 124 #define SDC_NUM_RESIDUAL_FLAG_CTX 1 125 #define SDC_NUM_RESIDUAL_CTX 1 126 #define NUM_SDC_FLAG_CTX 1 ///< number of context 127 #endif 128 #if H_3D_DBBP 129 #define DBBP_NUM_FLAG_CTX 1 130 #endif 98 131 99 // ==================================================================================================================== 132 100 // Tables … … 158 126 { CNU, CNU, CNU, }, 159 127 }; 160 #if SEC_DEPTH_INTRA_SKIP_MODE_K0033161 static const UChar162 INIT_DIS_FLAG[3][NUM_DIS_FLAG_CTX] =163 {164 { 185 },165 { 185 },166 { 185 },167 };168 static const UChar169 INIT_DIS_TYPE[3][NUM_DIS_TYPE_CTX] =170 {171 { 137 },172 { 137 },173 { 137 },174 };175 #else176 #if H_3D_SINGLE_DEPTH177 static const UChar178 INIT_SINGLEDEPTH_FLAG[3][NUM_SINGLEDEPTH_FLAG_CTX] =179 {180 { 185 },181 { 185 },182 { 185 },183 };184 static const UChar185 INIT_SINGLE_DEPTH_VALUE_DATA[3][NUM_SINGLE_DEPTH_VALUE_DATA_CTX] =186 {187 { 137 },188 { 137 },189 { 137 },190 };191 #endif192 #endif193 128 static const UChar 194 129 INIT_MERGE_FLAG_EXT[3][NUM_MERGE_FLAG_EXT_CTX] = … … 379 314 }; 380 315 381 #if H_3D_ARP 382 static const UChar 383 INIT_ARPW[3][NUM_ARPW_CTX] = 384 { 385 { 162, 153, 162 }, 386 { 162, 153, 162 }, 387 { 162, 153, 162 }, 388 }; 316 317 318 //! \} 319 389 320 390 321 #endif 391 #if H_3D_IC392 static const UChar393 INIT_IC_FLAG[3][NUM_IC_FLAG_CTX] =394 {395 { 154 },396 { 154 },397 { 154 },398 };399 400 #endif401 #if H_3D_DIM402 static const UChar403 INIT_DEPTH_INTRA_MODE[3][NUM_DEPTH_INTRA_MODE_CTX] =404 {405 { 154, },406 { 154, },407 { 154, }408 };409 410 static const UChar411 INIT_ANGLE_FLAG[3][NUM_ANGLE_FLAG_CTX] =412 {413 { 154 },414 { 141 },415 { 155 },416 };417 418 static const UChar419 INIT_DDC_FLAG[3][NUM_DDC_FLAG_CTX] =420 {421 {0 , CNU},422 {0 , CNU},423 {64, CNU}424 };425 static const UChar426 INIT_DDC_DATA[3][NUM_DDC_DATA_CTX] =427 {428 { 154 },429 { 154 },430 { 154 },431 };432 #if H_3D_DIM_DMM433 static const UChar434 INIT_DMM1_DATA[3][NUM_DMM1_DATA_CTX] =435 {436 { CNU },437 { CNU },438 { CNU },439 };440 #endif441 #if H_3D_DIM_SDC442 static const UChar443 INIT_SDC_RESIDUAL_FLAG[3][SDC_NUM_RESIDUAL_FLAG_CTX] =444 {445 { CNU },446 { CNU },447 { CNU },448 };449 static const UChar450 INIT_SDC_RESIDUAL[3][SDC_NUM_RESIDUAL_CTX] =451 {452 { 155 },453 { 155 },454 { 155 },455 };456 #endif457 #endif458 459 460 //! \}461 #if H_3D_DIM_SDC462 static const UChar463 INIT_SDC_FLAG[3][NUM_SDC_FLAG_CTX] =464 {465 { 154 },466 { 154 },467 { 154 },468 };469 #endif470 471 #if H_3D_DBBP472 static const UChar INIT_DBBP_FLAG[3][DBBP_NUM_FLAG_CTX] =473 {474 { CNU },475 { CNU },476 { CNU },477 };478 #endif479 480 #endif
Note: See TracChangeset for help on using the changeset viewer.