root/trunk/avifile/avifile-0.7.38-gcc34_ffmpeg-1.patch
| Revision 625, 4.9 KB (checked in by jim, 4 years ago) |
|---|
-
ffmpeg/libavcodec/liba52/resample_mmx.c
Submitted By: Randy McMurchy <randy_at_linuxfromscratch_dot_org> Date: 2004-09-01 Initial Package Version: 0.7.38 Upstream Status: Not submitted Origin: Self-created Description: Fixes GCC-3.4.x related build problems with FFmpeg plugin diff -Naur avifile-0.7-0.7.38-orig/ffmpeg/libavcodec/liba52/resample_mmx.c avifile-0.7-0.7.38/ffmpeg/libavcodec/liba52/resample_mmx.c
old new 7 7 and it would mean (C / MMX2 / MMX / 3DNOW) versions 8 8 */ 9 9 10 staticuint64_t __attribute__((aligned(8))) magicF2W= 0x43c0000043c00000LL;11 staticuint64_t __attribute__((aligned(8))) wm1010= 0xFFFF0000FFFF0000LL;12 staticuint64_t __attribute__((aligned(8))) wm0101= 0x0000FFFF0000FFFFLL;13 staticuint64_t __attribute__((aligned(8))) wm1100= 0xFFFFFFFF00000000LL;10 const uint64_t __attribute__((aligned(8))) magicF2W= 0x43c0000043c00000LL; 11 const uint64_t __attribute__((aligned(8))) wm1010= 0xFFFF0000FFFF0000LL; 12 const uint64_t __attribute__((aligned(8))) wm0101= 0x0000FFFF0000FFFFLL; 13 const uint64_t __attribute__((aligned(8))) wm1100= 0xFFFFFFFF00000000LL; 14 14 15 15 static int a52_resample_MONO_to_5_MMX(float * _f, int16_t * s16){ 16 16 int32_t * f = (int32_t *) _f; -
ffmpeg/libavcodec/i386/motion_est_mmx.c
diff -Naur avifile-0.7-0.7.38-orig/ffmpeg/libavcodec/i386/motion_est_mmx.c avifile-0.7-0.7.38/ffmpeg/libavcodec/i386/motion_est_mmx.c
old new 20 20 */ 21 21 #include "../dsputil.h" 22 22 23 staticconst __attribute__ ((aligned(8))) uint64_t round_tab[3]={23 const __attribute__ ((aligned(8))) uint64_t round_tab[3]={ 24 24 0x0000000000000000, 25 25 0x0001000100010001, 26 26 0x0002000200020002, 27 27 }; 28 28 29 static__attribute__ ((aligned(8))) uint64_t bone= 0x0101010101010101LL;29 const __attribute__ ((aligned(8))) uint64_t bone= 0x0101010101010101LL; 30 30 31 31 static inline void sad8_mmx(uint8_t *blk1, uint8_t *blk2, int stride, int h) 32 32 { -
ffmpeg/libavcodec/i386/dsputil_mmx.c
diff -Naur avifile-0.7-0.7.38-orig/ffmpeg/libavcodec/i386/dsputil_mmx.c avifile-0.7-0.7.38/ffmpeg/libavcodec/i386/dsputil_mmx.c
old new 25 25 int mm_flags; /* multimedia extension flags */ 26 26 27 27 /* pixel operations */ 28 staticconst uint64_t mm_bone __attribute__ ((aligned(8))) = 0x0101010101010101ULL;29 staticconst uint64_t mm_wone __attribute__ ((aligned(8))) = 0x0001000100010001ULL;30 staticconst uint64_t mm_wtwo __attribute__ ((aligned(8))) = 0x0002000200020002ULL;31 32 staticconst uint64_t ff_pw_20 __attribute__ ((aligned(8))) = 0x0014001400140014ULL;33 staticconst uint64_t ff_pw_3 __attribute__ ((aligned(8))) = 0x0003000300030003ULL;34 staticconst uint64_t ff_pw_16 __attribute__ ((aligned(8))) = 0x0010001000100010ULL;35 staticconst uint64_t ff_pw_15 __attribute__ ((aligned(8))) = 0x000F000F000F000FULL;28 const uint64_t mm_bone __attribute__ ((aligned(8))) = 0x0101010101010101ULL; 29 const uint64_t mm_wone __attribute__ ((aligned(8))) = 0x0001000100010001ULL; 30 const uint64_t mm_wtwo __attribute__ ((aligned(8))) = 0x0002000200020002ULL; 31 32 const uint64_t ff_pw_20 __attribute__ ((aligned(8))) = 0x0014001400140014ULL; 33 const uint64_t ff_pw_3 __attribute__ ((aligned(8))) = 0x0003000300030003ULL; 34 const uint64_t ff_pw_16 __attribute__ ((aligned(8))) = 0x0010001000100010ULL; 35 const uint64_t ff_pw_15 __attribute__ ((aligned(8))) = 0x000F000F000F000FULL; 36 36 37 37 #define JUMPALIGN() __asm __volatile (".balign 8"::) 38 38 #define MOVQ_ZERO(regd) __asm __volatile ("pxor %%" #regd ", %%" #regd ::) -
ffmpeg/libavcodec/i386/simple_idct_mmx.c
diff -Naur avifile-0.7-0.7.38-orig/ffmpeg/libavcodec/i386/simple_idct_mmx.c avifile-0.7-0.7.38/ffmpeg/libavcodec/i386/simple_idct_mmx.c
old new 45 45 #define ROW_SHIFT 11 46 46 #define COL_SHIFT 20 // 6 47 47 48 static constuint64_t __attribute__((aligned(8))) wm1010= 0xFFFF0000FFFF0000ULL;49 staticconst uint64_t __attribute__((aligned(8))) d40000= 0x0000000000040000ULL;50 staticint16_t __attribute__((aligned(8))) temp[64];51 staticint16_t __attribute__((aligned(8))) coeffs[]= {48 static uint64_t __attribute__((aligned(8))) wm1010= 0xFFFF0000FFFF0000ULL; 49 const uint64_t __attribute__((aligned(8))) d40000= 0x0000000000040000ULL; 50 const int16_t __attribute__((aligned(8))) temp[64]; 51 const int16_t __attribute__((aligned(8))) coeffs[]= { 52 52 1<<(ROW_SHIFT-1), 0, 1<<(ROW_SHIFT-1), 0, 53 53 // 1<<(COL_SHIFT-1), 0, 1<<(COL_SHIFT-1), 0, 54 54 // 0, 1<<(COL_SHIFT-1-16), 0, 1<<(COL_SHIFT-1-16),
Note: See TracBrowser
for help on using the browser.
