C implementation of the median deinterlacer (seems to be the only one