Factorise the C filtering in yadif