Changeset 1311 in SHVCSoftware
- Timestamp:
- 21 Jul 2015, 01:30:10 (9 years ago)
- Location:
- branches/SHM-dev/source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.cpp
r1301 r1311 1278 1278 1279 1279 // motion search options 1280 ("DisableIntraInInter", m_bDisableIntraPUsInInterSlices, false, "Flag to disable intra PUs in inter slices") 1280 1281 ("FastSearch", m_iFastSearch, 1, "0:Full search 1:Diamond 2:PMVFAST") 1281 1282 ("SearchRange,-sr", m_iSearchRange, 96, "Motion search range") -
branches/SHM-dev/source/App/TAppEncoder/TAppEncCfg.h
r1298 r1311 272 272 #endif 273 273 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) 274 Bool m_bDisableIntraPUsInInterSlices; ///< Flag for disabling intra predicted PUs in inter slices. 274 275 Int m_iFastSearch; ///< ME mode, 0 = full, 1 = diamond, 2 = PMVFAST 275 276 Int m_iSearchRange; ///< ME search range -
branches/SHM-dev/source/App/TAppEncoder/TAppEncTop.cpp
r1306 r1311 406 406 407 407 //====== Motion search ======== 408 m_acTEncTop[layer].setDisableIntraPUsInInterSlices ( m_bDisableIntraPUsInInterSlices ); 408 409 m_acTEncTop[layer].setFastSearch ( m_iFastSearch ); 409 410 m_acTEncTop[layer].setSearchRange ( m_iSearchRange ); … … 842 843 843 844 //====== Motion search ======== 845 m_cTEncTop.setDisableIntraPUsInInterSlices ( m_bDisableIntraPUsInInterSlices ); 844 846 m_cTEncTop.setFastSearch ( m_iFastSearch ); 845 847 m_cTEncTop.setSearchRange ( m_iSearchRange ); -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCfg.h
r1298 r1311 169 169 170 170 //====== Motion search ======== 171 Bool m_bDisableIntraPUsInInterSlices; 171 172 Int m_iFastSearch; // 0:Full search 1:Diamond 2:PMVFAST 172 173 Int m_iSearchRange; // 0:Full frame … … 541 542 542 543 //====== Motion search ======== 544 Void setDisableIntraPUsInInterSlices ( Bool b ) { m_bDisableIntraPUsInInterSlices = b; } 543 545 Void setFastSearch ( Int i ) { m_iFastSearch = i; } 544 546 Void setSearchRange ( Int i ) { m_iSearchRange = i; } … … 606 608 607 609 //==== Motion search ======== 610 Bool getDisableIntraPUsInInterSlices () const { return m_bDisableIntraPUsInInterSlices; } 608 611 Int getFastSearch () { return m_iFastSearch; } 609 612 Int getSearchRange () { return m_iSearchRange; } -
branches/SHM-dev/source/Lib/TLibEncoder/TEncCu.cpp
r1307 r1311 710 710 Double intraCost = 0.0; 711 711 712 if((rpcBestCU->getSlice()->getSliceType() == I_SLICE) ||712 if((rpcBestCU->getSlice()->getSliceType() == I_SLICE) || 713 713 #if ENCODER_FAST_MODE 714 rpcBestCU->getPredictionMode(0) == NUMBER_OF_PREDICTION_MODES || // if there is no valid inter prediction 715 !testInter || 716 #endif 717 (rpcBestCU->getCbf( 0, COMPONENT_Y ) != 0) || 718 ((rpcBestCU->getCbf( 0, COMPONENT_Cb ) != 0) && (numberValidComponents > COMPONENT_Cb)) || 719 ((rpcBestCU->getCbf( 0, COMPONENT_Cr ) != 0) && (numberValidComponents > COMPONENT_Cr)) ) // avoid very complex intra if it is unlikely 714 rpcBestCU->getPredictionMode(0) == NUMBER_OF_PREDICTION_MODES || // if there is no valid inter prediction 715 !testInter || 716 #endif 717 ((!m_pcEncCfg->getDisableIntraPUsInInterSlices()) && ( 718 (rpcBestCU->getCbf( 0, COMPONENT_Y ) != 0) || 719 ((rpcBestCU->getCbf( 0, COMPONENT_Cb ) != 0) && (numberValidComponents > COMPONENT_Cb)) || 720 ((rpcBestCU->getCbf( 0, COMPONENT_Cr ) != 0) && (numberValidComponents > COMPONENT_Cr)) // avoid very complex intra if it is unlikely 721 ))) 720 722 { 721 723 xCheckRDCostIntra( rpcBestCU, rpcTempCU, intraCost, SIZE_2Nx2N DEBUG_STRING_PASS_INTO(sDebug) );
Note: See TracChangeset for help on using the changeset viewer.