Use qstride = 0 and allocate only a single line for qscale_table since