[vlc-devel] [PATCH] direct3d9: Actually use the linear interpolation when stretching
Steve Lhomme
robux4 at gmail.com
Tue Mar 21 09:53:40 CET 2017
PS: we already use Linear interpolation on D3D11. It looks better than
no interpolation.
On Tue, Mar 21, 2017 at 9:52 AM, Steve Lhomme <robux4 at videolabs.io> wrote:
> We ensure that the device supports D3DPTFILTERCAPS_MAGFLINEAR and
> D3DPTFILTERCAPS_MINFLINEAR in Direct3D9Create().
> ---
> modules/video_output/win32/direct3d9.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/modules/video_output/win32/direct3d9.c b/modules/video_output/win32/direct3d9.c
> index f190e65147..12b667d8be 100644
> --- a/modules/video_output/win32/direct3d9.c
> +++ b/modules/video_output/win32/direct3d9.c
> @@ -1649,7 +1649,7 @@ static int Direct3D9ImportPicture(vout_display_t *vd,
>
> /* Copy picture surface into texture surface
> * color space conversion happen here */
> - hr = IDirect3DDevice9_StretchRect(sys->d3ddev, source, &vd->sys->sys.rect_src_clipped, destination, NULL, D3DTEXF_NONE );
> + hr = IDirect3DDevice9_StretchRect(sys->d3ddev, source, &vd->sys->sys.rect_src_clipped, destination, NULL, D3DTEXF_LINEAR );
> IDirect3DSurface9_Release(destination);
> if (FAILED(hr)) {
> msg_Dbg(vd, "Failed IDirect3DDevice9_StretchRect: source 0x%p 0x%0lx",
> --
> 2.11.1
>
More information about the vlc-devel
mailing list