         printf("\n");
     }*/
     
-    // Save block from shared memory to global memory
-    for ( int i = 0; i < 16; i++ ) {
-        ((double*)data_output)[i] = ((double*)s_data_output)[16 * threadIdx.x + i];
-    }
-
     return 0;
 }
 

#include "gpujpeg_huffman_gpu_decoder.h"
#include "gpujpeg_util.h"

#define THREAD_BLOCK_SIZE 32

#ifdef GPUJPEG_HUFFMAN_CODER_TABLES_IN_CONSTANT
/** Allocate huffman tables in constant memory */

    dc = s;

    // Output the DC coefficient (assumes gpujpeg_natural_order[0] = 0)
    data_output[0] = s;
    
    // Section F.2.2.2: decode the AC coefficients
    // Since zeroes are skipped, output area must be cleared beforehand
