UNPKG

@woosh/meep-engine

Version:

Pure JavaScript game engine. Fully featured and production ready.

23 lines 1.03 kB
/** * Decode 8x8 block quantized DCT coefficients and inverse DCT transform. * This is a fixed-point implementation of the IDCT algorithm. * * This IDCT algorithm is taken from: * Y. A. Reznik, A. T. Hinds, L. Yu, Z. Ni, and C-X. Zhang, * "Efficient fixed-point approximations of the 8x8 inverse discrete * cosine transform" (invited paper), Proc. SPIE Vol. 6696, Sep. 24, 2007. * * which is based on: * Christoph Loeffler, Adriaan Ligtenberg, George S. Moschytz, * "Practical Fast 1-D DCT Algorithms with 11 Multiplications", * IEEE Intl. Conf. on Acoustics, Speech & Signal Processing, 1989, * 988-991. * * The stage numbers mentioned in the comments refer to Figure 1 in the Loeffler paper. * * @param {Int32Array} qt quantization table * @param {Int32Array} zz zigzag-ordered coefficients * @param {Uint8Array|Uint8ClampedArray} dataOut */ export function idct8x8_fixed(qt: Int32Array, zz: Int32Array, dataOut: Uint8Array | Uint8ClampedArray): void; //# sourceMappingURL=idct8x8_fixed.d.ts.map