Browse code

Use full path for #includes from another directory.

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

Diego Biurrun authored on 2008/05/09 20:56:36
Showing 192 changed files
... ...
@@ -25,14 +25,14 @@
25 25
 #include <math.h>
26 26
 
27 27
 #include "config.h"
28
-#include "avformat.h"
29
-#include "avfilter.h"
30
-#include "avdevice.h"
28
+#include "libavformat/avformat.h"
29
+#include "libavfilter/avfilter.h"
30
+#include "libavdevice/avdevice.h"
31
+#include "libavutil/avstring.h"
31 32
 #include "cmdutils.h"
32
-#include "avstring.h"
33 33
 #include "version.h"
34 34
 #ifdef CONFIG_NETWORK
35
-#include "network.h"
35
+#include "libavformat/network.h"
36 36
 #endif
37 37
 
38 38
 #undef exit
... ...
@@ -27,14 +27,14 @@
27 27
 #include <errno.h>
28 28
 #include <signal.h>
29 29
 #include <limits.h>
30
-#include "avformat.h"
31
-#include "avdevice.h"
32
-#include "swscale.h"
33
-#include "framehook.h"
34
-#include "opt.h"
35
-#include "fifo.h"
36
-#include "avstring.h"
37
-#include "os_support.h"
30
+#include "libavformat/avformat.h"
31
+#include "libavdevice/avdevice.h"
32
+#include "libswscale/swscale.h"
33
+#include "libavformat/framehook.h"
34
+#include "libavcodec/opt.h"
35
+#include "libavutil/fifo.h"
36
+#include "libavutil/avstring.h"
37
+#include "libavformat/os_support.h"
38 38
 
39 39
 #ifdef HAVE_SYS_RESOURCE_H
40 40
 #include <sys/resource.h>
... ...
@@ -21,11 +21,11 @@
21 21
 
22 22
 #include <math.h>
23 23
 #include <limits.h>
24
-#include "avformat.h"
25
-#include "avdevice.h"
26
-#include "rtsp.h"
27
-#include "swscale.h"
28
-#include "avstring.h"
24
+#include "libavutil/avstring.h"
25
+#include "libavformat/avformat.h"
26
+#include "libavformat/rtsp.h"
27
+#include "libavdevice/avdevice.h"
28
+#include "libswscale/swscale.h"
29 29
 
30 30
 #include "version.h"
31 31
 #include "cmdutils.h"
... ...
@@ -25,10 +25,13 @@
25 25
 #endif
26 26
 #include <string.h>
27 27
 #include <stdlib.h>
28
-#include "avformat.h"
29
-#include "rtsp.h"
30
-#include "rtp.h"
31
-#include "os_support.h"
28
+#include "libavutil/random.h"
29
+#include "libavutil/avstring.h"
30
+#include "libavformat/avformat.h"
31
+#include "libavformat/network.h"
32
+#include "libavformat/os_support.h"
33
+#include "libavformat/rtp.h"
34
+#include "libavformat/rtsp.h"
32 35
 
33 36
 #include <stdarg.h>
34 37
 #include <unistd.h>
... ...
@@ -47,11 +50,8 @@
47 47
 #include <dlfcn.h>
48 48
 #endif
49 49
 
50
-#include "network.h"
51 50
 #include "version.h"
52 51
 #include "ffserver.h"
53
-#include "random.h"
54
-#include "avstring.h"
55 52
 #include "cmdutils.h"
56 53
 
57 54
 #undef exit
... ...
@@ -32,12 +32,12 @@
32 32
 #include <math.h>
33 33
 #include <string.h>
34 34
 
35
+#include "libavutil/crc.h"
36
+#include "libavutil/random.h"
35 37
 #include "avcodec.h"
36 38
 #include "ac3_parser.h"
37 39
 #include "bitstream.h"
38
-#include "crc.h"
39 40
 #include "dsputil.h"
40
-#include "random.h"
41 41
 
42 42
 /** Maximum possible frame size when the specification limit is ignored */
43 43
 #define AC3_MAX_FRAME_SIZE 21695
... ...
@@ -25,9 +25,9 @@
25 25
  */
26 26
 //#define DEBUG
27 27
 //#define DEBUG_BITALLOC
28
+#include "libavutil/crc.h"
28 29
 #include "avcodec.h"
29 30
 #include "bitstream.h"
30
-#include "crc.h"
31 31
 #include "ac3.h"
32 32
 
