Lines Matching defs:qp
29 double QP2Qstep(int QP);
173 int qp;
246 /*compute the initial QP*/
270 qp = 35;
272 qp = 25;
274 qp = 20;
276 qp = 15;
277 rateCtrl->initQP = qp;
371 /* collect the necessary data: target bits, actual bits, mad and QP */
373 pMP->QP = video->QPy;
404 /* Mad based variable bit allocation + QP calculation with a new quadratic method */
423 /* current frame QP estimation */
433 prev_QP = pMP->pRDSamples[i][0].QP;
461 prev_QP = QP2Qstep(pMP->pRDSamples[j][0].QP);
468 prev_QP = QP2Qstep(pMP->pRDSamples[j][i].QP);
475 if (prev_mad > 0.001) // only when prev_mad is greater than 0, otherwise keep using the same QP
479 QP = 0 easily
495 // it doesn't hit the target bit rate due to this QP lower bound.
678 pMP->sum_QP -= pMP->QP;
756 currMB->QPy = video->QPy; /* use previous QP */
815 pMP->sum_QP += pMP->QP;
849 pMP->pRDSamples[pMP->framePos][counter_samples].QP = pMP->QP;
913 /* convert from QP to Qstep */
914 double QP2Qstep(int QP)
920 Qstep = QP2QSTEP[QP % 6];
921 for (i = 0; i < (QP / 6); i++)
927 /* convert from step size to QP */