[FFmpeg-trac] #3447(avdevice:new): YV12 and I420 and IYUV all map to YUV420P

FFmpeg trac at avcodec.org
Sat Mar 8 12:29:15 CET 2014

#3447: YV12 and I420 and IYUV all map to YUV420P
             Reporter:  DonMoir     |                    Owner:
                 Type:  defect      |                   Status:  new
             Priority:  normal      |                Component:  avdevice
              Version:  git-master  |               Resolution:
             Keywords:  dshow       |               Blocked By:
             Blocking:              |  Reproduced by developer:  0
Analyzed by developer:  0           |

Comment (by DonMoir):

 That worked for dshow. Not sure what would happen in the normal file case

 Sorry to put this here but it's quick and on the way to bed.

 BI_RGB indicates opaque RGB and not alpha RGB. I think same for

 static enum AVPixelFormat dshow_pixfmt(DWORD biCompression, WORD
     switch(biCompression) {
     case BI_BITFIELDS:
     case BI_RGB:
         switch(biBitCount) { /* 1-8 are untested */
             case 1:
                 return AV_PIX_FMT_MONOWHITE;
             case 4:
                 return AV_PIX_FMT_RGB4;
             case 8:
                 return AV_PIX_FMT_RGB8;
             case 16:
                 return AV_PIX_FMT_RGB555;
             case 24:
                 return AV_PIX_FMT_BGR24;
             case 32:
 -                return AV_PIX_FMT_RGB32;
 +                return AV_PIX_FMT_0RGB32;
     return avpriv_find_pix_fmt(ff_raw_pix_fmt_tags, biCompression); // all

Ticket URL: <https://trac.ffmpeg.org/ticket/3447#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker

More information about the FFmpeg-trac mailing list