55 #define HUFFMAN_TABLE_SIZE 64 * 1024
56 #define HUF_TOKENS 256
57 #define PALETTE_COUNT 256
71 const unsigned char *
buf;
92 for(i = 0; i < num_hnodes; i++) {
97 if(hnodes[i].count < best) {
98 best = hnodes[i].
count;
105 hnodes[best_node].
used = 1;
119 hnode *node, *hnodes;
128 node = &hnodes[num_hnodes];
151 int i, j, histogram_index = 0;
152 unsigned char *histograms;
165 for (i = 0; i < 256; i++) {
182 int bit_pos, node_num, dat_pos;
184 prev = bit_pos = dat_pos = 0;
193 if(dat_pos >= s->
size) {
198 v = s->
buf[dat_pos++];
201 node_num = hnodes[node_num].
children[v & 0x01];
215 void *
data,
int *got_frame,
219 int buf_size = avpkt->
size;
263 .
name =
"idcinvideo",