vl: add a bicubic interpolation filter(v5)

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

This is a shader based bicubic interpolater which uses cubic Hermite spline algorithm.

v2: set dst_area and dst_clip during scaling (Christian)
v3: clear the render target before rendering
v4: intialize offsets while initializing shaders use a constant buffer to send dst_size to frag shader small changes to reduce calculation in shader
v5: send half pixel offset instead of sending dst_size

872dd9a vl: add a bicubic interpolation filter(v5)
src/gallium/auxiliary/Makefile.sources | 2 +
src/gallium/auxiliary/vl/vl_bicubic_filter.c | 463 ++++++++++++++++++++++++++
src/gallium/auxiliary/vl/vl_bicubic_filter.h | 63 ++++
3 files changed, 528 insertions(+)

Upstream: cgit.freedesktop.org


  • Share