kusano 7d535a
/*
kusano 7d535a
 * jidctfst.c
kusano 7d535a
 *
kusano 7d535a
 * Copyright (C) 1994-1998, Thomas G. Lane.
kusano 7d535a
 * This file is part of the Independent JPEG Group's software.
kusano 7d535a
 * For conditions of distribution and use, see the accompanying README file.
kusano 7d535a
 *
kusano 7d535a
 * This file contains a fast, not so accurate integer implementation of the
kusano 7d535a
 * inverse DCT (Discrete Cosine Transform).  In the IJG code, this routine
kusano 7d535a
 * must also perform dequantization of the input coefficients.
kusano 7d535a
 *
kusano 7d535a
 * A 2-D IDCT can be done by 1-D IDCT on each column followed by 1-D IDCT
kusano 7d535a
 * on each row (or vice versa, but it's more convenient to emit a row at
kusano 7d535a
 * a time).  Direct algorithms are also available, but they are much more
kusano 7d535a
 * complex and seem not to be any faster when reduced to code.
kusano 7d535a
 *
kusano 7d535a
 * This implementation is based on Arai, Agui, and Nakajima's algorithm for
kusano 7d535a
 * scaled DCT.  Their original paper (Trans. IEICE E-71(11):1095) is in
kusano 7d535a
 * Japanese, but the algorithm is described in the Pennebaker & Mitchell
kusano 7d535a
 * JPEG textbook (see REFERENCES section in file README).  The following code
kusano 7d535a
 * is based directly on figure 4-8 in P&M.
kusano 7d535a
 * While an 8-point DCT cannot be done in less than 11 multiplies, it is
kusano 7d535a
 * possible to arrange the computation so that many of the multiplies are
kusano 7d535a
 * simple scalings of the final outputs.  These multiplies can then be
kusano 7d535a
 * folded into the multiplications or divisions by the JPEG quantization
kusano 7d535a
 * table entries.  The AA&N method leaves only 5 multiplies and 29 adds
kusano 7d535a
 * to be done in the DCT itself.
kusano 7d535a
 * The primary disadvantage of this method is that with fixed-point math,
kusano 7d535a
 * accuracy is lost due to imprecise representation of the scaled
kusano 7d535a
 * quantization values.  The smaller the quantization table entry, the less
kusano 7d535a
 * precise the scaled value, so this implementation does worse with high-
kusano 7d535a
 * quality-setting files than with low-quality ones.
kusano 7d535a
 */
kusano 7d535a
kusano 7d535a
#define JPEG_INTERNALS
kusano 7d535a
#include "jinclude.h"
kusano 7d535a
#include "jpeglib.h"
kusano 7d535a
#include "jdct.h"		/* Private declarations for DCT subsystem */
kusano 7d535a
kusano 7d535a
#ifdef DCT_IFAST_SUPPORTED
kusano 7d535a
kusano 7d535a
kusano 7d535a
/*
kusano 7d535a
 * This module is specialized to the case DCTSIZE = 8.
kusano 7d535a
 */
kusano 7d535a
kusano 7d535a
#if DCTSIZE != 8
kusano 7d535a
  Sorry, this code only copes with 8x8 DCTs. /* deliberate syntax err */
kusano 7d535a
#endif
kusano 7d535a
kusano 7d535a
kusano 7d535a
/* Scaling decisions are generally the same as in the LL&M algorithm;
kusano 7d535a
 * see jidctint.c for more details.  However, we choose to descale
kusano 7d535a
 * (right shift) multiplication products as soon as they are formed,
kusano 7d535a
 * rather than carrying additional fractional bits into subsequent additions.
kusano 7d535a
 * This compromises accuracy slightly, but it lets us save a few shifts.
kusano 7d535a
 * More importantly, 16-bit arithmetic is then adequate (for 8-bit samples)
kusano 7d535a
 * everywhere except in the multiplications proper; this saves a good deal
kusano 7d535a
 * of work on 16-bit-int machines.
kusano 7d535a
 *
kusano 7d535a
 * The dequantized coefficients are not integers because the AA&N scaling
kusano 7d535a
 * factors have been incorporated.  We represent them scaled up by PASS1_BITS,
kusano 7d535a
 * so that the first and second IDCT rounds have the same input scaling.
kusano 7d535a
 * For 8-bit JSAMPLEs, we choose IFAST_SCALE_BITS = PASS1_BITS so as to
kusano 7d535a
 * avoid a descaling shift; this compromises accuracy rather drastically
kusano 7d535a
 * for small quantization table entries, but it saves a lot of shifts.
kusano 7d535a
 * For 12-bit JSAMPLEs, there's no hope of using 16x16 multiplies anyway,
kusano 7d535a
 * so we use a much larger scaling factor to preserve accuracy.
kusano 7d535a
 *
kusano 7d535a
 * A final compromise is to represent the multiplicative constants to only
kusano 7d535a
 * 8 fractional bits, rather than 13.  This saves some shifting work on some
kusano 7d535a
 * machines, and may also reduce the cost of multiplication (since there
kusano 7d535a
 * are fewer one-bits in the constants).
kusano 7d535a
 */
