Changeset 1502 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibCommon/TComTrQuant.cpp
- Timestamp:
- 11 Dec 2015, 00:05:48 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComTrQuant.cpp
r1335 r1502 114 114 *this = QpParam(cu.getQP( 0 ), 115 115 toChannelType(compID), 116 #if SVC_EXTENSION117 cu.getSlice()->getQpBDOffset(toChannelType(compID)),118 #else119 116 cu.getSlice()->getSPS()->getQpBDOffset(toChannelType(compID)), 120 #endif121 117 chromaQpOffset, 122 118 cu.getPic()->getChromaFormat()); … … 1143 1139 TComDataCU* pcCU = rTu.getCU(); 1144 1140 const UInt uiAbsPartIdx = rTu.GetAbsPartIdxTU(); 1145 #if SVC_EXTENSION1146 const Int channelBitDepth = pcCU->getSlice()->getBitDepth(toChannelType(compID));1147 #else1148 1141 const Int channelBitDepth = pcCU->getSlice()->getSPS()->getBitDepth(toChannelType(compID)); 1149 #endif1150 1142 1151 1143 TCoeff* piCoef = pSrc; … … 1345 1337 const Int channelBitDepth = pcCU->getSlice()->getSPS()->getStreamBitDepth(toChannelType(compID)); 1346 1338 #else 1347 #if SVC_EXTENSION1348 const Int channelBitDepth = pcCU->getSlice()->getBitDepth(toChannelType(compID));1349 #else1350 1339 const Int channelBitDepth = pcCU->getSlice()->getSPS()->getBitDepth(toChannelType(compID)); 1351 #endif1352 1340 #endif 1353 1341 … … 1529 1517 else 1530 1518 { 1531 #if SVC_EXTENSION1532 const Int channelBitDepth=pcCU->getSlice()->getBitDepth(toChannelType(compID));1533 #else1534 1519 const Int channelBitDepth=pcCU->getSlice()->getSPS()->getBitDepth(toChannelType(compID)); 1535 #endif1536 1520 xT( channelBitDepth, rTu.useDST(compID), pcResidual, uiStride, m_plTempCoeff, uiWidth, uiHeight, pcCU->getSlice()->getSPS()->getMaxLog2TrDynamicRange(toChannelType(compID)) ); 1537 1521 } … … 1667 1651 const Int channelBitDepth = pcCU->getSlice()->getSPS()->getStreamBitDepth(toChannelType(compID)); 1668 1652 #else 1669 #if SVC_EXTENSION1670 const Int channelBitDepth = pcCU->getSlice()->getBitDepth(toChannelType(compID));1671 #else1672 1653 const Int channelBitDepth = pcCU->getSlice()->getSPS()->getBitDepth(toChannelType(compID)); 1673 #endif1674 1654 #endif 1675 1655 xIT( channelBitDepth, rTu.useDST(compID), m_plTempCoeff, pcResidual, uiStride, uiWidth, uiHeight, pcCU->getSlice()->getSPS()->getMaxLog2TrDynamicRange(toChannelType(compID)) ); … … 2045 2025 const Int height = rect.height; 2046 2026 const Int maxLog2TrDynamicRange = rTu.getCU()->getSlice()->getSPS()->getMaxLog2TrDynamicRange(toChannelType(component)); 2047 #if SVC_EXTENSION2048 const Int channelBitDepth = rTu.getCU()->getSlice()->getBitDepth(toChannelType(component));2049 #else2050 2027 const Int channelBitDepth = rTu.getCU()->getSlice()->getSPS()->getBitDepth(toChannelType(component)); 2051 #endif2052 2028 2053 2029 Int iTransformShift = getTransformShift(channelBitDepth, rTu.GetEquivalentLog2TrSize(component), maxLog2TrDynamicRange); … … 2101 2077 const Int channelBitDepth = rTu.getCU()->getSlice()->getSPS()->getStreamBitDepth(toChannelType(component)); 2102 2078 #else 2103 #if SVC_EXTENSION2104 const Int channelBitDepth = rTu.getCU()->getSlice()->getBitDepth(toChannelType(component));2105 #else2106 2079 const Int channelBitDepth = rTu.getCU()->getSlice()->getSPS()->getBitDepth(toChannelType(component)); 2107 #endif2108 2080 #endif 2109 2081 … … 2175 2147 const Bool extendedPrecision = pcCU->getSlice()->getSPS()->getSpsRangeExtension().getExtendedPrecisionProcessingFlag(); 2176 2148 const Int maxLog2TrDynamicRange = pcCU->getSlice()->getSPS()->getMaxLog2TrDynamicRange(toChannelType(compID)); 2177 #if SVC_EXTENSION2178 const Int channelBitDepth = rTu.getCU()->getSlice()->getBitDepth(channelType);2179 #else2180 2149 const Int channelBitDepth = rTu.getCU()->getSlice()->getSPS()->getBitDepth(channelType); 2181 #endif2182 2150 2183 2151 /* for 422 chroma blocks, the effective scaling applied during transformation is not a power of 2, hence it cannot be … … 3364 3332 const UInt uiHeight = rect.height; 3365 3333 const Int maxLog2TrDynamicRange = pcCU->getSlice()->getSPS()->getMaxLog2TrDynamicRange(toChannelType(compID)); 3366 #if SVC_EXTENSION3367 const Int channelBitDepth = pcCU->getSlice()->getBitDepth(toChannelType(compID));3368 #else3369 3334 const Int channelBitDepth = pcCU->getSlice()->getSPS()->getBitDepth(toChannelType(compID)); 3370 #endif3371 3335 const Int iTransformShift = getTransformShift(channelBitDepth, rTu.GetEquivalentLog2TrSize(compID), maxLog2TrDynamicRange); 3372 3336 const Int scalingListType = getScalingListType(pcCU->getPredictionMode(uiAbsPartIdx), compID); … … 3431 3395 const Int channelBitDepth = pcCU->getSlice()->getSPS()->getStreamBitDepth(toChannelType(compID)); 3432 3396 #else 3433 #if SVC_EXTENSION3434 const Int channelBitDepth = pcCU->getSlice()->getBitDepth(toChannelType(compID));3435 #else3436 3397 const Int channelBitDepth = pcCU->getSlice()->getSPS()->getBitDepth(toChannelType(compID)); 3437 #endif3438 3398 #endif 3439 3399 const Int iTransformShift = getTransformShift(channelBitDepth, rTu.GetEquivalentLog2TrSize(compID), maxLog2TrDynamicRange);
Note: See TracChangeset for help on using the changeset viewer.