comparison xan.c @ 4364:05e932ddaaa9 libavcodec

rename BE/LE_8/16/32 to AV_RL/B_8/16/32
author alex
date Fri, 19 Jan 2007 22:12:59 +0000
parents c8c591fe26f8
children 231daf8387b1
comparison
equal deleted inserted replaced
4363:9b7662fa4905 4364:05e932ddaaa9
294 unsigned char *huffman_segment; 294 unsigned char *huffman_segment;
295 unsigned char *size_segment; 295 unsigned char *size_segment;
296 unsigned char *vector_segment; 296 unsigned char *vector_segment;
297 unsigned char *imagedata_segment; 297 unsigned char *imagedata_segment;
298 298
299 huffman_segment = s->buf + LE_16(&s->buf[0]); 299 huffman_segment = s->buf + AV_RL16(&s->buf[0]);
300 size_segment = s->buf + LE_16(&s->buf[2]); 300 size_segment = s->buf + AV_RL16(&s->buf[2]);
301 vector_segment = s->buf + LE_16(&s->buf[4]); 301 vector_segment = s->buf + AV_RL16(&s->buf[4]);
302 imagedata_segment = s->buf + LE_16(&s->buf[6]); 302 imagedata_segment = s->buf + AV_RL16(&s->buf[6]);
303 303
304 xan_huffman_decode(opcode_buffer, huffman_segment, opcode_buffer_size); 304 xan_huffman_decode(opcode_buffer, huffman_segment, opcode_buffer_size);
305 305
306 if (imagedata_segment[0] == 2) 306 if (imagedata_segment[0] == 2)
307 xan_unpack(imagedata_buffer, &imagedata_segment[1], 307 xan_unpack(imagedata_buffer, &imagedata_segment[1],
348 size = *size_segment++; 348 size = *size_segment++;
349 break; 349 break;
350 350
351 case 10: 351 case 10:
352 case 20: 352 case 20:
353 size = BE_16(&size_segment[0]); 353 size = AV_RB16(&size_segment[0]);
354 size_segment += 2; 354 size_segment += 2;
355 break; 355 break;
356 356
357 case 11: 357 case 11:
358 case 21: 358 case 21: