Browse code

Add libavcodec to compiler include flags in order to simplify header include paths in the source files. mostly from a patch by Ronald S. Bultje, rbultje ronald.bitfreak net

Originally committed as revision 9034 to svn://svn.ffmpeg.org/ffmpeg/trunk

Ronald S. Bultje authored on 2007/05/16 18:51:45
Showing 47 changed files
... ...
@@ -4,7 +4,7 @@
4 4
 #
5 5
 include ../config.mak
6 6
 
7
-CFLAGS+=-I$(SRC_PATH)/libswscale
7
+CFLAGS+=-I$(SRC_PATH)/libswscale -I$(SRC_PATH)/libavcodec
8 8
 
9 9
 OBJS= bitstream.o \
10 10
       utils.o \
... ...
@@ -20,7 +20,7 @@
20 20
  */
21 21
 
22 22
 #include "asm.h"
23
-#include "../dsputil.h"
23
+#include "dsputil.h"
24 24
 
25 25
 extern void simple_idct_axp(DCTELEM *block);
26 26
 extern void simple_idct_put_axp(uint8_t *dest, int line_size, DCTELEM *block);
... ...
@@ -20,7 +20,7 @@
20 20
  */
21 21
 
22 22
 #include "asm.h"
23
-#include "../dsputil.h"
23
+#include "dsputil.h"
24 24
 
25 25
 void get_pixels_mvi(DCTELEM *restrict block,
26 26
                     const uint8_t *restrict pixels, int line_size)
... ...
@@ -20,8 +20,8 @@
20 20
  */
21 21
 
22 22
 #include "asm.h"
23
-#include "../dsputil.h"
24
-#include "../mpegvideo.h"
23
+#include "dsputil.h"
24
+#include "mpegvideo.h"
25 25
 
26 26
 static void dct_unquantize_h263_intra_axp(MpegEncContext *s, DCTELEM *block,
27 27
                                     int n, int qscale)
... ...
@@ -27,7 +27,7 @@
27 27
  */
28 28
 
29 29
 #include "asm.h"
30
-#include "../dsputil.h"
30
+#include "dsputil.h"
31 31
 
32 32
 extern void (*put_pixels_clamped_axp_p)(const DCTELEM *block, uint8_t *pixels,
33 33
                                         int line_size);
... ...
@@ -19,7 +19,7 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
-#include "../dsputil.h"
22
+#include "dsputil.h"
23 23
 #ifdef HAVE_IPP
24 24
 #include "ipp.h"
25 25
 #endif
... ...
@@ -19,7 +19,7 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
-#include "../dsputil.h"
22
+#include "dsputil.h"
23 23
 
24 24
 #define DEF(x, y) x ## _no_rnd_ ## y ##_iwmmxt
25 25
 #define SET_RND(regd)  __asm__ __volatile__ ("mov r12, #1 \n\t tbcsth " #regd ", r12":::"r12");
... ...
@@ -19,9 +19,9 @@
19 19
  *
20 20
  */
21 21
 
22
-#include "../dsputil.h"
23
-#include "../mpegvideo.h"
24
-#include "../avcodec.h"
22
+#include "dsputil.h"
23
+#include "mpegvideo.h"
24
+#include "avcodec.h"
25 25
 
26 26
 extern void MPV_common_init_iwmmxt(MpegEncContext *s);
27 27
 extern void MPV_common_init_armv5te(MpegEncContext *s);
... ...
@@ -25,9 +25,9 @@
25 25
  * Instructions timings and optimization guide for ARM9E: http://www.arm.com/pdfs/DDI0222B_9EJS_r1p2.pdf
26 26
  */
27 27
 
28
-#include "../dsputil.h"
29
-#include "../mpegvideo.h"
30
-#include "../avcodec.h"
28
+#include "dsputil.h"
29
+#include "mpegvideo.h"
30
+#include "avcodec.h"
31 31
 
32 32
 
33 33
 #ifdef ENABLE_ARM_TESTS
... ...
@@ -18,9 +18,9 @@
18 18
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 19
  */
20 20
 
21
-#include "../dsputil.h"
22
-#include "../mpegvideo.h"
23
-#include "../avcodec.h"
21
+#include "dsputil.h"
22
+#include "mpegvideo.h"
23
+#include "avcodec.h"
24 24
 
