Ignore:
Timestamp:
17 Jul 2015, 00:55:34 (9 years ago)
Author:
seregin
Message:

port rev 4320 (g_maxTrDynamicRange)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncSbac.cpp

    r1260 r1285  
    340340 * \param channelType             plane type (luma/chroma)
    341341 */
    342 Void TEncSbac::xWriteCoefRemainExGolomb ( UInt symbol, UInt &rParam, const Bool useLimitedPrefixLength, const ChannelType channelType )
     342Void TEncSbac::xWriteCoefRemainExGolomb ( UInt symbol, UInt &rParam, const Bool useLimitedPrefixLength, const ChannelType channelType, const Int maxLog2TrDynamicRange )
    343343{
    344344  Int codeNumber  = (Int)symbol;
     
    353353  else if (useLimitedPrefixLength)
    354354  {
    355     const UInt maximumPrefixLength = (32 - (COEF_REMAIN_BIN_REDUCTION + g_maxTrDynamicRange[channelType]));
     355    const UInt maximumPrefixLength = (32 - (COEF_REMAIN_BIN_REDUCTION + maxLog2TrDynamicRange));
    356356
    357357    UInt prefixLength = 0;
     
    362362    {
    363363      prefixLength = maximumPrefixLength;
    364       suffixLength = g_maxTrDynamicRange[channelType] - rParam;
     364      suffixLength = maxLog2TrDynamicRange - rParam;
    365365    }
    366366    else
     
    12541254
    12551255  const Bool         alignCABACBeforeBypass = pcCU->getSlice()->getSPS()->getAlignCABACBeforeBypass();
     1256  const Int          maxLog2TrDynamicRange  = pcCU->getSlice()->getSPS()->getMaxLog2TrDynamicRange(channelType);
    12561257
    12571258  Bool beValid;
     
    15041505            const UInt escapeCodeValue = absCoeff[idx] - baseLevel;
    15051506
    1506             xWriteCoefRemainExGolomb( escapeCodeValue, uiGoRiceParam, extendedPrecision, channelType );
     1507            xWriteCoefRemainExGolomb( escapeCodeValue, uiGoRiceParam, extendedPrecision, channelType, maxLog2TrDynamicRange );
    15071508
    15081509            if (absCoeff[idx] > (3 << uiGoRiceParam))
Note: See TracChangeset for help on using the changeset viewer.