kusano 7d535a
kusano 7d535a
#if BITS_IN_JSAMPLE == 8
kusano 7d535a
#define CONST_BITS  8
kusano 7d535a
#define PASS1_BITS  2
kusano 7d535a
#else
kusano 7d535a
#define CONST_BITS  8
kusano 7d535a
#define PASS1_BITS  1		/* lose a little precision to avoid overflow */
kusano 7d535a
#endif
kusano 7d535a
kusano 7d535a
/* Some C compilers fail to reduce "FIX(constant)" at compile time, thus
kusano 7d535a
 * causing a lot of useless floating-point operations at run time.
kusano 7d535a
 * To get around this we use the following pre-calculated constants.
kusano 7d535a
 * If you change CONST_BITS you may want to add appropriate values.
kusano 7d535a
 * (With a reasonable C compiler, you can just rely on the FIX() macro...)
kusano 7d535a
 */
kusano 7d535a
kusano 7d535a
#if CONST_BITS == 8
kusano 7d535a
#define FIX_1_082392200  ((INT32)  277)		/* FIX(1.082392200) */
kusano 7d535a
#define FIX_1_414213562  ((INT32)  362)		/* FIX(1.414213562) */
kusano 7d535a
#define FIX_1_847759065  ((INT32)  473)		/* FIX(1.847759065) */
kusano 7d535a
#define FIX_2_613125930  ((INT32)  669)		/* FIX(2.613125930) */
kusano 7d535a
#else
kusano 7d535a
#define FIX_1_082392200  FIX(1.082392200)
kusano 7d535a
#define FIX_1_414213562  FIX(1.414213562)
kusano 7d535a
#define FIX_1_847759065  FIX(1.847759065)
kusano 7d535a
#define FIX_2_613125930  FIX(2.613125930)
kusano 7d535a
#endif
kusano 7d535a
kusano 7d535a
kusano 7d535a
/* We can gain a little more speed, with a further compromise in accuracy,
kusano 7d535a
 * by omitting the addition in a descaling shift.  This yields an incorrectly
kusano 7d535a
 * rounded result half the time...
kusano 7d535a
 */
kusano 7d535a
kusano 7d535a
#ifndef USE_ACCURATE_ROUNDING
kusano 7d535a
#undef DESCALE
kusano 7d535a
#define DESCALE(x,n)  RIGHT_SHIFT(x, n)
kusano 7d535a
#endif
kusano 7d535a
kusano 7d535a
kusano 7d535a
/* Multiply a DCTELEM variable by an INT32 constant, and immediately
kusano 7d535a
 * descale to yield a DCTELEM result.
kusano 7d535a
 */
kusano 7d535a
kusano 7d535a
#define MULTIPLY(var,const)  ((DCTELEM) DESCALE((var) * (const), CONST_BITS))
kusano 7d535a
kusano 7d535a
kusano 7d535a
/* Dequantize a coefficient by multiplying it by the multiplier-table
kusano 7d535a
 * entry; produce a DCTELEM result.  For 8-bit data a 16x16->16
kusano 7d535a
 * multiplication will do.  For 12-bit data, the multiplier table is
kusano 7d535a
 * declared INT32, so a 32-bit multiply will be used.
kusano 7d535a
 */
