Mercurial > libavutil.hg
changeset 873:4d9ad0ed07d0 libavutil
Replace many includes of libavutil/common.h with what is actually needed
This reduces the number of false dependencies on header files and
speeds up compilation.
author | mru |
---|---|
date | Tue, 09 Mar 2010 17:39:19 +0000 |
parents | 9d32a031ab0b |
children | 96be3be0b5e3 |
files | adler32.c adler32.h arm/bswap.h arm/intmath.h avr32/bswap.h bfin/bswap.h bswap.h crc.c crc.h fifo.h internal.h intfloat_readwrite.c intfloat_readwrite.h lfg.c mathematics.c mathematics.h md5.c mem.h rational.h sh4/bswap.h sha.c tree.c x86/bswap.h x86/intmath.h x86/intreadwrite.h |
diffstat | 25 files changed, 26 insertions(+), 28 deletions(-) [+] |
line wrap: on
line diff
--- a/adler32.c Tue Mar 09 16:17:59 2010 +0000 +++ b/adler32.c Tue Mar 09 17:39:19 2010 +0000 @@ -21,7 +21,7 @@ * 3. This notice may not be removed or altered from any source distribution. */ -#include "common.h" +#include "config.h" #include "adler32.h" #define BASE 65521L /* largest prime smaller than 65536 */ @@ -53,6 +53,7 @@ #ifdef TEST #include "log.h" +#include "timer.h" #define LEN 7001 volatile int checksum; int main(void){
--- a/adler32.h Tue Mar 09 16:17:59 2010 +0000 +++ b/adler32.h Tue Mar 09 17:39:19 2010 +0000 @@ -22,7 +22,7 @@ #define AVUTIL_ADLER32_H #include <stdint.h> -#include "common.h" +#include "attributes.h" unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf, unsigned int len) av_pure;
--- a/arm/bswap.h Tue Mar 09 16:17:59 2010 +0000 +++ b/arm/bswap.h Tue Mar 09 17:39:19 2010 +0000 @@ -21,7 +21,7 @@ #include <stdint.h> #include "config.h" -#include "libavutil/common.h" +#include "libavutil/attributes.h" #ifdef __ARMCC_VERSION
--- a/arm/intmath.h Tue Mar 09 16:17:59 2010 +0000 +++ b/arm/intmath.h Tue Mar 09 17:39:19 2010 +0000 @@ -22,7 +22,7 @@ #define AVUTIL_ARM_INTMATH_H #include "config.h" -#include "libavutil/common.h" +#include "libavutil/attributes.h" #if HAVE_INLINE_ASM
--- a/avr32/bswap.h Tue Mar 09 16:17:59 2010 +0000 +++ b/avr32/bswap.h Tue Mar 09 17:39:19 2010 +0000 @@ -21,7 +21,7 @@ #include <stdint.h> #include "config.h" -#include "libavutil/common.h" +#include "libavutil/attributes.h" #if HAVE_INLINE_ASM
--- a/bfin/bswap.h Tue Mar 09 16:17:59 2010 +0000 +++ b/bfin/bswap.h Tue Mar 09 17:39:19 2010 +0000 @@ -28,7 +28,7 @@ #include <stdint.h> #include "config.h" -#include "libavutil/common.h" +#include "libavutil/attributes.h" #define bswap_32 bswap_32 static av_always_inline av_const uint32_t bswap_32(uint32_t x)
--- a/bswap.h Tue Mar 09 16:17:59 2010 +0000 +++ b/bswap.h Tue Mar 09 17:39:19 2010 +0000 @@ -28,7 +28,7 @@ #include <stdint.h> #include "config.h" -#include "common.h" +#include "attributes.h" #if ARCH_ARM # include "arm/bswap.h"
--- a/crc.c Tue Mar 09 16:17:59 2010 +0000 +++ b/crc.c Tue Mar 09 17:39:19 2010 +0000 @@ -19,6 +19,7 @@ */ #include "config.h" +#include "common.h" #include "bswap.h" #include "crc.h"
--- a/crc.h Tue Mar 09 16:17:59 2010 +0000 +++ b/crc.h Tue Mar 09 17:39:19 2010 +0000 @@ -23,7 +23,7 @@ #include <stdint.h> #include <stddef.h> -#include "common.h" +#include "attributes.h" typedef uint32_t AVCRC;
--- a/fifo.h Tue Mar 09 16:17:59 2010 +0000 +++ b/fifo.h Tue Mar 09 17:39:19 2010 +0000 @@ -25,8 +25,6 @@ #define AVUTIL_FIFO_H #include <stdint.h> -#include "avutil.h" -#include "common.h" typedef struct AVFifoBuffer { uint8_t *buffer;
--- a/internal.h Tue Mar 09 16:17:59 2010 +0000 +++ b/internal.h Tue Mar 09 17:39:19 2010 +0000 @@ -35,8 +35,7 @@ #include <stddef.h> #include <assert.h> #include "config.h" -#include "common.h" -#include "mem.h" +#include "attributes.h" #include "timer.h" #ifndef attribute_align_arg
--- a/intfloat_readwrite.c Tue Mar 09 16:17:59 2010 +0000 +++ b/intfloat_readwrite.c Tue Mar 09 17:39:19 2010 +0000 @@ -25,7 +25,8 @@ * portable IEEE float/double read/write functions */ -#include "common.h" +#include <stdint.h> +#include <math.h> #include "intfloat_readwrite.h" double av_int2dbl(int64_t v){
--- a/intfloat_readwrite.h Tue Mar 09 16:17:59 2010 +0000 +++ b/intfloat_readwrite.h Tue Mar 09 17:39:19 2010 +0000 @@ -22,7 +22,7 @@ #define AVUTIL_INTFLOAT_READWRITE_H #include <stdint.h> -#include "common.h" +#include "attributes.h" /* IEEE 80 bits extended float */ typedef struct AVExtFloat {
--- a/lfg.c Tue Mar 09 16:17:59 2010 +0000 +++ b/lfg.c Tue Mar 09 17:39:19 2010 +0000 @@ -23,6 +23,7 @@ #include "lfg.h" #include "md5.h" #include "intreadwrite.h" +#include "attributes.h" void av_cold av_lfg_init(AVLFG *c, unsigned int seed){ uint8_t tmp[16]={0}; @@ -56,7 +57,7 @@ #ifdef TEST #include "log.h" -#include "common.h" +#include "timer.h" int main(void) {
--- a/mathematics.c Tue Mar 09 16:17:59 2010 +0000 +++ b/mathematics.c Tue Mar 09 17:39:19 2010 +0000 @@ -24,8 +24,8 @@ */ #include <assert.h> -#include "avutil.h" -#include "common.h" +#include <stdint.h> +#include <limits.h> #include "mathematics.h" const uint8_t ff_sqrt_tab[256]={
--- a/mathematics.h Tue Mar 09 16:17:59 2010 +0000 +++ b/mathematics.h Tue Mar 09 17:39:19 2010 +0000 @@ -23,7 +23,7 @@ #include <stdint.h> #include <math.h> -#include "common.h" +#include "attributes.h" #include "rational.h" #ifndef M_E
--- a/md5.c Tue Mar 09 16:17:59 2010 +0000 +++ b/md5.c Tue Mar 09 17:39:19 2010 +0000 @@ -163,6 +163,7 @@ #ifdef TEST #include <stdio.h> +#include <inttypes.h> #undef printf int main(void){ uint64_t md5val;
--- a/mem.h Tue Mar 09 16:17:59 2010 +0000 +++ b/mem.h Tue Mar 09 17:39:19 2010 +0000 @@ -26,7 +26,7 @@ #ifndef AVUTIL_MEM_H #define AVUTIL_MEM_H -#include "common.h" +#include "attributes.h" #if defined(__ICC) || defined(__SUNPRO_C) #define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (n))) v
--- a/rational.h Tue Mar 09 16:17:59 2010 +0000 +++ b/rational.h Tue Mar 09 17:39:19 2010 +0000 @@ -29,7 +29,7 @@ #define AVUTIL_RATIONAL_H #include <stdint.h> -#include "common.h" +#include "attributes.h" /** * rational number numerator/denominator
--- a/sh4/bswap.h Tue Mar 09 16:17:59 2010 +0000 +++ b/sh4/bswap.h Tue Mar 09 17:39:19 2010 +0000 @@ -26,7 +26,7 @@ #include <stdint.h> #include "config.h" -#include "libavutil/common.h" +#include "libavutil/attributes.h" #define bswap_16 bswap_16 static av_always_inline av_const uint16_t bswap_16(uint16_t x)
--- a/sha.c Tue Mar 09 16:17:59 2010 +0000 +++ b/sha.c Tue Mar 09 17:39:19 2010 +0000 @@ -21,8 +21,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "common.h" -#include "avutil.h" +#include <string.h> #include "bswap.h" #include "sha.h" #include "sha1.h"
--- a/tree.c Tue Mar 09 16:17:59 2010 +0000 +++ b/tree.c Tue Mar 09 17:39:19 2010 +0000 @@ -18,7 +18,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "common.h" #include "log.h" #include "tree.h"
--- a/x86/bswap.h Tue Mar 09 16:17:59 2010 +0000 +++ b/x86/bswap.h Tue Mar 09 17:39:19 2010 +0000 @@ -26,7 +26,7 @@ #include <stdint.h> #include "config.h" -#include "libavutil/common.h" +#include "libavutil/attributes.h" #define bswap_16 bswap_16 static av_always_inline av_const uint16_t bswap_16(uint16_t x)