Mercurial > libavcodec.hg
diff mpegvideo.c @ 1562:bf452704100f libavcodec
optionally merge postscale into quantization table for the float aan dct
author | michael |
---|---|
date | Thu, 23 Oct 2003 09:11:56 +0000 |
parents | 5d53c03186a1 |
children | a4aa536938b8 |
line wrap: on
line diff
--- a/mpegvideo.c Thu Oct 23 08:31:26 2003 +0000 +++ b/mpegvideo.c Thu Oct 23 09:11:56 2003 +0000 @@ -101,7 +101,11 @@ for(qscale=qmin; qscale<=qmax; qscale++){ int i; - if (s->dsp.fdct == ff_jpeg_fdct_islow || s->dsp.fdct == ff_faandct) { + if (s->dsp.fdct == ff_jpeg_fdct_islow +#ifdef FAAN_POSTSCALE + || s->dsp.fdct == ff_faandct +#endif + ) { for(i=0;i<64;i++) { const int j= s->dsp.idct_permutation[i]; /* 16 <= qscale * quant_matrix[i] <= 7905 */ @@ -112,7 +116,11 @@ qmat[qscale][i] = (int)((uint64_t_C(1) << QMAT_SHIFT) / (qscale * quant_matrix[j])); } - } else if (s->dsp.fdct == fdct_ifast) { + } else if (s->dsp.fdct == fdct_ifast +#ifndef FAAN_POSTSCALE + || s->dsp.fdct == ff_faandct +#endif + ) { for(i=0;i<64;i++) { const int j= s->dsp.idct_permutation[i]; /* 16 <= qscale * quant_matrix[i] <= 7905 */