kusano 7d535a
kusano 7d535a
#if BITS_IN_JSAMPLE == 8
kusano 7d535a
#define DEQUANTIZE(coef,quantval)  (((IFAST_MULT_TYPE) (coef)) * (quantval))
kusano 7d535a
#else
kusano 7d535a
#define DEQUANTIZE(coef,quantval)  \
kusano 7d535a
	DESCALE((coef)*(quantval), IFAST_SCALE_BITS-PASS1_BITS)
kusano 7d535a
#endif
kusano 7d535a
kusano 7d535a
kusano 7d535a
/* Like DESCALE, but applies to a DCTELEM and produces an int.
kusano 7d535a
 * We assume that int right shift is unsigned if INT32 right shift is.
kusano 7d535a
 */
kusano 7d535a
kusano 7d535a
#ifdef RIGHT_SHIFT_IS_UNSIGNED
kusano 7d535a
#define ISHIFT_TEMPS	DCTELEM ishift_temp;
kusano 7d535a
#if BITS_IN_JSAMPLE == 8
kusano 7d535a
#define DCTELEMBITS  16		/* DCTELEM may be 16 or 32 bits */
kusano 7d535a
#else
kusano 7d535a
#define DCTELEMBITS  32		/* DCTELEM must be 32 bits */
kusano 7d535a
#endif
kusano 7d535a
#define IRIGHT_SHIFT(x,shft)  \
kusano 7d535a
    ((ishift_temp = (x)) < 0 ? \
kusano 7d535a
     (ishift_temp >> (shft)) | ((~((DCTELEM) 0)) << (DCTELEMBITS-(shft))) : \
kusano 7d535a
     (ishift_temp >> (shft)))
kusano 7d535a
#else
kusano 7d535a
#define ISHIFT_TEMPS
kusano 7d535a
#define IRIGHT_SHIFT(x,shft)	((x) >> (shft))
kusano 7d535a
#endif
kusano 7d535a
kusano 7d535a
#ifdef USE_ACCURATE_ROUNDING
kusano 7d535a
#define IDESCALE(x,n)  ((int) IRIGHT_SHIFT((x) + (1 << ((n)-1)), n))
kusano 7d535a
#else
kusano 7d535a
#define IDESCALE(x,n)  ((int) IRIGHT_SHIFT(x, n))
kusano 7d535a
#endif
kusano 7d535a
kusano 7d535a
kusano 7d535a
/*
kusano 7d535a
 * Perform dequantization and inverse DCT on one block of coefficients.
kusano 7d535a
 */
kusano 7d535a
kusano 7d535a
GLOBAL(void)
kusano 7d535a
jpeg_idct_ifast (j_decompress_ptr cinfo, jpeg_component_info * compptr,
kusano 7d535a
		 JCOEFPTR coef_block,
kusano 7d535a
		 JSAMPARRAY output_buf, JDIMENSION output_col)
