avfilter: x86: Port gradfun filter optimizations to yasm