X-Git-Url: https://git.piment-noir.org/?p=deb_x265.git;a=blobdiff_plain;f=source%2Fencoder%2Fratecontrol.h;h=13e1701e9bde86af245399601bbf7aeb56ef4ced;hp=5b861473a4e156c5d0785540c395a0d667fcfcf3;hb=b53f7c52d8280ab63876efd6eb292c21430ac607;hpb=5c9b45285dd64723ad1dac380b98a7b1f3095674 diff --git a/source/encoder/ratecontrol.h b/source/encoder/ratecontrol.h index 5b86147..13e1701 100644 --- a/source/encoder/ratecontrol.h +++ b/source/encoder/ratecontrol.h @@ -233,11 +233,10 @@ public: void initHRD(SPS* sps); int rateControlSliceType(int frameNum); bool cuTreeReadFor2Pass(Frame* curFrame); + double tuneAbrQScaleFromFeedback(double qScale); protected: - static const double s_amortizeFraction; - static const int s_amortizeFrames; static const int s_slidingWindowFrames; static const char *s_defaultStatFileName; @@ -245,6 +244,8 @@ protected: int m_partialResidualFrames; int m_residualCost; int m_partialResidualCost; + int m_amortizeFrames; + double m_amortizeFraction; double getQScale(RateControlEntry *rce, double rateFactor); double rateEstimateQscale(Frame* pic, RateControlEntry *rce); // main logic for calculating QP based on ABR