x86: remove libmpeg2 mmx(ext) idct functions
These functions are not faster than other mmx implementations on any hardware I have been able to test on, and they are horribly inaccurate. There is thus no reason to ever use them. Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
@@ -2164,35 +2164,6 @@ void ff_avg_vc1_mspel_mc00_mmx2(uint8_t *dst, const uint8_t *src,
|
||||
|
||||
/* XXX: Those functions should be suppressed ASAP when all IDCTs are
|
||||
* converted. */
|
||||
#if CONFIG_GPL
|
||||
static void ff_libmpeg2mmx_idct_put(uint8_t *dest, int line_size,
|
||||
DCTELEM *block)
|
||||
{
|
||||
ff_mmx_idct(block);
|
||||
ff_put_pixels_clamped_mmx(block, dest, line_size);
|
||||
}
|
||||
|
||||
static void ff_libmpeg2mmx_idct_add(uint8_t *dest, int line_size,
|
||||
DCTELEM *block)
|
||||
{
|
||||
ff_mmx_idct(block);
|
||||
ff_add_pixels_clamped_mmx(block, dest, line_size);
|
||||
}
|
||||
|
||||
static void ff_libmpeg2mmx2_idct_put(uint8_t *dest, int line_size,
|
||||
DCTELEM *block)
|
||||
{
|
||||
ff_mmxext_idct(block);
|
||||
ff_put_pixels_clamped_mmx(block, dest, line_size);
|
||||
}
|
||||
|
||||
static void ff_libmpeg2mmx2_idct_add(uint8_t *dest, int line_size,
|
||||
DCTELEM *block)
|
||||
{
|
||||
ff_mmxext_idct(block);
|
||||
ff_add_pixels_clamped_mmx(block, dest, line_size);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void ff_idct_xvid_mmx_put(uint8_t *dest, int line_size, DCTELEM *block)
|
||||
{
|
||||
@@ -3049,19 +3020,6 @@ void ff_dsputil_init_mmx(DSPContext *c, AVCodecContext *avctx)
|
||||
c->idct_add = ff_simple_idct_add_mmx;
|
||||
c->idct = ff_simple_idct_mmx;
|
||||
c->idct_permutation_type = FF_SIMPLE_IDCT_PERM;
|
||||
#if CONFIG_GPL
|
||||
} else if (idct_algo == FF_IDCT_LIBMPEG2MMX) {
|
||||
if (mm_flags & AV_CPU_FLAG_MMX2) {
|
||||
c->idct_put = ff_libmpeg2mmx2_idct_put;
|
||||
c->idct_add = ff_libmpeg2mmx2_idct_add;
|
||||
c->idct = ff_mmxext_idct;
|
||||
} else {
|
||||
c->idct_put = ff_libmpeg2mmx_idct_put;
|
||||
c->idct_add = ff_libmpeg2mmx_idct_add;
|
||||
c->idct = ff_mmx_idct;
|
||||
}
|
||||
c->idct_permutation_type = FF_LIBMPEG2_IDCT_PERM;
|
||||
#endif
|
||||
} else if (idct_algo == FF_IDCT_CAVS) {
|
||||
c->idct_permutation_type = FF_TRANSPOSE_IDCT_PERM;
|
||||
} else if (idct_algo == FF_IDCT_XVIDMMX) {
|
||||
|
||||
Reference in New Issue
Block a user