Changeset 1247 in SHVCSoftware
- Timestamp:
- 14 Jul 2015, 00:28:39 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/Lib/TLibDecoder/TDecEntropy.cpp
r1246 r1247 85 85 * \param uiPartIdx 86 86 * \param uiAbsPartIdx 87 * \param puhInterDirNeighbours pointer to list of inter direction from the casual neighbours88 * \param pcMvFieldNeighbours pointer to list of motion vector field from the casual neighbours89 87 * \param uiDepth 90 88 * \returns Void … … 196 194 } 197 195 Int numValidMergeCand = 0; 198 Bool isMerged= false;196 Bool hasMergedCandList = false; 199 197 200 198 pcSubCU->copyInterPredInfoFrom( pcCU, uiAbsPartIdx, REF_PIC_LIST_0 ); … … 217 215 if ( pcCU->getSlice()->getPPS()->getLog2ParallelMergeLevelMinus2() && ePartSize != SIZE_2Nx2N && pcSubCU->getWidth( 0 ) <= 8 ) 218 216 { 219 pcSubCU->setPartSizeSubParts( SIZE_2Nx2N, 0, uiDepth ); 220 if ( !isMerged ) 217 if ( !hasMergedCandList ) 221 218 { 219 pcSubCU->setPartSizeSubParts( SIZE_2Nx2N, 0, uiDepth ); // temporarily set. 222 220 pcSubCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand ); 223 isMerged = true; 221 pcSubCU->setPartSizeSubParts( ePartSize, 0, uiDepth ); // restore. 222 hasMergedCandList = true; 224 223 } 225 pcSubCU->setPartSizeSubParts( ePartSize, 0, uiDepth );226 224 } 227 225 else -
branches/SHM-dev/source/Lib/TLibEncoder/TEncSearch.cpp
r1246 r1247 1391 1391 1392 1392 1393 1394 1393 Void 1395 1394 TEncSearch::xRecurIntraCodingLumaQT(TComYuv* pcOrgYuv, … … 1457 1456 Distortion uiSingleDistLuma = 0; 1458 1457 UInt uiSingleCbfLuma = 0; 1459 Distortion uiSingleDist[MAX_NUM_CHANNEL_TYPE] = {0,0};1460 UInt uiSingleCbf[MAX_NUM_COMPONENT] = {0,0,0};1461 1458 Bool checkTransformSkip = pcCU->getSlice()->getPPS()->getUseTransformSkip(); 1462 1459 Int bestModeId[MAX_NUM_COMPONENT] = { 0, 0, 0}; … … 2561 2558 2562 2559 //=== update PU data ==== 2563 pcCU->setIntraDirSubParts ( CHANNEL_TYPE_LUMA, uiBestPUMode, uiPartOffset, uiDepth + uiInitTrDepth ); 2560 pcCU->setIntraDirSubParts ( CHANNEL_TYPE_LUMA, uiBestPUMode, uiPartOffset, uiDepth + uiInitTrDepth ); 2564 2561 } while (tuRecurseWithPU.nextSection(tuRecurseCU)); 2565 2562 … … 2895 2892 if ( pcCU->getSlice()->getPPS()->getLog2ParallelMergeLevelMinus2() && partSize != SIZE_2Nx2N && pcCU->getWidth( 0 ) <= 8 ) 2896 2893 { 2897 pcCU->setPartSizeSubParts( SIZE_2Nx2N, 0, uiDepth );2898 2894 if ( iPUIdx == 0 ) 2899 2895 { 2896 pcCU->setPartSizeSubParts( SIZE_2Nx2N, 0, uiDepth ); // temporarily set 2900 2897 pcCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours,uhInterDirNeighbours, numValidMergeCand ); 2901 }2902 pcCU->setPartSizeSubParts( partSize, 0, uiDepth );2898 pcCU->setPartSizeSubParts( partSize, 0, uiDepth ); // restore 2899 } 2903 2900 } 2904 2901 else … … 3139 3136 } 3140 3137 } 3141 3142 3138 xEstimateMvPredAMVP( pcCU, pcOrgYuv, iPartIdx, eRefPicList, iRefIdxTemp, cMvPred[iRefList][iRefIdxTemp], false, &biPDistTemp); 3143 3144 3139 aaiMvpIdx[iRefList][iRefIdxTemp] = pcCU->getMVPIdx(eRefPicList, uiPartAddr); 3145 3140 aaiMvpNum[iRefList][iRefIdxTemp] = pcCU->getMVPNum(eRefPicList, uiPartAddr); … … 3161 3156 3162 3157 uiBitsTemp += m_auiMVPIdxCost[aaiMvpIdx[iRefList][iRefIdxTemp]][AMVP_MAX_NUM_CANDS]; 3163 3158 3164 3159 #if GPB_SIMPLE_UNI 3165 3160 if ( iRefList == 1 ) // list 1
Note: See TracChangeset for help on using the changeset viewer.