[vlc-commits] Used linear filtering when converting chroma in D3D.
Laurent Aimar
git at videolan.org
Fri Feb 10 20:31:28 CET 2012
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Fri Feb 10 20:29:21 2012 +0100| [760e0cba0df6e11a1ac20ac6b678b60c6fa9e95c] | committer: Laurent Aimar
Used linear filtering when converting chroma in D3D.
It seems to also be used for chroma upsampling.
It fixes #5751.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=760e0cba0df6e11a1ac20ac6b678b60c6fa9e95c
---
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