[FFmpeg-trac] #8454(avdevice:new): No PixelFormatTag for P010 (fourcc 0x30313050)

FFmpeg trac at avcodec.org
Wed Jan 1 05:37:55 EET 2020


#8454: No PixelFormatTag for P010 (fourcc 0x30313050)
-------------------------------------+------------------------------------
             Reporter:  pheedbaq3    |                    Owner:
                 Type:  enhancement  |                   Status:  new
             Priority:  wish         |                Component:  avdevice
              Version:  git-master   |               Resolution:
             Keywords:  dshow        |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+------------------------------------
Changes (by cehoyos):

 * keywords:   => dshow
 * priority:  normal => wish
 * version:  unspecified => git-master
 * component:  avcodec => avdevice
 * type:  defect => enhancement


Comment:

 Please test this patch:
 {{{
 diff --git a/libavcodec/raw.c b/libavcodec/raw.c
 index b6fb91c1c6..6052f18983 100644
 --- a/libavcodec/raw.c
 +++ b/libavcodec/raw.c
 @@ -72,6 +72,7 @@ const PixelFormatTag ff_raw_pix_fmt_tags[] = {
      { AV_PIX_FMT_GRAY8,   MKTAG('G', 'R', 'E', 'Y') },
      { AV_PIX_FMT_NV12,    MKTAG('N', 'V', '1', '2') },
      { AV_PIX_FMT_NV21,    MKTAG('N', 'V', '2', '1') },
 +    { AV_PIX_FMT_P010LE,  MKTAG('P', '0', '1', '0') },

      /* nut */
      { AV_PIX_FMT_RGB555LE, MKTAG('R', 'G', 'B', 15) },
 diff --git a/libavdevice/dshow.c b/libavdevice/dshow.c
 index d7f5bd7069..e9aa8c21db 100644
 --- a/libavdevice/dshow.c
 +++ b/libavdevice/dshow.c
 @@ -50,6 +50,8 @@ static enum AVPixelFormat dshow_pixfmt(DWORD
 biCompression, WORD biBitCount)
              case 32:
                  return AV_PIX_FMT_0RGB32;
          }
 +    case 0x30313050:
 +        return AV_PIX_FMT_P010LE;
      }
      return avpriv_find_pix_fmt(avpriv_get_raw_pix_fmt_tags(),
 biCompression); // all others
  }
 }}}

--
Ticket URL: <https://trac.ffmpeg.org/ticket/8454#comment:3>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list