Changeset 1303 in SHVCSoftware
- Timestamp:
- 21 Jul 2015, 00:29:23 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibCommon/TComTrQuant.cpp
r1300 r1303 1303 1303 1304 1304 // iAdd is different from the iAdd used in normal quantization 1305 const Int iAdd = (compID == COMPONENT_Y ? 171 : 256) << (iQBits-9); 1305 const Int iAdd = (compID == COMPONENT_Y ? 171 : 256) << (iQBits-9); 1306 1306 1307 1307 for( Int uiBlockPos = 0; uiBlockPos < uiWidth*uiHeight; uiBlockPos++ ) … … 2320 2320 uiLevel = xGetCodedLevel( pdCostCoeff[ iScanPos ], pdCostCoeff0[ iScanPos ], pdCostSig[ iScanPos ], 2321 2321 lLevelDouble, uiMaxAbsLevel, significanceMapContextOffset, uiOneCtx, uiAbsCtx, uiGoRiceParam, 2322 c1Idx, c2Idx, iQBits, errorScale, 1, extendedPrecision, channelType2322 c1Idx, c2Idx, iQBits, errorScale, 1, extendedPrecision, maxLog2TrDynamicRange 2323 2323 ); 2324 2324 } … … 2329 2329 uiLevel = xGetCodedLevel( pdCostCoeff[ iScanPos ], pdCostCoeff0[ iScanPos ], pdCostSig[ iScanPos ], 2330 2330 lLevelDouble, uiMaxAbsLevel, uiCtxSig, uiOneCtx, uiAbsCtx, uiGoRiceParam, 2331 c1Idx, c2Idx, iQBits, errorScale, 0, extendedPrecision, channelType2331 c1Idx, c2Idx, iQBits, errorScale, 0, extendedPrecision, maxLog2TrDynamicRange 2332 2332 ); 2333 2333 … … 2339 2339 if( uiLevel > 0 ) 2340 2340 { 2341 Int rateNow = xGetICRate( uiLevel, uiOneCtx, uiAbsCtx, uiGoRiceParam, c1Idx, c2Idx, extendedPrecision, channelType );2342 rateIncUp [ uiBlkPos ] = xGetICRate( uiLevel+1, uiOneCtx, uiAbsCtx, uiGoRiceParam, c1Idx, c2Idx, extendedPrecision, channelType ) - rateNow;2343 rateIncDown [ uiBlkPos ] = xGetICRate( uiLevel-1, uiOneCtx, uiAbsCtx, uiGoRiceParam, c1Idx, c2Idx, extendedPrecision, channelType ) - rateNow;2341 Int rateNow = xGetICRate( uiLevel, uiOneCtx, uiAbsCtx, uiGoRiceParam, c1Idx, c2Idx, extendedPrecision, maxLog2TrDynamicRange ); 2342 rateIncUp [ uiBlkPos ] = xGetICRate( uiLevel+1, uiOneCtx, uiAbsCtx, uiGoRiceParam, c1Idx, c2Idx, extendedPrecision, maxLog2TrDynamicRange ) - rateNow; 2343 rateIncDown [ uiBlkPos ] = xGetICRate( uiLevel-1, uiOneCtx, uiAbsCtx, uiGoRiceParam, c1Idx, c2Idx, extendedPrecision, maxLog2TrDynamicRange ) - rateNow; 2344 2344 } 2345 2345 else // uiLevel == 0 … … 2879 2879 Bool bLast, 2880 2880 Bool useLimitedPrefixLength, 2881 ChannelType channelType2881 const Int maxLog2TrDynamicRange 2882 2882 ) const 2883 2883 { … … 2908 2908 { 2909 2909 Double dErr = Double( lLevelDouble - ( Intermediate_Int(uiAbsLevel) << iQBits ) ); 2910 Double dCurrCost = dErr * dErr * errorScale + xGetICost( xGetICRate( uiAbsLevel, ui16CtxNumOne, ui16CtxNumAbs, ui16AbsGoRice, c1Idx, c2Idx, useLimitedPrefixLength, channelType ) );2910 Double dCurrCost = dErr * dErr * errorScale + xGetICost( xGetICRate( uiAbsLevel, ui16CtxNumOne, ui16CtxNumAbs, ui16AbsGoRice, c1Idx, c2Idx, useLimitedPrefixLength, maxLog2TrDynamicRange ) ); 2911 2911 dCurrCost += dCurrCostSig; 2912 2912 -
branches/SHM-dev/source/Lib/TLibCommon/TComTrQuant.h
r1298 r1303 288 288 Bool bLast, 289 289 Bool useLimitedPrefixLength, 290 ChannelType channelType290 const Int maxLog2TrDynamicRange 291 291 ) const; 292 292 -
branches/SHM-dev/source/Lib/TLibEncoder/SEIEncoder.cpp
r1302 r1303 710 710 seiScalableNesting->m_nestingNumLayersMinus1 = 1 - 1; //nesting_num_layers_minus1 711 711 seiScalableNesting->m_nestingLayerId[0] = 0; 712 seiScalableNesting->m_callerOwnsSEIs = true;713 712 714 713 // Bitstream partition nesting SEI 715 716 714 seiBspNesting->m_bspIdx = 0; 717 seiBspNesting->m_callerOwnsSEIs = true;718 715 719 716 // Buffering period SEI
Note: See TracChangeset for help on using the changeset viewer.