Lines Matching refs:mp

119 		const struct v4l2_pix_format_mplane *mp;
127 mp = &fmt->fmt.pix_mp;
132 if (mp->num_planes != planes)
134 vfmt = vivid_get_format(dev, mp->pixelformat);
136 sizes[p] = mp->plane_fmt[p].sizeimage;
505 struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp;
508 mp->width = dev->fmt_cap_rect.width;
509 mp->height = dev->fmt_cap_rect.height;
510 mp->field = dev->field_cap;
511 mp->pixelformat = dev->fmt_cap->fourcc;
512 mp->colorspace = vivid_colorspace_cap(dev);
513 mp->num_planes = dev->fmt_cap->planes;
514 for (p = 0; p < mp->num_planes; p++) {
515 mp->plane_fmt[p].bytesperline = tpg_g_bytesperline(&dev->tpg, p);
516 mp->plane_fmt[p].sizeimage =
517 mp->plane_fmt[p].bytesperline * mp->height +
526 struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp;
527 struct v4l2_plane_pix_format *pfmt = mp->plane_fmt;
535 fmt = vivid_get_format(dev, mp->pixelformat);
538 mp->pixelformat);
539 mp->pixelformat = V4L2_PIX_FMT_YUYV;
540 fmt = vivid_get_format(dev, mp->pixelformat);
543 mp->field = vivid_field_cap(dev, mp->field);
546 v4l2_find_nearest_format(&webcam_probe, mp->width, mp->height);
557 if (V4L2_FIELD_HAS_T_OR_B(mp->field))
561 mp->width = w;
562 mp->height = h / factor;
564 struct v4l2_rect r = { 0, 0, mp->width, mp->height * factor };
577 mp->width = r.width;
578 mp->height = r.height / factor;
584 bytesperline = (mp->width * fmt->depth) >> 3;
587 mp->num_planes = fmt->planes;
588 for (p = 0; p < mp->num_planes; p++) {
593 pfmt[p].sizeimage = pfmt[p].bytesperline * mp->height +
597 mp->colorspace = vivid_colorspace_cap(dev);
598 memset(mp->reserved, 0, sizeof(mp->reserved));
605 struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp;
622 if (dev->overlay_cap_owner && dev->fb_cap.fmt.pixelformat != mp->pixelformat) {
627 dev->fmt_cap = vivid_get_format(dev, mp->pixelformat);
628 if (V4L2_FIELD_HAS_T_OR_B(mp->field))
635 struct v4l2_rect r = { 0, 0, mp->width, mp->height };
696 if (webcam_sizes[i].width == mp->width &&
697 webcam_sizes[i].height == mp->height)
704 struct v4l2_rect r = { 0, 0, mp->width, mp->height };
711 dev->fmt_cap_rect.width = mp->width;
712 dev->fmt_cap_rect.height = mp->height;
713 tpg_s_buf_height(&dev->tpg, mp->height);
714 tpg_s_bytesperline(&dev->tpg, 0, mp->plane_fmt[0].bytesperline);
716 tpg_s_bytesperline(&dev->tpg, 1, mp->plane_fmt[1].bytesperline);
717 dev->field_cap = mp->field;
722 dev->tv_field_cap = mp->field;