avfilter/xbr: refactor px calculation in FILT[234]