Changeset 1166 in 3DVCSoftware


Ignore:
Timestamp:
16 Mar 2015, 13:37:35 (10 years ago)
Author:
tech
Message:

Fixed erroneous #ifdefs.

Location:
branches/HTM-13.1-dev0/source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-13.1-dev0/source/App/TAppEncoder/TAppEncCfg.cpp

    r1164 r1166  
    477477  ("FastSearch",              m_iFastSearch,                1, "0:Full search  1:Diamond  2:PMVFAST")
    478478  ("SearchRange,-sr",         m_iSearchRange,              96, "Motion search range")
    479 #ifdef SONY_MV_V_CONST_C0078
     479#if SONY_MV_V_CONST_C0078
    480480  ("DispSearchRangeRestriction",  m_bUseDisparitySearchRangeRestriction, false, "restrict disparity search range")
    481481  ("VerticalDispSearchRange",     m_iVerticalDisparitySearchRange, 56, "vertical disparity search range")
     
    15901590  xConfirmPara( m_iSearchRange < 0 ,                                                        "Search Range must be more than 0" );
    15911591  xConfirmPara( m_bipredSearchRange < 0 ,                                                   "Search Range must be more than 0" );
    1592 #ifdef SONY_MV_V_CONST_C0078
     1592#if SONY_MV_V_CONST_C0078
    15931593  xConfirmPara( m_iVerticalDisparitySearchRange <= 0 ,                                      "Vertical Disparity Search Range must be more than 0" );
    15941594#endif
     
    24642464  printf("Min PCM size                 : %d\n", 1 << m_uiPCMLog2MinSize);
    24652465  printf("Motion search range          : %d\n", m_iSearchRange );
    2466 #ifdef SONY_MV_V_CONST_C0078
     2466#if SONY_MV_V_CONST_C0078
    24672467  printf("Disp search range restriction: %d\n", m_bUseDisparitySearchRangeRestriction );
    24682468  printf("Vertical disp search range   : %d\n", m_iVerticalDisparitySearchRange );
  • branches/HTM-13.1-dev0/source/App/TAppEncoder/TAppEncCfg.h

    r1164 r1166  
    289289  Int       m_iSearchRange;                                   ///< ME search range
    290290  Int       m_bipredSearchRange;                              ///< ME search range for bipred refinement
    291 #ifdef SONY_MV_V_CONST_C0078
     291#if SONY_MV_V_CONST_C0078
    292292  Bool      m_bUseDisparitySearchRangeRestriction;            ///< restrict vertical search range for inter-view prediction
    293293  Int       m_iVerticalDisparitySearchRange;                  ///< ME vertical search range for inter-view prediction
  • branches/HTM-13.1-dev0/source/Lib/TLibEncoder/TEncCfg.h

    r1164 r1166  
    180180  Int       m_iSearchRange;                     //  0:Full frame
    181181  Int       m_bipredSearchRange;
    182 #ifdef SONY_MV_V_CONST_C0078
     182#if SONY_MV_V_CONST_C0078
    183183  Bool      m_bUseDisparitySearchRangeRestriction;
    184184  Int       m_iVerticalDisparitySearchRange;
     
    505505  Void      setSearchRange                  ( Int   i )      { m_iSearchRange = i; }
    506506  Void      setBipredSearchRange            ( Int   i )      { m_bipredSearchRange = i; }
    507 #ifdef SONY_MV_V_CONST_C0078
     507#if SONY_MV_V_CONST_C0078
    508508  Void      setUseDisparitySearchRangeRestriction ( Bool   b )      { m_bUseDisparitySearchRangeRestriction = b; }
    509509  Void      setVerticalDisparitySearchRange ( Int   i )      { m_iVerticalDisparitySearchRange = i; }
     
    561561  Int       getFastSearch                   ()      { return  m_iFastSearch; }
    562562  Int       getSearchRange                  ()      { return  m_iSearchRange; }
    563 #ifdef SONY_MV_V_CONST_C0078
     563#if SONY_MV_V_CONST_C0078
    564564  Bool      getUseDisparitySearchRangeRestriction ()      { return  m_bUseDisparitySearchRangeRestriction; }
    565565  Int       getVerticalDisparitySearchRange ()            { return  m_iVerticalDisparitySearchRange; }
  • branches/HTM-13.1-dev0/source/Lib/TLibEncoder/TEncSearch.cpp

    r1164 r1166  
    55005500  TComMv      cMvPred = *pcMvPred;
    55015501 
    5502 #ifdef SONY_MV_V_CONST_C0078
     5502#if SONY_MV_V_CONST_C0078
    55035503  Bool bMv_VRng_Restricted = false;
    55045504  if( m_pcEncCfg->getUseDisparitySearchRangeRestriction()
     
    55675567
    55685568
    5569 #ifdef SONY_MV_V_CONST_C0078
     5569#if SONY_MV_V_CONST_C0078
    55705570Void TEncSearch::xSetSearchRange ( TComDataCU* pcCU, TComMv& cMvPred, Int iSrchRng, TComMv& rcMvSrchRngLT, TComMv& rcMvSrchRngRB, Bool bMv_VRng_Restricted, Int iVerDispSrchRng )
    55715571#else
     
    55875587  rcMvSrchRngRB.setVer( cTmpMvPred.getVer() + (iSrchRng << iMvShift) );
    55885588 
    5589 #ifdef SONY_MV_V_CONST_C0078
     5589#if SONY_MV_V_CONST_C0078
    55905590  if ( bMv_VRng_Restricted ) {
    55915591    Int iRestrictMvVrange = ( iVerDispSrchRng - 1 ) << iMvShift ; // -1 to consider subpel search
  • branches/HTM-13.1-dev0/source/Lib/TLibEncoder/TEncSearch.h

    r1164 r1166  
    480480                                    UInt&         ruiSAD );
    481481 
    482 #ifdef SONY_MV_V_CONST_C0078
     482#if SONY_MV_V_CONST_C0078
    483483  Void xSetSearchRange           (  TComDataCU* pcCU,
    484484                                    TComMv& cMvPred,
Note: See TracChangeset for help on using the changeset viewer.