Searched defs:curr_mad (Results 1 - 1 of 1) sorted by relevance

/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/
H A Drate_control.cpp536 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 8 milliseconds