public static void scaleDequantizationMatrix(final float[] matrix) {
        for (int y = 0; y < 8; y++) {
            for (int x = 0; x < 8; x++) {
                matrix[8 * y + x] *= IDCT_SCALING_FACTORS[y] * IDCT_SCALING_FACTORS[x];
            }
        }
    }
Fast inverse Dct using AA&N. This is taken from the beautiful [BROEKN URL] http://vsr.finermatik.tu-chemnitz.de/~jan/MPEG/HTML/IDCT.html which gives easy
equations and properly explains constants and scaling factors. Terms have been inlined and the negation optimized out of existence.

@param vector vector.
src/main/java/org/apache/commons/imaging/formats/jpeg/decoder/Dct.java