Commit 3e2efacd authored by Martin Storsjö's avatar Martin Storsjö

libavcodec: Prefix fdct_ifast, fdct_ifast248

Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 9cf0841e
...@@ -87,7 +87,7 @@ static int cpu_flags; ...@@ -87,7 +87,7 @@ static int cpu_flags;
static const struct algo fdct_tab[] = { static const struct algo fdct_tab[] = {
{ "REF-DBL", ff_ref_fdct, NO_PERM }, { "REF-DBL", ff_ref_fdct, NO_PERM },
{ "FAAN", ff_faandct, FAAN_SCALE }, { "FAAN", ff_faandct, FAAN_SCALE },
{ "IJG-AAN-INT", fdct_ifast, SCALE_PERM }, { "IJG-AAN-INT", ff_fdct_ifast, SCALE_PERM },
{ "IJG-LLM-INT", ff_jpeg_fdct_islow_8, NO_PERM }, { "IJG-LLM-INT", ff_jpeg_fdct_islow_8, NO_PERM },
#if HAVE_MMX #if HAVE_MMX
......
...@@ -2796,8 +2796,8 @@ av_cold void ff_dsputil_init(DSPContext* c, AVCodecContext *avctx) ...@@ -2796,8 +2796,8 @@ av_cold void ff_dsputil_init(DSPContext* c, AVCodecContext *avctx)
c->fdct248 = ff_fdct248_islow_10; c->fdct248 = ff_fdct248_islow_10;
} else { } else {
if(avctx->dct_algo==FF_DCT_FASTINT) { if(avctx->dct_algo==FF_DCT_FASTINT) {
c->fdct = fdct_ifast; c->fdct = ff_fdct_ifast;
c->fdct248 = fdct_ifast248; c->fdct248 = ff_fdct_ifast248;
} }
else if(avctx->dct_algo==FF_DCT_FAAN) { else if(avctx->dct_algo==FF_DCT_FAAN) {
c->fdct = ff_faandct; c->fdct = ff_faandct;
......
...@@ -38,8 +38,8 @@ ...@@ -38,8 +38,8 @@
/* dct code */ /* dct code */
typedef short DCTELEM; typedef short DCTELEM;
void fdct_ifast (DCTELEM *data); void ff_fdct_ifast (DCTELEM *data);
void fdct_ifast248 (DCTELEM *data); void ff_fdct_ifast248 (DCTELEM *data);
void ff_jpeg_fdct_islow_8(DCTELEM *data); void ff_jpeg_fdct_islow_8(DCTELEM *data);
void ff_jpeg_fdct_islow_10(DCTELEM *data); void ff_jpeg_fdct_islow_10(DCTELEM *data);
void ff_fdct248_islow_8(DCTELEM *data); void ff_fdct248_islow_8(DCTELEM *data);
......
...@@ -205,7 +205,7 @@ static av_always_inline void row_fdct(DCTELEM * data){ ...@@ -205,7 +205,7 @@ static av_always_inline void row_fdct(DCTELEM * data){
*/ */
GLOBAL(void) GLOBAL(void)
fdct_ifast (DCTELEM * data) ff_fdct_ifast (DCTELEM * data)
{ {
int tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; int tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
int tmp10, tmp11, tmp12, tmp13; int tmp10, tmp11, tmp12, tmp13;
...@@ -271,7 +271,7 @@ fdct_ifast (DCTELEM * data) ...@@ -271,7 +271,7 @@ fdct_ifast (DCTELEM * data)
*/ */
GLOBAL(void) GLOBAL(void)
fdct_ifast248 (DCTELEM * data) ff_fdct_ifast248 (DCTELEM * data)
{ {
int tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7; int tmp0, tmp1, tmp2, tmp3, tmp4, tmp5, tmp6, tmp7;
int tmp10, tmp11, tmp12, tmp13; int tmp10, tmp11, tmp12, tmp13;
......
...@@ -89,7 +89,7 @@ void ff_convert_matrix(DSPContext *dsp, int (*qmat)[64], ...@@ -89,7 +89,7 @@ void ff_convert_matrix(DSPContext *dsp, int (*qmat)[64],
qmat[qscale][i] = (int)((UINT64_C(1) << QMAT_SHIFT) / qmat[qscale][i] = (int)((UINT64_C(1) << QMAT_SHIFT) /
(qscale * quant_matrix[j])); (qscale * quant_matrix[j]));
} }
} else if (dsp->fdct == fdct_ifast } else if (dsp->fdct == ff_fdct_ifast
#ifndef FAAN_POSTSCALE #ifndef FAAN_POSTSCALE
|| dsp->fdct == ff_faandct || dsp->fdct == ff_faandct
#endif #endif
...@@ -132,7 +132,7 @@ void ff_convert_matrix(DSPContext *dsp, int (*qmat)[64], ...@@ -132,7 +132,7 @@ void ff_convert_matrix(DSPContext *dsp, int (*qmat)[64],
for (i = intra; i < 64; i++) { for (i = intra; i < 64; i++) {
int64_t max = 8191; int64_t max = 8191;
if (dsp->fdct == fdct_ifast if (dsp->fdct == ff_fdct_ifast
#ifndef FAAN_POSTSCALE #ifndef FAAN_POSTSCALE
|| dsp->fdct == ff_faandct || dsp->fdct == ff_faandct
#endif #endif
...@@ -3370,7 +3370,7 @@ static int dct_quantize_trellis_c(MpegEncContext *s, ...@@ -3370,7 +3370,7 @@ static int dct_quantize_trellis_c(MpegEncContext *s,
int dct_coeff= FFABS(block[ scantable[i] ]); int dct_coeff= FFABS(block[ scantable[i] ]);
int best_score=256*256*256*120; int best_score=256*256*256*120;
if ( s->dsp.fdct == fdct_ifast if ( s->dsp.fdct == ff_fdct_ifast
#ifndef FAAN_POSTSCALE #ifndef FAAN_POSTSCALE
|| s->dsp.fdct == ff_faandct || s->dsp.fdct == ff_faandct
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment