[x265] [PATCH] ratecontrol: do not low-clip first I frame with ABR
Steve Borho
steve at borho.org
Mon May 12 13:51:40 CEST 2014
# HG changeset patch
# User Steve Borho <steve at borho.org>
# Date 1399895476 18000
# Mon May 12 06:51:16 2014 -0500
# Node ID 3cf70d49bf00b3ef9cb56dd9c3c797a84fd53ecf
# Parent 8b75aa2cc06d70fa7afe03369b3e308ef25b0718
ratecontrol: do not low-clip first I frame with ABR
diff -r 8b75aa2cc06d -r 3cf70d49bf00 source/encoder/ratecontrol.cpp
--- a/source/encoder/ratecontrol.cpp Mon May 12 06:49:53 2014 -0500
+++ b/source/encoder/ratecontrol.cpp Mon May 12 06:51:16 2014 -0500
@@ -584,10 +584,9 @@
}
else if (framesDone == 0 && !isVbv)
{
- /* for ABR alone, clipe the first I frame qp within the range (ABR_INIT_QP_MIN, ABR_INIT_QP_MAX) to ensure quality. */
- double lqmin = x265_qp2qScale(ABR_INIT_QP_MIN) / lstep;
+ /* for ABR alone, clip the first I frame qp */
double lqmax = x265_qp2qScale(ABR_INIT_QP_MAX) * lstep;
- q = Clip3(lqmin, lqmax, q);
+ q = X265_MIN(lqmax, q);
}
q = Clip3(MIN_QPSCALE, MAX_MAX_QPSCALE, q);
More information about the x265-devel
mailing list