js/image/node/jpeg-js/blocks_jsgui_decoder.js
// I think a zz_offset variable would be the way to do this.
I think a zz_offset variable would be the way to do this.
I think a zz_offset variable would be the way to do this .
function decodeBaseline(component, zz) {
            var t = decodeHuffman(component.huffmanTableDC);
            var diff = t === 0 ? 0 : receiveAndExtend(t);
            zz[0]= (component.pred += diff);
            var k = 1;
            while (k < 64) {
                var rs = decodeHuffman(component.huffmanTableAC);
                var s = rs & 15, r = rs >> 4;
                if (s === 0) {
                    if (r < 15)
                        break;
                    k += 16;
                    continue;
                }
                k += r;
                var z = dctZigZag[k];
                zz[z] = receiveAndExtend(s);
                k++;
            }
        }
function decodeBaseline ( component , zz ) { var t = decodeHuffman ( component . huffmanTableDC ) ; var diff = t === 0 ? 0 : receiveAndExtend ( t ) ; zz [ 0 ] = ( component . pred += diff ) ; var k = 1 ; while ( k < 64 ) { var rs = decodeHuffman ( component . huffmanTableAC ) ; var s = rs & 15 , r = rs >> 4 ; if ( s === 0 ) { if ( r < 15 ) break ; k += 16 ; continue ; } k += r ; var z = dctZigZag [ k ] ; zz [ z ] = receiveAndExtend ( s ) ; k ++ ; } }
I think a zz_offset variable would be the way to do this.
I think a zz_offset variable would be the way to do this .
// Copies various items to that array. // Rather than zz, it could assign to a larger blocks_matrix in the component. However, it would need to know the offset or be able to calculate it.