avfilter/edgedetect: make processing functions context free.