[vlc-commits] Used linear filtering when converting chroma in D3D.
Laurent Aimar
git at videolan.org
Fri Feb 10 22:11:43 CET 2012
vlc/vlc-2.0 | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri Feb 10 20:29:21 2012 +0100| [7d3b2e27c270344c1e70bd39f5baa1f33e4442d9] | committer: Jean-Baptiste Kempf
Used linear filtering when converting chroma in D3D.
It seems to also be used for chroma upsampling.
It fixes #5751.
(cherry picked from commit 760e0cba0df6e11a1ac20ac6b678b60c6fa9e95c)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=7d3b2e27c270344c1e70bd39f5baa1f33e4442d9
---
modules/video_output/msw/direct3d.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/video_output/msw/direct3d.c b/modules/video_output/msw/direct3d.c
index 0cf652e..07f697a 100644
--- a/modules/video_output/msw/direct3d.c
+++ b/modules/video_output/msw/direct3d.c
@@ -1166,7 +1166,7 @@ static int Direct3DImportPicture(vout_display_t *vd,
/* Copy picture surface into texture surface
* color space conversion happen here */
- hr = IDirect3DDevice9_StretchRect(sys->d3ddev, source, NULL, destination, NULL, D3DTEXF_NONE);
+ hr = IDirect3DDevice9_StretchRect(sys->d3ddev, source, NULL, destination, NULL, D3DTEXF_LINEAR);
IDirect3DSurface9_Release(destination);
if (FAILED(hr)) {
msg_Dbg(vd, "%s:%d (hr=0x%0lX)", __FUNCTION__, __LINE__, hr);
More information about the vlc-commits
mailing list