comparison rpza.c @ 1881:39ad6cd5d4a6 libavcodec

remove numerous definitions of BE_*/LE_* macros; convert FOURCC_TAG -> MKTAG/MKBETAG
author melanson
date Sun, 14 Mar 2004 04:04:08 +0000
parents 1514fd5d434b
children 6852ecebb82a
comparison
equal deleted inserted replaced
1880:56ccec0d08bd 1881:39ad6cd5d4a6
50 50
51 unsigned char *buf; 51 unsigned char *buf;
52 int size; 52 int size;
53 53
54 } RpzaContext; 54 } RpzaContext;
55
56 #define BE_16(x) ((((uint8_t*)(x))[0] << 8) | ((uint8_t*)(x))[1])
57 #define BE_32(x) ((((uint8_t*)(x))[0] << 24) | \
58 (((uint8_t*)(x))[1] << 16) | \
59 (((uint8_t*)(x))[2] << 8) | \
60 ((uint8_t*)(x))[3])
61 55
62 #define ADVANCE_BLOCK() \ 56 #define ADVANCE_BLOCK() \
63 { \ 57 { \
64 pixel_ptr += 4; \ 58 pixel_ptr += 4; \
65 if (pixel_ptr >= width) \ 59 if (pixel_ptr >= width) \