changeset 567:bd4052d9050c libavutil

Globally rename the header inclusion guard names. Consistently apply this rule: the guard name is obtained from the filename by stripping the leading "lib", converting '/' and '.' to '_' and uppercasing the resulting name. Guard names in the root directory have to be prefixed by "FFMPEG_".
author stefano
date Sun, 31 Aug 2008 07:39:47 +0000
parents 34198f8250cf
children 96c0364ef4ce
files adler32.h aes.h avstring.h avutil.h base64.h bswap.h common.h crc.h crc_data.h des.h fifo.h integer.h internal.h intfloat_readwrite.h intreadwrite.h lfg.h lls.h log.h lzo.h mathematics.h md5.h mem.h pca.h random.h rational.h rc4.h sha1.h softfloat.h tree.h x86_cpu.h
diffstat 30 files changed, 90 insertions(+), 90 deletions(-) [+]
line wrap: on
line diff
--- a/adler32.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/adler32.h	Sun Aug 31 07:39:47 2008 +0000
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_ADLER32_H
-#define FFMPEG_ADLER32_H
+#ifndef AVUTIL_ADLER32_H
+#define AVUTIL_ADLER32_H
 
 #include <stdint.h>
 #include "common.h"
@@ -27,4 +27,4 @@
 unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf,
                                 unsigned int len) av_pure;
 
-#endif /* FFMPEG_ADLER32_H */
+#endif /* AVUTIL_ADLER32_H */
--- a/aes.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/aes.h	Sun Aug 31 07:39:47 2008 +0000
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_AES_H
-#define FFMPEG_AES_H
+#ifndef AVUTIL_AES_H
+#define AVUTIL_AES_H
 
 #include <stdint.h>
 
@@ -44,4 +44,4 @@
  */
 void av_aes_crypt(struct AVAES *a, uint8_t *dst, uint8_t *src, int count, uint8_t *iv, int decrypt);
 
-#endif /* FFMPEG_AES_H */
+#endif /* AVUTIL_AES_H */
--- a/avstring.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/avstring.h	Sun Aug 31 07:39:47 2008 +0000
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_AVSTRING_H
-#define FFMPEG_AVSTRING_H
+#ifndef AVUTIL_AVSTRING_H
+#define AVUTIL_AVSTRING_H
 
 #include <stddef.h>
 
@@ -87,4 +87,4 @@
  */
 size_t av_strlcatf(char *dst, size_t size, const char *fmt, ...);
 
-#endif /* FFMPEG_AVSTRING_H */
+#endif /* AVUTIL_AVSTRING_H */
--- a/avutil.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/avutil.h	Sun Aug 31 07:39:47 2008 +0000
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_AVUTIL_H
-#define FFMPEG_AVUTIL_H
+#ifndef AVUTIL_AVUTIL_H
+#define AVUTIL_AVUTIL_H
 
 /**
  * @file avutil.h
@@ -144,4 +144,4 @@
 #define PIX_FMT_YUV422  PIX_FMT_YUYV422
 #endif
 
-#endif /* FFMPEG_AVUTIL_H */
+#endif /* AVUTIL_AVUTIL_H */
--- a/base64.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/base64.h	Sun Aug 31 07:39:47 2008 +0000
@@ -19,8 +19,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_BASE64_H
-#define FFMPEG_BASE64_H
+#ifndef AVUTIL_BASE64_H
+#define AVUTIL_BASE64_H
 
 #include <stdint.h>
 
@@ -37,4 +37,4 @@
  */
 char *av_base64_encode(char * buf, int buf_len, const uint8_t * src, int len);
 
-#endif /* FFMPEG_BASE64_H */
+#endif /* AVUTIL_BASE64_H */
--- a/bswap.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/bswap.h	Sun Aug 31 07:39:47 2008 +0000
@@ -23,8 +23,8 @@
  * byte swapping routines
  */
 
