Changeset 815
- Timestamp:
- 02/25/08 17:33:50 (6 months ago)
- Files:
-
- trunk/Patches/ffmpeg.diff (modified) (20 diffs)
- trunk/ffmpeg-patch (deleted)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Patches/ffmpeg.diff
r814 r815 1 1 Index: ffmpeg/libavcodec/i386/motion_est_mmx.c 2 2 =================================================================== 3 --- ffmpeg/libavcodec/i386/motion_est_mmx.c (revision 122 18)3 --- ffmpeg/libavcodec/i386/motion_est_mmx.c (revision 12223) 4 4 +++ ffmpeg/libavcodec/i386/motion_est_mmx.c (working copy) 5 5 @@ -167,7 +167,7 @@ … … 41 41 Index: ffmpeg/libavcodec/i386/dsputil_h264_template_mmx.c 42 42 =================================================================== 43 --- ffmpeg/libavcodec/i386/dsputil_h264_template_mmx.c (revision 122 18)43 --- ffmpeg/libavcodec/i386/dsputil_h264_template_mmx.c (revision 12223) 44 44 +++ ffmpeg/libavcodec/i386/dsputil_h264_template_mmx.c (working copy) 45 45 @@ -192,8 +192,8 @@ … … 65 65 Index: ffmpeg/libavcodec/i386/dsputil_mmx.c 66 66 =================================================================== 67 --- ffmpeg/libavcodec/i386/dsputil_mmx.c (revision 122 18)67 --- ffmpeg/libavcodec/i386/dsputil_mmx.c (revision 12223) 68 68 +++ ffmpeg/libavcodec/i386/dsputil_mmx.c (working copy) 69 @@ -220,7 +220,6 @@ 70 /***********************************/ 71 /* standard MMX */ 72 73 -#ifdef CONFIG_ENCODERS 74 static void get_pixels_mmx(DCTELEM *block, const uint8_t *pixels, int line_size) 75 { 76 asm volatile( 77 @@ -277,7 +276,6 @@ 78 : "%"REG_a 79 ); 80 } 81 -#endif //CONFIG_ENCODERS 82 83 void put_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size) 84 { 85 @@ -544,7 +542,6 @@ 86 ); 87 } 88 89 -#ifdef CONFIG_ENCODERS 90 static int pix_sum16_mmx(uint8_t * pix, int line_size){ 91 const int h=16; 92 int sum; 93 @@ -582,7 +579,6 @@ 94 95 return sum; 96 } 97 -#endif //CONFIG_ENCODERS 98 99 static void add_bytes_mmx(uint8_t *dst, uint8_t *src, int w){ 100 long i=0; 101 @@ -800,7 +796,6 @@ 102 } 103 } 104 105 -#ifdef CONFIG_ENCODERS 106 static int pix_norm1_mmx(uint8_t *pix, int line_size) { 107 int tmp; 108 asm volatile ( 109 @@ -2018,11 +2013,9 @@ 110 return sum; 111 } 112 113 -#endif //CONFIG_ENCODERS 114 - 69 @@ -772,7 +772,7 @@ 70 115 71 #define QPEL_V_LOW(m3,m4,m5,m6, pw_20, pw_3, rnd, in0, in1, in2, in7, out, OP)\ 116 72 "paddw " #m4 ", " #m3 " \n\t" /* x1 */\ … … 120 76 "movq "#in7", " #m3 " \n\t" /* d */\ 121 77 "movq "#in0", %%mm5 \n\t" /* D */\ 122 @@ - 2034,7 +2027,7 @@78 @@ -784,7 +784,7 @@ 123 79 "paddw " #m5 ", %%mm6 \n\t" /* x2 */\ 124 80 "paddw %%mm6, %%mm6 \n\t" /* 2x2 */\ … … 129 85 "paddw %%mm4, %%mm5 \n\t" /* 20x1 - 6x2 + 3x3 - x4 */\ 130 86 "psraw $5, %%mm5 \n\t"\ 131 @@ - 2068,10 +2061,10 @@87 @@ -818,10 +818,10 @@ 132 88 "paddw %%mm5, %%mm5 \n\t" /* 2b */\ 133 89 "psubw %%mm5, %%mm6 \n\t" /* c - 2b */\ … … 142 98 "paddw %6, %%mm6 \n\t"\ 143 99 "paddw %%mm6, %%mm0 \n\t" /* 20a - 6b + 3c - d */\ 144 @@ - 2094,10 +2087,10 @@100 @@ -844,10 +844,10 @@ 145 101 "psrlq $24, %%mm6 \n\t" /* IJKLM000 */\ 146 102 "punpcklbw %%mm7, %%mm2 \n\t" /* 0F0G0H0I */\ … … 155 111 "paddw %6, %%mm1 \n\t"\ 156 112 "paddw %%mm1, %%mm3 \n\t" /* 20a - 6b +3c - d */\ 157 @@ - 2120,7 +2113,7 @@113 @@ -870,7 +870,7 @@ 158 114 "psubw %%mm5, %%mm0 \n\t" /* c - 2b */\ 159 115 "movq %%mm3, %%mm5 \n\t" /* JKLMNOPQ */\ … … 164 120 "paddw %%mm3, %%mm2 \n\t" /* d */\ 165 121 "psubw %%mm2, %%mm0 \n\t" /* -6b + 3c - d */\ 166 @@ - 2128,7 +2121,7 @@122 @@ -878,7 +878,7 @@ 167 123 "punpcklbw %%mm7, %%mm2 \n\t" /* 0J0K0L0M */\ 168 124 "punpckhbw %%mm7, %%mm5 \n\t" /* 0N0O0P0Q */\ … … 173 129 "paddw %%mm6, %%mm0 \n\t" /* 20a - 6b + 3c - d */\ 174 130 "psraw $5, %%mm0 \n\t"\ 175 @@ - 2143,8 +2136,8 @@131 @@ -893,8 +893,8 @@ 176 132 "paddw %%mm2, %%mm5 \n\t" /* d */\ 177 133 "paddw %%mm6, %%mm6 \n\t" /* 2b */\ … … 184 140 "paddw %6, %%mm4 \n\t"\ 185 141 "paddw %%mm3, %%mm4 \n\t" /* 20a - 6b + 3c - d */\ 186 @@ - 2157,7 +2150,9 @@142 @@ -907,7 +907,9 @@ 187 143 "decl %2 \n\t"\ 188 144 " jnz 1b \n\t"\ … … 195 151 );\ 196 152 }\ 197 @@ - 2235,10 +2230,10 @@153 @@ -985,10 +987,10 @@ 198 154 "paddw %%mm5, %%mm5 \n\t" /* 2b */\ 199 155 "psubw %%mm5, %%mm6 \n\t" /* c - 2b */\ … … 208 164 "paddw %6, %%mm6 \n\t"\ 209 165 "paddw %%mm6, %%mm0 \n\t" /* 20a - 6b + 3c - d */\ 210 @@ - 2256,8 +2251,8 @@166 @@ -1006,8 +1008,8 @@ 211 167 "paddw %%mm5, %%mm4 \n\t" /* d */\ 212 168 "paddw %%mm2, %%mm2 \n\t" /* 2b */\ … … 219 175 "paddw %6, %%mm1 \n\t"\ 220 176 "paddw %%mm1, %%mm3 \n\t" /* 20a - 6b + 3c - d */\ 221 @@ - 2270,7 +2265,9 @@177 @@ -1020,7 +1022,9 @@ 222 178 "decl %2 \n\t"\ 223 179 " jnz 1b \n\t"\ … … 230 186 );\ 231 187 }\ 232 @@ - 2349,31 +2346,31 @@188 @@ -1099,31 +1103,31 @@ 233 189 "movq 8(%0), %%mm1 \n\t"\ 234 190 "movq 16(%0), %%mm2 \n\t"\ … … 278 234 "add $136, %0 \n\t"\ 279 235 "add %6, %1 \n\t"\ 280 @@ - 2381,7 +2378,9 @@236 @@ -1131,7 +1135,9 @@ 281 237 " jnz 1b \n\t"\ 282 238 \ … … 289 245 );\ 290 246 }\ 291 @@ - 2421,19 +2420,19 @@247 @@ -1171,19 +1177,19 @@ 292 248 "movq 8(%0), %%mm1 \n\t"\ 293 249 "movq 16(%0), %%mm2 \n\t"\ … … 317 273 "add $72, %0 \n\t"\ 318 274 "add %6, %1 \n\t"\ 319 @@ - 2441,7 +2440,9 @@275 @@ -1191,7 +1197,9 @@ 320 276 " jnz 1b \n\t"\ 321 277 \ … … 328 284 );\ 329 285 }\ 330 @@ -2858,8 +2859,6 @@331 }332 }333 334 -#ifdef CONFIG_ENCODERS335 -336 #define PHADDD(a, t)\337 "movq "#a", "#t" \n\t"\338 "psrlq $32, "#a" \n\t"\339 @@ -2922,8 +2921,6 @@340 #undef PHADDD341 #endif //HAVE_SSSE3342 343 -#endif /* CONFIG_ENCODERS */344 -345 #define PREFETCH(name, op) \346 static void name(void *mem, int stride, int h){\347 const uint8_t *p= mem;\348 286 Index: ffmpeg/libavcodec/i386/h264dsp_mmx.c 349 287 =================================================================== 350 --- ffmpeg/libavcodec/i386/h264dsp_mmx.c (revision 122 18)288 --- ffmpeg/libavcodec/i386/h264dsp_mmx.c (revision 12223) 351 289 +++ ffmpeg/libavcodec/i386/h264dsp_mmx.c (working copy) 352 290 @@ -417,21 +417,21 @@ … … 411 349 Index: ffmpeg/libavcodec/i386/simple_idct_mmx.c 412 350 =================================================================== 413 --- ffmpeg/libavcodec/i386/simple_idct_mmx.c (revision 122 18)351 --- ffmpeg/libavcodec/i386/simple_idct_mmx.c (revision 12223) 414 352 +++ ffmpeg/libavcodec/i386/simple_idct_mmx.c (working copy) 415 353 @@ -363,7 +363,7 @@ … … 460 398 Index: ffmpeg/libavcodec/i386/vc1dsp_mmx.c 461 399 =================================================================== 462 --- ffmpeg/libavcodec/i386/vc1dsp_mmx.c (revision 122 18)400 --- ffmpeg/libavcodec/i386/vc1dsp_mmx.c (revision 12223) 463 401 +++ ffmpeg/libavcodec/i386/vc1dsp_mmx.c (working copy) 464 402 @@ -77,7 +77,7 @@
