mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-15 11:51:33 +00:00
bwdif_vulkan: clamp the temporarily interpolated sample spatially
This makes the filter output match that of the C version. It was left intentionally while we figured out if it was better or not, and while it makes certain samples better, it makes static samples jump around slightly.
This commit is contained in:
parent
d4b989c94d
commit
9ff834c2a0
@ -86,8 +86,7 @@ static const char filter_fn[] = {
|
||||
C(0, )
|
||||
C(1, bvec4 interpolate_cnd1 = greaterThan(abs(fc - fe), temp_diff[0]); )
|
||||
C(1, vec4 interpol = mix(interpolate_cur, interpolate_all, interpolate_cnd1); )
|
||||
/* Cliping interpol between [fd - diff, fd + diff] is intentionally left out.
|
||||
* Removing the clipping increases quality. TODO: research and fix the C version to match this. */
|
||||
C(1, interpol = clamp(interpol, fd - diff, fd + diff); )
|
||||
C(1, return mix(interpol, fd, diff_mask); )
|
||||
C(0, } )
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user