Mercurial > libavcodec.hg
diff avcodec.h @ 4263:e10af5bd6ff2 libavcodec
Move BE_*/LE_*/ST*/LD* macros to a common place. Some further
optimization/cleanup would be desirable (e.g. LE_* and LD*
should be the same on x86).
author | reimar |
---|---|
date | Sun, 03 Dec 2006 16:35:30 +0000 |
parents | daaebca81d86 |
children | 73abe5df48ea |
line wrap: on
line diff
--- a/avcodec.h Sat Dec 02 22:27:18 2006 +0000 +++ b/avcodec.h Sun Dec 03 16:35:30 2006 +0000 @@ -2684,20 +2684,6 @@ int img_pad(AVPicture *dst, const AVPicture *src, int height, int width, int pix_fmt, int padtop, int padbottom, int padleft, int padright, int *color); -/* endian macros */ -#if !defined(BE_16) || !defined(BE_32) || !defined(LE_16) || !defined(LE_32) -#define BE_16(x) ((((uint8_t*)(x))[0] << 8) | ((uint8_t*)(x))[1]) -#define BE_32(x) ((((uint8_t*)(x))[0] << 24) | \ - (((uint8_t*)(x))[1] << 16) | \ - (((uint8_t*)(x))[2] << 8) | \ - ((uint8_t*)(x))[3]) -#define LE_16(x) ((((uint8_t*)(x))[1] << 8) | ((uint8_t*)(x))[0]) -#define LE_32(x) ((((uint8_t*)(x))[3] << 24) | \ - (((uint8_t*)(x))[2] << 16) | \ - (((uint8_t*)(x))[1] << 8) | \ - ((uint8_t*)(x))[0]) -#endif - extern unsigned int av_xiphlacing(unsigned char *s, unsigned int v); #ifdef __cplusplus