[vlc-commits] [Git][videolan/vlc][master] 7 commits: d3d11_surface: don't read YUY2 staging textures as planar YV12
Felix Paul Kühne (@fkuehne)
gitlab at videolan.org
Tue Oct 27 08:17:49 UTC 2026
Felix Paul Kühne pushed to branch master at VideoLAN / VLC
Commits:
64bbd1eb by Wassim Lalaoui at 2026-10-27T08:51:04+01:00
d3d11_surface: don't read YUY2 staging textures as planar YV12
This branch was a copy of the YV12 reader from dxa9.c. YUY2 is a single
packed plane, so the U and V pointers pointed past the end of the mapped
texture and the copy read out of bounds.
- - - - -
e35e9d99 by Wassim Lalaoui at 2026-10-27T08:51:04+01:00
ffmpeg: patch to support 4:4:4 and 4:2:2 AV1 for D3D11
Co-authored-by: Kacper Michajłow <kasper93 at gmail.com>
- - - - -
e993d1c7 by Wassim Lalaoui at 2026-10-27T08:51:04+01:00
video_chroma: put VA_YUY2 before VA_AYUV so 4:2:2 decoders get their native format instead of the 4:4:4 superset
- - - - -
a73901c4 by Wassim Lalaoui at 2026-10-27T08:51:04+01:00
avcodec: feed the AV1 profile to the VA setup
- - - - -
518bfd9f by Wassim Lalaoui at 2026-10-27T08:51:04+01:00
directx_va: check the number of components when matching DXVA modes
Grayscale formats have the log2_chroma values of 4:4:4 ones, so the chroma
subsampling check alone can't tell them apart once 4:4:4 modes are listed.
All DXVA modes currently output YUV with 3 components.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
- - - - -
bbb57d65 by Wassim Lalaoui at 2026-10-27T08:51:04+01:00
d3d11_surface: use the video processor for formats the CPU copy can't read
- - - - -
6e226861 by Wassim Lalaoui at 2026-10-27T08:51:04+01:00
directx_va: support AV1 High and Professional modes
this enables 4:4:4 and 4:2:2 hardware video decoding
- - - - -
7 changed files:
- + contrib/src/ffmpeg/0001-avcodec-av1-add-support-for-AV1-High-and-Professional.patch
- contrib/src/ffmpeg/rules.mak
- modules/codec/avcodec/directx_va.c
- modules/codec/avcodec/directx_va.h
- modules/codec/avcodec/video.c
- modules/hw/d3d11/d3d11_surface.c
- modules/video_chroma/dxgi_fmt.c
Changes:
=====================================
contrib/src/ffmpeg/0001-avcodec-av1-add-support-for-AV1-High-and-Professional.patch
=====================================
@@ -0,0 +1,123 @@
+From 32cf7d6b14934ab6422836576204a6a648869ee4 Mon Sep 17 00:00:00 2001
+From: Wassim Lalaoui <wassim at videolabs.io>
+Date: Fri, 10 Jul 2026 16:07:26 +0200
+Subject: [PATCH] avcodec/av1: add support for AV1 High and Professional DXVA
+ profiles
+
+The DXVA AV1 spec defines decoder GUIDs for the High (8/10-bit 4:4:4)
+and Professional (8/10-bit 4:2:2) profiles. Offer the D3D11VA
+hwaccel for the corresponding pixel formats and add the matching
+decoder GUIDs, including the 12-bit Professional GUID which is a
+superset that also decodes 8/10-bit 4:2:2 streams.
+
+The negotiated hwaccel is no longer kept across a sequence change that
+alters the pixel format: the existing decoder surfaces would have the
+wrong format, so a full renegotiation is needed.
+
+Intel GPUs expose these decoder profiles in their Windows drivers.
+
+---
+ libavcodec/av1dec.c | 27 ++++++++++++++++++++++-----
+ libavcodec/dxva2.c | 10 ++++++++++
+ 2 files changed, 32 insertions(+), 5 deletions(-)
+
+diff --git a/libavcodec/av1dec.c b/libavcodec/av1dec.c
+index 2b3a36a..d50a7e3 100644
+--- a/libavcodec/av1dec.c
++++ b/libavcodec/av1dec.c
+@@ -613,11 +613,19 @@ static int get_pixel_format(AVCodecContext *avctx)
+ #endif
+ break;
+ case AV_PIX_FMT_YUV422P:
++#if CONFIG_AV1_D3D11VA_HWACCEL
++ *fmtp++ = AV_PIX_FMT_D3D11VA_VLD;
++ *fmtp++ = AV_PIX_FMT_D3D11;
++#endif
+ #if CONFIG_AV1_VULKAN_HWACCEL
+ *fmtp++ = AV_PIX_FMT_VULKAN;
+ #endif
+ break;
+ case AV_PIX_FMT_YUV422P10:
++#if CONFIG_AV1_D3D11VA_HWACCEL
++ *fmtp++ = AV_PIX_FMT_D3D11VA_VLD;
++ *fmtp++ = AV_PIX_FMT_D3D11;
++#endif
+ #if CONFIG_AV1_VULKAN_HWACCEL
+ *fmtp++ = AV_PIX_FMT_VULKAN;
+ #endif
+@@ -628,11 +636,19 @@ static int get_pixel_format(AVCodecContext *avctx)
+ #endif
+ break;
+ case AV_PIX_FMT_YUV444P:
++#if CONFIG_AV1_D3D11VA_HWACCEL
++ *fmtp++ = AV_PIX_FMT_D3D11VA_VLD;
++ *fmtp++ = AV_PIX_FMT_D3D11;
++#endif
+ #if CONFIG_AV1_VULKAN_HWACCEL
+ *fmtp++ = AV_PIX_FMT_VULKAN;
+ #endif
+ break;
+ case AV_PIX_FMT_YUV444P10:
++#if CONFIG_AV1_D3D11VA_HWACCEL
++ *fmtp++ = AV_PIX_FMT_D3D11VA_VLD;
++ *fmtp++ = AV_PIX_FMT_D3D11;
++#endif
+ #if CONFIG_AV1_VULKAN_HWACCEL
+ *fmtp++ = AV_PIX_FMT_VULKAN;
+ #endif
+@@ -657,11 +673,12 @@ static int get_pixel_format(AVCodecContext *avctx)
+ *fmtp++ = pix_fmt;
+ *fmtp = AV_PIX_FMT_NONE;
+
+- for (int i = 0; pix_fmts[i] != pix_fmt; i++)
+- if (pix_fmts[i] == avctx->pix_fmt) {
+- s->pix_fmt = pix_fmt;
+- return 1;
+- }
++ /* the negotiated hwaccel can only be kept if the underlying pixel
++ * format did not change, otherwise its surfaces have the wrong format */
++ if (pix_fmt == avctx->sw_pix_fmt)
++ for (int i = 0; pix_fmts[i] != pix_fmt; i++)
++ if (pix_fmts[i] == avctx->pix_fmt)
++ return 1;
+
+ ret = ff_get_format(avctx, pix_fmts);
+
+diff --git a/libavcodec/dxva2.c b/libavcodec/dxva2.c
+index 217d63d..7c0bbf7 100644
+--- a/libavcodec/dxva2.c
++++ b/libavcodec/dxva2.c
+@@ -47,6 +47,9 @@ DEFINE_GUID(ff_DXVA2_ModeHEVC_VLD_Main10,0x107af0e0, 0xef1a,0x4d19,0xab,0xa8,0x6
+ DEFINE_GUID(ff_DXVA2_ModeVP9_VLD_Profile0,0x463707f8,0xa1d0,0x4585,0x87,0x6d,0x83,0xaa,0x6d,0x60,0xb8,0x9e);
+ DEFINE_GUID(ff_DXVA2_ModeVP9_VLD_10bit_Profile2,0xa4c749ef,0x6ecf,0x48aa,0x84,0x48,0x50,0xa7,0xa1,0x16,0x5f,0xf7);
+ DEFINE_GUID(ff_DXVA2_ModeAV1_VLD_Profile0,0xb8be4ccb,0xcf53,0x46ba,0x8d,0x59,0xd6,0xb8,0xa6,0xda,0x5d,0x2a);
++DEFINE_GUID(ff_DXVA2_ModeAV1_VLD_Profile1,0x6936ff0f,0x45b1,0x4163,0x9c,0xc1,0x64,0x6e,0xf6,0x94,0x61,0x08);
++DEFINE_GUID(ff_DXVA2_ModeAV1_VLD_Profile2,0x0c5f2aa1,0xe541,0x4089,0xbb,0x7b,0x98,0x11,0x0a,0x19,0xd7,0xc8);
++DEFINE_GUID(ff_DXVA2_ModeAV1_VLD_12bit_Profile2,0x17127009,0xa00f,0x4ce1,0x99,0x4e,0xbf,0x40,0x81,0xf6,0xf3,0xf0);
+ DEFINE_GUID(ff_DXVA2_NoEncrypt, 0x1b81beD0, 0xa0c7,0x11d3,0xb9,0x84,0x00,0xc0,0x4f,0x2e,0x73,0xc5);
+ DEFINE_GUID(ff_IID_IDirectXVideoDecoderService, 0xfc51a551,0xd5e7,0x11d9,0xaf,0x55,0x00,0x05,0x4e,0x43,0xff,0x02);
+
+@@ -77,6 +80,10 @@ static const int prof_vp9_profile2[] = {AV_PROFILE_VP9_2,
+ AV_PROFILE_UNKNOWN};
+ static const int prof_av1_profile0[] = {AV_PROFILE_AV1_MAIN,
+ AV_PROFILE_UNKNOWN};
++static const int prof_av1_profile1[] = {AV_PROFILE_AV1_HIGH,
++ AV_PROFILE_UNKNOWN};
++static const int prof_av1_profile2[] = {AV_PROFILE_AV1_PROFESSIONAL,
++ AV_PROFILE_UNKNOWN};
+
+ static const dxva_mode dxva_modes[] = {
+ /* MPEG-2 */
+@@ -111,6 +118,9 @@ static const dxva_mode dxva_modes[] = {
+
+ /* AV1 */
+ { &ff_DXVA2_ModeAV1_VLD_Profile0, AV_CODEC_ID_AV1, prof_av1_profile0 },
++ { &ff_DXVA2_ModeAV1_VLD_Profile1, AV_CODEC_ID_AV1, prof_av1_profile1 },
++ { &ff_DXVA2_ModeAV1_VLD_Profile2, AV_CODEC_ID_AV1, prof_av1_profile2 },
++ { &ff_DXVA2_ModeAV1_VLD_12bit_Profile2, AV_CODEC_ID_AV1, prof_av1_profile2 },
+
+ { NULL, 0 },
+ };
+--
+2.43.0
+
=====================================
contrib/src/ffmpeg/rules.mak
=====================================
@@ -239,6 +239,7 @@ ffmpeg: ffmpeg-$(FFMPEG_VERSION).tar.xz .sum-ffmpeg
$(APPLY) $(SRC)/ffmpeg/dxva_vc1_crash.patch
$(APPLY) $(SRC)/ffmpeg/h264_early_SAR.patch
$(APPLY) $(SRC)/ffmpeg/0001-avcodec-dxva2-add-support-for-HEVC-RExt-DXVA-profile.patch
+ $(APPLY) $(SRC)/ffmpeg/0001-avcodec-av1-add-support-for-AV1-High-and-Professional.patch
$(APPLY) $(SRC)/ffmpeg/0001-avcodec-mpeg12dec-don-t-call-hw-end_frame-when-start.patch
$(APPLY) $(SRC)/ffmpeg/0002-avcodec-mpeg12dec-don-t-end-a-slice-without-first_sl.patch
$(APPLY) $(SRC)/ffmpeg/0001-fix-mf_utils-compilation-with-mingw64.patch
=====================================
modules/codec/avcodec/directx_va.c
=====================================
@@ -72,6 +72,7 @@ static const int PROF_VP9_10[] = { AVPROFILE(VP9_2), AVPROFILE(UNKNOWN) };
static const int PROF_AV1_MAIN[] = { AVPROFILE(AV1_MAIN), AVPROFILE(UNKNOWN) };
static const int PROF_AV1_HIGH[] = { AVPROFILE(AV1_HIGH), AVPROFILE(AV1_MAIN), AVPROFILE(UNKNOWN) };
+static const int PROF_AV1_PRO[] = { AVPROFILE(AV1_PROFESSIONAL), AVPROFILE(UNKNOWN) };
#if defined(__MINGW64_VERSION_MAJOR) // mingw-w64 doesn't have all the standard GUIDs
@@ -188,10 +189,10 @@ DEFINE_GUID(DXVA_ModeAV1_VLD_12bit_Profile2_420, 0x2d80bed6, 0x9cac, 0x4835, 0x9
#ifndef FF_DXVA_WORKAROUND_GONE
#define DEF_DXVA_MODE(name, guid, bitdepth, chroma_w, chroma_h, avcodecid, profiles, workaround) \
- { name, guid, bitdepth, { chroma_w, chroma_h }, avcodecid, profiles, workaround }
+ { name, guid, bitdepth, 3, { chroma_w, chroma_h }, avcodecid, profiles, workaround }
#else
#define DEF_DXVA_MODE(name, guid, bitdepth, chroma_w, chroma_h, avcodecid, profiles, workaround) \
- { name, guid, bitdepth, { chroma_w, chroma_h }, avcodecid, profiles }
+ { name, guid, bitdepth, 3, { chroma_w, chroma_h }, avcodecid, profiles }
#endif
#define DEF_DXVA_MODE_420_8B(name, guid, avcodecid, profiles) \
@@ -315,8 +316,14 @@ static const directx_va_mode_t DXVA_MODES[] = {
/* AV1 */
DEF_DXVA_MODE_420_8B( "AV1 Main profile 8", &DXVA_ModeAV1_VLD_Profile0, AV_CODEC_ID_AV1, PROF_AV1_MAIN ),
DEF_DXVA_MODE_420_10B( "AV1 Main profile 10", &DXVA_ModeAV1_VLD_Profile0, AV_CODEC_ID_AV1, PROF_AV1_MAIN ),
+ DEF_DXVA_MODE( "AV1 High profile 4:4:4 8", &DXVA_ModeAV1_VLD_Profile1, 8, 0, 0, AV_CODEC_ID_AV1, PROF_AV1_HIGH, 0 ),
+ DEF_DXVA_MODE( "AV1 High profile 4:4:4 10", &DXVA_ModeAV1_VLD_Profile1, 10, 0, 0, AV_CODEC_ID_AV1, PROF_AV1_HIGH, 0 ),
DEF_DXVA_MODE_420_8B( "AV1 High profile 8", &DXVA_ModeAV1_VLD_Profile1, AV_CODEC_ID_AV1, PROF_AV1_HIGH ),
DEF_DXVA_MODE_420_10B( "AV1 High profile 10", &DXVA_ModeAV1_VLD_Profile1, AV_CODEC_ID_AV1, PROF_AV1_HIGH ),
+ DEF_DXVA_MODE( "AV1 Professional profile 4:2:2 8", &DXVA_ModeAV1_VLD_Profile2, 8, 1, 0, AV_CODEC_ID_AV1, PROF_AV1_PRO, 0 ),
+ DEF_DXVA_MODE( "AV1 Professional profile 4:2:2 10", &DXVA_ModeAV1_VLD_Profile2, 10, 1, 0, AV_CODEC_ID_AV1, PROF_AV1_PRO, 0 ),
+ DEF_DXVA_MODE( "AV1 Professional 12-bit profile 4:2:2 8", &DXVA_ModeAV1_VLD_12bit_Profile2, 8, 1, 0, AV_CODEC_ID_AV1, PROF_AV1_PRO, 0 ),
+ DEF_DXVA_MODE( "AV1 Professional 12-bit profile 4:2:2 10", &DXVA_ModeAV1_VLD_12bit_Profile2, 10, 1, 0, AV_CODEC_ID_AV1, PROF_AV1_PRO, 0 ),
};
static const directx_va_mode_t *FindVideoServiceConversion(vlc_va_t *, const directx_sys_t *, const es_format_t *, video_format_t *fmt_out,
@@ -492,6 +499,14 @@ static const directx_va_mode_t * FindVideoServiceConversion(vlc_va_t *va, const
if ( !is_supported )
continue;
+ if (desc && desc->nb_components &&
+ desc->nb_components != mode->nb_components)
+ {
+ msg_Warn( va, "Unsupported %d components for %s ",
+ desc->nb_components, mode->name );
+ continue;
+ }
+
int src_bit_depth = (desc && desc->nb_components) ? desc->comp[0].depth : 8;
if (src_bit_depth != mode->bit_depth)
{
=====================================
modules/codec/avcodec/directx_va.h
=====================================
@@ -57,6 +57,7 @@ typedef struct {
const char *name;
const GUID *guid;
int bit_depth;
+ uint8_t nb_components; // 1 for monochrome, 3 for YUV
struct {
uint8_t log2_chroma_w;
uint8_t log2_chroma_h;
=====================================
modules/codec/avcodec/video.c
=====================================
@@ -899,6 +899,8 @@ static int ExtractAV1Profile(AVCodecContext *p_context, const es_format_t *fmt_i
int tier;
AV1_get_profile_level(sequence_hdr, &p_sys->profile, &p_sys->level, &tier);
+ p_context->profile = p_sys->profile;
+
AV1_release_sequence_header(sequence_hdr);
return VLC_SUCCESS;
=====================================
modules/hw/d3d11/d3d11_surface.c
=====================================
@@ -151,7 +151,8 @@ static HRESULT can_map(filter_sys_t *sys, ID3D11DeviceContext *context)
return hr;
}
-static int assert_staging(filter_t *p_filter, filter_sys_t *sys, DXGI_FORMAT format)
+static int assert_staging(filter_t *p_filter, filter_sys_t *sys,
+ DXGI_FORMAT format, vlc_fourcc_t cpu_chroma)
{
HRESULT hr;
@@ -173,16 +174,29 @@ static int assert_staging(filter_t *p_filter, filter_sys_t *sys, DXGI_FORMAT for
d3d11_device_t *d3d_dev = sys->d3d_dev;
sys->staging = NULL;
- hr = ID3D11Device_CreateTexture2D( d3d_dev->d3ddevice, &texDesc, NULL, &sys->staging);
- /* test if mapping the texture works ref #18746 */
- if (SUCCEEDED(hr) && FAILED(hr = can_map(sys, d3d_dev->d3dcontext)))
- msg_Dbg(p_filter, "can't map default staging texture (hr=0x%lX)", hr);
+ if (DxgiFormatFourcc(texDesc.Format) == cpu_chroma)
+ {
+ hr = ID3D11Device_CreateTexture2D( d3d_dev->d3ddevice, &texDesc, NULL, &sys->staging);
+ /* test if mapping the texture works ref #18746 */
+ if (SUCCEEDED(hr) && FAILED(hr = can_map(sys, d3d_dev->d3dcontext)))
+ msg_Dbg(p_filter, "can't map default staging texture (hr=0x%lX)", hr);
+ }
+ else
+ {
+ /* the CPU copy only reads the layout matching the output chroma, so
+ * packed 4:2:2/4:4:4 decoder formats (AYUV, Y210, Y410, ...) have to
+ * go through a processor conversion first */
+ msg_Dbg(p_filter, "%s pictures need a conversion to %4.4s",
+ DxgiFormatToStr(texDesc.Format), (const char*)&cpu_chroma);
+ hr = E_FAIL;
+ }
#if CAN_PROCESSOR
if (FAILED(hr)) {
- /* failed with the this format, try a different one */
+ /* convert to the exact layout the CPU copy reads, any other one would
+ * be interpreted with the wrong pitches or bit depth */
UINT supportFlags = D3D11_FORMAT_SUPPORT_SHADER_LOAD | D3D11_FORMAT_SUPPORT_VIDEO_PROCESSOR_OUTPUT;
const d3d_format_t *new_fmt =
- FindD3D11Format( p_filter, d3d_dev, 0, DXGI_RGB_FORMAT|DXGI_YUV_FORMAT, 0, 0, 0, 0, DXGI_CHROMA_CPU, supportFlags );
+ FindD3D11Format( p_filter, d3d_dev, cpu_chroma, DXGI_RGB_FORMAT|DXGI_YUV_FORMAT, 0, 0, 0, -1, DXGI_CHROMA_CPU, supportFlags );
if (new_fmt && texDesc.Format != new_fmt->formatTexture)
{
DXGI_FORMAT srcFormat = texDesc.Format;
@@ -295,27 +309,8 @@ static void D3D11_YUY2(filter_t *p_filter, picture_t *src, picture_t *dst)
ID3D11Texture2D_GetDesc(sys->staging, &desc);
- if (desc.Format == DXGI_FORMAT_YUY2) {
- size_t chroma_pitch = (lock.RowPitch / 2);
-
- const size_t pitch[3] = {
- lock.RowPitch,
- chroma_pitch,
- chroma_pitch,
- };
-
- const uint8_t *plane[3] = {
- (uint8_t*)lock.pData,
- (uint8_t*)lock.pData + pitch[0] * desc.Height,
- (uint8_t*)lock.pData + pitch[0] * desc.Height
- + pitch[1] * desc.Height / 2,
- };
-
- Copy420_P_to_P(dst, plane, pitch,
- src->format.i_visible_height + src->format.i_y_offset,
- &sys->cache);
- } else if (desc.Format == DXGI_FORMAT_NV12 ||
- desc.Format == DXGI_FORMAT_P010) {
+ if (desc.Format == DXGI_FORMAT_NV12 ||
+ desc.Format == DXGI_FORMAT_P010) {
const uint8_t *plane[2] = {
lock.pData,
(uint8_t*)lock.pData + lock.RowPitch * desc.Height
@@ -707,39 +702,47 @@ int D3D11OpenConverter( filter_t *p_filter )
return VLC_EGENERIC;
uint8_t pixel_bytes = 1;
+ /* the layout each copy function reads from the mapped staging texture */
+ vlc_fourcc_t cpu_chroma;
switch( p_filter->fmt_out.video.i_chroma ) {
case VLC_CODEC_I420:
case VLC_CODEC_YV12:
if( p_filter->fmt_in.video.i_chroma != VLC_CODEC_D3D11_OPAQUE )
return VLC_EGENERIC;
p_filter->ops = &D3D11_YUY2_ops;
+ cpu_chroma = VLC_CODEC_NV12;
break;
case VLC_CODEC_I420_10L:
if( p_filter->fmt_in.video.i_chroma != VLC_CODEC_D3D11_OPAQUE_10B )
return VLC_EGENERIC;
p_filter->ops = &D3D11_YUY2_ops;
+ cpu_chroma = VLC_CODEC_P010;
pixel_bytes = 2;
break;
case VLC_CODEC_NV12:
if( p_filter->fmt_in.video.i_chroma != VLC_CODEC_D3D11_OPAQUE )
return VLC_EGENERIC;
p_filter->ops = &D3D11_NV12_ops;
+ cpu_chroma = VLC_CODEC_NV12;
break;
case VLC_CODEC_P010:
if( p_filter->fmt_in.video.i_chroma != VLC_CODEC_D3D11_OPAQUE_10B )
return VLC_EGENERIC;
p_filter->ops = &D3D11_NV12_ops;
+ cpu_chroma = VLC_CODEC_P010;
pixel_bytes = 2;
break;
case VLC_CODEC_RGBA:
if( p_filter->fmt_in.video.i_chroma != VLC_CODEC_D3D11_OPAQUE_RGBA )
return VLC_EGENERIC;
p_filter->ops = &D3D11_RGBA_ops;
+ cpu_chroma = VLC_CODEC_RGBA;
break;
case VLC_CODEC_BGRA:
if( p_filter->fmt_in.video.i_chroma != VLC_CODEC_D3D11_OPAQUE_BGRA )
return VLC_EGENERIC;
p_filter->ops = &D3D11_RGBA_ops;
+ cpu_chroma = VLC_CODEC_BGRA;
break;
default:
return VLC_EGENERIC;
@@ -753,7 +756,7 @@ int D3D11OpenConverter( filter_t *p_filter )
d3d11_decoder_device_t *dev_sys = GetD3D11OpaqueContext(p_filter->vctx_in);
p_sys->d3d_dev = &dev_sys->d3d_dev;
- if (assert_staging(p_filter, p_sys, vctx_sys->format) != VLC_SUCCESS)
+ if (assert_staging(p_filter, p_sys, vctx_sys->format, cpu_chroma) != VLC_SUCCESS)
{
return VLC_EGENERIC;
}
=====================================
modules/video_chroma/dxgi_fmt.c
=====================================
@@ -71,9 +71,9 @@ static const d3d_format_t d3d_formats[] = {
{ "VA_NV12A", DXGI_FORMAT_NV12, DXGI_FORMAT_NV12, VLC_CODEC_D3D11_OPAQUE_ALPHA,8, 2, 2, 8, 1, { DXGI_FORMAT_R8_UNORM, DXGI_FORMAT_R8G8_UNORM, DXGI_FORMAT_R8_UNORM } },
{ "P010", DXGI_FORMAT_P010, DXGI_FORMAT_UNKNOWN, VLC_CODEC_P010, 10, 2, 2, 0, 1, { DXGI_FORMAT_R16_UNORM, DXGI_FORMAT_R16G16_UNORM } },
{ "VA_P010", DXGI_FORMAT_P010, DXGI_FORMAT_UNKNOWN, VLC_CODEC_D3D11_OPAQUE_10B, 10, 2, 2, 0, 1, { DXGI_FORMAT_R16_UNORM, DXGI_FORMAT_R16G16_UNORM } },
- { "VA_AYUV", DXGI_FORMAT_AYUV, DXGI_FORMAT_UNKNOWN, VLC_CODEC_D3D11_OPAQUE, 8, 1, 1, 8, 1, { DXGI_FORMAT_R8G8B8A8_UNORM } },
{ "YUY2", DXGI_FORMAT_YUY2, DXGI_FORMAT_UNKNOWN, VLC_CODEC_YUYV, 8, 1, 2, 0, 1, { DXGI_FORMAT_R8G8B8A8_UNORM } },
{ "VA_YUY2", DXGI_FORMAT_YUY2, DXGI_FORMAT_UNKNOWN, VLC_CODEC_D3D11_OPAQUE, 8, 1, 2, 0, 1, { DXGI_FORMAT_R8G8B8A8_UNORM } },
+ { "VA_AYUV", DXGI_FORMAT_AYUV, DXGI_FORMAT_UNKNOWN, VLC_CODEC_D3D11_OPAQUE, 8, 1, 1, 8, 1, { DXGI_FORMAT_R8G8B8A8_UNORM } },
#ifdef BROKEN_PIXEL
{ "Y416", DXGI_FORMAT_Y416, DXGI_FORMAT_UNKNOWN, VLC_CODEC_I444_16L, 16, 1, 1, 16, 1, { DXGI_FORMAT_R16G16B16A16_UNORM } },
#endif
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/3bbb5a8d907f90db9d8c4c76b845b149e7241e4d...6e2268613e141fe1545b72b0bb87f7f724c1a664
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/3bbb5a8d907f90db9d8c4c76b845b149e7241e4d...6e2268613e141fe1545b72b0bb87f7f724c1a664
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list