Mercurial > libavcodec.hg
comparison rawdec.c @ 8023:76f6a08c9fe6 libavcodec
Fix some icc warnings by using enum PixelFormat instead of int where appropriate.
author | cehoyos |
---|---|
date | Mon, 13 Oct 2008 07:42:11 +0000 |
parents | 4525dcd81357 |
children | 04423b2f6e0b |
comparison
equal
deleted
inserted
replaced
8022:21c3e313709e | 8023:76f6a08c9fe6 |
---|---|
38 { PIX_FMT_PAL8, 8 }, | 38 { PIX_FMT_PAL8, 8 }, |
39 { PIX_FMT_RGB555, 15 }, | 39 { PIX_FMT_RGB555, 15 }, |
40 { PIX_FMT_RGB555, 16 }, | 40 { PIX_FMT_RGB555, 16 }, |
41 { PIX_FMT_BGR24, 24 }, | 41 { PIX_FMT_BGR24, 24 }, |
42 { PIX_FMT_RGB32, 32 }, | 42 { PIX_FMT_RGB32, 32 }, |
43 { -1, 0 }, | 43 { PIX_FMT_NONE, 0 }, |
44 }; | 44 }; |
45 | 45 |
46 static const PixelFormatTag pixelFormatBpsMOV[] = { | 46 static const PixelFormatTag pixelFormatBpsMOV[] = { |
47 /* FIXME fix swscaler to support those */ | 47 /* FIXME fix swscaler to support those */ |
48 /* http://developer.apple.com/documentation/QuickTime/QTFF/QTFFChap3/chapter_4_section_2.html */ | 48 /* http://developer.apple.com/documentation/QuickTime/QTFF/QTFFChap3/chapter_4_section_2.html */ |
49 { PIX_FMT_PAL8, 4 }, | 49 { PIX_FMT_PAL8, 4 }, |
50 { PIX_FMT_PAL8, 8 }, | 50 { PIX_FMT_PAL8, 8 }, |
51 { PIX_FMT_BGR555, 16 }, | 51 { PIX_FMT_BGR555, 16 }, |
52 { PIX_FMT_RGB24, 24 }, | 52 { PIX_FMT_RGB24, 24 }, |
53 { PIX_FMT_BGR32_1, 32 }, | 53 { PIX_FMT_BGR32_1, 32 }, |
54 { -1, 0 }, | 54 { PIX_FMT_NONE, 0 }, |
55 }; | 55 }; |
56 | 56 |
57 static int findPixelFormat(const PixelFormatTag *tags, unsigned int fourcc) | 57 static enum PixelFormat findPixelFormat(const PixelFormatTag *tags, unsigned int fourcc) |
58 { | 58 { |
59 while (tags->pix_fmt >= 0) { | 59 while (tags->pix_fmt >= 0) { |
60 if (tags->fourcc == fourcc) | 60 if (tags->fourcc == fourcc) |
61 return tags->pix_fmt; | 61 return tags->pix_fmt; |
62 tags++; | 62 tags++; |