Changeset 532 in SHVCSoftware for branches/SHM-4.1-dev/source/Lib/TLibCommon/TComSlice.cpp
- Timestamp:
- 2 Jan 2014, 07:21:30 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-4.1-dev/source/Lib/TLibCommon/TComSlice.cpp
r531 r532 76 76 , m_colFromL0Flag ( 1 ) 77 77 , m_colRefIdx ( 0 ) 78 #if SAO_CHROMA_LAMBDA79 , m_dLambdaLuma( 0.0 )80 , m_dLambdaChroma( 0.0 )81 #else82 , m_dLambda ( 0.0 )83 #endif84 78 , m_uiTLayer ( 0 ) 85 79 , m_bTLayerSwitchingFlag ( false ) … … 142 136 initEqualRef(); 143 137 138 for (Int component = 0; component < 3; component++) 139 { 140 m_lambdas[component] = 0.0; 141 } 142 144 143 for ( Int idx = 0; idx < MAX_NUM_REF; idx++ ) 145 144 { … … 156 155 initWpAcDcParam(); 157 156 m_saoEnabledFlag = false; 157 #if HM_CLEANUP_SAO 158 m_saoEnabledFlagChroma = false; 159 #endif 158 160 } 159 161 … … 360 362 } 361 363 362 #if FIX1071363 364 #if SVC_EXTENSION 364 365 Void TComSlice::setRefPicList( TComList<TComPic*>& rcListPic, Bool checkNumPocTotalCurr, TComPic** ilpPic) … … 366 367 Void TComSlice::setRefPicList( TComList<TComPic*>& rcListPic, Bool checkNumPocTotalCurr ) 367 368 #endif 368 #else 369 Void TComSlice::setRefPicList( TComList<TComPic*>& rcListPic ) 370 #endif 371 { 372 #if FIX1071 369 { 373 370 if (!checkNumPocTotalCurr) 374 #endif375 371 { 376 372 if (m_eSliceType == I_SLICE) … … 602 598 Int numPocTotalCurr = NumPocStCurr0 + NumPocStCurr1 + NumPocLtCurr; 603 599 #endif //SVC_EXTENSION 604 #if FIX1071 600 605 601 if (checkNumPocTotalCurr) 606 602 { … … 632 628 m_aiNumRefIdx[1] = getNumRefIdx(REF_PIC_LIST_1); 633 629 } 634 #endif635 630 636 631 #if M0457_IL_SAMPLE_PRED_ONLY_FLAG … … 1192 1187 m_colFromL0Flag = pSrc->m_colFromL0Flag; 1193 1188 m_colRefIdx = pSrc->m_colRefIdx; 1194 #if SAO_CHROMA_LAMBDA 1195 m_dLambdaLuma = pSrc->m_dLambdaLuma; 1196 m_dLambdaChroma = pSrc->m_dLambdaChroma; 1197 #else 1198 m_dLambda = pSrc->m_dLambda; 1199 #endif 1189 setLambdas(pSrc->getLambdas()); 1200 1190 for (i = 0; i < 2; i++) 1201 1191 { … … 1522 1512 assert(rpcPic->getSlice( 0 )->isReferenced()==0||rpcPic->getUsedByCurr()==0||rpcPic->getTLayer()<=this->getTLayer()); 1523 1513 //check that pictures of higher or equal temporal layer are not in the RPS if the current picture is a TSA picture 1524 if(this->getNalUnitType() == NAL_UNIT_CODED_SLICE_T LA_R || this->getNalUnitType() == NAL_UNIT_CODED_SLICE_TSA_N)1514 if(this->getNalUnitType() == NAL_UNIT_CODED_SLICE_TSA_R || this->getNalUnitType() == NAL_UNIT_CODED_SLICE_TSA_N) 1525 1515 { 1526 1516 assert(rpcPic->getSlice( 0 )->isReferenced()==0||rpcPic->getTLayer()<this->getTLayer()); … … 1681 1671 /** Function for constructing an explicit Reference Picture Set out of the available pictures in a referenced Reference Picture Set 1682 1672 */ 1683 #if FIX10711684 1673 Void TComSlice::createExplicitReferencePictureSetFromReference( TComList<TComPic*>& rcListPic, TComReferencePictureSet *pReferencePictureSet, Bool isRAP) 1685 #else1686 Void TComSlice::createExplicitReferencePictureSetFromReference( TComList<TComPic*>& rcListPic, TComReferencePictureSet *pReferencePictureSet)1687 #endif1688 1674 { 1689 1675 TComPic* rpcPic; … … 1710 1696 // and should be added to the explicit Reference Picture Set 1711 1697 pcRPS->setDeltaPOC(k, pReferencePictureSet->getDeltaPOC(i)); 1712 #if FIX10711713 1698 pcRPS->setUsed(k, pReferencePictureSet->getUsed(i) && (!isRAP)); 1714 #else1715 pcRPS->setUsed(k, pReferencePictureSet->getUsed(i));1716 #endif1717 1699 if(pcRPS->getDeltaPOC(k) < 0) 1718 1700 { … … 2870 2852 for(UInt listId=0;listId<g_scalingListNum[sizeId];listId++) 2871 2853 { 2872 getScalingList()->processDefaultMa rix(sizeId, listId);2854 getScalingList()->processDefaultMatrix(sizeId, listId); 2873 2855 } 2874 2856 } … … 3045 3027 * \param Index of input matrix 3046 3028 */ 3047 Void TComScalingList::processDefaultMa rix(UInt sizeId, UInt listId)3029 Void TComScalingList::processDefaultMatrix(UInt sizeId, UInt listId) 3048 3030 { 3049 3031 ::memcpy(getScalingListAddress(sizeId, listId),getScalingListDefaultAddress(sizeId,listId),sizeof(Int)*min(MAX_MATRIX_COEF_NUM,(Int)g_scalingListSize[sizeId])); … … 3062 3044 if(getScalingListDC(sizeId,listId) == 0) 3063 3045 { 3064 processDefaultMa rix(sizeId, listId);3046 processDefaultMatrix(sizeId, listId); 3065 3047 } 3066 3048 } … … 3250 3232 #endif 3251 3233 3252 VoidTComSlice::setBaseColPic( TComList<TComPic*>& rcListPic, UInt refLayerIdc )3234 Bool TComSlice::setBaseColPic( TComList<TComPic*>& rcListPic, UInt refLayerIdc ) 3253 3235 { 3254 3236 if(m_layerId == 0) … … 3258 3240 } 3259 3241 #if POC_RESET_FLAG 3260 if( this->getPocResetFlag() ) 3261 { 3262 setBaseColPic(refLayerIdc, xGetRefPic(rcListPic, 0)); 3242 TComPic* pic = xGetRefPic( rcListPic, m_bPocResetFlag ? 0 : m_iPOC ); 3243 3244 if( pic ) 3245 { 3246 setBaseColPic(refLayerIdc, pic ); 3263 3247 } 3264 3248 else 3265 3249 { 3266 setBaseColPic(refLayerIdc, xGetRefPic(rcListPic, getPOC())); 3267 } 3250 return false; 3251 } 3252 3253 return true; 3268 3254 #else 3269 3255 setBaseColPic(refLayerIdc, xGetRefPic(rcListPic, getPOC()));
Note: See TracChangeset for help on using the changeset viewer.