metaprogramming for deinterlaced case