Changeset 197 in 3DVCSoftware for branches/HTM-5.0-Sony/source/App


Ignore:
Timestamp:
28 Nov 2012, 07:21:58 (12 years ago)
Author:
sony
Message:

Add DV_V_RESTRICTION_B0037 macro and two config parameters (DisparitySearchRangeRestriction, VerticalDisparitySearchRange).

It enables to restrict disparity vector range at encoder on motion search.
When users want to try the option, please set DisparitySearchRangeRestriction to 1 and set VerticalDisparitySearchRange to any positive integer value to be tested. The restriction is disabled by default.

Location:
branches/HTM-5.0-Sony/source/App/TAppEncoder
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-5.0-Sony/source/App/TAppEncoder/TAppEncCfg.cpp

    r195 r197  
    276276  ("FastSearch", m_iFastSearch, 1, "0:Full search  1:Diamond  2:PMVFAST")
    277277  ("SearchRange,-sr",m_iSearchRange, 96, "motion search range")
     278#if DV_V_RESTRICTION_B0037
     279  ("DisparitySearchRangeRestriction",m_bUseDisparitySearchRangeRestriction, false, "restrict disparity search range")
     280  ("VerticalDisparitySearchRange",m_iVerticalDisparitySearchRange, 56, "vertical disparity search range")
     281#endif
    278282  ("BipredSearchRange", m_bipredSearchRange, 4, "motion search range for bipred refinement")
    279283  ("HadamardME", m_bUseHADME, true, "hadamard ME for fractional-pel")
     
    856860  xConfirmPara( m_iFastSearch < 0 || m_iFastSearch > 2,                                     "Fast Search Mode is not supported value (0:Full search  1:Diamond  2:PMVFAST)" );
    857861  xConfirmPara( m_iSearchRange < 0 ,                                                        "Search Range must be more than 0" );
     862#if DV_V_RESTRICTION_B0037
     863  xConfirmPara( m_iVerticalDisparitySearchRange <= 0 ,                                      "Vertical Disparity Search Range must be more than 0" );
     864#endif
    858865  xConfirmPara( m_bipredSearchRange < 0 ,                                                   "Search Range must be more than 0" );
    859866  xConfirmPara( m_iMaxDeltaQP > 7,                                                          "Absolute Delta QP exceeds supported range (0 to 7)" );
     
    16011608  printf("Min PCM size                 : %d\n", 1 << m_uiPCMLog2MinSize);
    16021609  printf("Motion search range          : %d\n", m_iSearchRange );
     1610#if DV_V_RESTRICTION_B0037
     1611  printf("Disp search range restriction: %d\n", m_bUseDisparitySearchRangeRestriction );
     1612  printf("Vertical disp search range   : %d\n", m_iVerticalDisparitySearchRange );
     1613#endif
    16031614  printf("Intra period                 : %d\n", m_iIntraPeriod );
    16041615  printf("Decoding refresh type        : %d\n", m_iDecodingRefreshType );
  • branches/HTM-5.0-Sony/source/App/TAppEncoder/TAppEncCfg.h

    r195 r197  
    203203  Int       m_iFastSearch;                                    ///< ME mode, 0 = full, 1 = diamond, 2 = PMVFAST
    204204  Int       m_iSearchRange;                                   ///< ME search range
     205#if DV_V_RESTRICTION_B0037
     206  Bool      m_bUseDisparitySearchRangeRestriction;            ///< restrict vertical search range for inter-view prediction
     207  Int       m_iVerticalDisparitySearchRange;                  ///< ME vertical search range for inter-view prediction
     208#endif
    205209  Int       m_bipredSearchRange;                              ///< ME search range for bipred refinement
    206210  Bool      m_bUseFastEnc;                                    ///< flag for using fast encoder setting
  • branches/HTM-5.0-Sony/source/App/TAppEncoder/TAppEncTop.cpp

    r195 r197  
    181181    m_acTEncTopList[iViewIdx]->setSearchRange                  ( m_iSearchRange );
    182182    m_acTEncTopList[iViewIdx]->setBipredSearchRange            ( m_bipredSearchRange );
    183 
     183#if DV_V_RESTRICTION_B0037
     184    m_acTEncTopList[iViewIdx]->setUseDisparitySearchRangeRestriction ( m_bUseDisparitySearchRangeRestriction );
     185    m_acTEncTopList[iViewIdx]->setVerticalDisparitySearchRange( m_iVerticalDisparitySearchRange );
     186#endif
    184187  //====== Quality control ========
    185188    m_acTEncTopList[iViewIdx]->setMaxDeltaQP                   ( m_iMaxDeltaQP  );
     
    488491      m_acTEncDepthTopList[iViewIdx]->setSearchRange                  ( m_iSearchRange );
    489492      m_acTEncDepthTopList[iViewIdx]->setBipredSearchRange            ( m_bipredSearchRange );
    490 
     493#if DV_V_RESTRICTION_B0037
     494      m_acTEncDepthTopList[iViewIdx]->setUseDisparitySearchRangeRestriction ( m_bUseDisparitySearchRangeRestriction );
     495      m_acTEncDepthTopList[iViewIdx]->setVerticalDisparitySearchRange( m_iVerticalDisparitySearchRange );
     496#endif
    491497      //====== Quality control ========
    492498      m_acTEncDepthTopList[iViewIdx]->setMaxDeltaQP                   ( m_iMaxDeltaQP  );
Note: See TracChangeset for help on using the changeset viewer.