diff options
author | James Courtier-Dutton <jcdutton@users.sourceforge.net> | 2004-03-23 02:14:54 +0000 |
---|---|---|
committer | James Courtier-Dutton <jcdutton@users.sourceforge.net> | 2004-03-23 02:14:54 +0000 |
commit | 7b606d617f8b29cc7186630beedcaf1f67b4f358 (patch) | |
tree | 58ec5056a49a5d275e113b2050eb80fd093d540b /src/libmpeg2new/libmpeg2/idct_mmx.c | |
parent | 6bc55e9617fc92273dd6d25b76383fb4b41da9fd (diff) | |
download | xine-lib-7b606d617f8b29cc7186630beedcaf1f67b4f358.tar.gz xine-lib-7b606d617f8b29cc7186630beedcaf1f67b4f358.tar.bz2 |
sync up with latest libmpeg2 cvs.
CVS patchset: 6300
CVS date: 2004/03/23 02:14:54
Diffstat (limited to 'src/libmpeg2new/libmpeg2/idct_mmx.c')
-rw-r--r-- | src/libmpeg2new/libmpeg2/idct_mmx.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libmpeg2new/libmpeg2/idct_mmx.c b/src/libmpeg2new/libmpeg2/idct_mmx.c index c0e88f220..d5a5c08a4 100644 --- a/src/libmpeg2new/libmpeg2/idct_mmx.c +++ b/src/libmpeg2new/libmpeg2/idct_mmx.c @@ -28,11 +28,11 @@ #include <inttypes.h> #include "../include/mpeg2.h" -#include "mpeg2_internal.h" #include "../include/attributes.h" +#include "mpeg2_internal.h" #include "../include/mmx.h" -#define ROW_SHIFT 11 +#define ROW_SHIFT 15 #define COL_SHIFT 6 #define round(bias) ((int)(((bias)+0.5) * (1<<ROW_SHIFT))) @@ -701,7 +701,7 @@ do { \ static inline void block_add_DC (int16_t * const block, uint8_t * dest, const int stride, const int cpu) { - movd_v2r ((block[0] + 4) >> 3, mm0); + movd_v2r ((block[0] + 64) >> 7, mm0); pxor_r2r (mm1, mm1); movq_m2r (*dest, mm2); dup4 (mm0); @@ -763,7 +763,7 @@ void mpeg2_idct_copy_mmxext (int16_t * const block, uint8_t * const dest, void mpeg2_idct_add_mmxext (const int last, int16_t * const block, uint8_t * const dest, const int stride) { - if (last != 129 || (block[0] & 7) == 4) { + if (last != 129 || (block[0] & (7 << 4)) == (4 << 4)) { mmxext_idct (block); block_add (block, dest, stride); block_zero (block); @@ -786,7 +786,7 @@ void mpeg2_idct_copy_mmx (int16_t * const block, uint8_t * const dest, void mpeg2_idct_add_mmx (const int last, int16_t * const block, uint8_t * const dest, const int stride) { - if (last != 129 || (block[0] & 7) == 4) { + if (last != 129 || (block[0] & (7 << 4)) == (4 << 4)) { mmx_idct (block); block_add (block, dest, stride); block_zero (block); |