comparison smc.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 a660ef952580
children d7505fbe66cb
comparison
equal deleted inserted replaced
1880:56ccec0d08bd 1881:39ad6cd5d4a6
59 unsigned char color_quads[COLORS_PER_TABLE * CQUAD]; 59 unsigned char color_quads[COLORS_PER_TABLE * CQUAD];
60 unsigned char color_octets[COLORS_PER_TABLE * COCTET]; 60 unsigned char color_octets[COLORS_PER_TABLE * COCTET];
61 61
62 } SmcContext; 62 } SmcContext;
63 63
64 #define BE_16(x) ((((uint8_t*)(x))[0] << 8) | ((uint8_t*)(x))[1])
65 #define BE_32(x) ((((uint8_t*)(x))[0] << 24) | \
66 (((uint8_t*)(x))[1] << 16) | \
67 (((uint8_t*)(x))[2] << 8) | \
68 ((uint8_t*)(x))[3])
69 #define GET_BLOCK_COUNT() \ 64 #define GET_BLOCK_COUNT() \
70 (opcode & 0x10) ? (1 + s->buf[stream_ptr++]) : 1 + (opcode & 0x0F); 65 (opcode & 0x10) ? (1 + s->buf[stream_ptr++]) : 1 + (opcode & 0x0F);
71 66
72 #define ADVANCE_BLOCK() \ 67 #define ADVANCE_BLOCK() \
73 { \ 68 { \