Mercurial > libavcodec.hg
comparison avcodec.h @ 2024:f65d87bfdd5a libavcodec
some of the warning fixes by (Michael Roitzsch <mroi at users dot sourceforge dot net>)
author | michael |
---|---|
date | Tue, 18 May 2004 17:09:46 +0000 |
parents | 62f5652f03c4 |
children | 591233f22963 |
comparison
equal
deleted
inserted
replaced
2023:50e92cec1b84 | 2024:f65d87bfdd5a |
---|---|
2157 extern int av_log_get_level(void); | 2157 extern int av_log_get_level(void); |
2158 extern void av_log_set_level(int); | 2158 extern void av_log_set_level(int); |
2159 extern void av_log_set_callback(void (*)(void*, int, const char*, va_list)); | 2159 extern void av_log_set_callback(void (*)(void*, int, const char*, va_list)); |
2160 | 2160 |
2161 /* endian macros */ | 2161 /* endian macros */ |
2162 #if !defined(BE_16) || !defined(BE_32) || !defined(LE_16) || !defined(LE_32) | |
2162 #define BE_16(x) ((((uint8_t*)(x))[0] << 8) | ((uint8_t*)(x))[1]) | 2163 #define BE_16(x) ((((uint8_t*)(x))[0] << 8) | ((uint8_t*)(x))[1]) |
2163 #define BE_32(x) ((((uint8_t*)(x))[0] << 24) | \ | 2164 #define BE_32(x) ((((uint8_t*)(x))[0] << 24) | \ |
2164 (((uint8_t*)(x))[1] << 16) | \ | 2165 (((uint8_t*)(x))[1] << 16) | \ |
2165 (((uint8_t*)(x))[2] << 8) | \ | 2166 (((uint8_t*)(x))[2] << 8) | \ |
2166 ((uint8_t*)(x))[3]) | 2167 ((uint8_t*)(x))[3]) |
2167 #define LE_16(x) ((((uint8_t*)(x))[1] << 8) | ((uint8_t*)(x))[0]) | 2168 #define LE_16(x) ((((uint8_t*)(x))[1] << 8) | ((uint8_t*)(x))[0]) |
2168 #define LE_32(x) ((((uint8_t*)(x))[3] << 24) | \ | 2169 #define LE_32(x) ((((uint8_t*)(x))[3] << 24) | \ |
2169 (((uint8_t*)(x))[2] << 16) | \ | 2170 (((uint8_t*)(x))[2] << 16) | \ |
2170 (((uint8_t*)(x))[1] << 8) | \ | 2171 (((uint8_t*)(x))[1] << 8) | \ |
2171 ((uint8_t*)(x))[0]) | 2172 ((uint8_t*)(x))[0]) |
2173 #endif | |
2172 | 2174 |
2173 #ifdef __cplusplus | 2175 #ifdef __cplusplus |
2174 } | 2176 } |
2175 #endif | 2177 #endif |
2176 | 2178 |