st/vdpau: use bicubic filter for scaling(v6.1)

Graphics / Mesa 3D Graphics Library / Mesa - Nayan Deshmukh [gmail.com] - 1 July 2016 05:54 UTC

use bicubic filtering as high quality scaling L1.

v2: fix a typo and add a newline to code
v3: -render the unscaled image on a temporary surface (Christian)-apply noise reduction and sharpness filter on unscaled surface-render the final scaled surface using bicubic interpolation
v4: support high quality scaling
v5: set dst_area and dst_clip in bicubic filter
v6: set buffer layer before setting dst_area
v6.1: add PIPE_BIND_LINEAR when creating resource

de772bc st/vdpau: use bicubic filter for scaling(v6.1)
src/gallium/state_trackers/vdpau/mixer.c | 113 +++++++++++++++++++---
src/gallium/state_trackers/vdpau/query.c | 1 +
src/gallium/state_trackers/vdpau/vdpau_private.h | 6 ++
3 files changed, 106 insertions(+), 14 deletions(-)

Upstream: cgit.freedesktop.org


  • Share