Searched refs:curr_mad (Results 1 - 2 of 2) sorted by relevance
/frameworks/av/media/libstagefright/codecs/avc/enc/src/ |
H A D | rate_control.cpp | 411 OsclFloat curr_mad, prev_mad, curr_RD, prev_RD, average_mad, aver_QP; local 425 curr_mad = (OsclFloat)rateCtrl->totalSAD / video->PicSizeInMbs; 426 if (curr_mad < MAD_MIN) curr_mad = MAD_MIN; /* MAD_MIN is defined as 1 in mp4def.h */ 427 curr_RD = (OsclFloat)curr_target / curr_mad; 454 AVC_ABS(prev_mad - curr_mad) > AVC_ABS(pMP->pRDSamples[i][0].mad - curr_mad)) 492 // lower bound on Qc should be a function of curr_mad 496 /// if((curr_mad < 8) && (rateCtrl->Qc < 12)) rateCtrl->Qc = 12; 497 // else if((curr_mad < 12 523 OsclFloat curr_mad;//, average_mad; local [all...] |
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
H A D | rate_control.cpp | 536 float curr_mad;//, average_mad; local 555 curr_mad = video->sumMAD / (float)currVol->nTotalMB; 556 if (curr_mad < MAD_MIN) curr_mad = MAD_MIN; /* MAD_MIN is defined as 1 in mp4def.h */ 562 pMP->sum_mad += curr_mad; 563 //average_mad = (pMP->encoded_frames < 1 ? curr_mad : pMP->sum_mad/(float)(pMP->encoded_frames+1)); /* this function is called from the scond encoded frame*/ 566 pMP->aver_mad = (pMP->aver_mad * pMP->encoded_frames + curr_mad) / (pMP->encoded_frames + 1); 569 pMP->aver_mad_prev = (pMP->aver_mad_prev * pMP->encoded_frames_prev + curr_mad) / (pMP->encoded_frames_prev + 1); 575 if (curr_mad > pMP->aver_mad*1.1) 577 if (curr_mad / (pM 708 float curr_mad, prev_mad, curr_RD, prev_RD, average_mad, aver_QP; local [all...] |
Completed in 25 milliseconds