mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
d3dvideosink: use bilinear filter as much as possible
Use the bilinear scalling filter when the magnifier or the minifier filters are avaible. Some graphics cards do not provide minifier filters but we want to use it for upscalling if it's available https://bugzilla.gnome.org/show_bug.cgi?id=697176
This commit is contained in:
parent
725f8dc1f7
commit
7f18295321
1 changed files with 1 additions and 1 deletions
|
@ -2362,7 +2362,7 @@ d3d_class_display_device_create (GstD3DVideoSinkClass * klass, UINT adapter)
|
|||
/* Check the filter type. */
|
||||
if ((caps.StretchRectFilterCaps & D3DPTFILTERCAPS_MINFLINEAR) ==
|
||||
D3DPTFILTERCAPS_MINFLINEAR
|
||||
&& (caps.StretchRectFilterCaps & D3DPTFILTERCAPS_MAGFLINEAR) ==
|
||||
|| (caps.StretchRectFilterCaps & D3DPTFILTERCAPS_MAGFLINEAR) ==
|
||||
D3DPTFILTERCAPS_MAGFLINEAR) {
|
||||
device->filter_type = D3DTEXF_LINEAR;
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue