Mercurial > libavcodec.hg
comparison msrledec.c @ 9684:c1ed557cd3b8 libavcodec
cosmetics: Fix some typos.
author | diego |
---|---|
date | Fri, 22 May 2009 17:14:22 +0000 |
parents | 8a65ae8929fb |
children | e7032c44d4a7 |
comparison
equal
deleted
inserted
replaced
9683:815664144471 | 9684:c1ed557cd3b8 |
---|---|
1 /* | 1 /* |
2 * Micrsoft RLE Decoder | 2 * Microsoft RLE decoder |
3 * Copyright (C) 2008 Konstantin Shishkov | 3 * Copyright (C) 2008 Konstantin Shishkov |
4 * | 4 * |
5 * This file is part of FFmpeg. | 5 * This file is part of FFmpeg. |
6 * | 6 * |
7 * FFmpeg is free software; you can redistribute it and/or | 7 * FFmpeg is free software; you can redistribute it and/or |
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
20 */ | 20 */ |
21 | 21 |
22 /** | 22 /** |
23 * @file libavcodec/msrledec.c | 23 * @file libavcodec/msrledec.c |
24 * MS RLE Decoder based on decoder by Mike Melanson and my own for TSCC | 24 * MS RLE decoder based on decoder by Mike Melanson and my own for TSCC |
25 * For more information about the MS RLE format, visit: | 25 * For more information about the MS RLE format, visit: |
26 * http://www.multimedia.cx/msrle.txt | 26 * http://www.multimedia.cx/msrle.txt |
27 */ | 27 */ |
28 | 28 |
29 #include "libavutil/intreadwrite.h" | 29 #include "libavutil/intreadwrite.h" |
193 *(uint32_t*)output = pix32; | 193 *(uint32_t*)output = pix32; |
194 output += 4; | 194 output += 4; |
195 } | 195 } |
196 } | 196 } |
197 pos += p2; | 197 pos += p2; |
198 } else { //Run of pixels | 198 } else { //run of pixels |
199 uint8_t pix[3]; //original pixel | 199 uint8_t pix[3]; //original pixel |
200 switch(depth){ | 200 switch(depth){ |
201 case 8: pix[0] = *src++; | 201 case 8: pix[0] = *src++; |
202 break; | 202 break; |
203 case 16: pix16 = AV_RL16(src); | 203 case 16: pix16 = AV_RL16(src); |
231 } | 231 } |
232 pos += p1; | 232 pos += p1; |
233 } | 233 } |
234 } | 234 } |
235 | 235 |
236 av_log(avctx, AV_LOG_WARNING, "MS RLE warning: no End-of-picture code\n"); | 236 av_log(avctx, AV_LOG_WARNING, "MS RLE warning: no end-of-picture code\n"); |
237 return 0; | 237 return 0; |
238 } | 238 } |
239 | 239 |
240 | 240 |
241 int ff_msrle_decode(AVCodecContext *avctx, AVPicture *pic, int depth, | 241 int ff_msrle_decode(AVCodecContext *avctx, AVPicture *pic, int depth, |