|
|
@ -130,7 +130,7 @@ static void v_resample(UINT8 *dst, int dst_width, UINT8 *src, int wrap, |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#ifdef CONFIG_MMX |
|
|
|
#ifdef HAVE_MMX |
|
|
|
|
|
|
|
|
|
|
|
#include "i386/mmx.h" |
|
|
|
#include "i386/mmx.h" |
|
|
|
|
|
|
|
|
|
|
@ -317,7 +317,7 @@ static void h_resample(UINT8 *dst, int dst_width, UINT8 *src, int src_width, |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
n = dst_width; |
|
|
|
n = dst_width; |
|
|
|
} |
|
|
|
} |
|
|
|
#ifdef CONFIG_MMX |
|
|
|
#ifdef HAVE_MMX |
|
|
|
if ((mm_flags & MM_MMX) && NB_TAPS == 4) |
|
|
|
if ((mm_flags & MM_MMX) && NB_TAPS == 4) |
|
|
|
h_resample_fast4_mmx(dst, n,
|
|
|
|
h_resample_fast4_mmx(dst, n,
|
|
|
|
src, src_width, src_start, src_incr, filters); |
|
|
|
src, src_width, src_start, src_incr, filters); |
|
|
@ -374,7 +374,7 @@ static void component_resample(ImgReSampleContext *s, |
|
|
|
} |
|
|
|
} |
|
|
|
/* apply vertical filter */ |
|
|
|
/* apply vertical filter */ |
|
|
|
phase_y = get_phase(src_y); |
|
|
|
phase_y = get_phase(src_y); |
|
|
|
#ifdef CONFIG_MMX |
|
|
|
#ifdef HAVE_MMX |
|
|
|
/* desactivated MMX because loss of precision */ |
|
|
|
/* desactivated MMX because loss of precision */ |
|
|
|
if ((mm_flags & MM_MMX) && NB_TAPS == 4 && 0) |
|
|
|
if ((mm_flags & MM_MMX) && NB_TAPS == 4 && 0) |
|
|
|
v_resample4_mmx(output, owidth,
|
|
|
|
v_resample4_mmx(output, owidth,
|
|
|
@ -516,7 +516,7 @@ static void dump_filter(INT16 *filter) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
#ifdef CONFIG_MMX |
|
|
|
#ifdef HAVE_MMX |
|
|
|
int mm_flags; |
|
|
|
int mm_flags; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
@ -588,7 +588,7 @@ int main(int argc, char **argv) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/* mmx test */ |
|
|
|
/* mmx test */ |
|
|
|
#ifdef CONFIG_MMX |
|
|
|
#ifdef HAVE_MMX |
|
|
|
printf("MMX test\n"); |
|
|
|
printf("MMX test\n"); |
|
|
|
fact = 0.72; |
|
|
|
fact = 0.72; |
|
|
|
xsize = (int)(XSIZE * fact); |
|
|
|
xsize = (int)(XSIZE * fact); |
|
|
|