A method and apparatus is disclosed herein for decoding data (e.g., video
data) using transforms. In one embodiment, the decoding process comprises
scaling a block of coefficients using a scaling factor determined for
each coefficient by computing an index for said each coefficient and
indexing a look-up table (LUT) using the index. The index is based on a
quantization parameter, a size of the block of coefficients, and a
position of said each coefficient within the block. The method also
comprises applying a transform to the block of scaled coefficients.