[vlc-commits] [Git][videolan/vlc][3.0.x] d3d11_scaler: favor BGRA for upscaling
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Feb 22 16:31:13 UTC 2024
Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC
Commits:
512e6710 by Steve Lhomme at 2024-02-22T15:54:55+00:00
d3d11_scaler: favor BGRA for upscaling
Fixes Super Resolution not working on NVIDIA.
- - - - -
1 changed file:
- modules/video_output/win32/d3d11_scaler.cpp
Changes:
=====================================
modules/video_output/win32/d3d11_scaler.cpp
=====================================
@@ -74,10 +74,10 @@ d3d11_scaler *D3D11_UpscalerCreate(vlc_object_t *vd, d3d11_device_t *d3d_dev, vl
fmt = GetDirectRenderingFormat(vd, d3d_dev, VLC_CODEC_RGBA64);
if (fmt == nullptr && (*out_fmt)->bitsPerChannel > 8)
fmt = GetDirectRenderingFormat(vd, d3d_dev, VLC_CODEC_RGBA10);
- if (fmt == nullptr)
- fmt = GetDirectRenderingFormat(vd, d3d_dev, VLC_CODEC_RGBA);
if (fmt == nullptr)
fmt = GetDirectRenderingFormat(vd, d3d_dev, VLC_CODEC_BGRA);
+ if (fmt == nullptr)
+ fmt = GetDirectRenderingFormat(vd, d3d_dev, VLC_CODEC_RGBA);
if (fmt == nullptr || fmt->formatTexture == DXGI_FORMAT_UNKNOWN)
{
msg_Warn(vd, "chroma upscale of %4.4s not supported", (char*)&i_chroma);
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/512e6710013e3ff85fd584a789425691bdac91ed
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/512e6710013e3ff85fd584a789425691bdac91ed
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list