Changeset 74 in SHVCSoftware for branches/HM-10.0-dev-SHM/source/Lib


Ignore:
Timestamp:
11 Mar 2013, 22:57:17 (12 years ago)
Author:
seregin
Message:

remove REF_IDX_ME_AROUND_ZEROMV

Location:
branches/HM-10.0-dev-SHM/source/Lib
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TComPic.cpp

    r71 r74  
    7070, m_bSpatialEnhLayer( false )
    7171, m_pcFullPelBaseRec( NULL )
    72 #if REF_IDX_ME_AROUND_ZEROMV || REF_IDX_ME_ZEROMV || ENCODER_FAST_MODE || REF_IDX_MFM
     72#if REF_IDX_ME_ZEROMV || ENCODER_FAST_MODE || REF_IDX_MFM
    7373, m_bIsILR                                (false)
    7474#endif
  • branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TComPic.h

    r71 r74  
    9494  Bool                  m_bSpatialEnhLayer;       // whether current layer is a spatial enhancement layer,
    9595  TComPicYuv*           m_pcFullPelBaseRec;    // upsampled base layer recontruction for difference domain inter prediction
    96 #if REF_IDX_ME_AROUND_ZEROMV || REF_IDX_ME_ZEROMV || ENCODER_FAST_MODE || REF_IDX_MFM
     96#if REF_IDX_ME_ZEROMV || ENCODER_FAST_MODE || REF_IDX_MFM
    9797  Bool                  m_bIsILR;                 //  Is ILR picture
    9898#endif
     
    126126  TComPicYuv*   getFullPelBaseRec   ()  { return  m_pcFullPelBaseRec;  }
    127127#endif
    128 #if REF_IDX_ME_AROUND_ZEROMV || REF_IDX_ME_ZEROMV || ENCODER_FAST_MODE || REF_IDX_MFM
     128#if REF_IDX_ME_ZEROMV || ENCODER_FAST_MODE || REF_IDX_MFM
    129129  Void          setIsILR( Bool bIsILR)      {m_bIsILR = bIsILR;}
    130130  Bool          getIsILR()                  {return m_bIsILR;}
  • branches/HM-10.0-dev-SHM/source/Lib/TLibCommon/TypeDef.h

    r73 r74  
    7070
    7171#if REF_IDX_FRAMEWORK
    72 #define REF_IDX_ME_AROUND_ZEROMV         0      ///< added ME around zero MV for inter-layer reference picture
    7372#define REF_IDX_ME_ZEROMV                1      ///< L0051: use zero motion for inter-layer reference picture (without fractional ME)
    7473#define ENCODER_FAST_MODE                1      ///< L0174: enable encoder fast mode. TestMethod 1 is enabled by setting to 1 and TestMethod 2 is enable by setting to 2. By default it is set to 1.
  • branches/HM-10.0-dev-SHM/source/Lib/TLibDecoder/TDecTop.cpp

    r62 r74  
    159159        m_cIlpPic[j]->create(pcSPS->getPicWidthInLumaSamples(), pcSPS->getPicHeightInLumaSamples(), g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, true);
    160160#endif
    161 #if REF_IDX_ME_AROUND_ZEROMV || REF_IDX_ME_ZEROMV || REF_IDX_MFM
     161#if REF_IDX_ME_ZEROMV || REF_IDX_MFM
    162162        m_cIlpPic[j]->setIsILR(true);
    163163#endif
  • branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder/TEncSearch.cpp

    r54 r74  
    42074207  setWpScalingDistParam( pcCU, iRefIdxPred, eRefPicList );
    42084208  //  Do integer search
    4209 #if REF_IDX_ME_AROUND_ZEROMV || REF_IDX_ME_ZEROMV
    4210 #if REF_IDX_ME_AROUND_ZEROMV
    4211   if( pcCU->getSlice()->getRefPic(eRefPicList, iRefIdxPred )->getIsILR())  //ILR reference pic
    4212   {
    4213     xPatternSearchILR  ( pcCU, pcPatternKey, piRefY, iRefStride, rcMv, ruiCost );
    4214   }
    4215   else  //non ILR reference pic
    4216   {
    4217   if ( !m_iFastSearch || bBi )
    4218   {
    4219     xPatternSearch      ( pcPatternKey, piRefY, iRefStride, &cMvSrchRngLT, &cMvSrchRngRB, rcMv, ruiCost );
    4220   }
    4221   else
    4222   {
    4223     rcMv = *pcMvPred;
    4224     xPatternSearchFast  ( pcCU, pcPatternKey, piRefY, iRefStride, &cMvSrchRngLT, &cMvSrchRngRB, rcMv, ruiCost );
    4225     }
    4226   }
    4227 #endif
    42284209#if REF_IDX_ME_ZEROMV
    42294210  if( pcCU->getSlice()->getRefPic( eRefPicList, iRefIdxPred )->getIsILR())  //ILR reference pic
     
    42434224    }
    42444225  }
    4245 #endif
    42464226#else
    42474227  if ( !m_iFastSearch || bBi )
     
    61936173#endif
    61946174
    6195 #if REF_IDX_ME_AROUND_ZEROMV
    6196 //ILR integer pixel motion estimation search
    6197 //pcCU is CU pointer
    6198 //pcPatterney contains target PU infor
    6199 //piRefY is the PU at the same position as the source PU, but in the reference pic
    6200 //iRefStride is the reference stride
    6201 //rcMv output best integer MV
    6202 //ruiSAD outputs the SAD of best integer MV
    6203 Void TEncSearch::xPatternSearchILR( TComDataCU* pcCU, TComPattern* pcPatternKey, Pel* piRefY, Int iRefStride, TComMv& rcMv, UInt& ruiSAD )
    6204 {
    6205   Int      candMvX[5] = {0, -1, 1,  0, 0};
    6206   Int      candMvY[5] = {0,  0, 0, -1, 1};
    6207   Int      numCand    = 1;
    6208   Int      iBestX = 0;
    6209   Int      iBestY = 0;
    6210   Int      uiSadBest = MAX_UINT;
    6211   UInt     uiSad;
    6212 
    6213   Pel*  piRefSrch;
    6214 
    6215   //-- jclee for using the SAD function pointer
    6216   m_pcRdCost->setDistParam( pcPatternKey, piRefY, iRefStride,  m_cDistParam );
    6217 
    6218   // fast encoder decision: use subsampled SAD for integer ME
    6219   if ( m_pcEncCfg->getUseFastEnc() )
    6220   {
    6221     if ( m_cDistParam.iRows > 8 )
    6222     {
    6223       m_cDistParam.iSubShift = 1;
    6224     }
    6225   }
    6226 
    6227   for(Int candId = 0; candId < numCand; candId++)
    6228   {
    6229     piRefSrch         = piRefY + (candMvY[candId] * iRefStride) + candMvX[candId];
    6230     m_cDistParam.pCur = piRefSrch;
    6231 
    6232     setDistParamComp(0);
    6233    
    6234     uiSad = m_cDistParam.DistFunc( &m_cDistParam );  //SAD
    6235 
    6236     //motion cost
    6237     uiSad += m_pcRdCost->getCost( candMvX[candId], candMvY[candId] );  //SAD rdCost
    6238 
    6239     if(uiSad < uiSadBest)
    6240     {
    6241       uiSadBest = uiSad;
    6242       iBestX    = candMvX[candId];
    6243       iBestY    = candMvY[candId];
    6244     }
    6245   }
    6246 
    6247   rcMv.set( iBestX, iBestY );
    6248 
    6249   ruiSAD = uiSadBest - m_pcRdCost->getCost( iBestX, iBestY );
    6250   return;
    6251 }
    6252 #endif
    6253 
    62546175#if ENCODER_FAST_MODE
    62556176Bool TEncSearch::predInterSearchILRUni( TComDataCU* pcCU, TComYuv* pcOrgYuv, TComYuv*& rpcPredYuv, TComYuv*& rpcResiYuv, TComYuv*& rpcRecoYuv )
  • branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder/TEncSearch.h

    r54 r74  
    462462                                   ,Bool biPred
    463463                                   );
    464 #if REF_IDX_ME_AROUND_ZEROMV
    465   Void xPatternSearchILR         ( TComDataCU*    pcCU,
    466                                    TComPattern*   pcPatternKey,
    467                                    Pel*           piRefY,
    468                                    Int            iRefStride,
    469                                    TComMv&        rcMv,
    470                                    UInt&          ruiSAD );
    471 #endif
    472  
    473464#if REF_IDX_ME_ZEROMV
    474465  Void xPatternSearchFracDIFMv0  ( TComDataCU*   pcCU,
  • branches/HM-10.0-dev-SHM/source/Lib/TLibEncoder/TEncTop.cpp

    r71 r74  
    11271127        m_cIlpPic[j]->create(m_iSourceWidth, m_iSourceHeight, g_uiMaxCUWidth, g_uiMaxCUHeight, g_uiMaxCUDepth, conformanceWindow, defaultDisplayWindow, numReorderPics, true);
    11281128#endif
    1129 #if REF_IDX_ME_AROUND_ZEROMV || REF_IDX_ME_ZEROMV || ENCODER_FAST_MODE || REF_IDX_MFM
     1129#if REF_IDX_ME_ZEROMV || ENCODER_FAST_MODE || REF_IDX_MFM
    11301130        m_cIlpPic[j]->setIsILR(true);
    11311131#endif
Note: See TracChangeset for help on using the changeset viewer.