Mercurial > libavcodec.hg
comparison raw.c @ 11751:378caf7b42ef libavcodec
Rename ff_raw_pixelFormatTags symbol to ff_raw_pix_fmt_tags.
The new name is shorter and consistent with the FFmpeg style.
author | stefano |
---|---|
date | Thu, 20 May 2010 23:09:11 +0000 |
parents | 87a5abd9b1ae |
children | 9371254837b5 |
comparison
equal
deleted
inserted
replaced
11750:d7a5fc4b7aee | 11751:378caf7b42ef |
---|---|
25 */ | 25 */ |
26 | 26 |
27 #include "avcodec.h" | 27 #include "avcodec.h" |
28 #include "raw.h" | 28 #include "raw.h" |
29 | 29 |
30 const PixelFormatTag ff_raw_pixelFormatTags[] = { | 30 const PixelFormatTag ff_raw_pix_fmt_tags[] = { |
31 { PIX_FMT_YUV420P, MKTAG('I', '4', '2', '0') }, /* Planar formats */ | 31 { PIX_FMT_YUV420P, MKTAG('I', '4', '2', '0') }, /* Planar formats */ |
32 { PIX_FMT_YUV420P, MKTAG('I', 'Y', 'U', 'V') }, | 32 { PIX_FMT_YUV420P, MKTAG('I', 'Y', 'U', 'V') }, |
33 { PIX_FMT_YUV420P, MKTAG('Y', 'V', '1', '2') }, | 33 { PIX_FMT_YUV420P, MKTAG('Y', 'V', '1', '2') }, |
34 { PIX_FMT_YUV410P, MKTAG('Y', 'U', 'V', '9') }, | 34 { PIX_FMT_YUV410P, MKTAG('Y', 'U', 'V', '9') }, |
35 { PIX_FMT_YUV410P, MKTAG('Y', 'V', 'U', '9') }, | 35 { PIX_FMT_YUV410P, MKTAG('Y', 'V', 'U', '9') }, |
112 { PIX_FMT_NONE, 0 }, | 112 { PIX_FMT_NONE, 0 }, |
113 }; | 113 }; |
114 | 114 |
115 unsigned int avcodec_pix_fmt_to_codec_tag(enum PixelFormat fmt) | 115 unsigned int avcodec_pix_fmt_to_codec_tag(enum PixelFormat fmt) |
116 { | 116 { |
117 const PixelFormatTag * tags = ff_raw_pixelFormatTags; | 117 const PixelFormatTag *tags = ff_raw_pix_fmt_tags; |
118 while (tags->pix_fmt >= 0) { | 118 while (tags->pix_fmt >= 0) { |
119 if (tags->pix_fmt == fmt) | 119 if (tags->pix_fmt == fmt) |
120 return tags->fourcc; | 120 return tags->fourcc; |
121 tags++; | 121 tags++; |
122 } | 122 } |