[FFmpeg-trac] #3447(undetermined:new): YV12 and I420 and IYUV all map to YUV420P
FFmpeg
trac at avcodec.org
Sat Mar 8 05:28:13 CET 2014
#3447: YV12 and I420 and IYUV all map to YUV420P
-------------------------------------+-------------------------------------
Reporter: DonMoir | Type: defect
Status: new | Priority: normal
Component: | Version:
undetermined | unspecified
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
As far as I can tell, I420 and IYUV reverses the U and V planes from YV12
and there doesn't seem to be a mapping for YV12 other than YUV420p or vice
versa whatever the case may be I think they are supposed to be reversed.
I have a software DirectShow screen capture device MediaLooks. It has both
I420 and YV12 formats and some others. YV12 is listed before I420 and
since they both map to YUV420P seems it's confused and the colors are
reversed.
See: http://www.fourcc.org/yuv.php#YV12
first few pixel formats in map in libavcodec/raw.c
{{{
const PixelFormatTag ff_raw_pix_fmt_tags[] = {
{ AV_PIX_FMT_YUV420P, MKTAG('I', '4', '2', '0') }, /* Planar formats
*/
{ AV_PIX_FMT_YUV420P, MKTAG('I', 'Y', 'U', 'V') },
{ AV_PIX_FMT_YUV420P, MKTAG('Y', 'V', '1', '2') },
{ AV_PIX_FMT_YUV410P, MKTAG('Y', 'U', 'V', '9') },
{ AV_PIX_FMT_YUV410P, MKTAG('Y', 'V', 'U', '9') },
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3447>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list