Useful for GPU-based filters, which may also need to compute filter weights. Since we cannot cross-link to internal functions, we need to recompile this helper inside libavfilter.c. Signed-off-by: Niklas Haas <git@haasn.dev>