-#ifndef FFMPEG_BSWAP_H
-#define FFMPEG_BSWAP_H
+#ifndef AVUTIL_BSWAP_H
+#define AVUTIL_BSWAP_H
 
 #include <stdint.h>
 #include "config.h"
@@ -129,4 +129,4 @@
 #define le2me_64(x) (x)
 #endif
 
-#endif /* FFMPEG_BSWAP_H */
+#endif /* AVUTIL_BSWAP_H */
--- a/common.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/common.h	Sun Aug 31 07:39:47 2008 +0000
@@ -23,8 +23,8 @@
  * common internal and external API header
  */
 
-#ifndef FFMPEG_COMMON_H
-#define FFMPEG_COMMON_H
+#ifndef AVUTIL_COMMON_H
+#define AVUTIL_COMMON_H
 
 #include <inttypes.h>
 
@@ -412,4 +412,4 @@
 #   define NULL_IF_CONFIG_SMALL(x) x
 #endif
 
-#endif /* FFMPEG_COMMON_H */
+#endif /* AVUTIL_COMMON_H */
--- a/crc.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/crc.h	Sun Aug 31 07:39:47 2008 +0000
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_CRC_H
-#define FFMPEG_CRC_H
+#ifndef AVUTIL_CRC_H
+#define AVUTIL_CRC_H
 
 #include <stdint.h>
 #include <stddef.h>
@@ -40,5 +40,5 @@
 const AVCRC *av_crc_get_table(AVCRCId crc_id);
 uint32_t av_crc(const AVCRC *ctx, uint32_t start_crc, const uint8_t *buffer, size_t length) av_pure;
 
-#endif /* FFMPEG_CRC_H */
+#endif /* AVUTIL_CRC_H */
 
--- a/crc_data.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/crc_data.h	Sun Aug 31 07:39:47 2008 +0000
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_CRC_DATA_H
-#define FFMPEG_CRC_DATA_H
+#ifndef AVUTIL_CRC_DATA_H
+#define AVUTIL_CRC_DATA_H
 
 #include "crc.h"
 
@@ -210,4 +210,4 @@
     },
 };
 
-#endif /* FFMPEG_CRC_DATA_H */
+#endif /* AVUTIL_CRC_DATA_H */
--- a/des.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/des.h	Sun Aug 31 07:39:47 2008 +0000
@@ -19,8 +19,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_DES_H
-#define FFMPEG_DES_H
+#ifndef AVUTIL_DES_H
+#define AVUTIL_DES_H
 
 #include <stdint.h>
 #include "common.h"
@@ -37,4 +37,4 @@
  */
 uint64_t ff_des_encdec(uint64_t in, uint64_t key, int decrypt) av_const;
 
-#endif /* FFMPEG_DES_H */
+#endif /* AVUTIL_DES_H */
--- a/fifo.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/fifo.h	Sun Aug 31 07:39:47 2008 +0000
@@ -21,8 +21,8 @@
  * A very simple circular buffer FIFO implementation.
  */
 
-#ifndef FFMPEG_FIFO_H
-#define FFMPEG_FIFO_H
+#ifndef AVUTIL_FIFO_H
+#define AVUTIL_FIFO_H
 
 #include <stdint.h>
 #include "common.h"
@@ -125,4 +125,4 @@
         ptr -= f->end - f->buffer;
     return *ptr;
 }
-#endif /* FFMPEG_FIFO_H */
+#endif /* AVUTIL_FIFO_H */
--- a/integer.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/integer.h	Sun Aug 31 07:39:47 2008 +0000
@@ -25,8 +25,8 @@
  * @author Michael Niedermayer <michaelni@gmx.at>
  */
 
-#ifndef FFMPEG_INTEGER_H
-#define FFMPEG_INTEGER_H
+#ifndef AVUTIL_INTEGER_H
+#define AVUTIL_INTEGER_H
 
 #include <stdint.h>
 #include "common.h"
