Deinterlacing with the custom functions