code: int[] quantizeBlock(double inputData[][], int code) {
          int outputData[] = new int[N * N];
          int i, j;
          int index;
          index = 0;
          for (i = 0; i < 8; i++) {
              for (j = 0; j < 8; j++) {
  // The second line results in significantly better compression.
                  outputData[index] = (int) (Math.round(inputData[i][j] * (((double[]) (Divisors[code]))[index])));
  //                        outputData[index] = (int)(((inputData[i][j] * (((double[]) (Divisors[code]))[index])) + 16384.5) -16384);
                  index++;
              }
          }
  
          return outputData;
      }
docs: /*
  This method quantitizes data and rounds it to the nearest integer.