kusano 7d535a
{
kusano 7d535a
  DCTELEM tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
kusano 7d535a
  DCTELEM tmp10, tmp11, tmp12, tmp13;
kusano 7d535a
  DCTELEM z5, z10, z11, z12, z13;
kusano 7d535a
  JCOEFPTR inptr;
kusano 7d535a
  IFAST_MULT_TYPE * quantptr;
kusano 7d535a
  int * wsptr;
kusano 7d535a
  JSAMPROW outptr;
kusano 7d535a
  JSAMPLE *range_limit = IDCT_range_limit(cinfo);
kusano 7d535a
  int ctr;
kusano 7d535a
  int workspace[DCTSIZE2];	/* buffers data between passes */
kusano 7d535a
  SHIFT_TEMPS			/* for DESCALE */
kusano 7d535a
  ISHIFT_TEMPS			/* for IDESCALE */
kusano 7d535a
kusano 7d535a
  /* Pass 1: process columns from input, store into work array. */
kusano 7d535a
kusano 7d535a
  inptr = coef_block;
kusano 7d535a
  quantptr = (IFAST_MULT_TYPE *) compptr->dct_table;
kusano 7d535a
  wsptr = workspace;
kusano 7d535a
  for (ctr = DCTSIZE; ctr > 0; ctr--) {
kusano 7d535a
    /* Due to quantization, we will usually find that many of the input
kusano 7d535a
     * coefficients are zero, especially the AC terms.  We can exploit this
kusano 7d535a
     * by short-circuiting the IDCT calculation for any column in which all
kusano 7d535a
     * the AC terms are zero.  In that case each output is equal to the
kusano 7d535a
     * DC coefficient (with scale factor as needed).
kusano 7d535a
     * With typical images and quantization tables, half or more of the
kusano 7d535a
     * column DCT calculations can be simplified this way.
kusano 7d535a
     */
kusano 7d535a
    
kusano 7d535a
    if (inptr[DCTSIZE*1] == 0 && inptr[DCTSIZE*2] == 0 &&
kusano 7d535a
	inptr[DCTSIZE*3] == 0 && inptr[DCTSIZE*4] == 0 &&
kusano 7d535a
	inptr[DCTSIZE*5] == 0 && inptr[DCTSIZE*6] == 0 &&
kusano 7d535a
	inptr[DCTSIZE*7] == 0) {
kusano 7d535a
      /* AC terms all zero */
kusano 7d535a
      int dcval = (int) DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]);
kusano 7d535a
kusano 7d535a
      wsptr[DCTSIZE*0] = dcval;
kusano 7d535a
      wsptr[DCTSIZE*1] = dcval;
kusano 7d535a
      wsptr[DCTSIZE*2] = dcval;
kusano 7d535a
      wsptr[DCTSIZE*3] = dcval;
kusano 7d535a
      wsptr[DCTSIZE*4] = dcval;
kusano 7d535a
      wsptr[DCTSIZE*5] = dcval;
kusano 7d535a
      wsptr[DCTSIZE*6] = dcval;
kusano 7d535a
      wsptr[DCTSIZE*7] = dcval;
kusano 7d535a
      
kusano 7d535a
      inptr++;			/* advance pointers to next column */
kusano 7d535a
      quantptr++;
kusano 7d535a
      wsptr++;
kusano 7d535a
      continue;
kusano 7d535a
    }
kusano 7d535a
    
kusano 7d535a
    /* Even part */
kusano 7d535a
kusano 7d535a
    tmp0 = DEQUANTIZE(inptr[DCTSIZE*0], quantptr[DCTSIZE*0]);
kusano 7d535a
    tmp1 = DEQUANTIZE(inptr[DCTSIZE*2], quantptr[DCTSIZE*2]);
kusano 7d535a
    tmp2 = DEQUANTIZE(inptr[DCTSIZE*4], quantptr[DCTSIZE*4]);
kusano 7d535a
    tmp3 = DEQUANTIZE(inptr[DCTSIZE*6], quantptr[DCTSIZE*6]);
kusano 7d535a
kusano 7d535a
    tmp10 = tmp0 + tmp2;	/* phase 3 */
kusano 7d535a
    tmp11 = tmp0 - tmp2;
kusano 7d535a
kusano 7d535a
    tmp13 = tmp1 + tmp3;	/* phases 5-3 */
kusano 7d535a
    tmp12 = MULTIPLY(tmp1 - tmp3, FIX_1_414213562) - tmp13; /* 2*c4 */
kusano 7d535a
kusano 7d535a
    tmp0 = tmp10 + tmp13;	/* phase 2 */
kusano 7d535a
    tmp3 = tmp10 - tmp13;
kusano 7d535a
    tmp1 = tmp11 + tmp12;
kusano 7d535a
    tmp2 = tmp11 - tmp12;
kusano 7d535a
    
kusano 7d535a
    /* Odd part */
kusano 7d535a
kusano 7d535a
    tmp4 = DEQUANTIZE(inptr[DCTSIZE*1], quantptr[DCTSIZE*1]);
kusano 7d535a
    tmp5 = DEQUANTIZE(inptr[DCTSIZE*3], quantptr[DCTSIZE*3]);
kusano 7d535a
    tmp6 = DEQUANTIZE(inptr[DCTSIZE*5], quantptr[DCTSIZE*5]);
kusano 7d535a
    tmp7 = DEQUANTIZE(inptr[DCTSIZE*7], quantptr[DCTSIZE*7]);
kusano 7d535a
kusano 7d535a
    z13 = tmp6 + tmp5;		/* phase 6 */
kusano 7d535a
    z10 = tmp6 - tmp5;
kusano 7d535a
    z11 = tmp4 + tmp7;
kusano 7d535a
    z12 = tmp4 - tmp7;
kusano 7d535a
kusano 7d535a
    tmp7 = z11 + z13;		/* phase 5 */
