Lines Matching defs:win
656 static int verify_preview(struct saa7134_dev *dev, struct v4l2_window *win, bool try)
663 if (win->w.width < 48)
664 win->w.width = 48;
665 if (win->w.height < 32)
666 win->w.height = 32;
667 if (win->clipcount > 8)
668 win->clipcount = 8;
670 win->chromakey = 0;
671 win->global_alpha = 0;
672 field = win->field;
677 field = (win->w.height > maxh/2)
691 win->field = field;
692 if (win->w.width > maxw)
693 win->w.width = maxw;
694 if (win->w.height > maxh)
695 win->w.height = maxh;
704 err = verify_preview(dev, &dev->win, false);
708 dev->ovfield = dev->win.field;
710 dev->win.w.width, dev->win.w.height,
711 dev->win.w.left, dev->win.w.top,
715 set_size(dev, TASK_B, dev->win.w.width, dev->win.w.height,
727 base += dev->ovbuf.fmt.bytesperline * dev->win.w.top;
728 base += dev->ovfmt->depth/8 * dev->win.w.left;
1268 struct v4l2_clip __user *clips = f->fmt.win.clips;
1269 u32 clipcount = f->fmt.win.clipcount;
1277 f->fmt.win = dev->win;
1278 f->fmt.win.clips = clips;
1283 f->fmt.win.clipcount = clipcount;
1286 if (copy_to_user(&f->fmt.win.clips[i].c, &dev->clips[i].c,
1357 if (f->fmt.win.clips == NULL)
1358 f->fmt.win.clipcount = 0;
1359 return verify_preview(dev, &f->fmt.win, true);
1390 if (f->fmt.win.clips == NULL)
1391 f->fmt.win.clipcount = 0;
1392 err = verify_preview(dev, &f->fmt.win, true);
1396 dev->win = f->fmt.win;
1397 dev->nclips = f->fmt.win.clipcount;
1399 if (copy_from_user(dev->clips, f->fmt.win.clips,
2096 dev->win.w.width = dev->width;
2097 dev->win.w.height = dev->height;
2098 dev->win.field = V4L2_FIELD_INTERLACED;