Mercurial > libavcodec.hg
comparison avcodec.h @ 1598:932d306bf1dc libavcodec
av_log() patch by (Michel Bardiaux <mbardiaux at peaktime dot be>)
author | michael |
---|---|
date | Mon, 03 Nov 2003 13:26:22 +0000 |
parents | 4c9165372ab3 |
children | a1ac8e675b95 |
comparison
equal
deleted
inserted
replaced
1597:4c9165372ab3 | 1598:932d306bf1dc |
---|---|
1828 #define av_mallocz_static(p, s) __av_mallocz_static((void **)(p), s) | 1828 #define av_mallocz_static(p, s) __av_mallocz_static((void **)(p), s) |
1829 | 1829 |
1830 /* add by bero : in adx.c */ | 1830 /* add by bero : in adx.c */ |
1831 int is_adx(const unsigned char *buf,size_t bufsize); | 1831 int is_adx(const unsigned char *buf,size_t bufsize); |
1832 | 1832 |
1833 /* av_log API */ | |
1834 | |
1835 #include <stdarg.h> | |
1836 | |
1837 #define AV_LOG_ERROR 0 | |
1838 #define AV_LOG_INFO 1 | |
1839 #define AV_LOG_DEBUG 2 | |
1840 | |
1841 extern void av_log(AVCodecContext*, int level, const char *fmt, ...) __attribute__ ((__format__ (__printf__, 3, 4))); | |
1842 extern void av_vlog(AVCodecContext*, int level, const char *fmt, va_list); | |
1843 extern int av_log_get_level(void); | |
1844 extern void av_log_set_level(int); | |
1845 extern void av_log_set_callback(void (*)(AVCodecContext*, int, const char*, va_list)); | |
1846 | |
1847 #undef AV_LOG_TRAP_PRINTF | |
1848 #ifdef AV_LOG_TRAP_PRINTF | |
1849 #define printf DO NOT USE | |
1850 #define fprintf DO NOT USE | |
1851 #undef stderr | |
1852 #define stderr DO NOT USE | |
1853 #endif | |
1854 | |
1833 #ifdef __cplusplus | 1855 #ifdef __cplusplus |
1834 } | 1856 } |
1835 #endif | 1857 #endif |
1836 | 1858 |
1837 #endif /* AVCODEC_H */ | 1859 #endif /* AVCODEC_H */ |