Changeset 1406 in SHVCSoftware for branches/SHM-dev/source/App


Ignore:
Timestamp:
4 Aug 2015, 04:17:29 (9 years ago)
Author:
seregin
Message:

port rev 4559

Location:
branches/SHM-dev/source/App/TAppEncoder
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp

    r1405 r1406  
    977977  Int tmpWeightedPredictionMethod;
    978978  Int tmpFastInterSearchMode;
     979  Int tmpMotionEstimationSearchMethod;
    979980  string inputColourSpaceConvert;
    980981#if SVC_EXTENSION
     
    12831284  // motion search options
    12841285  ("DisableIntraInInter",                             m_bDisableIntraPUsInInterSlices,                  false, "Flag to disable intra PUs in inter slices")
    1285   ("FastSearch",                                      m_iFastSearch,                                        1, "0:Full search  1:Diamond  2:PMVFAST")
     1286  ("FastSearch",                                      tmpMotionEstimationSearchMethod,  Int(MESEARCH_DIAMOND), "0:Full search 1:Diamond 2:Selective")
    12861287  ("SearchRange,-sr",                                 m_iSearchRange,                                      96, "Motion search range")
    12871288  ("BipredSearchRange",                               m_bipredSearchRange,                                  4, "Motion search range for bipred refinement")
     
    20452046  m_fastInterSearchMode = FastInterSearchMode(tmpFastInterSearchMode);
    20462047
     2048  assert(tmpMotionEstimationSearchMethod>=0 && tmpMotionEstimationSearchMethod<MESEARCH_NUMBER_OF_METHODS);
     2049  if (tmpMotionEstimationSearchMethod<0 || tmpMotionEstimationSearchMethod>=MESEARCH_NUMBER_OF_METHODS)
     2050  {
     2051    exit(EXIT_FAILURE);
     2052  }
     2053  m_motionEstimationSearchMethod=MESearchMethod(tmpMotionEstimationSearchMethod);
     2054
    20472055#if !SVC_EXTENSION
    20482056  if (extendedProfile >= 1000 && extendedProfile <= 12316)
     
    32203228  xConfirmPara( m_loopFilterBetaOffsetDiv2 < -6 || m_loopFilterBetaOffsetDiv2 > 6,        "Loop Filter Beta Offset div. 2 exceeds supported range (-6 to 6)");
    32213229  xConfirmPara( m_loopFilterTcOffsetDiv2 < -6 || m_loopFilterTcOffsetDiv2 > 6,            "Loop Filter Tc Offset div. 2 exceeds supported range (-6 to 6)");
    3222   xConfirmPara( m_iFastSearch < 0 || m_iFastSearch > 2,                                     "Fast Search Mode is not supported value (0:Full search  1:Diamond  2:PMVFAST)" );
    32233230  xConfirmPara( m_iSearchRange < 0 ,                                                        "Search Range must be more than 0" );
    32243231  xConfirmPara( m_bipredSearchRange < 0 ,                                                   "Bi-prediction refinement search range must be more than 0" );
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.h

    r1405 r1406  
    286286  Int       m_rdPenalty;                                      ///< RD-penalty for 32x32 TU for intra in non-intra slices (0: no RD-penalty, 1: RD-penalty, 2: maximum RD-penalty)
    287287  Bool      m_bDisableIntraPUsInInterSlices;                  ///< Flag for disabling intra predicted PUs in inter slices.
    288   Int       m_iFastSearch;                                    ///< ME mode, 0 = full, 1 = diamond, 2 = PMVFAST
     288  MESearchMethod m_motionEstimationSearchMethod;
    289289  Bool      m_bRestrictMESampling;                            ///< Restrict sampling for the Selective ME
    290290  Int       m_iSearchRange;                                   ///< ME search range
  • branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp

    r1405 r1406  
    562562  //====== Motion search ========
    563563  m_cTEncTop.setDisableIntraPUsInInterSlices                      ( m_bDisableIntraPUsInInterSlices );
    564   m_cTEncTop.setFastSearch                                        ( m_iFastSearch  );
     564  m_cTEncTop.setMotionEstimationSearchMethod                      ( m_motionEstimationSearchMethod  );
    565565  m_cTEncTop.setSearchRange                                       ( m_iSearchRange );
    566566  m_cTEncTop.setBipredSearchRange                                 ( m_bipredSearchRange );
Note: See TracChangeset for help on using the changeset viewer.