diff options
author | Mohamed Tarek <mt@rockbox.org> | 2010-04-30 12:20:25 +0000 |
---|---|---|
committer | Mohamed Tarek <mt@rockbox.org> | 2010-04-30 12:20:25 +0000 |
commit | fe147cec651486d39967f24d0d1bbe6ae1cd067b (patch) | |
tree | ef15055d39c17e05c91f591b5d4f264bfd421e5e /apps/codecs/libwmapro/libavutil | |
parent | cf43e5083b9e0f87de262ea31fd8067225ebfcda (diff) | |
download | rockbox-fe147cec651486d39967f24d0d1bbe6ae1cd067b.tar.gz rockbox-fe147cec651486d39967f24d0d1bbe6ae1cd067b.zip |
Modify the ffmpeg source files in apps/codecs/libwmapro in order to compile the codec standalone.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25764 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libwmapro/libavutil')
-rw-r--r-- | apps/codecs/libwmapro/libavutil/avutil.h | 6 | ||||
-rw-r--r-- | apps/codecs/libwmapro/libavutil/bswap.h | 2 | ||||
-rw-r--r-- | apps/codecs/libwmapro/libavutil/common.h | 3 | ||||
-rw-r--r-- | apps/codecs/libwmapro/libavutil/internal.h | 6 | ||||
-rw-r--r-- | apps/codecs/libwmapro/libavutil/intreadwrite.h | 2 | ||||
-rw-r--r-- | apps/codecs/libwmapro/libavutil/mathematics.c | 4 | ||||
-rw-r--r-- | apps/codecs/libwmapro/libavutil/mathematics.h | 6 | ||||
-rw-r--r-- | apps/codecs/libwmapro/libavutil/mem.c | 2 |
8 files changed, 16 insertions, 15 deletions
diff --git a/apps/codecs/libwmapro/libavutil/avutil.h b/apps/codecs/libwmapro/libavutil/avutil.h index 1523de6753..1b858f1fe6 100644 --- a/apps/codecs/libwmapro/libavutil/avutil.h +++ b/apps/codecs/libwmapro/libavutil/avutil.h | |||
@@ -81,9 +81,9 @@ enum AVMediaType { | |||
81 | #include "common.h" | 81 | #include "common.h" |
82 | #include "error.h" | 82 | #include "error.h" |
83 | #include "mathematics.h" | 83 | #include "mathematics.h" |
84 | #include "rational.h" | 84 | //#include "rational.h" |
85 | #include "intfloat_readwrite.h" | 85 | //#include "intfloat_readwrite.h" |
86 | #include "log.h" | 86 | #include "log.h" |
87 | #include "pixfmt.h" | 87 | //#include "pixfmt.h" |
88 | 88 | ||
89 | #endif /* AVUTIL_AVUTIL_H */ | 89 | #endif /* AVUTIL_AVUTIL_H */ |
diff --git a/apps/codecs/libwmapro/libavutil/bswap.h b/apps/codecs/libwmapro/libavutil/bswap.h index 74c7af3026..5743e126b8 100644 --- a/apps/codecs/libwmapro/libavutil/bswap.h +++ b/apps/codecs/libwmapro/libavutil/bswap.h | |||
@@ -27,7 +27,7 @@ | |||
27 | #define AVUTIL_BSWAP_H | 27 | #define AVUTIL_BSWAP_H |
28 | 28 | ||
29 | #include <stdint.h> | 29 | #include <stdint.h> |
30 | #include "config.h" | 30 | //#include "config.h" |
31 | #include "attributes.h" | 31 | #include "attributes.h" |
32 | 32 | ||
33 | #if ARCH_ARM | 33 | #if ARCH_ARM |
diff --git a/apps/codecs/libwmapro/libavutil/common.h b/apps/codecs/libwmapro/libavutil/common.h index fae0b5b09b..48732a29dd 100644 --- a/apps/codecs/libwmapro/libavutil/common.h +++ b/apps/codecs/libwmapro/libavutil/common.h | |||
@@ -290,7 +290,8 @@ static inline av_const int av_ceil_log2(int x) | |||
290 | 290 | ||
291 | #include "mem.h" | 291 | #include "mem.h" |
292 | 292 | ||
293 | #ifdef HAVE_AV_CONFIG_H | 293 | //#ifdef HAVE_AV_CONFIG_H |
294 | #if 1 | ||
294 | # include "internal.h" | 295 | # include "internal.h" |
295 | #endif /* HAVE_AV_CONFIG_H */ | 296 | #endif /* HAVE_AV_CONFIG_H */ |
296 | 297 | ||
diff --git a/apps/codecs/libwmapro/libavutil/internal.h b/apps/codecs/libwmapro/libavutil/internal.h index b47db3d8c6..2b8da1d8c2 100644 --- a/apps/codecs/libwmapro/libavutil/internal.h +++ b/apps/codecs/libwmapro/libavutil/internal.h | |||
@@ -34,9 +34,9 @@ | |||
34 | #include <stdint.h> | 34 | #include <stdint.h> |
35 | #include <stddef.h> | 35 | #include <stddef.h> |
36 | #include <assert.h> | 36 | #include <assert.h> |
37 | #include "config.h" | 37 | //#include "config.h" |
38 | #include "attributes.h" | 38 | #include "attributes.h" |
39 | #include "timer.h" | 39 | //#include "timer.h" |
40 | 40 | ||
41 | #ifndef attribute_align_arg | 41 | #ifndef attribute_align_arg |
42 | #if (!defined(__ICC) || __ICC > 1110) && AV_GCC_VERSION_AT_LEAST(4,2) | 42 | #if (!defined(__ICC) || __ICC > 1110) && AV_GCC_VERSION_AT_LEAST(4,2) |
@@ -191,7 +191,7 @@ | |||
191 | }\ | 191 | }\ |
192 | } | 192 | } |
193 | 193 | ||
194 | #include "libm.h" | 194 | //#include "libm.h" |
195 | 195 | ||
196 | /** | 196 | /** |
197 | * Returns NULL if CONFIG_SMALL is true, otherwise the argument | 197 | * Returns NULL if CONFIG_SMALL is true, otherwise the argument |
diff --git a/apps/codecs/libwmapro/libavutil/intreadwrite.h b/apps/codecs/libwmapro/libavutil/intreadwrite.h index c8026f0872..87098d707d 100644 --- a/apps/codecs/libwmapro/libavutil/intreadwrite.h +++ b/apps/codecs/libwmapro/libavutil/intreadwrite.h | |||
@@ -20,7 +20,7 @@ | |||
20 | #define AVUTIL_INTREADWRITE_H | 20 | #define AVUTIL_INTREADWRITE_H |
21 | 21 | ||
22 | #include <stdint.h> | 22 | #include <stdint.h> |
23 | #include "config.h" | 23 | //#include "config.h" |
24 | #include "bswap.h" | 24 | #include "bswap.h" |
25 | #include "common.h" | 25 | #include "common.h" |
26 | 26 | ||
diff --git a/apps/codecs/libwmapro/libavutil/mathematics.c b/apps/codecs/libwmapro/libavutil/mathematics.c index 81d47c1bf1..04f3e870d1 100644 --- a/apps/codecs/libwmapro/libavutil/mathematics.c +++ b/apps/codecs/libwmapro/libavutil/mathematics.c | |||
@@ -129,7 +129,7 @@ int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding rnd){ | |||
129 | int64_t av_rescale(int64_t a, int64_t b, int64_t c){ | 129 | int64_t av_rescale(int64_t a, int64_t b, int64_t c){ |
130 | return av_rescale_rnd(a, b, c, AV_ROUND_NEAR_INF); | 130 | return av_rescale_rnd(a, b, c, AV_ROUND_NEAR_INF); |
131 | } | 131 | } |
132 | 132 | #if 0 | |
133 | int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq){ | 133 | int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq){ |
134 | int64_t b= bq.num * (int64_t)cq.den; | 134 | int64_t b= bq.num * (int64_t)cq.den; |
135 | int64_t c= cq.num * (int64_t)bq.den; | 135 | int64_t c= cq.num * (int64_t)bq.den; |
@@ -143,7 +143,7 @@ int av_compare_ts(int64_t ts_a, AVRational tb_a, int64_t ts_b, AVRational tb_b){ | |||
143 | if (av_rescale_rnd(ts_b, b, a, AV_ROUND_DOWN) < ts_a) return 1; | 143 | if (av_rescale_rnd(ts_b, b, a, AV_ROUND_DOWN) < ts_a) return 1; |
144 | return 0; | 144 | return 0; |
145 | } | 145 | } |
146 | 146 | #endif | |
147 | #ifdef TEST | 147 | #ifdef TEST |
148 | #include "integer.h" | 148 | #include "integer.h" |
149 | #undef printf | 149 | #undef printf |
diff --git a/apps/codecs/libwmapro/libavutil/mathematics.h b/apps/codecs/libwmapro/libavutil/mathematics.h index e198aef8cb..a09d3e9ad8 100644 --- a/apps/codecs/libwmapro/libavutil/mathematics.h +++ b/apps/codecs/libwmapro/libavutil/mathematics.h | |||
@@ -24,7 +24,7 @@ | |||
24 | #include <stdint.h> | 24 | #include <stdint.h> |
25 | #include <math.h> | 25 | #include <math.h> |
26 | #include "attributes.h" | 26 | #include "attributes.h" |
27 | #include "rational.h" | 27 | //#include "rational.h" |
28 | 28 | ||
29 | #ifndef M_E | 29 | #ifndef M_E |
30 | #define M_E 2.7182818284590452354 /* e */ | 30 | #define M_E 2.7182818284590452354 /* e */ |
@@ -84,7 +84,7 @@ int64_t av_rescale_rnd(int64_t a, int64_t b, int64_t c, enum AVRounding) av_cons | |||
84 | /** | 84 | /** |
85 | * Rescales a 64-bit integer by 2 rational numbers. | 85 | * Rescales a 64-bit integer by 2 rational numbers. |
86 | */ | 86 | */ |
87 | int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq) av_const; | 87 | //int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq) av_const; |
88 | 88 | ||
89 | /** | 89 | /** |
90 | * Compares 2 timestamps each in its own timebases. | 90 | * Compares 2 timestamps each in its own timebases. |
@@ -92,7 +92,7 @@ int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq) av_const; | |||
92 | * is outside the int64_t range when represented in the others timebase. | 92 | * is outside the int64_t range when represented in the others timebase. |
93 | * @return -1 if ts_a is before ts_b, 1 if ts_a is after ts_b or 0 if they represent the same position | 93 | * @return -1 if ts_a is before ts_b, 1 if ts_a is after ts_b or 0 if they represent the same position |
94 | */ | 94 | */ |
95 | int av_compare_ts(int64_t ts_a, AVRational tb_a, int64_t ts_b, AVRational tb_b); | 95 | //int av_compare_ts(int64_t ts_a, AVRational tb_a, int64_t ts_b, AVRational tb_b); |
96 | 96 | ||
97 | 97 | ||
98 | #endif /* AVUTIL_MATHEMATICS_H */ | 98 | #endif /* AVUTIL_MATHEMATICS_H */ |
diff --git a/apps/codecs/libwmapro/libavutil/mem.c b/apps/codecs/libwmapro/libavutil/mem.c index 4d776d4450..7c37e9be9f 100644 --- a/apps/codecs/libwmapro/libavutil/mem.c +++ b/apps/codecs/libwmapro/libavutil/mem.c | |||
@@ -24,7 +24,7 @@ | |||
24 | * default memory allocator for libavutil | 24 | * default memory allocator for libavutil |
25 | */ | 25 | */ |
26 | 26 | ||
27 | #include "config.h" | 27 | //#include "config.h" |
28 | 28 | ||
29 | #include <limits.h> | 29 | #include <limits.h> |
30 | #include <stdlib.h> | 30 | #include <stdlib.h> |