Changeset 1285 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder/TEncSbac.cpp
- Timestamp:
- 17 Jul 2015, 00:55:34 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibEncoder/TEncSbac.cpp
r1260 r1285 340 340 * \param channelType plane type (luma/chroma) 341 341 */ 342 Void TEncSbac::xWriteCoefRemainExGolomb ( UInt symbol, UInt &rParam, const Bool useLimitedPrefixLength, const ChannelType channelType )342 Void TEncSbac::xWriteCoefRemainExGolomb ( UInt symbol, UInt &rParam, const Bool useLimitedPrefixLength, const ChannelType channelType, const Int maxLog2TrDynamicRange ) 343 343 { 344 344 Int codeNumber = (Int)symbol; … … 353 353 else if (useLimitedPrefixLength) 354 354 { 355 const UInt maximumPrefixLength = (32 - (COEF_REMAIN_BIN_REDUCTION + g_maxTrDynamicRange[channelType]));355 const UInt maximumPrefixLength = (32 - (COEF_REMAIN_BIN_REDUCTION + maxLog2TrDynamicRange)); 356 356 357 357 UInt prefixLength = 0; … … 362 362 { 363 363 prefixLength = maximumPrefixLength; 364 suffixLength = g_maxTrDynamicRange[channelType]- rParam;364 suffixLength = maxLog2TrDynamicRange - rParam; 365 365 } 366 366 else … … 1254 1254 1255 1255 const Bool alignCABACBeforeBypass = pcCU->getSlice()->getSPS()->getAlignCABACBeforeBypass(); 1256 const Int maxLog2TrDynamicRange = pcCU->getSlice()->getSPS()->getMaxLog2TrDynamicRange(channelType); 1256 1257 1257 1258 Bool beValid; … … 1504 1505 const UInt escapeCodeValue = absCoeff[idx] - baseLevel; 1505 1506 1506 xWriteCoefRemainExGolomb( escapeCodeValue, uiGoRiceParam, extendedPrecision, channelType );1507 xWriteCoefRemainExGolomb( escapeCodeValue, uiGoRiceParam, extendedPrecision, channelType, maxLog2TrDynamicRange ); 1507 1508 1508 1509 if (absCoeff[idx] > (3 << uiGoRiceParam))
Note: See TracChangeset for help on using the changeset viewer.