d3dvideosink: use bilinear filter as much as possible
authorAndoni Morales Alastruey <ylatuya@gmail.com>
Wed, 3 Apr 2013 14:12:01 +0000 (16:12 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 4 Apr 2013 09:39:45 +0000 (11:39 +0200)
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

sys/d3dvideosink/d3dhelpers.c

index e3c9f6474511e200716c30831d626554c964aba8..672bbebee07c70c4565e6d10bbd03b7a3f2ff548 100644 (file)
@@ -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 {