Added FILTER_LOOP_THROUGH_ROW_BEGIN/END macros to simplify some boilerplate code for each filter. In this way if processing just one row takes too much time, canceling the operation is faster.