comparison vqavideo.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 932d306bf1dc
children 18b8b2dcc037
comparison
equal deleted inserted replaced
1880:56ccec0d08bd 1881:39ad6cd5d4a6
80 #define MAX_CODEBOOK_VECTORS 0xFF00 80 #define MAX_CODEBOOK_VECTORS 0xFF00
81 #define SOLID_PIXEL_VECTORS 0x100 81 #define SOLID_PIXEL_VECTORS 0x100
82 #define MAX_VECTORS (MAX_CODEBOOK_VECTORS + SOLID_PIXEL_VECTORS) 82 #define MAX_VECTORS (MAX_CODEBOOK_VECTORS + SOLID_PIXEL_VECTORS)
83 #define MAX_CODEBOOK_SIZE (MAX_VECTORS * 4 * 4) 83 #define MAX_CODEBOOK_SIZE (MAX_VECTORS * 4 * 4)
84 84
85 #define LE_16(x) ((((uint8_t*)(x))[1] << 8) | ((uint8_t*)(x))[0]) 85 #define CBF0_TAG MKBETAG('C', 'B', 'F', '0')
86 #define BE_16(x) ((((uint8_t*)(x))[0] << 8) | ((uint8_t*)(x))[1]) 86 #define CBFZ_TAG MKBETAG('C', 'B', 'F', 'Z')
87 #define BE_32(x) ((((uint8_t*)(x))[0] << 24) | \ 87 #define CBP0_TAG MKBETAG('C', 'B', 'P', '0')
88 (((uint8_t*)(x))[1] << 16) | \ 88 #define CBPZ_TAG MKBETAG('C', 'B', 'P', 'Z')
89 (((uint8_t*)(x))[2] << 8) | \ 89 #define CPL0_TAG MKBETAG('C', 'P', 'L', '0')
90 ((uint8_t*)(x))[3]) 90 #define CPLZ_TAG MKBETAG('C', 'P', 'L', 'Z')
91 91 #define VPTZ_TAG MKBETAG('V', 'P', 'T', 'Z')
92 #define FOURCC_TAG( ch0, ch1, ch2, ch3 ) \
93 ( (long)(unsigned char)(ch3) | \
94 ( (long)(unsigned char)(ch2) << 8 ) | \
95 ( (long)(unsigned char)(ch1) << 16 ) | \
96 ( (long)(unsigned char)(ch0) << 24 ) )
97
98 #define CBF0_TAG FOURCC_TAG('C', 'B', 'F', '0')
99 #define CBFZ_TAG FOURCC_TAG('C', 'B', 'F', 'Z')
100 #define CBP0_TAG FOURCC_TAG('C', 'B', 'P', '0')
101 #define CBPZ_TAG FOURCC_TAG('C', 'B', 'P', 'Z')
102 #define CPL0_TAG FOURCC_TAG('C', 'P', 'L', '0')
103 #define CPLZ_TAG FOURCC_TAG('C', 'P', 'L', 'Z')
104 #define VPTZ_TAG FOURCC_TAG('V', 'P', 'T', 'Z')
105 92
106 #define VQA_DEBUG 0 93 #define VQA_DEBUG 0
107 94
108 #if VQA_DEBUG 95 #if VQA_DEBUG
109 #define vqa_debug printf 96 #define vqa_debug printf