[vlc-commits] [Git][videolan/vlc][3.0.x] direct3d11: remove padding in the pool picture

Steve Lhomme (@robUx4) gitlab at videolan.org
Fri Oct 27 14:15:55 UTC 2023



Steve Lhomme pushed to branch 3.0.x at VideoLAN / VLC


Commits:
e5bba911 by Steve Lhomme at 2023-10-27T14:01:46+00:00
direct3d11: remove padding in the pool picture

On 3.0 the pool video format doesn't have to match the decoder actual
padding. The quad handling to place the picture will take care of this
with the actual texture size.

We still need to fix the semiplanar dimensions although it's unlikely
the quad will use anything else than an RGB output.

Fixes green line seen in fullscreen.

- - - - -


1 changed file:

- modules/video_output/win32/direct3d11.c


Changes:

=====================================
modules/video_output/win32/direct3d11.c
=====================================
@@ -1570,12 +1570,6 @@ static int Direct3D11Open(vout_display_t *vd, bool external_device)
 
     video_format_Copy(&sys->pool_fmt, &fmt);
 
-    if (!sys->legacy_shader && is_d3d11_opaque(sys->pool_fmt.i_chroma))
-    {
-        sys->pool_fmt.i_width  = (sys->pool_fmt.i_width  + 0x7F) & ~0x7F;
-        sys->pool_fmt.i_height = (sys->pool_fmt.i_height + 0x7F) & ~0x7F;
-    }
-    else
     if ( sys->picQuad.formatInfo->formatTexture != DXGI_FORMAT_R8G8B8A8_UNORM &&
          sys->picQuad.formatInfo->formatTexture != DXGI_FORMAT_B5G6R5_UNORM )
     {



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e5bba91139dd32cfeef9dcb9d2dd2a922373aa7d

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/e5bba91139dd32cfeef9dcb9d2dd2a922373aa7d
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