Lines Matching refs:nf
965 struct yuv_frame_info *nf = &yi->new_frame_info[frame]; in ivtv_yuv_setup_frame() local
970 int update = nf->update; in ivtv_yuv_setup_frame()
973 nf->src_x = args->src.left; in ivtv_yuv_setup_frame()
974 nf->src_y = args->src.top; in ivtv_yuv_setup_frame()
975 nf->src_w = args->src.width; in ivtv_yuv_setup_frame()
976 nf->src_h = args->src.height; in ivtv_yuv_setup_frame()
977 nf->dst_x = args->dst.left; in ivtv_yuv_setup_frame()
978 nf->dst_y = args->dst.top; in ivtv_yuv_setup_frame()
979 nf->dst_w = args->dst.width; in ivtv_yuv_setup_frame()
980 nf->dst_h = args->dst.height; in ivtv_yuv_setup_frame()
981 nf->tru_x = args->dst.left; in ivtv_yuv_setup_frame()
982 nf->tru_w = args->src_width; in ivtv_yuv_setup_frame()
983 nf->tru_h = args->src_height; in ivtv_yuv_setup_frame()
986 nf->offset_y = (nf->tru_h + nf->src_x < 512 - 16) ? 1 : 0; in ivtv_yuv_setup_frame()
988 nf->update = 0; in ivtv_yuv_setup_frame()
989 nf->interlaced_y = 0; in ivtv_yuv_setup_frame()
990 nf->interlaced_uv = 0; in ivtv_yuv_setup_frame()
991 nf->delay = 0; in ivtv_yuv_setup_frame()
992 nf->sync_field = 0; in ivtv_yuv_setup_frame()
993 nf->lace_mode = yi->lace_mode & IVTV_YUV_MODE_MASK; in ivtv_yuv_setup_frame()
999 switch (nf->lace_mode) { in ivtv_yuv_setup_frame()
1001 nf->interlaced = 0; in ivtv_yuv_setup_frame()
1002 if (nf->tru_h < 512 || (nf->tru_h > 576 && nf->tru_h < 1021)) in ivtv_yuv_setup_frame()
1003 nf->interlaced_y = 0; in ivtv_yuv_setup_frame()
1005 nf->interlaced_y = 1; in ivtv_yuv_setup_frame()
1007 if (nf->tru_h < 1021 && (nf->dst_h >= nf->src_h / 2)) in ivtv_yuv_setup_frame()
1008 nf->interlaced_uv = 0; in ivtv_yuv_setup_frame()
1010 nf->interlaced_uv = 1; in ivtv_yuv_setup_frame()
1014 if (nf->tru_h <= lace_threshold || nf->tru_h > 576 || nf->tru_w > 720) { in ivtv_yuv_setup_frame()
1015 nf->interlaced = 0; in ivtv_yuv_setup_frame()
1016 if ((nf->tru_h < 512) || in ivtv_yuv_setup_frame()
1017 (nf->tru_h > 576 && nf->tru_h < 1021) || in ivtv_yuv_setup_frame()
1018 (nf->tru_w > 720 && nf->tru_h < 1021)) in ivtv_yuv_setup_frame()
1019 nf->interlaced_y = 0; in ivtv_yuv_setup_frame()
1021 nf->interlaced_y = 1; in ivtv_yuv_setup_frame()
1022 if (nf->tru_h < 1021 && (nf->dst_h >= nf->src_h / 2)) in ivtv_yuv_setup_frame()
1023 nf->interlaced_uv = 0; in ivtv_yuv_setup_frame()
1025 nf->interlaced_uv = 1; in ivtv_yuv_setup_frame()
1027 nf->interlaced = 1; in ivtv_yuv_setup_frame()
1028 nf->interlaced_y = 1; in ivtv_yuv_setup_frame()
1029 nf->interlaced_uv = 1; in ivtv_yuv_setup_frame()
1035 nf->interlaced = 1; in ivtv_yuv_setup_frame()
1036 nf->interlaced_y = 1; in ivtv_yuv_setup_frame()
1037 nf->interlaced_uv = 1; in ivtv_yuv_setup_frame()
1041 if (memcmp(&yi->old_frame_info_args, nf, sizeof(*nf))) { in ivtv_yuv_setup_frame()
1042 yi->old_frame_info_args = *nf; in ivtv_yuv_setup_frame()
1043 nf->update = 1; in ivtv_yuv_setup_frame()
1047 nf->update |= update; in ivtv_yuv_setup_frame()
1048 nf->sync_field = yi->lace_sync_field; in ivtv_yuv_setup_frame()
1049 nf->delay = nf->sync_field != of->sync_field; in ivtv_yuv_setup_frame()