@@ -81,4 +81,4 @@
  */
 int64_t av_i2int(AVInteger a) av_const;
 
-#endif /* FFMPEG_INTEGER_H */
+#endif /* AVUTIL_INTEGER_H */
--- a/internal.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/internal.h	Sun Aug 31 07:39:47 2008 +0000
@@ -23,8 +23,8 @@
  * common internal api header.
  */
 
-#ifndef FFMPEG_INTERNAL_H
-#define FFMPEG_INTERNAL_H
+#ifndef AVUTIL_INTERNAL_H
+#define AVUTIL_INTERNAL_H
 
 #if !defined(DEBUG) && !defined(NDEBUG)
 #    define NDEBUG
@@ -297,4 +297,4 @@
 }
 #endif /* HAVE_ROUNDF */
 
-#endif /* FFMPEG_INTERNAL_H */
+#endif /* AVUTIL_INTERNAL_H */
--- a/intfloat_readwrite.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/intfloat_readwrite.h	Sun Aug 31 07:39:47 2008 +0000
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_INTFLOAT_READWRITE_H
-#define FFMPEG_INTFLOAT_READWRITE_H
+#ifndef AVUTIL_INTFLOAT_READWRITE_H
+#define AVUTIL_INTFLOAT_READWRITE_H
 
 #include <stdint.h>
 #include "common.h"
@@ -37,4 +37,4 @@
 int32_t av_flt2int(float d) av_const;
 AVExtFloat av_dbl2ext(double d) av_const;
 
-#endif /* FFMPEG_INTFLOAT_READWRITE_H */
+#endif /* AVUTIL_INTFLOAT_READWRITE_H */
--- a/intreadwrite.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/intreadwrite.h	Sun Aug 31 07:39:47 2008 +0000
@@ -16,8 +16,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_INTREADWRITE_H
-#define FFMPEG_INTREADWRITE_H
+#ifndef AVUTIL_INTREADWRITE_H
+#define AVUTIL_INTREADWRITE_H
 
 #include <stdint.h>
 #include "config.h"
@@ -189,4 +189,4 @@
                     ((uint8_t*)(p))[1] = (d)>>8; \
                     ((uint8_t*)(p))[2] = (d)>>16; } while(0)
 
-#endif /* FFMPEG_INTREADWRITE_H */
+#endif /* AVUTIL_INTREADWRITE_H */
--- a/lfg.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/lfg.h	Sun Aug 31 07:39:47 2008 +0000
@@ -19,8 +19,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_LFG_H
-#define FFMPEG_LFG_H
+#ifndef AVUTIL_LFG_H
+#define AVUTIL_LFG_H
 
 typedef struct {
     unsigned int state[64];
@@ -51,4 +51,4 @@
     return c->state[c->index++ & 63] = 2*a*b+a+b;
 }
 
-#endif //FFMPEG_LFG_H
+#endif /* AVUTIL_LFG_H */
--- a/lls.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/lls.h	Sun Aug 31 07:39:47 2008 +0000
@@ -20,8 +20,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_LLS_H
-#define FFMPEG_LLS_H
+#ifndef AVUTIL_LLS_H
+#define AVUTIL_LLS_H
 
 #define MAX_VARS 32
 
@@ -42,4 +42,4 @@
 void av_solve_lls(LLSModel *m, double threshold, int min_order);
 double av_evaluate_lls(LLSModel *m, double *param, int order);
 
-#endif /* FFMPEG_LLS_H */
+#endif /* AVUTIL_LLS_H */
--- a/log.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/log.h	Sun Aug 31 07:39:47 2008 +0000
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_LOG_H
-#define FFMPEG_LOG_H
+#ifndef AVUTIL_LOG_H
+#define AVUTIL_LOG_H
 
 #include <stdarg.h>
 
