hsync filter implementation