From 01c606b3bd032230c9196598d64fbe4b313f1afb Mon Sep 17 00:00:00 2001 From: Aleksoid Date: Tue, 20 Feb 2024 15:54:15 +1000 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=B8=D0=BD=D1=84=D0=BE=D1=80=D0=BC=D0=B0=D1=86?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=BE=D0=B1=20D3D11=20copy=20back=20422/444=20?= =?UTF-8?q?=D0=B4=D0=B5=D0=BA=D0=BE=D0=B4=D0=B5=D1=80=D0=B0=D1=85.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/filters/transform/MPCVideoDec/MPCVideoDec.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/filters/transform/MPCVideoDec/MPCVideoDec.cpp b/src/filters/transform/MPCVideoDec/MPCVideoDec.cpp index 5bdda4b6b4..75de147685 100644 --- a/src/filters/transform/MPCVideoDec/MPCVideoDec.cpp +++ b/src/filters/transform/MPCVideoDec/MPCVideoDec.cpp @@ -3574,6 +3574,19 @@ HRESULT CMPCVideoDecFilter::DecodeInternal(AVPacket *avpkt, REFERENCE_TIME rtSta if (frames_ctx->sw_format == AV_PIX_FMT_YUV444P || frames_ctx->sw_format == AV_PIX_FMT_YUV444P16) { codec.Append(L" 444"); } + } else if (m_bUseD3D11cb) { + switch (frames_ctx->sw_format) { + case AV_PIX_FMT_YUYV422: + case AV_PIX_FMT_Y210: + case AV_PIX_FMT_Y212: + codec.Append(L" 422"); + break; + case AV_PIX_FMT_VUYX: + case AV_PIX_FMT_XV30: + case AV_PIX_FMT_XV36: + codec.Append(L" 444"); + break; + } } const int depth = GetLumaBits(m_pAVCtx->sw_pix_fmt);