25 25
 static void dct_unquantize_h263_intra_iwmmxt(MpegEncContext *s,
26 26
                                              DCTELEM *block, int n, int qscale)
... ...
@@ -23,8 +23,8 @@
23 23
 
24 24
 #include <unistd.h>
25 25
 #include <bits/bfin_sram.h>
26
-#include "../avcodec.h"
27
-#include "../dsputil.h"
26
+#include "avcodec.h"
27
+#include "dsputil.h"
28 28
 
29 29
 #define USE_L1CODE
30 30
 
... ...
@@ -22,7 +22,7 @@
22 22
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
23 23
  */
24 24
 
25
-#include "../dsputil.h"
25
+#include "dsputil.h"
26 26
 #include "common.h"
27 27
 
28 28
 DECLARE_ALIGNED_8(static const uint64_t,ff_pw_4 ) = 0x0004000400040004ULL;
... ...
@@ -21,7 +21,7 @@
21 21
  */
22 22
 
23 23
 #include <stdlib.h>
24
-#include "../dsputil.h"
24
+#include "dsputil.h"
25 25
 
26 26
 #undef printf
27 27
 
... ...
@@ -22,9 +22,9 @@
22 22
  * MMX optimization by Nick Kurshev <nickols_k@mail.ru>
23 23
  */
24 24
 
25
-#include "../dsputil.h"
26
-#include "../simple_idct.h"
27
-#include "../mpegvideo.h"
25
+#include "dsputil.h"
26
+#include "simple_idct.h"
27
+#include "mpegvideo.h"
28 28
 #include "x86_cpu.h"
29 29
 #include "mmx.h"
30 30
 
... ...
@@ -30,7 +30,7 @@
30 30
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
31 31
  */
32 32
 #include "common.h"
33
-#include "../dsputil.h"
33
+#include "dsputil.h"
34 34
 #include "mmx.h"
35 35
 
36 36
 #define ATTR_ALIGN(align) __attribute__ ((__aligned__ (align)))
... ...
@@ -19,7 +19,7 @@
19 19
  * License along with FFmpeg; if not, write to the Free Software
20 20
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 21
  */
22
-#include "../dsputil.h"
22
+#include "dsputil.h"
23 23
 
24 24
 static const int p1m1[2] __attribute__((aligned(8))) =
25 25
     { 0, 1 << 31 };
... ...
@@ -19,7 +19,7 @@
19 19
  * License along with FFmpeg; if not, write to the Free Software
20 20
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 21
  */
22
-#include "../dsputil.h"
22
+#include "dsputil.h"
23 23
 
24 24
 static const int p1m1[2] __attribute__((aligned(8))) =
25 25
     { 0, 1 << 31 };
... ...
@@ -18,7 +18,7 @@
18 18
  * License along with FFmpeg; if not, write to the Free Software
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21
-#include "../dsputil.h"
21
+#include "dsputil.h"
22 22
 
23 23
 static const int p1p1p1m1[4] __attribute__((aligned(16))) =
24 24
     { 0, 0, 0, 1 << 31 };
... ...
@@ -20,7 +20,7 @@
20 20
  */
21 21
 
22 22
 #include "common.h"
23
-#include "../dsputil.h"
23
+#include "dsputil.h"
24 24
 
25 25
 #include "mmx.h"
26 26
 
... ...
@@ -50,7 +50,7 @@
50 50
 
51 51
 
52 52
 #include <inttypes.h>
53
-#include "../avcodec.h"
53
+#include "avcodec.h"
54 54
 
55 55
 //=============================================================================
56 56
 // Macros and other preprocessor constants
... ...
@@ -21,7 +21,7 @@
21 21
  *
22 22
  * mostly by Michael Niedermayer <michaelni@gmx.at>
23 23
  */
24
-#include "../dsputil.h"
24
+#include "dsputil.h"
25 25
 #include "x86_cpu.h"
26 26
 
