Ticket #284: HM-5.0-dev-misc-rev1755-unused-dqp-context-removal.patch
File HM-5.0-dev-misc-rev1755-unused-dqp-context-removal.patch, 3.2 KB (added by kchono, 13 years ago) |
---|
-
source/Lib/TLibCommon/ContextTables.h
84 84 #define NUM_TRANS_SUBDIV_FLAG_CTX 10 ///< number of context models for transform subdivision flags 85 85 #define NUM_QT_CBF_CTX 5 ///< number of context models for QT CBF 86 86 #define NUM_QT_ROOT_CBF_CTX 1 ///< number of context models for QT ROOT CBF 87 #define NUM_DELTA_QP_CTX 4///< number of context models for dQP87 #define NUM_DELTA_QP_CTX 3 ///< number of context models for dQP 88 88 89 89 #if MULTI_LEVEL_SIGNIFICANCE 90 90 #define NUM_SIG_CG_FLAG_CTX 2 ///< number of context models for MULTI_LEVEL_SIGNIFICANCE … … 447 447 INIT_DQP[3][NUM_DELTA_QP_CTX] = 448 448 { 449 449 { 450 CNU, CNU, CNU, CNU,450 CNU, CNU, CNU, 451 451 452 452 }, 453 453 { 454 CNU, CNU, CNU, CNU,454 CNU, CNU, CNU, 455 455 456 456 }, 457 457 { 458 CNU, CNU, CNU, CNU,458 CNU, CNU, CNU, 459 459 460 460 }, 461 461 }; … … 1536 1536 INIT_DQP[3][NUM_DELTA_QP_CTX][2] = 1537 1537 { 1538 1538 { 1539 { 0, 64 }, { 0, 64 }, { 0, 64 }, { 0, 64 }1539 { 0, 64 }, { 0, 64 }, { 0, 64 }, 1540 1540 }, 1541 1541 { 1542 { 0, 64 }, { 0, 64 }, { 0, 64 }, { 0, 64 }1542 { 0, 64 }, { 0, 64 }, { 0, 64 }, 1543 1543 }, 1544 1544 { 1545 { 0, 64 }, { 0, 64 }, { 0, 64 }, { 0, 64 }1545 { 0, 64 }, { 0, 64 }, { 0, 64 }, 1546 1546 } 1547 1547 }; 1548 1548 -
source/Lib/TLibDecoder/TDecSbac.cpp
1261 1261 1262 1262 UInt uiMaxAbsDQpMinus1 = 24 + (uiQpBdOffsetY/2) + (uiSign); 1263 1263 UInt uiAbsDQpMinus1; 1264 xReadUnaryMaxSymbol (uiAbsDQpMinus1, &m_cCUDeltaQpSCModel.get( 0, 0, 2), 1, uiMaxAbsDQpMinus1);1264 xReadUnaryMaxSymbol (uiAbsDQpMinus1, &m_cCUDeltaQpSCModel.get( 0, 0, 1 ), 1, uiMaxAbsDQpMinus1); 1265 1265 1266 1266 iDQp = uiAbsDQpMinus1 + 1; 1267 1267 … … 1270 1270 iDQp = -iDQp; 1271 1271 } 1272 1272 #else 1273 xReadUnarySymbol( uiDQp, &m_cCUDeltaQpSCModel.get( 0, 0, 2), 1 );1273 xReadUnarySymbol( uiDQp, &m_cCUDeltaQpSCModel.get( 0, 0, 1 ), 1 ); 1274 1274 iDQp = ( uiDQp + 2 ) / 2; 1275 1275 1276 1276 if ( uiDQp & 1 ) -
source/Lib/TLibEncoder/TEncSbac.cpp
1118 1118 1119 1119 UInt uiMaxAbsDQpMinus1 = 24 + (uiQpBdOffsetY/2) + (uiSign); 1120 1120 UInt uiAbsDQpMinus1 = (UInt)((iDQp > 0)? iDQp : (-iDQp)) - 1; 1121 xWriteUnaryMaxSymbol( uiAbsDQpMinus1, &m_cCUDeltaQpSCModel.get( 0, 0, 2), 1, uiMaxAbsDQpMinus1);1121 xWriteUnaryMaxSymbol( uiAbsDQpMinus1, &m_cCUDeltaQpSCModel.get( 0, 0, 1 ), 1, uiMaxAbsDQpMinus1); 1122 1122 #else 1123 1123 UInt uiDQp = (UInt)( iDQp > 0 ? ( 2 * iDQp - 2 ) : ( -2 * iDQp - 1 ) ); 1124 xWriteUnarySymbol( uiDQp, &m_cCUDeltaQpSCModel.get( 0, 0, 2), 1 );1124 xWriteUnarySymbol( uiDQp, &m_cCUDeltaQpSCModel.get( 0, 0, 1 ), 1 ); 1125 1125 #endif 1126 1126 } 1127 1127