idct.js
/**
 * Integer IDCT decoder ported from https://web.ece.ucsb.edu/EXPRESS/benchmark/mpeg2enc/idctcol.c
 * with help from NanoJPEG: http://svn.emphy.de/nanojpeg/trunk/nanojpeg/nanojpeg.c
 * 
 * Returns an array of the IDCT'ed coefficients
 * 
 * @param {*} coeffs Array of 64 coefficients to be processed
 */


Returns an array of the IDCT'ed coefficients

@param {*} coeffs Array of 64 coefficients to be processed
Returns an array of the IDCT ' ed coefficients @param { * } coeffs Array of 64 coefficients to be processed
function idctChenWang(coeffs) {
    for (let row = 0; row < 64; row += 8) {
        idctrow(coeffs, row);
    }
    for (let col = 0; col < 8; col++) {
        idctcol(coeffs, col)
    }
    return coeffs;
}
function idctChenWang ( coeffs ) { for ( let row = 0 ; row < 64 ; row += 8 ) { idctrow ( coeffs , row ) ; } for ( let col = 0 ; col < 8 ; col ++ ) { idctcol ( coeffs , col ) } return coeffs ; }
Integer IDCT decoder ported from https://web.ece.ucsb.edu/EXPRESS/benchmark/mpeg2enc/idctcol.c
 with help from NanoJPEG: http://svn.emphy.de/nanojpeg/trunk/nanojpeg/nanojpeg.c
Integer IDCT decoder ported from https : // web . ece . ucsb . edu / EXPRESS / benchmark / mpeg2enc / idctcol . c with help from NanoJPEG : http : // svn . emphy . de / nanojpeg / trunk / nanojpeg / nanojpeg . c