summaryrefslogtreecommitdiff
path: root/libavcodec/i386/dsputil_mmx.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/i386/dsputil_mmx.c')
-rw-r--r--libavcodec/i386/dsputil_mmx.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/libavcodec/i386/dsputil_mmx.c b/libavcodec/i386/dsputil_mmx.c
index eaec8fe45a..708d0b091b 100644
--- a/libavcodec/i386/dsputil_mmx.c
+++ b/libavcodec/i386/dsputil_mmx.c
@@ -20,7 +20,6 @@
*/
#include "../dsputil.h"
-#include "../simple_idct.h"
int mm_flags; /* multimedia extension flags */
@@ -44,10 +43,6 @@ int pix_abs8x8_x2_mmx2(UINT8 *blk1, UINT8 *blk2, int lx);
int pix_abs8x8_y2_mmx2(UINT8 *blk1, UINT8 *blk2, int lx);
int pix_abs8x8_xy2_mmx2(UINT8 *blk1, UINT8 *blk2, int lx);
-/* external functions, from idct_mmx.c */
-void ff_mmx_idct(DCTELEM *block);
-void ff_mmxext_idct(DCTELEM *block);
-
/* pixel operations */
static const uint64_t mm_bone __attribute__ ((aligned(8))) = 0x0101010101010101ULL;
static const uint64_t mm_wone __attribute__ ((aligned(8))) = 0x0001000100010001ULL;
@@ -588,17 +583,6 @@ void dsputil_init_mmx(void)
avg_pixels_tab[1][2] = avg_pixels8_y2_3dnow;
avg_pixels_tab[1][3] = avg_pixels8_xy2_3dnow;
}
-
- /* idct */
- if (mm_flags & MM_MMXEXT) {
- ff_idct = ff_mmxext_idct;
- } else {
- ff_idct = ff_mmx_idct;
- }
-#ifdef SIMPLE_IDCT
-// ff_idct = simple_idct;
- ff_idct = simple_idct_mmx;
-#endif
}
#if 0
@@ -637,28 +621,6 @@ void dsputil_init_mmx(void)
#endif
}
-void gen_idct_put(UINT8 *dest, int line_size, DCTELEM *block);
-
-/**
- * this will send coeff matrixes which would have different results for the 16383 type MMX vs C IDCTs to the C IDCT
- */
-void bit_exact_idct_put(UINT8 *dest, int line_size, INT16 *block){
- if( block[0]>1022 && block[1]==0 && block[4 ]==0 && block[5 ]==0
- && block[8]==0 && block[9]==0 && block[12]==0 && block[13]==0){
- int16_t tmp[64];
- int i;
-
- for(i=0; i<64; i++)
- tmp[i]= block[i];
- for(i=0; i<64; i++)
- block[i]= tmp[block_permute_op(i)];
-
- simple_idct_put(dest, line_size, block);
- }
- else
- gen_idct_put(dest, line_size, block);
-}
-
/* remove any non bit exact operation (testing purpose). NOTE that
this function should be kept as small as possible because it is
always difficult to test automatically non bit exact cases. */
@@ -682,9 +644,5 @@ void dsputil_set_bit_exact_mmx(void)
pix_abs8x8_y2 = pix_abs8x8_y2_mmx;
pix_abs8x8_xy2= pix_abs8x8_xy2_mmx;
}
-#ifdef SIMPLE_IDCT
- if(ff_idct_put==gen_idct_put && ff_idct == simple_idct_mmx)
- ff_idct_put= bit_exact_idct_put;
-#endif
}
}