@@ -126,4 +126,4 @@
 void av_log_set_callback(void (*)(void*, int, const char*, va_list));
 void av_log_default_callback(void* ptr, int level, const char* fmt, va_list vl);
 
-#endif /* FFMPEG_LOG_H */
+#endif /* AVUTIL_LOG_H */
--- a/lzo.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/lzo.h	Sun Aug 31 07:39:47 2008 +0000
@@ -19,8 +19,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_LZO_H
-#define FFMPEG_LZO_H
+#ifndef AVUTIL_LZO_H
+#define AVUTIL_LZO_H
 
 #include <stdint.h>
 
@@ -36,4 +36,4 @@
 
 void av_memcpy_backptr(uint8_t *dst, int back, int cnt);
 
-#endif /* FFMPEG_LZO_H */
+#endif /* AVUTIL_LZO_H */
--- a/mathematics.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/mathematics.h	Sun Aug 31 07:39:47 2008 +0000
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_MATHEMATICS_H
-#define FFMPEG_MATHEMATICS_H
+#ifndef AVUTIL_MATHEMATICS_H
+#define AVUTIL_MATHEMATICS_H
 
 #include <stdint.h>
 #include <math.h>
@@ -66,4 +66,4 @@
  */
 int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq) av_const;
 
-#endif /* FFMPEG_MATHEMATICS_H */
+#endif /* AVUTIL_MATHEMATICS_H */
--- a/md5.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/md5.h	Sun Aug 31 07:39:47 2008 +0000
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_MD5_H
-#define FFMPEG_MD5_H
+#ifndef AVUTIL_MD5_H
+#define AVUTIL_MD5_H
 
 #include <stdint.h>
 
@@ -32,5 +32,5 @@
 void av_md5_final(struct AVMD5 *ctx, uint8_t *dst);
 void av_md5_sum(uint8_t *dst, const uint8_t *src, const int len);
 
-#endif /* FFMPEG_MD5_H */
+#endif /* AVUTIL_MD5_H */
 
--- a/mem.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/mem.h	Sun Aug 31 07:39:47 2008 +0000
@@ -23,8 +23,8 @@
  * Memory handling functions.
  */
 
-#ifndef FFMPEG_MEM_H
-#define FFMPEG_MEM_H
+#ifndef AVUTIL_MEM_H
+#define AVUTIL_MEM_H
 
 #ifdef __ICC
     #define DECLARE_ALIGNED(n,t,v)      t v __attribute__ ((aligned (n)))
@@ -116,4 +116,4 @@
  */
 void av_freep(void *ptr);
 
-#endif /* FFMPEG_MEM_H */
+#endif /* AVUTIL_MEM_H */
--- a/pca.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/pca.h	Sun Aug 31 07:39:47 2008 +0000
@@ -24,12 +24,12 @@
  * Principal component analysis
  */
 
-#ifndef FFMPEG_PCA_H
-#define FFMPEG_PCA_H
+#ifndef AVUTIL_PCA_H
+#define AVUTIL_PCA_H
 
 struct PCA *ff_pca_init(int n);
 void ff_pca_free(struct PCA *pca);
 void ff_pca_add(struct PCA *pca, double *v);
 int ff_pca(struct PCA *pca, double *eigenvector, double *eigenvalue);
 
-#endif /* FFMPEG_PCA_H */
+#endif /* AVUTIL_PCA_H */
--- a/random.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/random.h	Sun Aug 31 07:39:47 2008 +0000
@@ -21,8 +21,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_RANDOM_H
-#define FFMPEG_RANDOM_H
+#ifndef AVUTIL_RANDOM_H
+#define AVUTIL_RANDOM_H
 
 #define AV_RANDOM_N 624
 
@@ -70,4 +70,4 @@
     return av_random(state) * (1.0 / 4294967296.0);
 }
 
-#endif /* FFMPEG_RANDOM_H */
+#endif /* AVUTIL_RANDOM_H */
--- a/rational.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/rational.h	Sun Aug 31 07:39:47 2008 +0000
@@ -25,8 +25,8 @@
  * @author Michael Niedermayer <michaelni@gmx.at>
  */
 