27 27
 static const __attribute__ ((aligned(8))) uint64_t round_tab[3]={
... ...
@@ -22,9 +22,9 @@
22 22
  * h263, mpeg1, mpeg2 dequantizer & draw_edges by Michael Niedermayer <michaelni@gmx.at>
23 23
  */
24 24
 
25
-#include "../dsputil.h"
26
-#include "../mpegvideo.h"
27
-#include "../avcodec.h"
25
+#include "dsputil.h"
26
+#include "mpegvideo.h"
27
+#include "avcodec.h"
28 28
 #include "x86_cpu.h"
29 29
 
30 30
 extern uint16_t inv_zigzag_direct16[64];
... ...
@@ -19,8 +19,8 @@
19 19
  * License along with FFmpeg; if not, write to the Free Software
20 20
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 21
  */
22
-#include "../dsputil.h"
23
-#include "../simple_idct.h"
22
+#include "dsputil.h"
23
+#include "simple_idct.h"
24 24
 
25 25
 /*
26 26
 23170.475006
... ...
@@ -19,8 +19,8 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
-#include "../avcodec.h"
23
-#include "../snow.h"
22
+#include "avcodec.h"
23
+#include "snow.h"
24 24
 #include "x86_cpu.h"
25 25
 
26 26
 void ff_snow_horizontal_compose97i_sse2(DWTELEM *b, int width){
... ...
@@ -23,7 +23,7 @@
23 23
  * MMX-optimized functions cribbed from the original VP3 source code.
24 24
  */
25 25
 
26
-#include "../dsputil.h"
26
+#include "dsputil.h"
27 27
 #include "mmx.h"
28 28
 
29 29
 #define IdctAdjustBeforeShift 8
... ...
@@ -23,7 +23,7 @@
23 23
  * SSE2-optimized functions cribbed from the original VP3 source code.
24 24
  */
25 25
 
26
-#include "../dsputil.h"
26
+#include "dsputil.h"
27 27
 #include "mmx.h"
28 28
 
29 29
 static DECLARE_ALIGNED_16(const unsigned short, SSE2_dequant_const[]) =
... ...
@@ -19,8 +19,8 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
-#include "../dsputil.h"
23
-#include "../mpegvideo.h"
22
+#include "dsputil.h"
23
+#include "mpegvideo.h"
24 24
 
25 25
 #include <mlib_types.h>
26 26
 #include <mlib_status.h>
... ...
@@ -20,7 +20,7 @@
20 20
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 21
  */
22 22
 
23
-#include "../dsputil.h"
23
+#include "dsputil.h"
24 24
 
25 25
 #include "gcc_fixes.h"
26 26
 
... ...
@@ -20,7 +20,7 @@
20 20
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 21
  */
22 22
 
23
-#include "../dsputil.h"
23
+#include "dsputil.h"
24 24
 
25 25
 #include "dsputil_ppc.h"
26 26
 
... ...
@@ -21,7 +21,7 @@
21 21
 
22 22
 
23 23
 #include "common.h"
24
-#include "../dsputil.h"
24
+#include "dsputil.h"
25 25
 #include "dsputil_altivec.h"
26 26
 #include "gcc_fixes.h"
27 27
 
... ...
@@ -20,7 +20,7 @@
20 20
  * License along with FFmpeg; if not, write to the Free Software
21 21
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 22
  */
23
-#include "../dsputil.h"
23
+#include "dsputil.h"
24 24
 
25 25
 #include "gcc_fixes.h"
26 26
 
... ...
@@ -18,7 +18,7 @@
18 18
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 19
  */
20 20
 
21
-#include "../dsputil.h"
21
+#include "dsputil.h"
22 22
 
23 23
 #include "gcc_fixes.h"
24 24
 
... ...
@@ -20,7 +20,7 @@
20 20
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 21
  */
22 22
 
23
-#include "../dsputil.h"
23
+#include "dsputil.h"
24 24
 
25 25
 #include "gcc_fixes.h"
26 26
 
... ...
@@ -18,7 +18,7 @@
18 18
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 19
  */
20 20
 
21
-#include "../dsputil.h"
21
+#include "dsputil.h"
22 22
 
23 23
 #include "gcc_fixes.h"
24 24
 
... ...
@@ -39,7 +39,7 @@
39 39
 
40 40
 #include <stdlib.h>                                      /* malloc(), free() */
41 41
 #include <string.h>
42
-#include "../dsputil.h"
42
+#include "dsputil.h"
43 43
 
44 44
 #include "gcc_fixes.h"
45 45
 
... ...
@@ -23,7 +23,7 @@
23 23
  ** integer misc ops.
24 24
  **/
25 25
 
26
-#include "../dsputil.h"
26
+#include "dsputil.h"
27 27
 
28 28
 #include "gcc_fixes.h"
29 29
 
... ...
@@ -23,8 +23,8 @@
23 23
 
24 24
 #include <stdlib.h>
25 25
 #include <stdio.h>
26
-#include "../dsputil.h"
27
-#include "../mpegvideo.h"
26
+#include "dsputil.h"
27
+#include "mpegvideo.h"
28 28
 
29 29
 #include "gcc_fixes.h"
30 30
 
... ...
@@ -18,8 +18,8 @@
18 18
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 19
  */
20 20
 
21
-#include "../dsputil.h"
22
-#include "../mpegvideo.h"
21
+#include "dsputil.h"
22
+#include "mpegvideo.h"
23 23
 #include <time.h>
24 24
 
25 25
 #ifdef HAVE_ALTIVEC
... ...
@@ -21,11 +21,11 @@
21 21
  *
22 22
  */
23 23
 
24
-#include "../dsputil.h"
24
+#include "dsputil.h"
25 25
 
26 26
 #include "gcc_fixes.h"
27 27
 #include "dsputil_altivec.h"
28
-#include "../snow.h"
28
+#include "snow.h"
29 29
 
30 30
 #undef NDEBUG
31 31
 #include <assert.h>
... ...
@@ -20,7 +20,7 @@
20 20
  *
21 21
  */
22 22
 
23
-#include "../dsputil.h"
23
+#include "dsputil.h"
24 24
 
25 25
 #include "gcc_fixes.h"
26 26
 
... ...
@@ -22,7 +22,7 @@
22 22
  * clear_blocks_mmi() by BroadQ
23 23
  */
24 24
 
25
-#include "../dsputil.h"
25
+#include "dsputil.h"
26 26
 #include "mmi.h"
27 27
 
28 28
 void ff_mmi_idct_put(uint8_t *dest, int line_size, DCTELEM *block);
... ...
@@ -26,8 +26,8 @@
26 26
  *
27 27
 */
28 28
 
29
-#include "../common.h"
30
-#include "../dsputil.h"
29
+#include "common.h"
30
+#include "dsputil.h"
31 31
 #include "mmi.h"
32 32
 
33 33
 #define BITS_INV_ACC    5       // 4 or 5 for IEEE
... ...
@@ -20,9 +20,9 @@
20 20
  * MMI optimization by Leon van Stuivenberg
21 21
  */
22 22
 
23
-#include "../dsputil.h"
24
-#include "../mpegvideo.h"
25
-#include "../avcodec.h"
23
+#include "dsputil.h"
24
+#include "mpegvideo.h"
25
+#include "avcodec.h"
26 26
 
27 27
 static void dct_unquantize_h263_mmi(MpegEncContext *s,
28 28
                                   DCTELEM *block, int n, int qscale)
... ...
@@ -21,8 +21,8 @@
21 21
  */
22 22
 
23 23
 
24
-#include "../avcodec.h"
25
-#include "../dsputil.h"
24
+#include "avcodec.h"
25
+#include "dsputil.h"
26 26
 
27 27
 
28 28
 #define         LP(p)           *(uint32_t*)(p)
... ...
@@ -20,8 +20,8 @@
20 20
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 21
  */
22 22
 
23
-#include "../avcodec.h"
24
-#include "../dsputil.h"
23
+#include "avcodec.h"
24
+#include "dsputil.h"
25 25
 
26 26
 static void memzero_align8(void *dst,size_t size)
27 27
 {
... ...
@@ -20,7 +20,7 @@
20 20
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 21
  */
22 22
 
23
-#include "../dsputil.h"
23
+#include "dsputil.h"
24 24
 #define c1      1.38703984532214752434  /* sqrt(2)*cos(1*pi/16) */
25 25
 #define c2      1.30656296487637657577  /* sqrt(2)*cos(2*pi/16) */
26 26
 #define c3      1.17587560241935884520  /* sqrt(2)*cos(3*pi/16) */
... ...
@@ -31,7 +31,7 @@
31 31
 #include <signal.h>
32 32
 #include <setjmp.h>
33 33
 
34
-#include "../dsputil.h"
34
+#include "dsputil.h"
35 35
 
36 36
 #include "vis.h"
37 37