Lines Matching refs:nf
968 struct yuv_frame_info *nf = &yi->new_frame_info[frame]; in ivtv_yuv_setup_frame() local
973 int update = nf->update; in ivtv_yuv_setup_frame()
976 nf->src_x = args->src.left; in ivtv_yuv_setup_frame()
977 nf->src_y = args->src.top; in ivtv_yuv_setup_frame()
978 nf->src_w = args->src.width; in ivtv_yuv_setup_frame()
979 nf->src_h = args->src.height; in ivtv_yuv_setup_frame()
980 nf->dst_x = args->dst.left; in ivtv_yuv_setup_frame()
981 nf->dst_y = args->dst.top; in ivtv_yuv_setup_frame()
982 nf->dst_w = args->dst.width; in ivtv_yuv_setup_frame()
983 nf->dst_h = args->dst.height; in ivtv_yuv_setup_frame()
984 nf->tru_x = args->dst.left; in ivtv_yuv_setup_frame()
985 nf->tru_w = args->src_width; in ivtv_yuv_setup_frame()
986 nf->tru_h = args->src_height; in ivtv_yuv_setup_frame()
989 nf->offset_y = (nf->tru_h + nf->src_x < 512 - 16) ? 1 : 0; in ivtv_yuv_setup_frame()
991 nf->update = 0; in ivtv_yuv_setup_frame()
992 nf->interlaced_y = 0; in ivtv_yuv_setup_frame()
993 nf->interlaced_uv = 0; in ivtv_yuv_setup_frame()
994 nf->delay = 0; in ivtv_yuv_setup_frame()
995 nf->sync_field = 0; in ivtv_yuv_setup_frame()
996 nf->lace_mode = yi->lace_mode & IVTV_YUV_MODE_MASK; in ivtv_yuv_setup_frame()
1002 switch (nf->lace_mode) { in ivtv_yuv_setup_frame()
1004 nf->interlaced = 0; in ivtv_yuv_setup_frame()
1005 if (nf->tru_h < 512 || (nf->tru_h > 576 && nf->tru_h < 1021)) in ivtv_yuv_setup_frame()
1006 nf->interlaced_y = 0; in ivtv_yuv_setup_frame()
1008 nf->interlaced_y = 1; in ivtv_yuv_setup_frame()
1010 if (nf->tru_h < 1021 && (nf->dst_h >= nf->src_h / 2)) in ivtv_yuv_setup_frame()
1011 nf->interlaced_uv = 0; in ivtv_yuv_setup_frame()
1013 nf->interlaced_uv = 1; in ivtv_yuv_setup_frame()
1017 if (nf->tru_h <= lace_threshold || nf->tru_h > 576 || nf->tru_w > 720) { in ivtv_yuv_setup_frame()
1018 nf->interlaced = 0; in ivtv_yuv_setup_frame()
1019 if ((nf->tru_h < 512) || in ivtv_yuv_setup_frame()
1020 (nf->tru_h > 576 && nf->tru_h < 1021) || in ivtv_yuv_setup_frame()
1021 (nf->tru_w > 720 && nf->tru_h < 1021)) in ivtv_yuv_setup_frame()
1022 nf->interlaced_y = 0; in ivtv_yuv_setup_frame()
1024 nf->interlaced_y = 1; in ivtv_yuv_setup_frame()
1025 if (nf->tru_h < 1021 && (nf->dst_h >= nf->src_h / 2)) in ivtv_yuv_setup_frame()
1026 nf->interlaced_uv = 0; in ivtv_yuv_setup_frame()
1028 nf->interlaced_uv = 1; in ivtv_yuv_setup_frame()
1030 nf->interlaced = 1; in ivtv_yuv_setup_frame()
1031 nf->interlaced_y = 1; in ivtv_yuv_setup_frame()
1032 nf->interlaced_uv = 1; in ivtv_yuv_setup_frame()
1038 nf->interlaced = 1; in ivtv_yuv_setup_frame()
1039 nf->interlaced_y = 1; in ivtv_yuv_setup_frame()
1040 nf->interlaced_uv = 1; in ivtv_yuv_setup_frame()
1044 if (memcmp(&yi->old_frame_info_args, nf, sizeof(*nf))) { in ivtv_yuv_setup_frame()
1045 yi->old_frame_info_args = *nf; in ivtv_yuv_setup_frame()
1046 nf->update = 1; in ivtv_yuv_setup_frame()
1050 nf->update |= update; in ivtv_yuv_setup_frame()
1051 nf->sync_field = yi->lace_sync_field; in ivtv_yuv_setup_frame()
1052 nf->delay = nf->sync_field != of->sync_field; in ivtv_yuv_setup_frame()