[vlc-commits] dxgi_fmt: fix DXGI_FORMAT_Y210 mapping

Steve Lhomme git at videolan.org
Wed Oct 16 09:13:07 CEST 2019


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Tue Oct 15 08:35:30 2019 +0200| [8d33199a8201358229cda734886a89366b727564] | committer: Steve Lhomme

dxgi_fmt: fix DXGI_FORMAT_Y210 mapping

It's a 10-bit 4:2:2 format not 8 bit like VLC_CODEC_YUYV (which corresponds to
DXGI_FORMAT_YUY2)

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8d33199a8201358229cda734886a89366b727564
---

 modules/video_chroma/dxgi_fmt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/video_chroma/dxgi_fmt.c b/modules/video_chroma/dxgi_fmt.c
index 0fe22a0052..e1ad207a8c 100644
--- a/modules/video_chroma/dxgi_fmt.c
+++ b/modules/video_chroma/dxgi_fmt.c
@@ -52,7 +52,7 @@ static const dxgi_format_t dxgi_formats[] = {
     { "Y416",        DXGI_FORMAT_Y416,                0                  },
     { "P010",        DXGI_FORMAT_P010,                VLC_CODEC_P010     },
     { "P016",        DXGI_FORMAT_P016,                VLC_CODEC_P016     },
-    { "Y210",        DXGI_FORMAT_Y210,                VLC_CODEC_YUYV     }, /* AV_PIX_FMT_YUYV422 */
+    { "Y210",        DXGI_FORMAT_Y210,                VLC_CODEC_Y210     },
     { "Y410",        DXGI_FORMAT_Y410,                0                  },
     { "NV11",        DXGI_FORMAT_NV11,                0                  },
     { "RGB10A2",     DXGI_FORMAT_R10G10B10A2_UNORM,   VLC_CODEC_RGBA10   },



More information about the vlc-commits mailing list