-#ifndef FFMPEG_RATIONAL_H
-#define FFMPEG_RATIONAL_H
+#ifndef AVUTIL_RATIONAL_H
+#define AVUTIL_RATIONAL_H
 
 #include <stdint.h>
 #include "common.h"
@@ -113,4 +113,4 @@
  */
 AVRational av_d2q(double d, int max) av_const;
 
-#endif /* FFMPEG_RATIONAL_H */
+#endif /* AVUTIL_RATIONAL_H */
--- a/rc4.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/rc4.h	Sun Aug 31 07:39:47 2008 +0000
@@ -18,11 +18,11 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_RC4_H
-#define FFMPEG_RC4_H
+#ifndef AVUTIL_RC4_H
+#define AVUTIL_RC4_H
 
 #include <stdint.h>
 
 void ff_rc4_enc(const uint8_t *key, int keylen, uint8_t *data, int datalen);
 
-#endif /* FFMPEG_RC4_H */
+#endif /* AVUTIL_RC4_H */
--- a/sha1.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/sha1.h	Sun Aug 31 07:39:47 2008 +0000
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_SHA1_H
-#define FFMPEG_SHA1_H
+#ifndef AVUTIL_SHA1_H
+#define AVUTIL_SHA1_H
 
 #include <stdint.h>
 
@@ -31,4 +31,4 @@
 void av_sha1_update(struct AVSHA1* context, const uint8_t* data, unsigned int len);
 void av_sha1_final(struct AVSHA1* context, uint8_t digest[20]);
 
-#endif /* FFMPEG_SHA1_H */
+#endif /* AVUTIL_SHA1_H */
--- a/softfloat.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/softfloat.h	Sun Aug 31 07:39:47 2008 +0000
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_SOFTFLOAT_H
-#define FFMPEG_SOFTFLOAT_H
+#ifndef AVUTIL_SOFTFLOAT_H
+#define AVUTIL_SOFTFLOAT_H
 
 #include <stdint.h>
 #include "common.h"
@@ -126,4 +126,4 @@
     else           return v.mant >>(-v.exp);
 }
 
-#endif /* FFMPEG_SOFTFLOAT_H */
+#endif /* AVUTIL_SOFTFLOAT_H */
--- a/tree.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/tree.h	Sun Aug 31 07:39:47 2008 +0000
@@ -26,8 +26,8 @@
  * @author Michael Niedermayer <michaelni@gmx.at>
  */
 
-#ifndef FFMPEG_TREE_H
-#define FFMPEG_TREE_H
+#ifndef AVUTIL_TREE_H
+#define AVUTIL_TREE_H
 
 struct AVTreeNode;
 extern const int av_tree_node_size;
@@ -79,4 +79,4 @@
 void *av_tree_insert(struct AVTreeNode **rootp, void *key, int (*cmp)(void *key, const void *b), struct AVTreeNode **next);
 void av_tree_destroy(struct AVTreeNode *t);
 
-#endif /* FFMPEG_TREE_H */
+#endif /* AVUTIL_TREE_H */
--- a/x86_cpu.h	Tue Aug 19 22:17:13 2008 +0000
+++ b/x86_cpu.h	Sun Aug 31 07:39:47 2008 +0000
@@ -18,8 +18,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
-#ifndef FFMPEG_X86CPU_H
-#define FFMPEG_X86CPU_H
+#ifndef AVUTIL_X86_CPU_H
+#define AVUTIL_X86_CPU_H
 
 #include <stdint.h>
 #include "config.h"
@@ -76,4 +76,4 @@
 #    define BROKEN_RELOCATIONS 1
 #endif
 
-#endif /* FFMPEG_X86CPU_H */
+#endif /* AVUTIL_X86_CPU_H */