[vlc-commits] direct3d11: display all the visible pixels

Steve Lhomme git at videolan.org
Wed Dec 13 11:15:40 CET 2017


vlc/vlc-3.0 | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Dec 12 18:22:58 2017 +0100| [1bb4368a97357f1d1dfd74834a85f1212c52eeeb] | committer: Hugo Beauzée-Luyssen

direct3d11: display all the visible pixels

Now that we fixed the interpolation issues with CPU decoders.

Fixes #19199

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 076c773eee4296008c2962c19687ad71e03a40b3)
Signed-off-by: Hugo Beauzée-Luyssen <hugo at beauzee.fr>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=1bb4368a97357f1d1dfd74834a85f1212c52eeeb
---

 modules/video_output/win32/direct3d11.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/modules/video_output/win32/direct3d11.c b/modules/video_output/win32/direct3d11.c
index bf230fa23f..34827d7442 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -2313,14 +2313,6 @@ static void SetupQuadFlat(d3d_vertex_t *dst_data, const RECT *output,
     LONG MidY = output->top + output->bottom; // /2
     LONG MidX = output->left + output->right; // /2
 
-    /* the clamping will not work properly on the side of the texture as it
-     * will have decoder pixels not mean to be displayed but used for interpolation
-     * So we lose the last line that will be partially green */
-    if (src_width != dst_width)
-        src_width += 1;
-    if (src_height != dst_height)
-        src_height += 1;
-
     float top, bottom, left, right;
     top    =  (float)MidY / (float)(MidY - 2*dst_y);
     bottom = -(2.f*src_height - MidY) / (float)(MidY - 2*dst_y);



More information about the vlc-commits mailing list