Changeset 1401 in SHVCSoftware for branches/SHM-dev/source/Lib/TLibEncoder
- Timestamp:
- 4 Aug 2015, 03:54:15 (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
r1400 r1401 180 180 Bool m_bClipForBiPredMeEnabled; 181 181 Bool m_bFastMEAssumingSmootherMVEnabled; 182 Int m_minSearchWindow; 182 183 183 184 //====== Quality control ======== … … 566 567 Void setClipForBiPredMeEnabled ( Bool b ) { m_bClipForBiPredMeEnabled = b; } 567 568 Void setFastMEAssumingSmootherMVEnabled ( Bool b ) { m_bFastMEAssumingSmootherMVEnabled = b; } 569 Void setMinSearchWindow ( Int i ) { m_minSearchWindow = i; } 568 570 569 571 //====== Quality control ======== … … 633 635 634 636 //==== Motion search ======== 635 Bool getDisableIntraPUsInInterSlices () const { return m_bDisableIntraPUsInInterSlices; } 636 Int getFastSearch () const { return m_iFastSearch; } 637 Int getSearchRange () const { return m_iSearchRange; } 638 Bool getClipForBiPredMeEnabled () const { return m_bClipForBiPredMeEnabled; } 639 Bool getFastMEAssumingSmootherMVEnabled ( ) const { return m_bFastMEAssumingSmootherMVEnabled; } 637 Bool getDisableIntraPUsInInterSlices () const { return m_bDisableIntraPUsInInterSlices; } 638 Int getFastSearch () const { return m_iFastSearch; } 639 Int getSearchRange () const { return m_iSearchRange; } 640 Bool getClipForBiPredMeEnabled () const { return m_bClipForBiPredMeEnabled; } 641 Bool getFastMEAssumingSmootherMVEnabled () const { return m_bFastMEAssumingSmootherMVEnabled; } 642 Int getMinSearchWindow () const { return m_minSearchWindow; } 640 643 641 644 //==== Quality control ======== … … 654 657 Void setUseSelectiveRDOQ ( Bool b ) { m_useSelectiveRDOQ = b; } 655 658 #endif 656 Void setRDpenalty ( UInt b ) { m_rdPenalty = b; }659 Void setRDpenalty ( UInt b ) { m_rdPenalty = b; } 657 660 Void setUseFastEnc ( Bool b ) { m_bUseFastEnc = b; } 658 661 Void setUseEarlyCU ( Bool b ) { m_bUseEarlyCU = b; } 659 662 Void setUseFastDecisionForMerge ( Bool b ) { m_useFastDecisionForMerge = b; } 660 Void setUseCbfFastMode ( Bool b ) { m_bUseCbfFastMode = b; }663 Void setUseCbfFastMode ( Bool b ) { m_bUseCbfFastMode = b; } 661 664 Void setUseEarlySkipDetection ( Bool b ) { m_useEarlySkipDetection = b; } 662 665 Void setUseConstrainedIntraPred ( Bool b ) { m_bUseConstrainedIntraPred = b; } -
branches/SHM-dev/source/Lib/TLibEncoder/TEncSlice.cpp
r1400 r1401 216 216 217 217 // For SAO 218 slice 218 slice->setLambdas( dLambdas ); 219 219 } 220 220 … … 617 617 { 618 618 iRefPOC = pcSlice->getRefPic(e, iRefIdx)->getPOC(); 619 Int iNewSR = Clip3(8, iMaxSR, (iMaxSR*ADAPT_SR_SCALE*abs(iCurrPOC - iRefPOC)+iOffset)/iGOPSize);620 m_pcPredSearch->setAdaptiveSearchRange(iDir, iRefIdx, iNewSR);619 Int newSearchRange = Clip3(m_pcCfg->getMinSearchWindow(), iMaxSR, (iMaxSR*ADAPT_SR_SCALE*abs(iCurrPOC - iRefPOC)+iOffset)/iGOPSize); 620 m_pcPredSearch->setAdaptiveSearchRange(iDir, iRefIdx, newSearchRange); 621 621 } 622 622 }
Note: See TracChangeset for help on using the changeset viewer.