Mercurial > libavcodec.hg
comparison r210dec.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 | 8a4984c5cacc |
children | 8b28e74de2c0 |
comparison
equal
deleted
inserted
replaced
12127:9ba7d2a5b20a | 12128:ee740a4e80c5 |
---|---|
59 dst_line = pic->data[0]; | 59 dst_line = pic->data[0]; |
60 | 60 |
61 for (h = 0; h < avctx->height; h++) { | 61 for (h = 0; h < avctx->height; h++) { |
62 uint16_t *dst = (uint16_t *)dst_line; | 62 uint16_t *dst = (uint16_t *)dst_line; |
63 for (w = 0; w < avctx->width; w++) { | 63 for (w = 0; w < avctx->width; w++) { |
64 uint32_t pixel = be2me_32(*src++); | 64 uint32_t pixel = be2ne_32(*src++); |
65 uint16_t r, g, b; | 65 uint16_t r, g, b; |
66 b = pixel << 6; | 66 b = pixel << 6; |
67 g = (pixel >> 4) & 0xffc0; | 67 g = (pixel >> 4) & 0xffc0; |
68 r = (pixel >> 14) & 0xffc0; | 68 r = (pixel >> 14) & 0xffc0; |
69 *dst++ = r | (r >> 10); | 69 *dst++ = r | (r >> 10); |