Changeset 814

Show
Ignore:
Timestamp:
02/25/08 13:54:42 (9 months ago)
Author:
astrange
Message:

Make ffmpeg build again. (local patch to fix --disable-encoders for now, and update the include paths)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Patches/ffmpeg.diff

    r810 r814  
    11Index: ffmpeg/libavcodec/i386/motion_est_mmx.c 
    22=================================================================== 
    3 --- ffmpeg/libavcodec/i386/motion_est_mmx.c     (revision 11959
     3--- ffmpeg/libavcodec/i386/motion_est_mmx.c     (revision 12218
    44+++ ffmpeg/libavcodec/i386/motion_est_mmx.c     (working copy) 
    55@@ -167,7 +167,7 @@ 
     
    4141Index: ffmpeg/libavcodec/i386/dsputil_h264_template_mmx.c 
    4242=================================================================== 
    43 --- ffmpeg/libavcodec/i386/dsputil_h264_template_mmx.c  (revision 11959
     43--- ffmpeg/libavcodec/i386/dsputil_h264_template_mmx.c  (revision 12218
    4444+++ ffmpeg/libavcodec/i386/dsputil_h264_template_mmx.c  (working copy) 
    4545@@ -192,8 +192,8 @@ 
     
    6565Index: ffmpeg/libavcodec/i386/dsputil_mmx.c 
    6666=================================================================== 
    67 --- ffmpeg/libavcodec/i386/dsputil_mmx.c        (revision 11959
     67--- ffmpeg/libavcodec/i386/dsputil_mmx.c        (revision 12218
    6868+++ 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
    71115 #define QPEL_V_LOW(m3,m4,m5,m6, pw_20, pw_3, rnd, in0, in1, in2, in7, out, OP)\ 
    72116         "paddw " #m4 ", " #m3 "           \n\t" /* x1 */\ 
     
    76120         "movq "#in7", " #m3 "             \n\t" /* d */\ 
    77121         "movq "#in0", %%mm5               \n\t" /* D */\ 
    78 @@ -1939,7 +1939,7 @@ 
     122@@ -2034,7 +2027,7 @@ 
    79123         "paddw " #m5 ", %%mm6             \n\t" /* x2 */\ 
    80124         "paddw %%mm6, %%mm6               \n\t" /* 2x2 */\ 
     
    85129         "paddw %%mm4, %%mm5               \n\t" /* 20x1 - 6x2 + 3x3 - x4 */\ 
    86130         "psraw $5, %%mm5                  \n\t"\ 
    87 @@ -1973,10 +1973,10 @@ 
     131@@ -2068,10 +2061,10 @@ 
    88132         "paddw %%mm5, %%mm5               \n\t" /* 2b */\ 
    89133         "psubw %%mm5, %%mm6               \n\t" /* c - 2b */\ 
     
    98142         "paddw %6, %%mm6                  \n\t"\ 
    99143         "paddw %%mm6, %%mm0               \n\t" /* 20a - 6b + 3c - d */\ 
    100 @@ -1999,10 +1999,10 @@ 
     144@@ -2094,10 +2087,10 @@ 
    101145         "psrlq $24, %%mm6                 \n\t" /* IJKLM000 */\ 
    102146         "punpcklbw %%mm7, %%mm2           \n\t" /* 0F0G0H0I */\ 
     
    111155         "paddw %6, %%mm1                  \n\t"\ 
    112156         "paddw %%mm1, %%mm3               \n\t" /* 20a - 6b +3c - d */\ 
    113 @@ -2025,7 +2025,7 @@ 
     157@@ -2120,7 +2113,7 @@ 
    114158         "psubw %%mm5, %%mm0               \n\t" /* c - 2b */\ 
    115159         "movq %%mm3, %%mm5                \n\t" /* JKLMNOPQ */\ 
     
    120164         "paddw %%mm3, %%mm2               \n\t" /* d */\ 
    121165         "psubw %%mm2, %%mm0               \n\t" /* -6b + 3c - d */\ 
    122 @@ -2033,7 +2033,7 @@ 
     166@@ -2128,7 +2121,7 @@ 
    123167         "punpcklbw %%mm7, %%mm2           \n\t" /* 0J0K0L0M */\ 
    124168         "punpckhbw %%mm7, %%mm5           \n\t" /* 0N0O0P0Q */\ 
     
    129173         "paddw %%mm6, %%mm0               \n\t" /* 20a - 6b + 3c - d */\ 
    130174         "psraw $5, %%mm0                  \n\t"\ 
    131 @@ -2048,8 +2048,8 @@ 
     175@@ -2143,8 +2136,8 @@ 
    132176         "paddw %%mm2, %%mm5               \n\t" /* d */\ 
    133177         "paddw %%mm6, %%mm6               \n\t" /* 2b */\ 
     
    140184         "paddw %6, %%mm4                  \n\t"\ 
    141185         "paddw %%mm3, %%mm4               \n\t" /* 20a - 6b + 3c - d */\ 
    142 @@ -2062,7 +2062,9 @@ 
     186@@ -2157,7 +2150,9 @@ 
    143187         "decl %2                          \n\t"\ 
    144188         " jnz 1b                          \n\t"\ 
     
    151195     );\ 
    152196 }\ 
    153 @@ -2140,10 +2142,10 @@ 
     197@@ -2235,10 +2230,10 @@ 
    154198         "paddw %%mm5, %%mm5               \n\t" /* 2b */\ 
    155199         "psubw %%mm5, %%mm6               \n\t" /* c - 2b */\ 
     
    164208         "paddw %6, %%mm6                  \n\t"\ 
    165209         "paddw %%mm6, %%mm0               \n\t" /* 20a - 6b + 3c - d */\ 
    166 @@ -2161,8 +2163,8 @@ 
     210@@ -2256,8 +2251,8 @@ 
    167211         "paddw %%mm5, %%mm4               \n\t" /* d */\ 
    168212         "paddw %%mm2, %%mm2               \n\t" /* 2b */\ 
     
    175219         "paddw %6, %%mm1                  \n\t"\ 
    176220         "paddw %%mm1, %%mm3               \n\t" /* 20a - 6b + 3c - d */\ 
    177 @@ -2175,7 +2177,9 @@ 
     221@@ -2270,7 +2265,9 @@ 
    178222         "decl %2                          \n\t"\ 
    179223         " jnz 1b                          \n\t"\ 
     
    186230     );\ 
    187231 }\ 
    188 @@ -2254,31 +2258,31 @@ 
     232@@ -2349,31 +2346,31 @@ 
    189233         "movq 8(%0), %%mm1              \n\t"\ 
    190234         "movq 16(%0), %%mm2             \n\t"\ 
     
    234278         "add $136, %0                   \n\t"\ 
    235279         "add %6, %1                     \n\t"\ 
    236 @@ -2286,7 +2290,9 @@ 
     280@@ -2381,7 +2378,9 @@ 
    237281         " jnz 1b                        \n\t"\ 
    238282         \ 
     
    245289     );\ 
    246290 }\ 
    247 @@ -2326,19 +2332,19 @@ 
     291@@ -2421,19 +2420,19 @@ 
    248292         "movq 8(%0), %%mm1              \n\t"\ 
    249293         "movq 16(%0), %%mm2             \n\t"\ 
     
    273317         "add $72, %0                    \n\t"\ 
    274318         "add %6, %1                     \n\t"\ 
    275 @@ -2346,7 +2352,9 @@ 
     319@@ -2441,7 +2440,9 @@ 
    276320         " jnz 1b                        \n\t"\ 
    277321          \ 
     
    284328    );\ 
    285329 }\ 
     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;\ 
    286348Index: ffmpeg/libavcodec/i386/h264dsp_mmx.c 
    287349=================================================================== 
    288 --- ffmpeg/libavcodec/i386/h264dsp_mmx.c        (revision 11959
     350--- ffmpeg/libavcodec/i386/h264dsp_mmx.c        (revision 12218
    289351+++ ffmpeg/libavcodec/i386/h264dsp_mmx.c        (working copy) 
    290352@@ -417,21 +417,21 @@ 
     
    349411Index: ffmpeg/libavcodec/i386/simple_idct_mmx.c 
    350412=================================================================== 
    351 --- ffmpeg/libavcodec/i386/simple_idct_mmx.c    (revision 11959
     413--- ffmpeg/libavcodec/i386/simple_idct_mmx.c    (revision 12218
    352414+++ ffmpeg/libavcodec/i386/simple_idct_mmx.c    (working copy) 
    353415@@ -363,7 +363,7 @@ 
     
    398460Index: ffmpeg/libavcodec/i386/vc1dsp_mmx.c 
    399461=================================================================== 
    400 --- ffmpeg/libavcodec/i386/vc1dsp_mmx.c (revision 11959
     462--- ffmpeg/libavcodec/i386/vc1dsp_mmx.c (revision 12218
    401463+++ ffmpeg/libavcodec/i386/vc1dsp_mmx.c (working copy) 
    402464@@ -77,7 +77,7 @@ 
  • trunk/Perian.xcodeproj/project.pbxproj

    r813 r814  
    18711871                                GCC_WARN_UNUSED_VARIABLE = YES; 
    18721872                                HEADER_SEARCH_PATHS = ( 
    1873                                         ffmpeg/libavcodec, 
    1874                                         ffmpeg/libavutil, 
    1875                                         ffmpeg/libpostproc, 
    1876                                         ffmpeg/libavformat, 
     1873                                        "ffmpeg/**", 
    18771874                                        libebml, 
    18781875                                        libmatroska, 
     
    19171914                                GCC_WARN_UNUSED_VARIABLE = YES; 
    19181915                                HEADER_SEARCH_PATHS = ( 
    1919                                         ffmpeg/libavcodec, 
    1920                                         ffmpeg/libavutil, 
    1921                                         ffmpeg/libpostproc, 
    1922                                         ffmpeg/libavformat, 
     1916                                        "ffmpeg/**", 
    19231917                                        libebml, 
    19241918                                        libmatroska, 
     
    20472041                                GCC_WARN_UNUSED_VARIABLE = YES; 
    20482042                                HEADER_SEARCH_PATHS = ( 
    2049                                         ffmpeg/libavcodec, 
    2050                                         ffmpeg/libavutil, 
    2051                                         ffmpeg/libpostproc, 
    2052                                         ffmpeg/libavformat, 
     2043                                        "ffmpeg/**", 
    20532044                                        libebml, 
    20542045                                        libmatroska,