]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/common.h
slightly faster deblock
[ffmpeg] / libavutil / common.h
index fe7ff571b3b7aa4a88fc2a329946c3fcd3855138..60ea46a83d21ed11855b957173970559f23ecdfa 100644 (file)
 #endif
 #endif
 
+#ifndef attribute_deprecated
+#if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
+#    define attribute_deprecated __attribute__((deprecated))
+#else
+#    define attribute_deprecated
+#endif
+#endif
+
 #ifndef EMULATE_INTTYPES
 #   include <inttypes.h>
 #else
@@ -155,8 +163,6 @@ typedef uint64_t      uint_fast64_t;
 #endif
 
 
-#    include "bswap.h"
-
 #ifdef HAVE_AV_CONFIG_H
 /* only include the following when compiling package */
 #    include "internal.h"
@@ -171,6 +177,8 @@ typedef uint64_t      uint_fast64_t;
 #define FFMAX(a,b) ((a) > (b) ? (a) : (b))
 #define FFMIN(a,b) ((a) > (b) ? (b) : (a))
 
+#define SWAP(type,a,b) do{type SWAP_tmp= b; b= a; a= SWAP_tmp;}while(0)
+
 /* misc math functions */
 extern FF_IMPORT_ATTR const uint8_t ff_log2_tab[256];
 
@@ -355,4 +363,9 @@ tend= read_time();\
 #define STOP_TIMER(id) {}
 #endif
 
+/* memory */
+void *av_malloc(unsigned int size);
+void *av_realloc(void *ptr, unsigned int size);
+void av_free(void *ptr);
+
 #endif /* COMMON_H */