Changeset 504 in 3DVCSoftware for branches/HTM-DEV-0.3-dev2/source/App/TAppEncoder
- Timestamp:
- 28 Jun 2013, 03:51:50 (12 years ago)
- 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 505 505 #endif 506 506 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 507 513 // Coding tools 508 514 ("AMP", m_enableAMP, true, "Enable asymmetric motion partitions") … … 1400 1406 xConfirmPara( m_maxNumMergeCand < 1, "MaxNumMergeCand must be 1 or greater."); 1401 1407 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 1402 1412 1403 1413 #if ADAPTIVE_QP_SELECTION … … 2294 2304 printf("IvMvPred:%d ", m_ivMvPredFlag ); 2295 2305 #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 2296 2312 #if H_3D_NBDV_REF 2297 2313 printf("DepthRefinement:%d ", m_depthRefinementFlag ); -
branches/HTM-DEV-0.3-dev2/source/App/TAppEncoder/TAppEncCfg.h
r486 r504 88 88 #if H_3D_IV_MERGE 89 89 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 90 97 #endif 91 98 #if H_3D_NBDV_REF -
branches/HTM-DEV-0.3-dev2/source/App/TAppEncoder/TAppEncTop.cpp
r486 r504 125 125 #endif 126 126 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 127 135 #endif 128 136 … … 169 177 m_cTEncTop.setDWeight ( isDepth ? m_iDWeight : 0 ); 170 178 #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 171 187 #endif // H_3D 172 188
Note: See TracChangeset for help on using the changeset viewer.