Lines Matching refs:pRDSamples
195 /* RDInfo **pRDSamples */
196 rateCtrl->pMP->pRDSamples = (RDInfo **)avcHandle->CBAVC_Malloc(encvid->avcHandle->userData, (30 * sizeof(RDInfo *)), DEFAULT_ATTR);
197 if (!rateCtrl->pMP->pRDSamples)
204 rateCtrl->pMP->pRDSamples[i] = (RDInfo *)avcHandle->CBAVC_Malloc(encvid->avcHandle->userData, (32 * sizeof(RDInfo)), DEFAULT_ATTR);
205 if (!rateCtrl->pMP->pRDSamples[i])
306 if (rateCtrl->pMP->pRDSamples)
310 if (rateCtrl->pMP->pRDSamples[i])
312 avcHandle->CBAVC_Free(avcHandle->userData, rateCtrl->pMP->pRDSamples[i]);
315 avcHandle->CBAVC_Free(avcHandle->userData, rateCtrl->pMP->pRDSamples);
432 prev_mad = pMP->pRDSamples[i][0].mad;
433 prev_QP = pMP->pRDSamples[i][0].QP;
434 prev_actual_bits = pMP->pRDSamples[i][0].actual_bits;
443 prev_mad = pMP->pRDSamples[i][0].mad;
449 prev_actual_bits = pMP->pRDSamples[i-1][0].actual_bits;
453 if (pMP->pRDSamples[i][0].mad != 0 &&
454 AVC_ABS(prev_mad - curr_mad) > AVC_ABS(pMP->pRDSamples[i][0].mad - curr_mad))
456 prev_mad = pMP->pRDSamples[i][0].mad;
457 prev_actual_bits = pMP->pRDSamples[i][0].actual_bits;
461 prev_QP = QP2Qstep(pMP->pRDSamples[j][0].QP);
465 if (AVC_ABS(prev_actual_bits - curr_target) > AVC_ABS(pMP->pRDSamples[j][i].actual_bits - curr_target))
467 prev_actual_bits = pMP->pRDSamples[j][i].actual_bits;
468 prev_QP = QP2Qstep(pMP->pRDSamples[j][i].QP);
848 /* for pMP->pRDSamples */
849 pMP->pRDSamples[pMP->framePos][counter_samples].QP = pMP->QP;
850 pMP->pRDSamples[pMP->framePos][counter_samples].actual_bits = pMP->actual_bits;
851 pMP->pRDSamples[pMP->framePos][counter_samples].mad = pMP->mad;
852 pMP->pRDSamples[pMP->framePos][counter_samples].R_D = (OsclFloat)pMP->actual_bits / (pMP->mad + 0.0001);