comparison dpcm.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 19ee8ddea820
children c443a6af19a7
comparison
equal deleted inserted replaced
1880:56ccec0d08bd 1881:39ad6cd5d4a6
42 } DPCMContext; 42 } DPCMContext;
43 43
44 #define SATURATE_S16(x) if (x < -32768) x = -32768; \ 44 #define SATURATE_S16(x) if (x < -32768) x = -32768; \
45 else if (x > 32767) x = 32767; 45 else if (x > 32767) x = 32767;
46 #define SE_16BIT(x) if (x & 0x8000) x -= 0x10000; 46 #define SE_16BIT(x) if (x & 0x8000) x -= 0x10000;
47 #define LE_16(x) ((((uint8_t*)(x))[1] << 8) | ((uint8_t*)(x))[0])
48 #define LE_32(x) ((((uint8_t*)(x))[3] << 24) | \
49 (((uint8_t*)(x))[2] << 16) | \
50 (((uint8_t*)(x))[1] << 8) | \
51 ((uint8_t*)(x))[0])
52 47
53 static int interplay_delta_table[] = { 48 static int interplay_delta_table[] = {
54 0, 1, 2, 3, 4, 5, 6, 7, 49 0, 1, 2, 3, 4, 5, 6, 7,
55 8, 9, 10, 11, 12, 13, 14, 15, 50 8, 9, 10, 11, 12, 13, 14, 15,
56 16, 17, 18, 19, 20, 21, 22, 23, 51 16, 17, 18, 19, 20, 21, 22, 23,