kusano 7d535a
    tmp11 = MULTIPLY(z11 - z13, FIX_1_414213562); /* 2*c4 */
kusano 7d535a
kusano 7d535a
    z5 = MULTIPLY(z10 + z12, FIX_1_847759065); /* 2*c2 */
kusano 7d535a
    tmp10 = MULTIPLY(z12, FIX_1_082392200) - z5; /* 2*(c2-c6) */
kusano 7d535a
    tmp12 = MULTIPLY(z10, - FIX_2_613125930) + z5; /* -2*(c2+c6) */
kusano 7d535a
kusano 7d535a
    tmp6 = tmp12 - tmp7;	/* phase 2 */
kusano 7d535a
    tmp5 = tmp11 - tmp6;
kusano 7d535a
    tmp4 = tmp10 + tmp5;
kusano 7d535a
kusano 7d535a
    wsptr[DCTSIZE*0] = (int) (tmp0 + tmp7);
kusano 7d535a
    wsptr[DCTSIZE*7] = (int) (tmp0 - tmp7);
kusano 7d535a
    wsptr[DCTSIZE*1] = (int) (tmp1 + tmp6);
kusano 7d535a
    wsptr[DCTSIZE*6] = (int) (tmp1 - tmp6);
kusano 7d535a
    wsptr[DCTSIZE*2] = (int) (tmp2 + tmp5);
kusano 7d535a
    wsptr[DCTSIZE*5] = (int) (tmp2 - tmp5);
kusano 7d535a
    wsptr[DCTSIZE*4] = (int) (tmp3 + tmp4);
kusano 7d535a
    wsptr[DCTSIZE*3] = (int) (tmp3 - tmp4);
kusano 7d535a
kusano 7d535a
    inptr++;			/* advance pointers to next column */
kusano 7d535a
    quantptr++;
kusano 7d535a
    wsptr++;
kusano 7d535a
  }
kusano 7d535a
  
kusano 7d535a
  /* Pass 2: process rows from work array, store into output array. */
kusano 7d535a
  /* Note that we must descale the results by a factor of 8 == 2**3, */
kusano 7d535a
  /* and also undo the PASS1_BITS scaling. */
kusano 7d535a
kusano 7d535a
  wsptr = workspace;
