Changeset 814
- Timestamp:
- 02/25/08 13:54:42 (9 months ago)
- Files:
-
- trunk/Patches/ffmpeg.diff (modified) (20 diffs)
- trunk/Perian.xcodeproj/project.pbxproj (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/Patches/ffmpeg.diff
r810 r814 1 1 Index: ffmpeg/libavcodec/i386/motion_est_mmx.c 2 2 =================================================================== 3 --- ffmpeg/libavcodec/i386/motion_est_mmx.c (revision 1 1959)3 --- ffmpeg/libavcodec/i386/motion_est_mmx.c (revision 12218) 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 1 1959)43 --- ffmpeg/libavcodec/i386/dsputil_h264_template_mmx.c (revision 12218) 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 1 1959)67 --- ffmpeg/libavcodec/i386/dsputil_mmx.c (revision 12218) 68 68 +++ ffmpeg/libavcodec/i386/dsputil_mmx.c (working copy) 69 @@ -1927,7 +1927,7 @@ 70 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 - 71 115 #define QPEL_V_LOW(m3,m4,m5,m6, pw_20, pw_3, rnd, in0, in1, in2, in7, out, OP)\ 72 116 "paddw " #m4 ", " #m3 " \n\t" /* x1 */\ … … 76 120 "movq "#in7", " #m3 " \n\t" /* d */\ 77 121 "movq "#in0", %%mm5 \n\t" /* D */\ 78 @@ - 1939,7 +1939,7 @@122 @@ -2034,7 +2027,7 @@ 79 123 "paddw " #m5 ", %%mm6 \n\t" /* x2 */\ 80 124 "paddw %%mm6, %%mm6 \n\t" /* 2x2 */\ … … 85 129 "paddw %%mm4, %%mm5 \n\t" /* 20x1 - 6x2 + 3x3 - x4 */\ 86 130 "psraw $5, %%mm5 \n\t"\ 87 @@ - 1973,10 +1973,10 @@131 @@ -2068,10 +2061,10 @@ 88 132 "paddw %%mm5, %%mm5 \n\t" /* 2b */\ 89 133 "psubw %%mm5, %%mm6 \n\t" /* c - 2b */\ … … 98 142 "paddw %6, %%mm6 \n\t"\ 99 143 "paddw %%mm6, %%mm0 \n\t" /* 20a - 6b + 3c - d */\ 100 @@ - 1999,10 +1999,10 @@144 @@ -2094,10 +2087,10 @@ 101 145 "psrlq $24, %%mm6 \n\t" /* IJKLM000 */\ 102 146 "punpcklbw %%mm7, %%mm2 \n\t" /* 0F0G0H0I */\ … … 111 155 "paddw %6, %%mm1 \n\t"\ 112 156 "paddw %%mm1, %%mm3 \n\t" /* 20a - 6b +3c - d */\ 113 @@ -2 025,7 +2025,7 @@157 @@ -2120,7 +2113,7 @@ 114 158 "psubw %%mm5, %%mm0 \n\t" /* c - 2b */\ 115 159 "movq %%mm3, %%mm5 \n\t" /* JKLMNOPQ */\ … … 120 164 "paddw %%mm3, %%mm2 \n\t" /* d */\ 121 165 "psubw %%mm2, %%mm0 \n\t" /* -6b + 3c - d */\ 122 @@ -2 033,7 +2033,7 @@166 @@ -2128,7 +2121,7 @@ 123 167 "punpcklbw %%mm7, %%mm2 \n\t" /* 0J0K0L0M */\ 124 168 "punpckhbw %%mm7, %%mm5 \n\t" /* 0N0O0P0Q */\ … … 129 173 "paddw %%mm6, %%mm0 \n\t" /* 20a - 6b + 3c - d */\ 130 174 "psraw $5, %%mm0 \n\t"\ 131 @@ -2 048,8 +2048,8 @@175 @@ -2143,8 +2136,8 @@ 132 176 "paddw %%mm2, %%mm5 \n\t" /* d */\ 133 177 "paddw %%mm6, %%mm6 \n\t" /* 2b */\ … … 140 184 "paddw %6, %%mm4 \n\t"\ 141 185 "paddw %%mm3, %%mm4 \n\t" /* 20a - 6b + 3c - d */\ 142 @@ -2 062,7 +2062,9 @@186 @@ -2157,7 +2150,9 @@ 143 187 "decl %2 \n\t"\ 144 188 " jnz 1b \n\t"\ … … 151 195 );\ 152 196 }\ 153 @@ -2 140,10 +2142,10 @@197 @@ -2235,10 +2230,10 @@ 154 198 "paddw %%mm5, %%mm5 \n\t" /* 2b */\ 155 199 "psubw %%mm5, %%mm6 \n\t" /* c - 2b */\ … … 164 208 "paddw %6, %%mm6 \n\t"\ 165 209 "paddw %%mm6, %%mm0 \n\t" /* 20a - 6b + 3c - d */\ 166 @@ -2 161,8 +2163,8 @@210 @@ -2256,8 +2251,8 @@ 167 211 "paddw %%mm5, %%mm4 \n\t" /* d */\ 168 212 "paddw %%mm2, %%mm2 \n\t" /* 2b */\ … … 175 219 "paddw %6, %%mm1 \n\t"\ 176 220 "paddw %%mm1, %%mm3 \n\t" /* 20a - 6b + 3c - d */\ 177 @@ -2 175,7 +2177,9 @@221 @@ -2270,7 +2265,9 @@ 178 222 "decl %2 \n\t"\ 179 223 " jnz 1b \n\t"\ … … 186 230 );\ 187 231 }\ 188 @@ -2 254,31 +2258,31 @@232 @@ -2349,31 +2346,31 @@ 189 233 "movq 8(%0), %%mm1 \n\t"\ 190 234 "movq 16(%0), %%mm2 \n\t"\ … … 234 278 "add $136, %0 \n\t"\ 235 279 "add %6, %1 \n\t"\ 236 @@ -2 286,7 +2290,9 @@280 @@ -2381,7 +2378,9 @@ 237 281 " jnz 1b \n\t"\ 238 282 \ … … 245 289 );\ 246 290 }\ 247 @@ -2 326,19 +2332,19 @@291 @@ -2421,19 +2420,19 @@ 248 292 "movq 8(%0), %%mm1 \n\t"\ 249 293 "movq 16(%0), %%mm2 \n\t"\ … … 273 317 "add $72, %0 \n\t"\ 274 318 "add %6, %1 \n\t"\ 275 @@ -2 346,7 +2352,9 @@319 @@ -2441,7 +2440,9 @@ 276 320 " jnz 1b \n\t"\ 277 321 \ … … 284 328 );\ 285 329 }\ 330 @@ -2858,8 +2859,6 @@ 331 } 332 } 333 334 -#ifdef CONFIG_ENCODERS 335 - 336 #define PHADDD(a, t)\ 337 "movq "#a", "#t" \n\t"\ 338 "psrlq $32, "#a" \n\t"\ 339 @@ -2922,8 +2921,6 @@ 340 #undef PHADDD 341 #endif //HAVE_SSSE3 342 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;\ 286 348 Index: ffmpeg/libavcodec/i386/h264dsp_mmx.c 287 349 =================================================================== 288 --- ffmpeg/libavcodec/i386/h264dsp_mmx.c (revision 1 1959)350 --- ffmpeg/libavcodec/i386/h264dsp_mmx.c (revision 12218) 289 351 +++ ffmpeg/libavcodec/i386/h264dsp_mmx.c (working copy) 290 352 @@ -417,21 +417,21 @@ … … 349 411 Index: ffmpeg/libavcodec/i386/simple_idct_mmx.c 350 412 =================================================================== 351 --- ffmpeg/libavcodec/i386/simple_idct_mmx.c (revision 1 1959)413 --- ffmpeg/libavcodec/i386/simple_idct_mmx.c (revision 12218) 352 414 +++ ffmpeg/libavcodec/i386/simple_idct_mmx.c (working copy) 353 415 @@ -363,7 +363,7 @@ … … 398 460 Index: ffmpeg/libavcodec/i386/vc1dsp_mmx.c 399 461 =================================================================== 400 --- ffmpeg/libavcodec/i386/vc1dsp_mmx.c (revision 1 1959)462 --- ffmpeg/libavcodec/i386/vc1dsp_mmx.c (revision 12218) 401 463 +++ ffmpeg/libavcodec/i386/vc1dsp_mmx.c (working copy) 402 464 @@ -77,7 +77,7 @@ trunk/Perian.xcodeproj/project.pbxproj
r813 r814 1871 1871 GCC_WARN_UNUSED_VARIABLE = YES; 1872 1872 HEADER_SEARCH_PATHS = ( 1873 ffmpeg/libavcodec, 1874 ffmpeg/libavutil, 1875 ffmpeg/libpostproc, 1876 ffmpeg/libavformat, 1873 "ffmpeg/**", 1877 1874 libebml, 1878 1875 libmatroska, … … 1917 1914 GCC_WARN_UNUSED_VARIABLE = YES; 1918 1915 HEADER_SEARCH_PATHS = ( 1919 ffmpeg/libavcodec, 1920 ffmpeg/libavutil, 1921 ffmpeg/libpostproc, 1922 ffmpeg/libavformat, 1916 "ffmpeg/**", 1923 1917 libebml, 1924 1918 libmatroska, … … 2047 2041 GCC_WARN_UNUSED_VARIABLE = YES; 2048 2042 HEADER_SEARCH_PATHS = ( 2049 ffmpeg/libavcodec, 2050 ffmpeg/libavutil, 2051 ffmpeg/libpostproc, 2052 ffmpeg/libavformat, 2043 "ffmpeg/**", 2053 2044 libebml, 2054 2045 libmatroska,
