Improving H263 quantization
"Adept" <[email protected]>
| Newsgroups | gmane.comp.video.xvid.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi ALL! Let's speak about H263 quantization. Why rounding to down? IMHO, rounding to the nearest is better. Because of reducing of quantization error two times. For example. Required to change 4 identical lines in quant_h263_intra_c and quant_h263_inter_c from acLevel = (acLevel * mult) >> SCALEBITS; to acLevel = (acLevel * mult + 32768) >> SCALEBITS; Because 32768=2^(SCALEBITS-1). --- Professional hosting for everyone - http://www.host.ru