Ignore:
Timestamp:
28 Jun 2013, 03:51:50 (12 years ago)
Author:
zhang
Message:

Merge Dev2.a to Dev2 and simulation results updated

Location:
branches/HTM-DEV-0.3-dev2/source/App/TAppEncoder
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/HTM-DEV-0.3-dev2/source/App/TAppEncoder/TAppEncCfg.cpp

    r499 r504  
    505505#endif
    506506
     507#if H_3D_ARP
     508  ("AdvMultiviewResPred",      m_uiUseAdvResPred,           (UInt)1, "Usage of Advanced Residual Prediction" )
     509#endif
     510#if H_3D_IC
     511  ("IlluCompEnable",           m_abUseIC, std::vector<Bool>(2, true), "Enable illumination compensation")
     512#endif
    507513  // Coding tools
    508514  ("AMP",                      m_enableAMP,                 true,  "Enable asymmetric motion partitions")
     
    14001406  xConfirmPara(  m_maxNumMergeCand < 1,  "MaxNumMergeCand must be 1 or greater.");
    14011407  xConfirmPara(  m_maxNumMergeCand > 5,  "MaxNumMergeCand must be 5 or smaller.");
     1408
     1409#if H_3D_ARP
     1410  xConfirmPara( ( 0 != m_uiUseAdvResPred ) &&  ( 1 != m_uiUseAdvResPred ), "UseAdvResPred must be 0 or 1." );
     1411#endif
    14021412
    14031413#if ADAPTIVE_QP_SELECTION
     
    22942304  printf("IvMvPred:%d ", m_ivMvPredFlag );
    22952305#endif
     2306#if H_3D_ARP
     2307  printf(" ARP:%d  ", m_uiUseAdvResPred  );
     2308#endif
     2309#if H_3D_IC
     2310  printf( "IlluCompEnable: %d %d ", m_abUseIC[0] ? 1 : 0, m_abUseIC[1] ? 1 : 0 );
     2311#endif
    22962312#if H_3D_NBDV_REF
    22972313  printf("DepthRefinement:%d ", m_depthRefinementFlag ); 
  • branches/HTM-DEV-0.3-dev2/source/App/TAppEncoder/TAppEncCfg.h

    r486 r504  
    8888#if H_3D_IV_MERGE
    8989  Bool                   m_ivMvPredFlag;                      ///< Interview motion vector prediction
     90#endif
     91#if H_3D_ARP                                                  /// < flag and number of weighting factors in ARP
     92  UInt                   m_uiUseAdvResPred;
     93  UInt                   m_uiARPStepNum;
     94#endif
     95#if H_3D_IC
     96  vector<Bool> m_abUseIC;                                    ///< flag for using illumination compensation for inter-view prediction
    9097#endif
    9198#if H_3D_NBDV_REF
  • branches/HTM-DEV-0.3-dev2/source/App/TAppEncoder/TAppEncTop.cpp

    r486 r504  
    125125#endif
    126126  m_ivPicLists.setVPS      ( &vps );
     127#if H_3D_ARP
     128  for(Int i = 0; i < m_numberOfLayers; i++)
     129  {
     130    Bool isDepth = vps.getDepthId( i );
     131    vps.setUseAdvRP        ( i, ( isDepth || 0==i ) ? 0 : m_uiUseAdvResPred );
     132    vps.setARPStepNum      ( i, ( isDepth || 0==i ) ? 1 : H_3D_ARP_WFNR     );
     133  }
     134#endif 
    127135#endif
    128136
     
    169177    m_cTEncTop.setDWeight                      ( isDepth ? m_iDWeight             : 0     );
    170178#endif // H_3D_VSO
     179#if H_3D_ARP
     180    //====== Advanced Inter-view Residual Prediction =========
     181    m_cTEncTop.setUseAdvRP                     ( ( isDepth || 0==layer ) ? 0 : m_uiUseAdvResPred );
     182    m_cTEncTop.setARPStepNum                   ( ( isDepth || 0==layer ) ? 1 : H_3D_ARP_WFNR     );
     183#endif
     184#if H_3D_IC
     185    m_cTEncTop.setUseIC                        ( vps.getViewIndex( layer ) == 0 ? false : m_abUseIC[isDepth ? 1 : 0] );
     186#endif
    171187#endif // H_3D
    172188
Note: See TracChangeset for help on using the changeset viewer.