comparison mmvideo.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 66ef3690d108
comparison
equal deleted inserted replaced
4363:9b7662fa4905 4364:05e932ddaaa9
108 } 108 }
109 } 109 }
110 110
111 static void mm_decode_inter(MmContext * s, int half_horiz, int half_vert, const uint8_t *buf, int buf_size) 111 static void mm_decode_inter(MmContext * s, int half_horiz, int half_vert, const uint8_t *buf, int buf_size)
112 { 112 {
113 const int data_ptr = 2 + LE_16(&buf[0]); 113 const int data_ptr = 2 + AV_RL16(&buf[0]);
114 int d, r, y; 114 int d, r, y;
115 d = data_ptr; r = 2; y = 0; 115 d = data_ptr; r = 2; y = 0;
116 116
117 while(r < data_ptr) { 117 while(r < data_ptr) {
118 int i, j; 118 int i, j;
160 if (palette_control->palette_changed) { 160 if (palette_control->palette_changed) {
161 memcpy(s->frame.data[1], palette_control->palette, AVPALETTE_SIZE); 161 memcpy(s->frame.data[1], palette_control->palette, AVPALETTE_SIZE);
162 palette_control->palette_changed = 0; 162 palette_control->palette_changed = 0;
163 } 163 }
164 164
165 type = LE_16(&buf[0]); 165 type = AV_RL16(&buf[0]);
166 buf += MM_PREAMBLE_SIZE; 166 buf += MM_PREAMBLE_SIZE;
167 buf_size -= MM_PREAMBLE_SIZE; 167 buf_size -= MM_PREAMBLE_SIZE;
168 168
169 switch(type) { 169 switch(type) {
170 case MM_TYPE_INTRA : mm_decode_intra(s, 0, 0, buf, buf_size); break; 170 case MM_TYPE_INTRA : mm_decode_intra(s, 0, 0, buf, buf_size); break;