[vlc-commits] direct3d11: display all the visible pixels
Steve Lhomme
git at videolan.org
Wed Dec 13 09:30:07 CET 2017
vlc | branch: master | Steve Lhomme <robUx4 at videolabs.io> | Tue Dec 12 18:22:58 2017 +0100| [076c773eee4296008c2962c19687ad71e03a40b3] | committer: Jean-Baptiste Kempf
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>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=076c773eee4296008c2962c19687ad71e03a40b3
---
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