[vlc-devel] [PATCH 3/3] direct3d11: display all the visible pixels
Steve Lhomme
robux4 at videolabs.io
Tue Dec 12 18:22:58 CET 2017
Now that we fixed the interpolation issues with CPU decoders.
Fixes #19199
---
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 4d38ba3ba4..8985d3b6f1 100644
--- a/modules/video_output/win32/direct3d11.c
+++ b/modules/video_output/win32/direct3d11.c
@@ -2311,14 +2311,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);
--
2.14.2
More information about the vlc-devel
mailing list