Changeset 1311 in SHVCSoftware for branches/SHM-dev/source/Lib
- Timestamp:
- 21 Jul 2015, 01:30:10 (9 years ago)
- Location:
- branches/SHM-dev/source/Lib/TLibEncoder
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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.