WEBM Quantization

41 views
Skip to first unread message

deepthi shridhar

unread,
Apr 23, 2012, 9:16:24 PM4/23/12
to WebM Discussion
Hi

I was going through the source code of encoder and I couldnt get the
logic of quantization module. Can anyone help me with this. Appreciate
any help.

Thanks
Deepthi

Rajesh Pamula

unread,
Apr 24, 2012, 3:04:04 AM4/24/12
to webm-d...@webmproject.org
Hi,

As you might have seen the quantization parameter 0-127 is mapped to something called as Qstep and these Qsteps are different for the DC coeffs and AC coeffs. Both encoder and decoder maintain a look up table, an array which maps Qp to Qstep. Once Qstep is known, quantization is roughly the division process, like k*coeff/Qstep, where coeff is the transformed coeff value and k is a scale factor.

To maintain higher precision, you may increase the bit depth prior to divison process by doing a left shift. I guess this is what is implemented in the reference encoder.

Thanks and regards,

Rajesh

Deepthi

--
You received this message because you are subscribed to the Google Groups "WebM Discussion" group.
To post to this group, send email to webm-d...@webmproject.org.
To unsubscribe from this group, send email to webm-discuss...@webmproject.org.
For more options, visit this group at http://groups.google.com/a/webmproject.org/group/webm-discuss/?hl=en.




--
Rajesh Pamula
Post Graduate Student
Analogue and Digital Integrated Circuit Design
Imperial College London.
Residence Phone: +44-20-78522056

Reply all
Reply to author
Forward
0 new messages