[XviD-devel] Improving H263 quantization

Adept xvid at ok.ru
Fri Nov 30 08:45:24 CET 2007


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


More information about the XviD-devel mailing list