hevc: templatize pred_planar