Changeset 1247 in SHVCSoftware


Ignore:
Timestamp:
14 Jul 2015, 00:28:39 (9 years ago)
Author:
seregin
Message:

port rev 4241

Location:
branches/SHM-dev/source/Lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/Lib/TLibDecoder/TDecEntropy.cpp

    r1246 r1247  
    8585 * \param uiPartIdx
    8686 * \param uiAbsPartIdx
    87  * \param puhInterDirNeighbours pointer to list of inter direction from the casual neighbours
    88  * \param pcMvFieldNeighbours pointer to list of motion vector field from the casual neighbours
    8987 * \param uiDepth
    9088 * \returns Void
     
    196194  }
    197195  Int numValidMergeCand = 0;
    198   Bool isMerged = false;
     196  Bool hasMergedCandList = false;
    199197
    200198  pcSubCU->copyInterPredInfoFrom( pcCU, uiAbsPartIdx, REF_PIC_LIST_0 );
     
    217215      if ( pcCU->getSlice()->getPPS()->getLog2ParallelMergeLevelMinus2() && ePartSize != SIZE_2Nx2N && pcSubCU->getWidth( 0 ) <= 8 )
    218216      {
    219         pcSubCU->setPartSizeSubParts( SIZE_2Nx2N, 0, uiDepth );
    220         if ( !isMerged )
     217        if ( !hasMergedCandList )
    221218        {
     219          pcSubCU->setPartSizeSubParts( SIZE_2Nx2N, 0, uiDepth ); // temporarily set.
    222220          pcSubCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours, uhInterDirNeighbours, numValidMergeCand );
    223           isMerged = true;
     221          pcSubCU->setPartSizeSubParts( ePartSize, 0, uiDepth ); // restore.
     222          hasMergedCandList = true;
    224223        }
    225         pcSubCU->setPartSizeSubParts( ePartSize, 0, uiDepth );
    226224      }
    227225      else
  • branches/SHM-dev/source/Lib/TLibEncoder/TEncSearch.cpp

    r1246 r1247  
    13911391
    13921392
    1393 
    13941393Void
    13951394TEncSearch::xRecurIntraCodingLumaQT(TComYuv*    pcOrgYuv,
     
    14571456  Distortion uiSingleDistLuma                   = 0;
    14581457  UInt       uiSingleCbfLuma                    = 0;
    1459   Distortion uiSingleDist[MAX_NUM_CHANNEL_TYPE] = {0,0};
    1460   UInt       uiSingleCbf[MAX_NUM_COMPONENT]     = {0,0,0};
    14611458  Bool       checkTransformSkip  = pcCU->getSlice()->getPPS()->getUseTransformSkip();
    14621459  Int        bestModeId[MAX_NUM_COMPONENT] = { 0, 0, 0};
     
    25612558
    25622559    //=== update PU data ====
    2563     pcCU->setIntraDirSubParts     ( CHANNEL_TYPE_LUMA, uiBestPUMode, uiPartOffset, uiDepth + uiInitTrDepth );   
     2560    pcCU->setIntraDirSubParts     ( CHANNEL_TYPE_LUMA, uiBestPUMode, uiPartOffset, uiDepth + uiInitTrDepth );
    25642561  } while (tuRecurseWithPU.nextSection(tuRecurseCU));
    25652562
     
    28952892  if ( pcCU->getSlice()->getPPS()->getLog2ParallelMergeLevelMinus2() && partSize != SIZE_2Nx2N && pcCU->getWidth( 0 ) <= 8 )
    28962893  {
    2897     pcCU->setPartSizeSubParts( SIZE_2Nx2N, 0, uiDepth );
    28982894    if ( iPUIdx == 0 )
    28992895    {
     2896      pcCU->setPartSizeSubParts( SIZE_2Nx2N, 0, uiDepth ); // temporarily set
    29002897      pcCU->getInterMergeCandidates( 0, 0, cMvFieldNeighbours,uhInterDirNeighbours, numValidMergeCand );
    2901     }
    2902     pcCU->setPartSizeSubParts( partSize, 0, uiDepth );
     2898      pcCU->setPartSizeSubParts( partSize, 0, uiDepth ); // restore
     2899    }
    29032900  }
    29042901  else
     
    31393136          }
    31403137        }
    3141 
    31423138        xEstimateMvPredAMVP( pcCU, pcOrgYuv, iPartIdx, eRefPicList, iRefIdxTemp, cMvPred[iRefList][iRefIdxTemp], false, &biPDistTemp);
    3143 
    31443139        aaiMvpIdx[iRefList][iRefIdxTemp] = pcCU->getMVPIdx(eRefPicList, uiPartAddr);
    31453140        aaiMvpNum[iRefList][iRefIdxTemp] = pcCU->getMVPNum(eRefPicList, uiPartAddr);
     
    31613156
    31623157        uiBitsTemp += m_auiMVPIdxCost[aaiMvpIdx[iRefList][iRefIdxTemp]][AMVP_MAX_NUM_CANDS];
    3163        
     3158
    31643159#if GPB_SIMPLE_UNI
    31653160        if ( iRefList == 1 )    // list 1
Note: See TracChangeset for help on using the changeset viewer.