[x265] [PATCH] ratecontrol: to set B-ref frame QP as Lower then B-Frame QP for RC with CQP mode
gopu at multicorewareinc.com
gopu at multicorewareinc.com
Fri Feb 14 02:16:43 CET 2014
# HG changeset patch
# User Gopu Govindaswamy
# Date 1392340582 28800
# Thu Feb 13 17:16:22 2014 -0800
# Node ID e7ac7aef96363766ab1875350c3dd1af0fa756ed
# Parent 19d7752a4f9ca0863ea5efea80a040bae022be2b
ratecontrol: to set B-ref frame QP as Lower then B-Frame QP for RC with CQP mode
diff -r 19d7752a4f9c -r e7ac7aef9636 source/encoder/ratecontrol.cpp
--- a/source/encoder/ratecontrol.cpp Wed Feb 12 00:35:27 2014 -0600
+++ b/source/encoder/ratecontrol.cpp Thu Feb 13 17:16:22 2014 -0800
@@ -393,7 +393,10 @@
}
else //CQP
{
- qp = qpConstant[sliceType];
+ if (sliceType == B_SLICE && curSlice->isReferenced())
+ qp = (qpConstant[B_SLICE] + qpConstant[P_SLICE]) / 2;
+ else
+ qp = qpConstant[sliceType];
}
if (sliceType != B_SLICE)
More information about the x265-devel
mailing list