replace g_convertToBit[] to g_log2Size[] const table
quant: initialize qp to impossible value so first set always works

A bug spotted by valgrind