comparison 8bps.c @ 12128:ee740a4e80c5 libavcodec

bswap: change ME to NE in macro names Other parts of FFmpeg use NE (native endian) rather than ME (machine). This makes it consistent.
author mru
date Sat, 10 Jul 2010 22:09:01 +0000
parents 7dd2a45249a9
children 8b28e74de2c0
comparison
equal deleted inserted replaced
12127:9ba7d2a5b20a 12128:ee740a4e80c5
98 98
99 /* Decode a plane */ 99 /* Decode a plane */
100 for(row = 0; row < height; row++) { 100 for(row = 0; row < height; row++) {
101 pixptr = c->pic.data[0] + row * c->pic.linesize[0] + planemap[p]; 101 pixptr = c->pic.data[0] + row * c->pic.linesize[0] + planemap[p];
102 pixptr_end = pixptr + c->pic.linesize[0]; 102 pixptr_end = pixptr + c->pic.linesize[0];
103 dlen = be2me_16(*(const unsigned short *)(lp+row*2)); 103 dlen = be2ne_16(*(const unsigned short *)(lp+row*2));
104 /* Decode a row of this plane */ 104 /* Decode a row of this plane */
105 while(dlen > 0) { 105 while(dlen > 0) {
106 if(dp + 1 >= buf+buf_size) return -1; 106 if(dp + 1 >= buf+buf_size) return -1;
107 if ((count = *dp++) <= 127) { 107 if ((count = *dp++) <= 127) {
108 count++; 108 count++;