kusano 7d535a
  for (ctr = 0; ctr < DCTSIZE; ctr++) {
kusano 7d535a
    outptr = output_buf[ctr] + output_col;
kusano 7d535a
    /* Rows of zeroes can be exploited in the same way as we did with columns.
kusano 7d535a
     * However, the column calculation has created many nonzero AC terms, so
kusano 7d535a
     * the simplification applies less often (typically 5% to 10% of the time).
kusano 7d535a
     * On machines with very fast multiplication, it's possible that the
kusano 7d535a
     * test takes more time than it's worth.  In that case this section
kusano 7d535a
     * may be commented out.
kusano 7d535a
     */
kusano 7d535a
    
kusano 7d535a
#ifndef NO_ZERO_ROW_TEST
kusano 7d535a
    if (wsptr[1] == 0 && wsptr[2] == 0 && wsptr[3] == 0 && wsptr[4] == 0 &&
kusano 7d535a
	wsptr[5] == 0 && wsptr[6] == 0 && wsptr[7] == 0) {
kusano 7d535a
      /* AC terms all zero */
kusano 7d535a
      JSAMPLE dcval = range_limit[IDESCALE(wsptr[0], PASS1_BITS+3)
kusano 7d535a
				  & RANGE_MASK];
kusano 7d535a
      
kusano 7d535a
      outptr[0] = dcval;
kusano 7d535a
      outptr[1] = dcval;
kusano 7d535a
      outptr[2] = dcval;
kusano 7d535a
      outptr[3] = dcval;
kusano 7d535a
      outptr[4] = dcval;
kusano 7d535a
      outptr[5] = dcval;
kusano 7d535a
      outptr[6] = dcval;
kusano 7d535a
      outptr[7] = dcval;
kusano 7d535a
kusano 7d535a
      wsptr += DCTSIZE;		/* advance pointer to next row */
kusano 7d535a
      continue;
kusano 7d535a
    }
kusano 7d535a
#endif
kusano 7d535a
    
kusano 7d535a
    /* Even part */
kusano 7d535a
kusano 7d535a
    tmp10 = ((DCTELEM) wsptr[0] + (DCTELEM) wsptr[4]);
kusano 7d535a
    tmp11 = ((DCTELEM) wsptr[0] - (DCTELEM) wsptr[4]);
kusano 7d535a
kusano 7d535a
    tmp13 = ((DCTELEM) wsptr[2] + (DCTELEM) wsptr[6]);
kusano 7d535a
    tmp12 = MULTIPLY((DCTELEM) wsptr[2] - (DCTELEM) wsptr[6], FIX_1_414213562)
kusano 7d535a
	    - tmp13;
kusano 7d535a
kusano 7d535a
    tmp0 = tmp10 + tmp13;
kusano 7d535a
    tmp3 = tmp10 - tmp13;
kusano 7d535a
    tmp1 = tmp11 + tmp12;
kusano 7d535a
    tmp2 = tmp11 - tmp12;
kusano 7d535a
kusano 7d535a
    /* Odd part */
kusano 7d535a
kusano 7d535a
    z13 = (DCTELEM) wsptr[5] + (DCTELEM) wsptr[3];
kusano 7d535a
    z10 = (DCTELEM) wsptr[5] - (DCTELEM) wsptr[3];
kusano 7d535a
    z11 = (DCTELEM) wsptr[1] + (DCTELEM) wsptr[7];
kusano 7d535a
    z12 = (DCTELEM) wsptr[1] - (DCTELEM) wsptr[7];
kusano 7d535a
kusano 7d535a
    tmp7 = z11 + z13;		/* phase 5 */
kusano 7d535a
    tmp11 = MULTIPLY(z11 - z13, FIX_1_414213562); /* 2*c4 */
kusano 7d535a
kusano 7d535a
    z5 = MULTIPLY(z10 + z12, FIX_1_847759065); /* 2*c2 */
kusano 7d535a
    tmp10 = MULTIPLY(z12, FIX_1_082392200) - z5; /* 2*(c2-c6) */
kusano 7d535a
    tmp12 = MULTIPLY(z10, - FIX_2_613125930) + z5; /* -2*(c2+c6) */
kusano 7d535a
kusano 7d535a
    tmp6 = tmp12 - tmp7;	/* phase 2 */
kusano 7d535a
    tmp5 = tmp11 - tmp6;
kusano 7d535a
    tmp4 = tmp10 + tmp5;
kusano 7d535a
kusano 7d535a
    /* Final output stage: scale down by a factor of 8 and range-limit */
kusano 7d535a
kusano 7d535a
    outptr[0] = range_limit[IDESCALE(tmp0 + tmp7, PASS1_BITS+3)
kusano 7d535a
			    & RANGE_MASK];
kusano 7d535a
    outptr[7] = range_limit[IDESCALE(tmp0 - tmp7, PASS1_BITS+3)
kusano 7d535a
			    & RANGE_MASK];
kusano 7d535a
    outptr[1] = range_limit[IDESCALE(tmp1 + tmp6, PASS1_BITS+3)
kusano 7d535a
			    & RANGE_MASK];
kusano 7d535a
    outptr[6] = range_limit[IDESCALE(tmp1 - tmp6, PASS1_BITS+3)
kusano 7d535a
			    & RANGE_MASK];
kusano 7d535a
    outptr[2] = range_limit[IDESCALE(tmp2 + tmp5, PASS1_BITS+3)
kusano 7d535a
			    & RANGE_MASK];
kusano 7d535a
    outptr[5] = range_limit[IDESCALE(tmp2 - tmp5, PASS1_BITS+3)
kusano 7d535a
			    & RANGE_MASK];
kusano 7d535a
    outptr[4] = range_limit[IDESCALE(tmp3 + tmp4, PASS1_BITS+3)
kusano 7d535a
			    & RANGE_MASK];
kusano 7d535a
    outptr[3] = range_limit[IDESCALE(tmp3 - tmp4, PASS1_BITS+3)
kusano 7d535a
			    & RANGE_MASK];
kusano 7d535a
kusano 7d535a
    wsptr += DCTSIZE;		/* advance pointer to next row */
kusano 7d535a
  }
kusano 7d535a
}
kusano 7d535a
kusano 7d535a
#endif /* DCT_IFAST_SUPPORTED */