Home
last modified time | relevance | path

Searched refs:curr_mad (Results 1 – 2 of 2) sorted by relevance

/frameworks/av/media/libstagefright/codecs/avc/enc/src/
Drate_control.cpp411 OsclFloat curr_mad, prev_mad, curr_RD, prev_RD, average_mad, aver_QP; in calculateQuantizer_Multipass() local
425 curr_mad = (OsclFloat)rateCtrl->totalSAD / video->PicSizeInMbs; in calculateQuantizer_Multipass()
426 if (curr_mad < MAD_MIN) curr_mad = MAD_MIN; /* MAD_MIN is defined as 1 in mp4def.h */ in calculateQuantizer_Multipass()
427 curr_RD = (OsclFloat)curr_target / curr_mad; in calculateQuantizer_Multipass()
454 … AVC_ABS(prev_mad - curr_mad) > AVC_ABS(pMP->pRDSamples[i][0].mad - curr_mad)) in calculateQuantizer_Multipass()
509 ((OsclFloat)rateCtrl->Qc <= aver_QP*1.1 || curr_mad <= average_mad*1.1) && in calculateQuantizer_Multipass()
523 OsclFloat curr_mad;//, average_mad; in targetBitCalculation() local
539 curr_mad = (OsclFloat)rateCtrl->totalSAD / video->PicSizeInMbs; in targetBitCalculation()
540 if (curr_mad < MAD_MIN) curr_mad = MAD_MIN; /* MAD_MIN is defined as 1 in mp4def.h */ in targetBitCalculation()
546 pMP->sum_mad += curr_mad; in targetBitCalculation()
[all …]
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
Drate_control.cpp536 float curr_mad;//, average_mad; in targetBitCalculation() local
555 curr_mad = video->sumMAD / (float)currVol->nTotalMB; in targetBitCalculation()
556 if (curr_mad < MAD_MIN) curr_mad = MAD_MIN; /* MAD_MIN is defined as 1 in mp4def.h */ in targetBitCalculation()
562 pMP->sum_mad += curr_mad; in targetBitCalculation()
566 … pMP->aver_mad = (pMP->aver_mad * pMP->encoded_frames + curr_mad) / (pMP->encoded_frames + 1); in targetBitCalculation()
569 …pMP->aver_mad_prev = (pMP->aver_mad_prev * pMP->encoded_frames_prev + curr_mad) / (pMP->encoded_fr… in targetBitCalculation()
575 if (curr_mad > pMP->aver_mad*1.1) in targetBitCalculation()
577 if (curr_mad / (pMP->aver_mad + 0.0001) > 2) in targetBitCalculation()
578 … diff_counter_BTdst = (Int)(M4VENC_SQRT(curr_mad / (pMP->aver_mad + 0.0001)) * 10 + 0.4) - 10; in targetBitCalculation()
581 diff_counter_BTdst = (Int)(curr_mad / (pMP->aver_mad + 0.0001) * 10 + 0.4) - 10; in targetBitCalculation()
[all …]