Mercurial > libavcodec.hg
comparison r210dec.c @ 12129:8b28e74de2c0 libavcodec
Add av_ prefix to bswap macros
author | mru |
---|---|
date | Sat, 10 Jul 2010 22:12:30 +0000 |
parents | ee740a4e80c5 |
children | e1a4ceb96a07 |
comparison
equal
deleted
inserted
replaced
12128:ee740a4e80c5 | 12129:8b28e74de2c0 |
---|---|
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 = be2ne_32(*src++); | 64 uint32_t pixel = av_be2ne32(*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); |