[x265] Can we use binary search for q in clipQscale
chen
chenm003 at 163.com
Fri Oct 9 17:21:02 CEST 2015
In the RateControl::clipQscale(), the Q just correlation to predictSize(x, Q, y).
In here, x and y is constant, so we can use other algorithm to get estimate value of Q faster than search.
btw: below code also constant in every iteration
int type = curFrame->m_lowres.plannedType[j];
type = IS_X265_TYPE_I(type) ? I_SLICE : IS_X265_TYPE_B(type) ? B_SLICE : P_SLICE;
int predType = getPredictorType(curFrame->m_lowres.plannedType[j], type);
At 2015-10-09 17:24:14,"Ximing Cheng" <chengximing1989 at gmail.com> wrote:
In RateControl::clipQscale(Frame* curFrame, RateControlEntry* rce, double q)
for (int iterations = 0; iterations < 1000 && loopTerminate != 3; iterations++)
to find a valid q which makes the buffer at least 50% filled but no more than 80% fulled, the code use a iteration for at most 1000 times.
Is it suitable here to use binary search for q to reduce the iterations?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x265-devel/attachments/20151009/3c32d3fb/attachment-0001.html>
More information about the x265-devel
mailing list