33 33
 typedef struct AC3EncodeContext {
... ...
@@ -22,7 +22,7 @@
22 22
 #ifndef FFMPEG_AC3TAB_H
23 23
 #define FFMPEG_AC3TAB_H
24 24
 
25
-#include "common.h"
25
+#include "libavutil/common.h"
26 26
 
27 27
 extern const uint16_t ff_ac3_frame_size_tab[38][3];
28 28
 extern const uint8_t  ff_ac3_channels_tab[8];
... ...
@@ -19,8 +19,8 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
+#include "libavcodec/dsputil.h"
22 23
 #include "asm.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);
... ...
@@ -19,8 +19,8 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
+#include "libavcodec/dsputil.h"
22 23
 #include "asm.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)
... ...
@@ -19,9 +19,9 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
+#include "libavcodec/dsputil.h"
23
+#include "libavcodec/mpegvideo.h"
22 24
 #include "asm.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)
... ...
@@ -26,8 +26,8 @@
26 26
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
27 27
  */
28 28
 
29
+#include "libavcodec/dsputil.h"
29 30
 #include "asm.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 "libavcodec/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 "libavcodec/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");
... ...
@@ -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 "libavcodec/avcodec.h"
22
+#include "libavcodec/dsputil.h"
23
+#include "libavcodec/mpegvideo.h"
24 24
 
25 25
 extern void MPV_common_init_iwmmxt(MpegEncContext *s);
26 26
 extern void MPV_common_init_armv5te(MpegEncContext *s);
... ...
@@ -19,9 +19,9 @@
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"
24
-#include "avcodec.h"
22
+#include "libavcodec/avcodec.h"
23
+#include "libavcodec/dsputil.h"
24
+#include "libavcodec/mpegvideo.h"
25 25
 
26 26
 
27 27
 #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 "libavcodec/avcodec.h"
22
+#include "libavcodec/dsputil.h"
23
+#include "libavcodec/mpegvideo.h"
24 24
 
25 25
 static void dct_unquantize_h263_intra_iwmmxt(MpegEncContext *s,
26 26
                                              DCTELEM *block, int n, int qscale)
... ...
@@ -27,7 +27,7 @@
27 27
  * @sa http://www.svatopluk.com/andux/docs/dfvid.html
28 28
  */
29 29
 
30
-#include "common.h"
30
+#include "libavutil/common.h"
31 31
 #include "dsputil.h"
32 32
 #include "bethsoftvideo.h"
33 33
 #include "bytestream.h"
... ...
@@ -26,8 +26,8 @@
26 26
  * @sa http://wiki.multimedia.cx/index.php?title=BFI
27 27
  */
28 28
 
29
+#include "libavutil/common.h"
29 30
 #include "avcodec.h"
30
-#include "common.h"
31 31
 #include "bytestream.h"
32 32
 
33 33
 typedef struct BFIContext {
... ...
@@ -22,8 +22,8 @@
22 22
  */
23 23
 
24 24
 #include <unistd.h>
25
-#include "avcodec.h"
26
-#include "dsputil.h"
25
+#include "libavcodec/avcodec.h"
26
+#include "libavcodec/dsputil.h"
27 27
 #include "dsputil_bfin.h"
28 28
 
29 29
 int off;
... ...
@@ -20,9 +20,9 @@
20 20
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 21
  */
22 22
 
23
-#include "dsputil.h"
24
-#include "mpegvideo.h"
25
-#include "avcodec.h"
23
+#include "libavcodec/avcodec.h"
24
+#include "libavcodec/dsputil.h"
25
+#include "libavcodec/mpegvideo.h"
26 26
 #include "dsputil_bfin.h"
27 27
 
28 28
 
... ...
@@ -18,8 +18,8 @@
18 18
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 19
  */
20 20
 
21
-#include "avcodec.h"
22
-#include "dsputil.h"
21
+#include "libavcodec/avcodec.h"
22
+#include "libavcodec/dsputil.h"
23 23
 #include "dsputil_bfin.h"
24 24
 
25 25
 extern void ff_bfin_vp3_idct (DCTELEM *block) attribute_l1_text;
... ...
@@ -29,10 +29,10 @@
29 29
 #include <stdint.h>
30 30
 #include <stdlib.h>
31 31
 #include <assert.h>
32
-#include "common.h"
33
-#include "bswap.h"
34
-#include "intreadwrite.h"
35
-#include "log.h"
32
+#include "libavutil/bswap.h"
33
+#include "libavutil/common.h"
34
+#include "libavutil/intreadwrite.h"
35
+#include "libavutil/log.h"
36 36
 
37 37
 #if defined(ALT_BITSTREAM_READER_LE) && !defined(ALT_BITSTREAM_READER)
38 38
 #   define ALT_BITSTREAM_READER
... ...
@@ -22,7 +22,7 @@
22 22
 #ifndef FFMPEG_BYTESTREAM_H
23 23
 #define FFMPEG_BYTESTREAM_H
24 24
 
25
-#include "common.h"
25
+#include "libavutil/common.h"
26 26
 
27 27
 #define DEF_T(type, name, bytes, read, write)                             \
28 28
 static av_always_inline type bytestream_get_ ## name(const uint8_t **b){\
... ...
@@ -26,7 +26,7 @@
26 26
 
27 27
 #include <string.h>
28 28
 
29
-#include "common.h"
29
+#include "libavutil/common.h"
30 30
 #include "bitstream.h"
31 31
 #include "cabac.h"
32 32
 
... ...
@@ -32,7 +32,7 @@
32 32
 //#undef NDEBUG
33 33
 #include <assert.h>
34 34
 #ifdef ARCH_X86
35
-#include "x86_cpu.h"
35
+#include "libavutil/x86_cpu.h"
36 36
 #endif
37 37
 
38 38
 #define CABAC_BITS 16
... ...
@@ -46,11 +46,11 @@
46 46
 #include <stddef.h>
47 47
 #include <stdio.h>
48 48
 
49
+#include "libavutil/random.h"
49 50
 #include "avcodec.h"
50 51
 #include "bitstream.h"
51 52
 #include "dsputil.h"
52 53
 #include "bytestream.h"
53
-#include "random.h"
54 54
 
55 55
 #include "cookdata.h"
56 56
 
... ...
@@ -26,7 +26,7 @@
26 26
 #ifdef CONFIG_ZLIB
27 27
 #include <zlib.h>
28 28
 #endif
29
-#include "lzo.h"
29
+#include "libavutil/lzo.h"
30 30
 
31 31
 typedef struct {
32 32
     AVFrame pic;
... ...
@@ -27,8 +27,8 @@
27 27
 #ifndef FFMPEG_DVDATA_H
28 28
 #define FFMPEG_DVDATA_H
29 29
 
30
+#include "libavutil/rational.h"
30 31
 #include "avcodec.h"
31
-#include "rational.h"
32 32
 
33 33
 /*
34 34
  * DVprofile is used to express the differences between various
... ...
@@ -25,9 +25,9 @@
25 25
 
26 26
 #include <string.h>
27 27
 
28
+#include "libavutil/random.h"
28 29
 #include "elbg.h"
29 30
 #include "avcodec.h"
30
-#include "random.h"
31 31
 
32 32
 #define DELTA_ERR_MAX 0.1  ///< Precision of the ELBG algorithm (as percentual error)
33 33
 
... ...
@@ -21,7 +21,7 @@
21 21
 #ifndef FFMPEG_ELBG_H
22 22
 #define FFMPEG_ELBG_H
23 23
 
24
-#include "random.h"
24
+#include "libavutil/random.h"
25 25
 
26 26
 /**
27 27
  * Implementation of the Enhanced LBG Algorithm
... ...
@@ -36,10 +36,10 @@
36 36
 #include <limits.h>
37 37
 
38 38
 #define ALT_BITSTREAM_READER
39
+#include "libavutil/crc.h"
39 40
 #include "avcodec.h"
40 41
 #include "bitstream.h"
41 42
 #include "golomb.h"
42
-#include "crc.h"
43 43
 #include "flac.h"
44 44
 
45 45
 #undef NDEBUG
... ...
@@ -19,12 +19,12 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
+#include "libavutil/crc.h"
23
+#include "libavutil/lls.h"
22 24
 #include "avcodec.h"
23 25
 #include "bitstream.h"
24
-#include "crc.h"
25 26
 #include "dsputil.h"
26 27
 #include "golomb.h"
27
-#include "lls.h"
28 28
 
29 29
 #define FLAC_MAX_CH  8
30 30
 #define FLAC_MIN_BLOCKSIZE  16
... ...
@@ -40,8 +40,8 @@
40 40
 #include <string.h>
41 41
 #include <unistd.h>
42 42
 
43
+#include "libavutil/bswap.h"
43 44
 #include "avcodec.h"
44
-#include "bswap.h"
45 45
 
46 46
 #define FLI_256_COLOR 4
47 47
 #define FLI_DELTA     7
... ...
@@ -26,7 +26,7 @@
26 26
  * @author Michael Niedermayer <michaelni@gmx.at>
27 27
  */
28 28
 
29
-#include "common.h"
29
+#include "libavutil/common.h"
30 30
 
31 31
 const uint8_t ff_golomb_vlc_len[512]={
32 32
 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,9,
... ...
@@ -30,8 +30,8 @@
30 30
 #define FFMPEG_H264DATA_H
31 31
 
32 32
 #include <stdint.h>
33
+#include "libavutil/rational.h"
33 34
 #include "mpegvideo.h"
34
-#include "rational.h"
35 35
 
36 36
 
37 37
 #define EXTENDED_SAR          255
... ...
@@ -17,7 +17,7 @@
17 17
  */
18 18
 
19 19
 
20
-#include "common.h"
20
+#include "libavutil/common.h"
21 21
 #include "bitstream.h"
22 22
 #include "mpegvideo.h"
23 23
 #include "h264data.h"
... ...
@@ -28,7 +28,7 @@
28 28
 #ifndef FFMPEG_H264PRED_H
29 29
 #define FFMPEG_H264PRED_H
30 30
 
31
-#include "common.h"
31
+#include "libavutil/common.h"
32 32
 
33 33
 /**
34 34
  * Prediction types
... ...
@@ -22,10 +22,10 @@
22 22
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 23
  */
24 24
 
25
-#include "dsputil.h"
25
+#include "libavutil/common.h"
26
+#include "libavutil/x86_cpu.h"
27
+#include "libavcodec/dsputil.h"
26 28
 #include "dsputil_mmx.h"
27
-#include "common.h"
28
-#include "x86_cpu.h"
29 29
 
30 30
 /*****************************************************************************
31 31
  *
... ...
@@ -21,8 +21,8 @@
21 21
  */
22 22
 
23 23
 #include <stdlib.h>
24
-#include "dsputil.h"
25
-#include "x86_cpu.h"
24
+#include "libavutil/x86_cpu.h"
25
+#include "libavcodec/dsputil.h"
26 26
 
27 27
 #undef printf
28 28
 
... ...
@@ -22,16 +22,16 @@
22 22
  * MMX optimization by Nick Kurshev <nickols_k@mail.ru>
23 23
  */
24 24
 
25
-#include "dsputil.h"
25
+#include "libavutil/x86_cpu.h"
26
+#include "libavcodec/dsputil.h"
27
+#include "libavcodec/h263.h"
28
+#include "libavcodec/mpegvideo.h"
29
+#include "libavcodec/simple_idct.h"
26 30
 #include "dsputil_mmx.h"
27
-#include "simple_idct.h"
28
-#include "mpegvideo.h"
29
-#include "x86_cpu.h"
30 31
 #include "mmx.h"
31 32
 #include "vp3dsp_mmx.h"
32 33
 #include "vp3dsp_sse2.h"
33 34
 #include "idct_xvid.h"
34
-#include "h263.h"
35 35
 
36 36
 //#undef NDEBUG
37 37
 //#include <assert.h>
... ...
@@ -23,7 +23,7 @@
23 23
 #define FFMPEG_DSPUTIL_MMX_H
24 24
 
25 25
 #include <stdint.h>
26
-#include "dsputil.h"
26
+#include "libavcodec/dsputil.h"
27 27
 
28 28
 typedef struct { uint64_t a, b; } xmm_t;
29 29
 
... ...
@@ -22,10 +22,10 @@
22 22
  * MMX optimization by Nick Kurshev <nickols_k@mail.ru>
23 23
  */
24 24
 
25
-#include "dsputil.h"
25
+#include "libavutil/x86_cpu.h"
26
+#include "libavcodec/dsputil.h"
27
+#include "libavcodec/mpegvideo.h"
26 28
 #include "dsputil_mmx.h"
27
-#include "mpegvideo.h"
28
-#include "x86_cpu.h"
29 29
 
30 30
 
31 31
 static void get_pixels_mmx(DCTELEM *block, const uint8_t *pixels, int line_size)
... ...
@@ -29,8 +29,9 @@
29 29
  * License along with FFmpeg; if not, write to the Free Software
30 30
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
31 31
  */
32
-#include "common.h"
33
-#include "dsputil.h"
32
+
33
+#include "libavutil/common.h"
34
+#include "libavcodec/dsputil.h"
34 35
 #include "mmx.h"
35 36
 
36 37
 #define ATTR_ALIGN(align) __attribute__ ((__aligned__ (align)))
... ...
@@ -19,8 +19,9 @@
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 "x86_cpu.h"
22
+
23
+#include "libavutil/x86_cpu.h"
24
+#include "libavcodec/dsputil.h"
24 25
 
25 26
 static const int p1m1[2] __attribute__((aligned(8))) =
26 27
     { 0, 1 << 31 };
... ...
@@ -19,8 +19,9 @@
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 "x86_cpu.h"
22
+
23
+#include "libavutil/x86_cpu.h"
24
+#include "libavcodec/dsputil.h"
24 25
 
25 26
 static const int p1m1[2] __attribute__((aligned(8))) =
26 27
     { 0, 1 << 31 };
... ...
@@ -18,8 +18,9 @@
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"
22
-#include "x86_cpu.h"
21
+
22
+#include "libavutil/x86_cpu.h"
23
+#include "libavcodec/dsputil.h"
23 24
 
24 25
 static const int p1p1p1m1[4] __attribute__((aligned(16))) =
25 26
     { 0, 0, 0, 1 << 31 };
... ...
@@ -19,8 +19,8 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
+#include "libavutil/x86_cpu.h"
22 23
 #include "dsputil_mmx.h"
23
-#include "x86_cpu.h"
24 24
 
25 25
 static void apply_welch_window_sse2(const int32_t *data, int len, double *w_data)
26 26
 {
... ...
@@ -29,8 +29,7 @@
29 29
 #ifndef FFMPEG_H264_I386_H
30 30
 #define FFMPEG_H264_I386_H
31 31
 
32
-
33
-#include "cabac.h"
32
+#include "libavcodec/cabac.h"
34 33
 
35 34
 //FIXME use some macros to avoid duplicating get_cabac (cannot be done yet
36 35
 //as that would make optimization work hard)
... ...
@@ -19,8 +19,8 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
-#include "common.h"
23
-#include "dsputil.h"
22
+#include "libavutil/common.h"
23
+#include "libavcodec/dsputil.h"
24 24
 
25 25
 #include "mmx.h"
26 26
 
... ...
@@ -40,7 +40,7 @@
40 40
  */
41 41
 
42 42
 #include <inttypes.h>
43
-#include "avcodec.h"
43
+#include "libavcodec/avcodec.h"
44 44
 
45 45
 //=============================================================================
46 46
 // Macros and other preprocessor constants
... ...
@@ -38,7 +38,7 @@
38 38
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
39 39
  */
40 40
 
41
-#include "dsputil.h"
41
+#include "libavcodec/dsputil.h"
42 42
 
43 43
 /*!
44 44
  * @file idct_sse2_xvid.c
... ...
@@ -21,8 +21,9 @@
21 21
  * License along with FFmpeg; if not, write to the Free Software
22 22
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 23
  */
24
-#include "dsputil.h"
25
-#include "x86_cpu.h"
24
+
25
+#include "libavutil/x86_cpu.h"
26
+#include "libavcodec/dsputil.h"
26 27
 
27 28
 DECLARE_ASM_CONST(8, uint64_t, round_tab[3])={
28 29
 0x0000000000000000ULL,
... ...
@@ -22,11 +22,11 @@
22 22
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 23
  */
24 24
 
25
-#include "dsputil.h"
25
+#include "libavutil/x86_cpu.h"
26
+#include "libavcodec/avcodec.h"
27
+#include "libavcodec/dsputil.h"
28
+#include "libavcodec/mpegvideo.h"
26 29
 #include "dsputil_mmx.h"
27
-#include "mpegvideo.h"
28
-#include "avcodec.h"
29
-#include "x86_cpu.h"
30 30
 
31 31
 extern uint16_t inv_zigzag_direct16[64];
32 32
 
... ...
@@ -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 "libavcodec/dsputil.h"
23
+#include "libavcodec/simple_idct.h"
24 24
 
25 25
 /*
26 26
 23170.475006
... ...
@@ -19,9 +19,9 @@
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"
24
-#include "x86_cpu.h"
22
+#include "libavutil/x86_cpu.h"
23
+#include "libavcodec/avcodec.h"
24
+#include "libavcodec/snow.h"
25 25
 
26 26
 void ff_snow_horizontal_compose97i_sse2(IDWTELEM *b, int width){
27 27
     const int w2= (width+1)>>1;
... ...
@@ -24,9 +24,9 @@
24 24
  * OTHER DEALINGS IN THE SOFTWARE.
25 25
  */
26 26
 
27
-#include "dsputil.h"
27
+#include "libavutil/x86_cpu.h"
28
+#include "libavcodec/dsputil.h"
28 29
 #include "dsputil_mmx.h"
29
-#include "x86_cpu.h"
30 30
 
31 31
 /** Add rounder from mm7 to mm3 and pack result at destination */
32 32
 #define NORMALIZE_MMX(SHIFT)                                    \
... ...
@@ -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 "libavcodec/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 "libavcodec/dsputil.h"
27 27
 #include "mmx.h"
28 28
 
29 29
 static DECLARE_ALIGNED_16(const unsigned short, SSE2_dequant_const[]) =
... ...
@@ -22,7 +22,7 @@
22 22
 #ifndef FFMPEG_VP3DSP_SSE2_H
23 23
 #define FFMPEG_VP3DSP_SSE2_H
24 24
 
25
-#include "dsputil.h"
25
+#include "libavcodec/dsputil.h"
26 26
 
27 27
 void ff_vp3_idct_sse2(int16_t *input_data);
28 28
 void ff_vp3_idct_put_sse2(uint8_t *dest, int line_size, DCTELEM *block);
... ...
@@ -70,7 +70,7 @@
70 70
 
71 71
 #include <stdlib.h>
72 72
 #include <stdio.h>
73
-#include "common.h"
73
+#include "libavutil/common.h"
74 74
 #include "dsputil.h"
75 75
 
76 76
 #define DCTSIZE 8
... ...
@@ -63,7 +63,7 @@
63 63
 
64 64
 #include <stdlib.h>
65 65
 #include <stdio.h>
66
-#include "common.h"
66
+#include "libavutil/common.h"
67 67
 #include "dsputil.h"
68 68
 
69 69
 #define SHIFT_TEMPS
... ...
@@ -64,7 +64,7 @@
64 64
  * Independent JPEG Group's LLM idct.
65 65
  */
66 66
 
67
-#include "common.h"
67
+#include "libavutil/common.h"
68 68
 #include "dsputil.h"
69 69
 
70 70
 #define EIGHT_BIT_SAMPLES
... ...
@@ -31,8 +31,8 @@
31 31
  */
32 32
 
33 33
 /* FFmpeg includes */
34
+#include "libavutil/log.h"
34 35
 #include "avcodec.h"
35
-#include "log.h"
36 36
 
37 37
 /* libtheora includes */
38 38
 #include <theora/theora.h>
... ...
@@ -22,7 +22,7 @@
22 22
 #ifndef FFMPEG_MATHOPS_H
23 23
 #define FFMPEG_MATHOPS_H
24 24
 
25
-#include "common.h"
25
+#include "libavutil/common.h"
26 26
 
27 27
 #ifdef ARCH_X86_32
28 28
 
... ...
@@ -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 "libavcodec/dsputil.h"
23
+#include "libavcodec/mpegvideo.h"
24 24
 
25 25
 #include <mlib_types.h>
26 26
 #include <mlib_status.h>
... ...
@@ -24,9 +24,9 @@
24 24
  * MLP parser
25 25
  */
26 26
 
27
+#include "libavutil/crc.h"
27 28
 #include "bitstream.h"
28 29
 #include "parser.h"
29
-#include "crc.h"
30 30
 #include "mlp_parser.h"
31 31
 
32 32
 static const uint8_t mlp_quants[16] = {
... ...
@@ -25,10 +25,10 @@
25 25
  * divided into 32 subbands.
26 26
  */
27 27
 
28
+#include "libavutil/random.h"
28 29
 #include "avcodec.h"
29 30
 #include "bitstream.h"
30 31
 #include "dsputil.h"
31
-#include "random.h"
32 32
 
33 33
 #ifdef CONFIG_MPEGAUDIO_HP
34 34
 #define USE_HIGHPRECISION
... ...
@@ -28,10 +28,10 @@
28 28
 #ifndef FFMPEG_MPC_H
29 29
 #define FFMPEG_MPC_H
30 30
 
31
+#include "libavutil/random.h"
31 32
 #include "avcodec.h"
32 33
 #include "bitstream.h"
33 34
 #include "dsputil.h"
34
-#include "random.h"
35 35
 
36 36
 #ifdef CONFIG_MPEGAUDIO_HP
37 37
 #define USE_HIGHPRECISION
... ...
@@ -25,10 +25,10 @@
25 25
  * divided into 32 subbands.
26 26
  */
27 27
 
28
+#include "libavutil/random.h"
28 29
 #include "avcodec.h"
29 30
 #include "bitstream.h"
30 31
 #include "dsputil.h"
31
-#include "random.h"
32 32
 
33 33
 #ifdef CONFIG_MPEGAUDIO_HP
34 34
 #define USE_HIGHPRECISION
... ...
@@ -25,10 +25,10 @@
25 25
  * divided into 32 subbands.
26 26
  */
27 27
 
28
+#include "libavutil/random.h"
28 29
 #include "avcodec.h"
29 30
 #include "bitstream.h"
30 31
 #include "dsputil.h"
31
-#include "random.h"
32 32
 
33 33
 #ifdef CONFIG_MPEGAUDIO_HP
34 34
 #define USE_HIGHPRECISION
... ...
@@ -29,7 +29,7 @@
29 29
 #define FFMPEG_MPEG12DATA_H
30 30
 
31 31
 #include <stdint.h>
32
-#include "rational.h"
32
+#include "libavutil/rational.h"
33 33
 #include "rl.h"
34 34
 
35 35
 extern const uint16_t ff_mpeg1_default_intra_matrix[64];
... ...
@@ -27,7 +27,7 @@
27 27
 #ifndef FFMPEG_MPEGAUDIODATA_H
28 28
 #define FFMPEG_MPEGAUDIODATA_H
29 29
 
30
-#include "common.h"
30
+#include "libavutil/common.h"
31 31
 
32 32
 #define MODE_EXT_MS_STEREO 2
33 33
 #define MODE_EXT_I_STEREO  1
... ...
@@ -27,7 +27,7 @@
27 27
 #ifndef FFMPEG_MPEGAUDIODECHEADER_H
28 28
 #define FFMPEG_MPEGAUDIODECHEADER_H
29 29
 
30
-#include "common.h"
30
+#include "libavutil/common.h"
31 31
 #include "mpegaudio.h"
32 32
 
33 33
 
... ...
@@ -30,7 +30,7 @@
30 30
 #ifndef FFMPEG_MSMPEG4DATA_H
31 31
 #define FFMPEG_MSMPEG4DATA_H
32 32
 
33
-#include "common.h"
33
+#include "libavutil/common.h"
34 34
 #include "bitstream.h"
35 35
 #include "rl.h"
36 36
 
... ...
@@ -30,8 +30,9 @@
30 30
  * The 3 alphanumeric copyright notices are md5summed they are from the original
31 31
  * implementors. The original code is available from http://code.google.com/p/nelly2pcm/
32 32
  */
33
+
34
+#include "libavutil/random.h"
33 35
 #include "avcodec.h"
34
-#include "random.h"
35 36
 #include "dsputil.h"
36 37
 
37 38
 #define ALT_BITSTREAM_READER_LE
... ...
@@ -21,11 +21,10 @@
21 21
 #include <stdio.h>
22 22
 #include <stdlib.h>
23 23
 
24
+#include "libavutil/bswap.h"
25
+#include "libavutil/lzo.h"
24 26
 #include "avcodec.h"
25
-
26
-#include "bswap.h"
27 27
 #include "dsputil.h"
28
-#include "lzo.h"
29 28
 #include "rtjpeg.h"
30 29
 
31 30
 typedef struct {
... ...
@@ -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 "libavcodec/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 "libavcodec/dsputil.h"
24 24
 
25 25
 #include "dsputil_ppc.h"
26 26
 
... ...
@@ -20,8 +20,8 @@
20 20
  */
21 21
 
22 22
 
23
-#include "common.h"
24
-#include "dsputil.h"
23
+#include "libavutil/common.h"
24
+#include "libavcodec/dsputil.h"
25 25
 #include "dsputil_ppc.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 "libavcodec/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 "libavcodec/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 "libavcodec/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 "libavcodec/dsputil.h"
22 22
 
23 23
 #include "gcc_fixes.h"
24 24
 
... ...
@@ -38,7 +38,7 @@
38 38
 
39 39
 #include <stdlib.h>                                      /* malloc(), free() */
40 40
 #include <string.h>
41
-#include "dsputil.h"
41
+#include "libavcodec/dsputil.h"
42 42
 
43 43
 #include "gcc_fixes.h"
44 44
 
... ...
@@ -23,7 +23,7 @@
23 23
  ** integer misc ops.
24 24
  **/
25 25
 
26
-#include "dsputil.h"
26
+#include "libavcodec/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 "libavcodec/dsputil.h"
27
+#include "libavcodec/mpegvideo.h"
28 28
 
29 29
 #include "gcc_fixes.h"
30 30
 
... ...
@@ -19,11 +19,11 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
-#include "dsputil.h"
22
+#include "libavcodec/dsputil.h"
23
+#include "libavcodec/snow.h"
23 24
 
24 25
 #include "gcc_fixes.h"
25 26
 #include "dsputil_altivec.h"
26
-#include "snow.h"
27 27
 
28 28
 #undef NDEBUG
29 29
 #include <assert.h>
... ...
@@ -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 "libavcodec/dsputil.h"
23 23
 
24 24
 #include "gcc_fixes.h"
25 25
 
... ...
@@ -22,7 +22,7 @@
22 22
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 23
  */
24 24
 
25
-#include "dsputil.h"
25
+#include "libavcodec/dsputil.h"
26 26
 #include "mmi.h"
27 27
 
28 28
 void ff_mmi_idct_put(uint8_t *dest, int line_size, DCTELEM *block);
... ...
@@ -25,8 +25,8 @@
25 25
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
26 26
  */
27 27
 
28
-#include "common.h"
29
-#include "dsputil.h"
28
+#include "libavutil/common.h"
29
+#include "libavcodec/dsputil.h"
30 30
 #include "mmi.h"
31 31
 
32 32
 #define BITS_INV_ACC    5       // 4 or 5 for IEEE
... ...
@@ -20,9 +20,9 @@
20 20
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 21
  */
22 22
 
23
-#include "dsputil.h"
24
-#include "mpegvideo.h"
25
-#include "avcodec.h"
23
+#include "libavcodec/avcodec.h"
24
+#include "libavcodec/dsputil.h"
25
+#include "libavcodec/mpegvideo.h"
26 26
 
27 27
 static void dct_unquantize_h263_mmi(MpegEncContext *s,
28 28
                                   DCTELEM *block, int n, int qscale)
... ...
@@ -29,7 +29,7 @@
29 29
 
30 30
 #include <stdint.h>
31 31
 #include <assert.h>
32
-#include "common.h"
32
+#include "libavutil/common.h"
33 33
 
34 34
 typedef struct RangeCoder{
35 35
     int low;
... ...
@@ -28,7 +28,7 @@
28 28
 #ifndef FFMPEG_RECTANGLE_H
29 29
 #define FFMPEG_RECTANGLE_H
30 30
 
31
-#include "common.h"
31
+#include "libavutil/common.h"
32 32
 
33 33
 /**
34 34
  * fill a rectangle.
... ...
@@ -22,9 +22,9 @@
22 22
 #ifndef FFMPEG_ROQVIDEO_H
23 23
 #define FFMPEG_ROQVIDEO_H
24 24
 
25
+#include "libavutil/random.h"
25 26
 #include "avcodec.h"
26 27
 #include "dsputil.h"
27
-#include "random.h"
28 28
 
29 29
 typedef struct {
30 30
     unsigned char y[4];
... ...
@@ -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 "common.h"
21
+#include "libavutil/common.h"
22 22
 #include "bitstream.h"
23 23
 #include "dsputil.h"
24 24
 #include "rtjpeg.h"
... ...
@@ -21,8 +21,8 @@
21 21
  */
22 22
 
23 23
 
24
-#include "avcodec.h"
25
-#include "dsputil.h"
24
+#include "libavcodec/avcodec.h"
25
+#include "libavcodec/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 "libavcodec/avcodec.h"
24
+#include "libavcodec/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 "libavcodec/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) */
... ...
@@ -27,7 +27,7 @@
27 27
 
28 28
 #include <inttypes.h>
29 29
 
30
-#include "dsputil.h"
30
+#include "libavcodec/dsputil.h"
31 31
 
32 32
 #include "vis.h"
33 33
 
... ...
@@ -22,7 +22,7 @@
22 22
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23 23
  */
24 24
 
25
-#include "dsputil.h"
25
+#include "libavcodec/dsputil.h"
26 26
 
27 27
 static const DECLARE_ALIGNED_8(int16_t, coeffs[28]) = {
28 28
     - 1259,- 1259,- 1259,- 1259,
... ...
@@ -25,11 +25,11 @@
25 25
  * utils.
26 26
  */
27 27
 
28
+#include "libavutil/integer.h"
29
+#include "libavutil/crc.h"
28 30
 #include "avcodec.h"
29 31
 #include "dsputil.h"
30
-#include "integer.h"
31 32
 #include "opt.h"
32
-#include "crc.h"
33 33
 #include "imgconvert.h"
34 34
 #include <stdarg.h>
35 35
 #include <limits.h>
... ...
@@ -29,8 +29,8 @@
29 29
 #define FFMPEG_VC1DATA_H
30 30
 
31 31
 #include <stdint.h>
32
+#include "libavutil/rational.h"
32 33
 #include "bitstream.h"
33
-#include "rational.h"
34 34
 
35 35
 /** Table for conversion between TTBLK and TTMB */
36 36
 extern const int ff_vc1_ttblk_to_tt[3][8];
... ...
@@ -24,7 +24,7 @@
24 24
 #ifndef FFMPEG_VP56DATA_H
25 25
 #define FFMPEG_VP56DATA_H
26 26
 
27
-#include "common.h"
27
+#include "libavutil/common.h"
28 28
 
29 29
 typedef enum {
30 30
     VP56_FRAME_CURRENT  = 0,
... ...
@@ -21,7 +21,7 @@
21 21
 #ifndef FFMPEG_XIPH_H
22 22
 #define FFMPEG_XIPH_H
23 23
 
24
-#include "common.h"
24
+#include "libavutil/common.h"
25 25
 
26 26
 /**
27 27
  * Splits a single extradata buffer into the three headers that most
... ...
@@ -17,8 +17,9 @@
17 17
  * License along with FFmpeg; if not, write to the Free Software
18 18
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 19
  */
20
-#include "avformat.h"
20
+
21 21
 #include "config.h"
22
+#include "libavformat/avformat.h"
22 23
 
23 24
 #define REGISTER_MUXER(X,x) { \
24 25
           extern AVOutputFormat x##_muxer; \
... ...
@@ -35,9 +35,9 @@
35 35
 #include <sys/ioctl.h>
36 36
 #include <sys/time.h>
37 37
 
38
-#include "log.h"
39
-#include "avcodec.h"
40
-#include "avformat.h"
38
+#include "libavutil/log.h"
39
+#include "libavcodec/avcodec.h"
40
+#include "libavformat/avformat.h"
41 41
 
42 42
 #define AUDIO_BLOCK_SIZE 4096
43 43
 
... ...
@@ -30,7 +30,7 @@
30 30
 #include <SoundPlayer.h>
31 31
 
32 32
 extern "C" {
33
-#include "avformat.h"
33
+#include "libavformat/avformat.h"
34 34
 }
35 35
 
36 36
 #ifdef HAVE_BSOUNDRECORDER
... ...
@@ -23,7 +23,8 @@
23 23
  * License along with FFmpeg; if not, write to the Free Software
24 24
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
25 25
  */
26
-#include "avformat.h"
26
+
27
+#include "libavformat/avformat.h"
27 28
 #if defined (HAVE_DEV_BKTR_IOCTL_METEOR_H) && defined (HAVE_DEV_BKTR_IOCTL_BT848_H)
28 29
 # include <dev/bktr/ioctl_meteor.h>
29 30
 # include <dev/bktr/ioctl_bt848.h>
... ...
@@ -29,12 +29,12 @@
29 29
 #include <sys/time.h>
30 30
 #include <time.h>
31 31
 
32
-#include "avformat.h"
32
+#include "libavformat/avformat.h"
33 33
 
34 34
 #undef DV1394_DEBUG
35 35
 
36
+#include "libavformat/dv.h"
36 37
 #include "dv1394.h"
37
-#include "dv.h"
38 38
 
39 39
 struct dv1394_data {
40 40
     int fd;
... ...
@@ -21,7 +21,7 @@
21 21
  */
22 22
 
23 23
 #include "config.h"
24
-#include "avformat.h"
24
+#include "libavformat/avformat.h"
25 25
 
26 26
 #if ENABLE_LIBDC1394_2
27 27
 #include <dc1394/dc1394.h>
... ...
@@ -20,8 +20,8 @@
20 20
  */
21 21
 
22 22
 #include "config.h"
23
-#include "avformat.h"
24
-#include "dsputil.h"
23
+#include "libavformat/avformat.h"
24
+#include "libavcodec/dsputil.h"
25 25
 #include <unistd.h>
26 26
 #include <fcntl.h>
27 27
 #include <sys/ioctl.h>
... ...
@@ -28,7 +28,7 @@
28 28
  */
29 29
 
30 30
 #include "config.h"
31
-#include "avformat.h"
31
+#include "libavformat/avformat.h"
32 32
 #include <unistd.h>
33 33
 #include <fcntl.h>
34 34
 #include <sys/ioctl.h>
... ...
@@ -19,7 +19,7 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
-#include "avformat.h"
22
+#include "libavformat/avformat.h"
23 23
 #include <vfw.h>
24 24
 #include <windows.h>
25 25
 
... ...
@@ -36,7 +36,7 @@
36 36
  */
37 37
 
38 38
 #include "config.h"
39
-#include "avformat.h"
39
+#include "libavformat/avformat.h"
40 40
 #include <unistd.h>
41 41
 #include <fcntl.h>
42 42
 #include <sys/ioctl.h>
... ...
@@ -19,8 +19,8 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
+#include "libavcodec/imgconvert.h"
22 23
 #include "avfilter.h"
23
-#include "imgconvert.h"
24 24
 
25 25
 /** list of registered filters */
26 26
 struct FilterList
... ...
@@ -35,7 +35,7 @@
35 35
 #define LIBAVFILTER_BUILD       LIBAVFILTER_VERSION_INT
36 36
 
37 37
 #include <stddef.h>
38
-#include "avcodec.h"
38
+#include "libavcodec/avcodec.h"
39 39
 
40 40
 typedef struct AVFilterContext AVFilterContext;
41 41
 typedef struct AVFilterLink    AVFilterLink;
... ...
@@ -19,8 +19,8 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
+#include "libavcodec/imgconvert.h"
22 23
 #include "avfilter.h"
23
-#include "imgconvert.h"
24 24
 
25 25
 /* TODO: buffer pool.  see comment for avfilter_default_get_video_buffer() */
26 26
 void avfilter_default_free_video_buffer(AVFilterPic *pic)
... ...
@@ -19,8 +19,9 @@
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
+
23
+#include "libavcodec/bitstream.h"
22 24
 #include "avformat.h"
23
-#include "bitstream.h"
24 25
 
25 26
 #define ADTS_HEADER_SIZE 7
26 27
 
... ...
@@ -18,10 +18,11 @@
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
+
22
+#include "libavutil/intfloat_readwrite.h"
21 23
 #include "avformat.h"
22 24
 #include "raw.h"
23 25
 #include "riff.h"
24
-#include "intfloat_readwrite.h"
25 26
 
26 27
 static const AVCodecTag codec_aiff_tags[] = {
27 28
     { CODEC_ID_PCM_S16BE, MKTAG('N','O','N','E') },
... ...
@@ -18,11 +18,12 @@
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
+
22
+#include "libavutil/common.h"
23
+#include "libavcodec/mpegaudio.h"
21 24
 #include "avformat.h"
22 25
 #include "riff.h"
23
-#include "mpegaudio.h"
24 26
 #include "asf.h"
25
-#include "common.h"
26 27
 #include "asfcrypt.h"
27 28
 
28 29
 extern void ff_mms_set_stream_selection(URLContext *h, AVFormatContext *format);
... ...
@@ -19,11 +19,12 @@
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 "common.h"
23
-#include "intreadwrite.h"
24
-#include "bswap.h"
25
-#include "des.h"
26
-#include "rc4.h"
22
+
23
+#include "libavutil/common.h"
24
+#include "libavutil/intreadwrite.h"
25
+#include "libavutil/bswap.h"
26
+#include "libavutil/des.h"
27
+#include "libavutil/rc4.h"
27 28
 #include "asfcrypt.h"
28 29
 
29 30
 /**
... ...
@@ -18,9 +18,10 @@
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
+
22
+#include "libavutil/avstring.h"
23
+#include "libavcodec/opt.h"
21 24
 #include "avformat.h"
22
-#include "avstring.h"
23
-#include "opt.h"
24 25
 
25 26
 #if LIBAVFORMAT_VERSION_MAJOR >= 53
26 27
 /** @name Logging context. */
... ...
@@ -18,9 +18,10 @@
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
+
22
+#include "libavutil/crc.h"
21 23
 #include "avformat.h"
22 24
 #include "avio.h"
23
-#include "crc.h"
24 25
 #include <stdarg.h>
25 26
 
26 27
 #define IO_BUFFER_SIZE 32768
... ...
@@ -28,7 +28,7 @@
28 28
  */
29 29
 
30 30
 #include "avformat.h"
31
-#include "bethsoftvideo.h"
31
+#include "libavcodec/bethsoftvideo.h"
32 32
 
33 33
 typedef struct BVID_DemuxContext
34 34
 {
... ...
@@ -18,8 +18,9 @@
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
+
22
+#include "libavutil/adler32.h"
21 23
 #include "avformat.h"
22
-#include "adler32.h"
23 24
 
24 25
 typedef struct CRCState {
25 26
     uint32_t crcval;
... ...
@@ -29,7 +29,7 @@
29 29
  */
30 30
 #include <time.h>
31 31
 #include "avformat.h"
32
-#include "dvdata.h"
32
+#include "libavcodec/dvdata.h"
33 33
 #include "dv.h"
34 34
 
35 35
 struct DVDemuxContext {
... ...
@@ -30,9 +30,9 @@
30 30
 #include <time.h>
31 31
 #include <stdarg.h>
32 32
 #include "avformat.h"
33
-#include "dvdata.h"
33
+#include "libavcodec/dvdata.h"
34 34
 #include "dv.h"
35
-#include "fifo.h"
35
+#include "libavutil/fifo.h"
36 36
 
37 37
 struct DVMuxContext {
38 38
     const DVprofile*  sys;    /* Current DV profile. E.g.: 525/60, 625/50 */
... ...
@@ -18,8 +18,9 @@
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
+
22
+#include "libavutil/avstring.h"
21 23
 #include "avformat.h"
22
-#include "avstring.h"
23 24
 #include <fcntl.h>
24 25
 #include <unistd.h>
25 26
 #include <sys/time.h>
... ...
@@ -18,8 +18,9 @@
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
+
22
+#include "libavutil/adler32.h"
21 23
 #include "avformat.h"
22
-#include "adler32.h"
23 24
 
24 25
 static int framecrc_write_packet(struct AVFormatContext *s, AVPacket *pkt)
25 26
 {
... ...
@@ -28,7 +28,7 @@
28 28
  * Prototypes for interface to .so that implement a video processing hook
29 29
  */
30 30
 
31
-#include "avcodec.h"
31
+#include "libavcodec/avcodec.h"
32 32
 
33 33
 /* Function must be called 'Configure' */
34 34
 typedef int (FrameHookConfigure)(void **ctxp, int argc, char *argv[]);
... ...
@@ -40,7 +40,7 @@
40 40
  */
41 41
 
42 42
 #include "avformat.h"
43
-#include "bitstream.h"
43
+#include "libavcodec/bitstream.h"
44 44
 
45 45
 /* bitstream minipacket size */
46 46
 #define GIF_CHUNKS 100
... ...
@@ -18,8 +18,9 @@
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
+
22
+#include "libavutil/common.h"
21 23
 #include "avformat.h"
22
-#include "common.h"
23 24
 #include "gxf.h"
24 25
 
25 26
 typedef struct {
... ...
@@ -19,10 +19,10 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
+#include "libavutil/fifo.h"
22 23
 #include "avformat.h"
23 24
 #include "gxf.h"
24 25
 #include "riff.h"
25
-#include "fifo.h"
26 26
 
27 27
 #define GXF_AUDIO_PACKET_SIZE 65536
28 28
 
... ...
@@ -18,14 +18,14 @@
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
+
22
+#include "libavutil/base64.h"
23
+#include "libavutil/avstring.h"
21 24
 #include "avformat.h"
22 25
 #include <unistd.h>
23 26
 #include "network.h"
24 27
 #include "os_support.h"
25 28
 
26
-#include "base64.h"
27
-#include "avstring.h"
28
-
29 29
 /* XXX: POST protocol is not completely implemented because ffmpeg uses
30 30
    only a subset of it. */
31 31
 
... ...
@@ -19,8 +19,9 @@
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
+
23
+#include "libavutil/avstring.h"
22 24
 #include "avformat.h"
23
-#include "avstring.h"
24 25
 
25 26
 typedef struct {
26 27
     int img_first;
... ...
@@ -22,7 +22,7 @@
22 22
 #ifndef FFMPEG_MATROSKA_H
23 23
 #define FFMPEG_MATROSKA_H
24 24
 
25
-#include "avcodec.h"
25
+#include "libavcodec/avcodec.h"
26 26
 
27 27
 /* EBML version supported */
28 28
 #define EBML_VERSION 1
... ...
@@ -31,9 +31,9 @@
31 31
 #include "avformat.h"
32 32
 /* For codec_get_id(). */
33 33
 #include "riff.h"
34
-#include "intfloat_readwrite.h"
35 34
 #include "matroska.h"
36 35
 #include "libavcodec/mpeg4audio.h"
36
+#include "libavutil/intfloat_readwrite.h"
37 37
 #include "libavutil/lzo.h"
38 38
 
39 39
 typedef struct Track {
... ...
@@ -20,11 +20,11 @@
20 20
  */
21 21
 
22 22
 #include "avformat.h"
23
-#include "md5.h"
24 23
 #include "riff.h"
25
-#include "xiph.h"
26 24
 #include "matroska.h"
27 25
 #include "avc.h"
26
+#include "libavutil/md5.h"
27
+#include "libavcodec/xiph.h"
28 28
 #include "libavcodec/mpeg4audio.h"
29 29
 
30 30
 typedef struct ebml_master {
... ...
@@ -27,8 +27,8 @@
27 27
 #include "riff.h"
28 28
 #include "isom.h"
29 29
 #include "dv.h"
30
-#include "mpeg4audio.h"
31
-#include "mpegaudiodata.h"
30
+#include "libavcodec/mpeg4audio.h"
31
+#include "libavcodec/mpegaudiodata.h"
32 32
 
33 33
 #ifdef CONFIG_ZLIB
34 34
 #include <zlib.h>
... ...
@@ -18,10 +18,11 @@
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
+
22
+#include "libavutil/avstring.h"
23
+#include "libavcodec/mpegaudio.h"
24
+#include "libavcodec/mpegaudiodecheader.h"
21 25
 #include "avformat.h"
22
-#include "mpegaudio.h"
23
-#include "avstring.h"
24
-#include "mpegaudiodecheader.h"
25 26
 
26 27
 #define ID3v2_HEADER_SIZE 10
27 28
 #define ID3v1_TAG_SIZE 128
... ...
@@ -18,8 +18,9 @@
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
+
22
+#include "libavcodec/bitstream.h"
21 23
 #include "avformat.h"
22
-#include "bitstream.h"
23 24
 
24 25
 #define MPC_FRAMESIZE  1152
25 26
 #define DELAY_FRAMES   32
... ...
@@ -18,9 +18,10 @@
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
+
22
+#include "libavcodec/bitstream.h"
23
+#include "libavcodec/unary.h"
21 24
 #include "avformat.h"
22
-#include "bitstream.h"
23
-#include "unary.h"
24 25
 
25 26
 /// Two-byte MPC tag
26 27
 #define MKMPCTAG(a, b) (a | (b << 8))
... ...
@@ -23,7 +23,7 @@
23 23
 #define FFMPEG_MPEG_H
24 24
 
25 25
 #include <stdint.h>
26
-#include "intreadwrite.h"
26
+#include "libavutil/intreadwrite.h"
27 27
 
28 28
 #define PACK_START_CODE             ((unsigned int)0x000001ba)
29 29
 #define SYSTEM_HEADER_START_CODE    ((unsigned int)0x000001bb)
... ...
@@ -19,9 +19,9 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
+#include "libavutil/fifo.h"
23
+#include "libavcodec/bitstream.h"
22 24
 #include "avformat.h"
23
-#include "bitstream.h"
24
-#include "fifo.h"
25 25
 #include "mpeg.h"
26 26
 
27 27
 #define MAX_PAYLOAD_SIZE 4096
... ...
@@ -18,8 +18,9 @@
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
+
22
+#include "libavutil/crc.h"
21 23
 #include "avformat.h"
22
-#include "crc.h"
23 24
 #include "mpegts.h"
24 25
 
25 26
 //#define DEBUG_SI
... ...
@@ -18,8 +18,9 @@
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
+
22
+#include "libavutil/crc.h"
21 23
 #include "avformat.h"
22
-#include "crc.h"
23 24
 #include "mpegts.h"
24 25
 
25 26
 /* write DVB SI sections */
... ...
@@ -18,8 +18,8 @@
18 18
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 19
  */
20 20
 
21
+#include "libavcodec/bytestream.h"
21 22
 #include "avformat.h"
22
-#include "bytestream.h"
23 23
 
24 24
 #define HEADER_SIZE         24
25 25
 
... ...
@@ -24,8 +24,8 @@
24 24
  * MTV demuxer.
25 25
  */
26 26
 
27
+#include "libavutil/bswap.h"
27 28
 #include "avformat.h"
28
-#include "bswap.h"
29 29
 
30 30
 #define MTV_ASUBCHUNK_DATA_SIZE 500
31 31
 #define MTV_HEADER_SIZE 512
... ...
@@ -45,9 +45,9 @@
45 45
 
46 46
 //#define DEBUG
47 47
 
48
+#include "libavutil/aes.h"
49
+#include "libavcodec/bytestream.h"
48 50
 #include "avformat.h"
49
-#include "aes.h"
50
-#include "bytestream.h"
51 51
 
52 52
 typedef uint8_t UID[16];
53 53
 
... ...
@@ -19,8 +19,8 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
+#include "libavutil/tree.h"
22 23
 #include "nut.h"
23
-#include "tree.h"
24 24
 
25 25
 const AVCodecTag ff_nut_subtitle_tags[] = {
26 26
     { CODEC_ID_TEXT        , MKTAG('U', 'T', 'F', '8') },
... ...
@@ -23,10 +23,10 @@
23 23
 #define FFMPEG_NUT_H
24 24
 
25 25
 //#include <limits.h>
26
+//#include "libavutil/adler32.h"
27
+//#include "libavcodec/mpegaudio.h"
26 28
 #include "avformat.h"
27
-//#include "mpegaudio.h"
28 29
 #include "riff.h"
29
-//#include "adler32.h"
30 30
 
31 31
 #define      MAIN_STARTCODE (0x7A561F5F04ADULL + (((uint64_t)('N'<<8) + 'M')<<48))
32 32
 #define    STREAM_STARTCODE (0x11405BF2F9DBULL + (((uint64_t)('N'<<8) + 'S')<<48))
... ...
@@ -20,9 +20,9 @@
20 20
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21 21
  */
22 22
 
23
-#include "tree.h"
23
+#include "libavutil/avstring.h"
24
+#include "libavutil/tree.h"
24 25
 #include "nut.h"
25
-#include "avstring.h"
26 26
 
27 27
 #undef NDEBUG
28 28
 #include <assert.h>
... ...
@@ -19,9 +19,9 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
+#include "libavutil/tree.h"
23
+#include "libavcodec/mpegaudiodata.h"
22 24
 #include "nut.h"
23
-#include "tree.h"
24
-#include "mpegaudiodata.h"
25 25
 
26 26
 static int find_expected_header(AVCodecContext *c, int size, int key_frame, uint8_t out[64]){
27 27
     int sample_rate= c->sample_rate;
... ...
@@ -19,10 +19,10 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
+#include "libavutil/crc.h"
23
+#include "libavcodec/xiph.h"
24
+#include "libavcodec/bytestream.h"
22 25
 #include "avformat.h"
23
-#include "crc.h"
24
-#include "xiph.h"
25
-#include "bytestream.h"
26 26
 
27 27
 typedef struct {
28 28
     int64_t duration;
... ...
@@ -19,8 +19,8 @@
19 19
  */
20 20
 
21 21
 #include <stdlib.h>
22
+#include "libavcodec/bitstream.h"
22 23
 #include "avformat.h"
23
-#include "bitstream.h"
24 24
 #include "oggdec.h"
25 25
 
26 26
 #define FLAC_STREAMINFO_SIZE 0x22
... ...
@@ -23,10 +23,10 @@
23 23
 **/
24 24
 
25 25
 #include <stdlib.h>
26
+#include "libavutil/intreadwrite.h"
27
+#include "libavcodec/bitstream.h"
28
+#include "libavcodec/bytestream.h"
26 29
 #include "avformat.h"
27
-#include "bitstream.h"
28
-#include "bytestream.h"
29
-#include "intreadwrite.h"
30 30
 #include "oggdec.h"
31 31
 #include "riff.h"
32 32
 
... ...
@@ -23,12 +23,12 @@
23 23
 **/
24 24
 
25 25
 #include <stdlib.h>
26
+#include "libavutil/bswap.h"
27
+#include "libavutil/avstring.h"
28
+#include "libavcodec/bitstream.h"
29
+#include "libavcodec/bytestream.h"
26 30
 #include "avformat.h"
27
-#include "bitstream.h"
28
-#include "bytestream.h"
29
-#include "bswap.h"
30 31
 #include "oggdec.h"
31
-#include "avstring.h"
32 32
 
33 33
 static int speex_header(AVFormatContext *s, int idx) {
34 34
     ogg_t *ogg = s->priv_data;
... ...
@@ -23,9 +23,9 @@
23 23
 **/
24 24
 
25 25
 #include <stdlib.h>
26
+#include "libavutil/bswap.h"
27
+#include "libavcodec/bitstream.h"
26 28
 #include "avformat.h"
27
-#include "bitstream.h"
28
-#include "bswap.h"
29 29
 #include "oggdec.h"
30 30
 
31 31
 typedef struct theora_params {
... ...
@@ -23,12 +23,12 @@
23 23
 **/
24 24
 
25 25
 #include <stdlib.h>
26
+#include "libavutil/avstring.h"
27
+#include "libavutil/bswap.h"
28
+#include "libavcodec/bitstream.h"
29
+#include "libavcodec/bytestream.h"
26 30
 #include "avformat.h"
27
-#include "bitstream.h"
28
-#include "bytestream.h"
29
-#include "bswap.h"
30 31
 #include "oggdec.h"
31
-#include "avstring.h"
32 32
 
33 33
 extern int
34 34
 vorbis_comment(AVFormatContext * as, uint8_t *buf, int size)
... ...
@@ -19,12 +19,13 @@
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
+
23
+#include "libavutil/crc.h"
24
+#include "libavcodec/ac3_parser.h"
25
+#include "libavcodec/bitstream.h"
26
+#include "libavcodec/bytestream.h"
22 27
 #include "avformat.h"
23
-#include "ac3_parser.h"
24 28
 #include "raw.h"
25
-#include "crc.h"
26
-#include "bitstream.h"
27
-#include "bytestream.h"
28 29
 
29 30
 #ifdef CONFIG_MUXERS
30 31
 /* simple formats */
... ...
@@ -19,8 +19,8 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
+#include "libavcodec/avcodec.h"
22 23
 #include "avformat.h"
23
-#include "avcodec.h"
24 24
 #include "riff.h"
25 25
 
26 26
 /* Note: when encoding, the first matching tag is used, so order is
... ...
@@ -28,7 +28,7 @@
28 28
 #ifndef FFMPEG_RIFF_H
29 29
 #define FFMPEG_RIFF_H
30 30
 
31
-#include "avcodec.h"
31
+#include "libavcodec/avcodec.h"
32 32
 #include "avio.h"
33 33
 
34 34
 offset_t start_tag(ByteIOContext *pb, const char *tag);
... ...
@@ -18,9 +18,10 @@
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
+
22
+#include "libavutil/avstring.h"
21 23
 #include "avformat.h"
22 24
 #include "rm.h"
23
-#include "avstring.h"
24 25
 
25 26
 static inline void get_strl(ByteIOContext *pb, char *buf, int buf_size, int len)
26 27
 {
... ...
@@ -19,8 +19,8 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
+#include "libavutil/avstring.h"
22 23
 #include "avformat.h"
23
-#include "avstring.h"
24 24
 #include <stdlib.h>
25 25
 
26 26
 #define RPL_SIGNATURE "ARMovie\x0A"
... ...
@@ -18,8 +18,9 @@
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
+
22
+#include "libavcodec/bitstream.h"
21 23
 #include "avformat.h"
22
-#include "bitstream.h"
23 24
 
24 25
 #include <unistd.h>
25 26
 #include "network.h"
... ...
@@ -21,7 +21,7 @@
21 21
 #ifndef FFMPEG_RTP_H
22 22
 #define FFMPEG_RTP_H
23 23
 
24
-#include "avcodec.h"
24
+#include "libavcodec/avcodec.h"
25 25
 #include "avformat.h"
26 26
 
27 27
 #define RTP_MIN_PACKET_LENGTH 12
... ...
@@ -36,9 +36,11 @@
36 36
  *
37 37
  */
38 38
 
39
+#include "libavutil/base64.h"
40
+#include "libavutil/avstring.h"
41
+#include "libavcodec/bitstream.h"
39 42
 #include "avformat.h"
40 43
 #include "mpegts.h"
41
-#include "bitstream.h"
42 44
 
43 45
 #include <unistd.h>
44 46
 #include "network.h"
... ...
@@ -46,8 +48,6 @@
46 46
 
47 47
 #include "rtp_internal.h"
48 48
 #include "rtp_h264.h"
49
-#include "base64.h"
50
-#include "avstring.h"
51 49
 
52 50
 /**
53 51
     RTP/H264 specific private data.
... ...
@@ -24,7 +24,7 @@
24 24
 #define FFMPEG_RTP_INTERNAL_H
25 25
 
26 26
 #include <stdint.h>
27
-#include "avcodec.h"
27
+#include "libavcodec/avcodec.h"
28 28
 #include "rtp.h"
29 29
 
30 30
 // these statistics are used for rtcp receiver reports...
... ...
@@ -19,11 +19,11 @@
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
+
23
+#include "libavcodec/mpegvideo.h"
22 24
 #include "avformat.h"
23 25
 #include "rtp_internal.h"
24 26
 
25
-#include "mpegvideo.h"
26
-
27 27
 /* NOTE: a single frame must be passed with sequence header if
28 28
    needed. XXX: use slices. */
29 29
 void ff_rtp_send_mpegvideo(AVFormatContext *s1, const uint8_t *buf1, int size)
... ...
@@ -18,9 +18,10 @@
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
+
22
+#include "libavcodec/bitstream.h"
21 23
 #include "avformat.h"
22 24
 #include "mpegts.h"
23
-#include "bitstream.h"
24 25
 
25 26
 #include <unistd.h>
26 27
 #include "network.h"
... ...
@@ -18,9 +18,10 @@
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
+
22
+#include "libavcodec/bitstream.h"
21 23
 #include "avformat.h"
22 24
 #include "mpegts.h"
23
-#include "bitstream.h"
24 25
 
25 26
 #include <unistd.h>
26 27
 #include "network.h"
... ...
@@ -24,8 +24,8 @@
24 24
  * RTP protocol
25 25
  */
26 26
 
27
+#include "libavutil/avstring.h"
27 28
 #include "avformat.h"
28
-#include "avstring.h"
29 29
 
30 30
 #include <unistd.h>
31 31
 #include <stdarg.h>
... ...
@@ -18,12 +18,13 @@
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
+
22
+#include "libavutil/avstring.h"
21 23
 #include "avformat.h"
22 24
 
23 25
 #include <sys/time.h>
24 26
 #include <unistd.h> /* for select() prototype */
25 27
 #include "network.h"
26
-#include "avstring.h"
27 28
 #include "rtsp.h"
28 29
 
29 30
 #include "rtp_internal.h"
... ...
@@ -18,10 +18,10 @@
18 18
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 19
  */
20 20
 
21
-#include "avstring.h"
21
+#include "libavutil/avstring.h"
22
+#include "libavutil/base64.h"
22 23
 #include "avformat.h"
23 24
 #include "avc.h"
24
-#include "base64.h"
25 25
 #include "rtp.h"
26 26
 
27 27
 #ifdef CONFIG_RTP_MUXER
... ...
@@ -23,9 +23,9 @@
23 23
  * Based on http://wiki.multimedia.cx/index.php?title=Smacker
24 24
  */
25 25
 
26
+#include "libavutil/bswap.h"
26 27
 #include "avformat.h"
27 28
 #include "riff.h"
28
-#include "bswap.h"
29 29
 
30 30
 #define SMACKER_PAL 0x01
31 31
 #define SMACKER_FLAG_RING_FRAME 0x01
... ...
@@ -23,10 +23,10 @@
23 23
  * Based on documents from Game Audio Player and own research
24 24
  */
25 25
 
26
+#include "libavutil/bswap.h"
26 27
 #include "avformat.h"
27 28
 #include "raw.h"
28 29
 #include "riff.h"
29
-#include "bswap.h"
30 30
 
31 31
 /* if we don't know the size in advance */
32 32
 #define AU_UNKNOWN_SIZE ((uint32_t)(~0))
... ...
@@ -19,8 +19,9 @@
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
+
23
+#include "libavcodec/bitstream.h"
22 24
 #include "avformat.h"
23
-#include "bitstream.h"
24 25
 #include "riff.h"    /* for CodecTag */
25 26
 
26 27
 /* should have a generic way to indicate probable size */
... ...
@@ -18,8 +18,9 @@
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
+
22
+#include "libavcodec/bitstream.h"
21 23
 #include "avformat.h"
22
-#include "bitstream.h"
23 24
 
24 25
 typedef struct {
25 26
     int totalframes, currentframe;
... ...
@@ -19,8 +19,8 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 #include "avformat.h"
22
-#include "opt.h"
23
-#include "avstring.h"
22
+#include "libavcodec/opt.h"
23
+#include "libavutil/avstring.h"
24 24
 #include "riff.h"
25 25
 #include <sys/time.h>
26 26
 #include <time.h>
... ...
@@ -19,8 +19,8 @@
19 19
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 20
  */
21 21
 
22
+#include "libavutil/bswap.h"
22 23
 #include "avformat.h"
23
-#include "bswap.h"
24 24
 
25 25
 // specs say that maximum block size is 1Mb
26 26
 #define WV_BLOCK_LIMIT 1047576
... ...
@@ -74,7 +74,7 @@ try to unroll inner for(x=0 ... loop to avoid these damn if(x ... checks
74 74
 //Changelog: use the Subversion log
75 75
 
76 76
 #include "config.h"
77
-#include "avutil.h"
77
+#include "libavutil/avutil.h"
78 78
 #include <inttypes.h>
79 79
 #include <stdio.h>
80 80
 #include <stdlib.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 "avutil.h"
23
+#include "libavutil/avutil.h"
24 24
 
25 25
 #define ALTIVEC_TRANSPOSE_8x8_SHORT(src_a,src_b,src_c,src_d,src_e,src_f,src_g,src_h) \
26 26
     do {                                                          \
... ...
@@ -26,7 +26,7 @@
26 26
 #ifndef FFMPEG_POSTPROCESS_INTERNAL_H
27 27
 #define FFMPEG_POSTPROCESS_INTERNAL_H
28 28
 
29
-#include "avutil.h"
29
+#include "libavutil/avutil.h"
30 30
 #include "postprocess.h"
31 31
 
32 32
 #define V_DEBLOCK       0x01
... ...
@@ -23,7 +23,7 @@
23 23
  * mmx/mmx2/3dnow postprocess code.
24 24
  */
25 25
 
26
-#include "x86_cpu.h"
26
+#include "libavutil/x86_cpu.h"
27 27
 
28 28
 #define ALIGN_MASK "$-8"
29 29
 
... ...
@@ -31,10 +31,13 @@
31 31
 #define M_PI 3.14159265358979323846
32 32
 #endif
33 33
 
34
-#include "avformat.h"
35
-#include "swscale.h"
34
+#include "libavformat/avformat.h"
35
+#include "libswscale/swscale.h"
36 36
 
37 37
 #undef exit
38
+#undef fprintf
39
+#undef printf
40
+#undef snprintf
38 41
 
39 42
 /* 5 seconds stream duration */
40 43
 #define STREAM_DURATION   5.0
... ...
@@ -23,7 +23,7 @@
23 23
 #include <stdlib.h>
24 24
 #include <stdio.h>
25 25
 
26
-#include "avformat.h"
26
+#include "libavformat/avformat.h"
27 27
 
28 28
 #undef exit
29 29
 
... ...
@@ -45,7 +45,7 @@
45 45
 
46 46
 #define MAXSIZE_TEXT 1024
47 47
 
48
-#include "framehook.h"
48
+#include "libavformat/framehook.h"
49 49
 
50 50
 #include <stdio.h>
51 51
 #include <stdlib.h>
... ...
@@ -44,10 +44,10 @@
44 44
 #include <stdio.h>
45 45
 #include <dirent.h>
46 46
 
47
-#include "framehook.h"
48
-#include "dsputil.h"
49
-#include "avformat.h"
50
-#include "swscale.h"
47
+#include "libavformat/avformat.h"
48
+#include "libavformat/framehook.h"
49
+#include "libavcodec/dsputil.h"
50
+#include "libswscale/swscale.h"
51 51
 
52 52
 static int sws_flags = SWS_BICUBIC;
53 53
 
... ...
@@ -45,8 +45,8 @@
45 45
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
46 46
  */
47 47
 
48
-#include "framehook.h"
49
-#include "swscale.h"
48
+#include "libavformat/framehook.h"
49
+#include "libswscale/swscale.h"
50 50
 
51 51
 #include <stdio.h>
52 52
 #include <stdlib.h>
... ...
@@ -20,8 +20,8 @@
20 20
  */
21 21
 #include <stdio.h>
22 22
 
23
-#include "framehook.h"
24
-#include "swscale.h"
23
+#include "libavformat/framehook.h"
24
+#include "libswscale/swscale.h"
25 25
 
26 26
 static int sws_flags = SWS_BICUBIC;
27 27
 
... ...
@@ -25,10 +25,10 @@
25 25
 #include <sys/types.h>
26 26
 #include <sys/wait.h>
27 27
 #include <ctype.h>
28
-#include "framehook.h"
29
-#include "avformat.h"
30
-#include "swscale.h"
31
-#include "avstring.h"
28
+#include "libavutil/avstring.h"
29
+#include "libavformat/framehook.h"
30
+#include "libavformat/avformat.h"
31
+#include "libswscale/swscale.h"
32 32
 
33 33
 static int sws_flags = SWS_BICUBIC;
34 34
 
... ...
@@ -58,12 +58,11 @@
58 58
 #include <unistd.h>
59 59
 #include <stdarg.h>
60 60
 
61
-#include "common.h"
62
-#include "avformat.h"
63
-
64
-#include "framehook.h"
61
+#include "libavutil/common.h"
62
+#include "libavformat/avformat.h"
63
+#include "libavformat/framehook.h"
64
+#include "libswscale/swscale.h"
65 65
 #include "cmdutils.h"
66
-#include "swscale.h"
67 66
 
68 67
 static int sws_flags = SWS_BICUBIC;
69 68