Lines Matching +full:11 +full:mp

524 	struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp;  in vivid_g_fmt_vid_cap()  local
527 mp->width = dev->fmt_cap_rect.width; in vivid_g_fmt_vid_cap()
528 mp->height = dev->fmt_cap_rect.height; in vivid_g_fmt_vid_cap()
529 mp->field = dev->field_cap; in vivid_g_fmt_vid_cap()
530 mp->pixelformat = dev->fmt_cap->fourcc; in vivid_g_fmt_vid_cap()
531 mp->colorspace = vivid_colorspace_cap(dev); in vivid_g_fmt_vid_cap()
532 mp->xfer_func = vivid_xfer_func_cap(dev); in vivid_g_fmt_vid_cap()
534 mp->hsv_enc = vivid_hsv_enc_cap(dev); in vivid_g_fmt_vid_cap()
536 mp->ycbcr_enc = vivid_ycbcr_enc_cap(dev); in vivid_g_fmt_vid_cap()
537 mp->quantization = vivid_quantization_cap(dev); in vivid_g_fmt_vid_cap()
538 mp->num_planes = dev->fmt_cap->buffers; in vivid_g_fmt_vid_cap()
539 for (p = 0; p < mp->num_planes; p++) { in vivid_g_fmt_vid_cap()
540 mp->plane_fmt[p].bytesperline = tpg_g_bytesperline(&dev->tpg, p); in vivid_g_fmt_vid_cap()
541 mp->plane_fmt[p].sizeimage = in vivid_g_fmt_vid_cap()
542 (tpg_g_line_width(&dev->tpg, p) * mp->height) / in vivid_g_fmt_vid_cap()
552 struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp; in vivid_try_fmt_vid_cap() local
553 struct v4l2_plane_pix_format *pfmt = mp->plane_fmt; in vivid_try_fmt_vid_cap()
560 bool user_set_csc = !!(mp->flags & V4L2_PIX_FMT_FLAG_SET_CSC); in vivid_try_fmt_vid_cap()
562 fmt = vivid_get_format(dev, mp->pixelformat); in vivid_try_fmt_vid_cap()
565 mp->pixelformat); in vivid_try_fmt_vid_cap()
566 mp->pixelformat = V4L2_PIX_FMT_YUYV; in vivid_try_fmt_vid_cap()
567 fmt = vivid_get_format(dev, mp->pixelformat); in vivid_try_fmt_vid_cap()
570 mp->field = vivid_field_cap(dev, mp->field); in vivid_try_fmt_vid_cap()
575 height, mp->width, mp->height); in vivid_try_fmt_vid_cap()
586 if (V4L2_FIELD_HAS_T_OR_B(mp->field)) in vivid_try_fmt_vid_cap()
590 mp->width = w; in vivid_try_fmt_vid_cap()
591 mp->height = h / factor; in vivid_try_fmt_vid_cap()
593 struct v4l2_rect r = { 0, 0, mp->width, mp->height * factor }; in vivid_try_fmt_vid_cap()
606 mp->width = r.width; in vivid_try_fmt_vid_cap()
607 mp->height = r.height / factor; in vivid_try_fmt_vid_cap()
612 mp->num_planes = fmt->buffers; in vivid_try_fmt_vid_cap()
615 bytesperline = (mp->width * fmt->bit_depth[p]) >> 3; in vivid_try_fmt_vid_cap()
624 pfmt[p].sizeimage = (pfmt[p].bytesperline * mp->height) / in vivid_try_fmt_vid_cap()
630 pfmt[0].sizeimage += (pfmt[0].bytesperline * mp->height * in vivid_try_fmt_vid_cap()
634 if (!user_set_csc || !v4l2_is_colorspace_valid(mp->colorspace)) in vivid_try_fmt_vid_cap()
635 mp->colorspace = vivid_colorspace_cap(dev); in vivid_try_fmt_vid_cap()
637 if (!user_set_csc || !v4l2_is_xfer_func_valid(mp->xfer_func)) in vivid_try_fmt_vid_cap()
638 mp->xfer_func = vivid_xfer_func_cap(dev); in vivid_try_fmt_vid_cap()
641 if (!user_set_csc || !v4l2_is_hsv_enc_valid(mp->hsv_enc)) in vivid_try_fmt_vid_cap()
642 mp->hsv_enc = vivid_hsv_enc_cap(dev); in vivid_try_fmt_vid_cap()
644 if (!user_set_csc || !v4l2_is_ycbcr_enc_valid(mp->ycbcr_enc)) in vivid_try_fmt_vid_cap()
645 mp->ycbcr_enc = vivid_ycbcr_enc_cap(dev); in vivid_try_fmt_vid_cap()
647 mp->ycbcr_enc = vivid_ycbcr_enc_cap(dev); in vivid_try_fmt_vid_cap()
652 if (!user_set_csc || !v4l2_is_quant_valid(mp->quantization)) in vivid_try_fmt_vid_cap()
653 mp->quantization = vivid_quantization_cap(dev); in vivid_try_fmt_vid_cap()
655 mp->quantization = vivid_quantization_cap(dev); in vivid_try_fmt_vid_cap()
658 memset(mp->reserved, 0, sizeof(mp->reserved)); in vivid_try_fmt_vid_cap()
665 struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp; in vivid_s_fmt_vid_cap() local
683 dev->fmt_cap = vivid_get_format(dev, mp->pixelformat); in vivid_s_fmt_vid_cap()
684 if (V4L2_FIELD_HAS_T_OR_B(mp->field)) in vivid_s_fmt_vid_cap()
691 struct v4l2_rect r = { 0, 0, mp->width, mp->height }; in vivid_s_fmt_vid_cap()
754 if (webcam_sizes[i].width == mp->width && in vivid_s_fmt_vid_cap()
755 webcam_sizes[i].height == mp->height) in vivid_s_fmt_vid_cap()
762 struct v4l2_rect r = { 0, 0, mp->width, mp->height }; in vivid_s_fmt_vid_cap()
769 dev->fmt_cap_rect.width = mp->width; in vivid_s_fmt_vid_cap()
770 dev->fmt_cap_rect.height = mp->height; in vivid_s_fmt_vid_cap()
771 tpg_s_buf_height(&dev->tpg, mp->height); in vivid_s_fmt_vid_cap()
774 tpg_s_bytesperline(&dev->tpg, p, mp->plane_fmt[p].bytesperline); in vivid_s_fmt_vid_cap()
775 dev->field_cap = mp->field; in vivid_s_fmt_vid_cap()
782 dev->tv_field_cap = mp->field; in vivid_s_fmt_vid_cap()
784 dev->tpg.colorspace = mp->colorspace; in vivid_s_fmt_vid_cap()
785 dev->tpg.xfer_func = mp->xfer_func; in vivid_s_fmt_vid_cap()
787 dev->tpg.ycbcr_enc = mp->ycbcr_enc; in vivid_s_fmt_vid_cap()
789 dev->tpg.hsv_enc = mp->hsv_enc; in vivid_s_fmt_vid_cap()
790 dev->tpg.quantization = mp->quantization; in vivid_s_fmt_vid_cap()
1043 f->numerator = 11; in vivid_vid_cap_g_pixelaspect()