private void doConversion(int startPosition, int stepAlgorithm) {
        int block[] = new int[BLOCK];
        int col = 0;
        int row;
        int x = 0;
        int y = 0;
        int position = startPosition;
        for (int i = 0; i < HEIGHT; i += SIZE_BLOCK) {
            row = i + STEP;
            for (int j = 0; j < HEIGHT; j += SIZE_BLOCK) {
                col += STEP;

                int index = 0;
                for (int k = position; k < position + BLOCK; k++) {
                    block[index++] = arrayForHuffman[k];
                }
                position += BLOCK;
                arrayAfterZigZag = deZigZag.getIntegerArray(block);
                arrayAfterQuant = runQuant(arrayAfterZigZag);

                for (int k = i; k < row; k++) {
                    for (int s = j; s < col; s++) {
                        yCbCr[k][s][stepAlgorithm] = arrayAfterQuant[x][y];
                        y++;
                    }
                    y = 0;
                    ++x;
                }
                x = 0;
                y = 0;
            }
            col = 0;
        }
    }