field = (win->w.height > maxh/2) ? V4L2_FIELD_INTERLACED : V4L2_FIELD_TOP; } switch (field) { case V4L2_FIELD_TOP: case V4L2_FIELD_BOTTOM: maxh = maxh / 2; break; case V4L2_FIELD_INTERLACED: break; default: return -EINVAL; } 
field = (win->w.height > maxh/2) ? V4L2_FIELD_INTERLACED : V4L2_FIELD_TOP; } switch (field) { case V4L2_FIELD_TOP: case V4L2_FIELD_BOTTOM: maxh = maxh / 2; break; case V4L2_FIELD_INTERLACED: break; default: return -EINVAL; } 
static int verify_preview(struct saa7134_dev *dev, struct v4l2_window *win){	enum v4l2_field field;	int maxw, maxh;	if (NULL == dev->ovbuf.base)		return -EINVAL;	if (NULL == dev->ovfmt)		return -EINVAL;	if (win->w.width < 48 || win->w.height <  32)		return -EINVAL;	if (win->clipcount > 2048)		return -EINVAL;	field = win->field;	maxw  = dev->crop_current.width;	maxh  = dev->crop_current.height;	if (V4L2_FIELD_ANY == field) {                field = (win->w.height > maxh/2)                        ? V4L2_FIELD_INTERLACED                        : V4L2_FIELD_TOP;        }        switch (field) {        case V4L2_FIELD_TOP:        case V4L2_FIELD_BOTTOM:                maxh = maxh / 2;                break;        case V4L2_FIELD_INTERLACED:                break;        default:                return -EINVAL;        }	win->field = field;	if (win->w.width > maxw)		win->w.width = maxw;	if (win->w.height > maxh)		win->w.height = maxh;	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/4ac97914c6c35f6bf132071c718e034d0846b9f5/saa7134-video.c/clean/drivers/media/video/saa7134/saa7134-video.c