Home | History | Annotate | Download | only in src

Lines Matching refs:Qc

208             video->rc[currLayer]->Qc = video->encParams->InitQuantIvop[currLayer];
213 currVop->quantizer = video->rc[currLayer]->Qc;
693 /* In/out : rc->T and rc->Qc */
719 if (rc->T < 0) rc->Qc = 31;
756 //rc->Qc = (Int)(prev_QP * sqrt(prev_actual_bits/curr_target) + 0.4);
759 rc->Qc = (Int)(prev_RD / curr_RD + 0.5);
763 rc->Qc = (Int)(prev_QP * M4VENC_SQRT(prev_RD / curr_RD) + 0.9);
766 rc->Qc = (Int)(prev_QP * (M4VENC_SQRT(prev_RD / curr_RD) + prev_RD / curr_RD) / 2.0 + 0.9); /* Quadratic and linear approximation */
768 rc->Qc = (Int)(prev_QP * (M4VENC_SQRT(prev_RD / curr_RD) + M4VENC_POW(prev_RD / curr_RD, 1.0 / 3.0)) / 2.0 + 0.9);
770 //rc->Qc =(Int)(prev_QP * sqrt(prev_RD/curr_RD) + 0.4);
772 // lower bound on Qc should be a function of curr_mad
773 // When mad is already low, lower bound on Qc doesn't have to be small.
776 /// if((curr_mad < 8) && (rc->Qc < 12)) rc->Qc = 12;
777 // else if((curr_mad < 128) && (rc->Qc < 3)) rc->Qc = 3;
779 if (rc->Qc < 1) rc->Qc = 1;
780 if (rc->Qc > 31) rc->Qc = 31;
787 ((float)rc->Qc <= aver_QP*1.1 || curr_mad <= average_mad*1.1) &&