Mercurial > libavcodec.hg
comparison r210dec.c @ 12491:990f8a5fc8af libavcodec
Reindent after r25115.
author | cehoyos |
---|---|
date | Mon, 13 Sep 2010 22:09:28 +0000 |
parents | e1a4ceb96a07 |
children |
comparison
equal
deleted
inserted
replaced
12490:e1a4ceb96a07 | 12491:990f8a5fc8af |
---|---|
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 = av_be2ne32(*src++); | 64 uint32_t pixel = av_be2ne32(*src++); |
65 uint16_t r, g, b; | 65 uint16_t r, g, b; |
66 if (avctx->codec_id==CODEC_ID_R210) { | 66 if (avctx->codec_id==CODEC_ID_R210) { |
67 b = pixel << 6; | 67 b = pixel << 6; |
68 g = (pixel >> 4) & 0xffc0; | 68 g = (pixel >> 4) & 0xffc0; |
69 r = (pixel >> 14) & 0xffc0; | 69 r = (pixel >> 14) & 0xffc0; |
70 } else { | 70 } else { |
71 b = pixel << 4; | 71 b = pixel << 4; |
72 g = (pixel >> 6) & 0xffc0; | 72 g = (pixel >> 6) & 0xffc0; |
73 r = (pixel >> 16) & 0xffc0; | 73 r = (pixel >> 16) & 0xffc0; |
74 } | 74 } |