Lines Matching +full:11 +full:mp

316 	struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp;  in vivid_g_fmt_vid_out()  local
320 mp->width = dev->fmt_out_rect.width; in vivid_g_fmt_vid_out()
321 mp->height = dev->fmt_out_rect.height; in vivid_g_fmt_vid_out()
322 mp->field = dev->field_out; in vivid_g_fmt_vid_out()
323 mp->pixelformat = fmt->fourcc; in vivid_g_fmt_vid_out()
324 mp->colorspace = dev->colorspace_out; in vivid_g_fmt_vid_out()
325 mp->xfer_func = dev->xfer_func_out; in vivid_g_fmt_vid_out()
326 mp->ycbcr_enc = dev->ycbcr_enc_out; in vivid_g_fmt_vid_out()
327 mp->quantization = dev->quantization_out; in vivid_g_fmt_vid_out()
328 mp->num_planes = fmt->buffers; in vivid_g_fmt_vid_out()
329 for (p = 0; p < mp->num_planes; p++) { in vivid_g_fmt_vid_out()
330 mp->plane_fmt[p].bytesperline = dev->bytesperline_out[p]; in vivid_g_fmt_vid_out()
331 mp->plane_fmt[p].sizeimage = in vivid_g_fmt_vid_out()
332 mp->plane_fmt[p].bytesperline * mp->height / in vivid_g_fmt_vid_out()
338 mp->plane_fmt[0].sizeimage += in vivid_g_fmt_vid_out()
339 (stride * mp->height) / fmt->vdownsampling[p]; in vivid_g_fmt_vid_out()
349 struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp; in vivid_try_fmt_vid_out() local
350 struct v4l2_plane_pix_format *pfmt = mp->plane_fmt; in vivid_try_fmt_vid_out()
357 fmt = vivid_get_format(dev, mp->pixelformat); in vivid_try_fmt_vid_out()
360 mp->pixelformat); in vivid_try_fmt_vid_out()
361 mp->pixelformat = V4L2_PIX_FMT_YUYV; in vivid_try_fmt_vid_out()
362 fmt = vivid_get_format(dev, mp->pixelformat); in vivid_try_fmt_vid_out()
365 mp->field = vivid_field_out(dev, mp->field); in vivid_try_fmt_vid_out()
373 if (V4L2_FIELD_HAS_T_OR_B(mp->field)) in vivid_try_fmt_vid_out()
376 mp->width = w; in vivid_try_fmt_vid_out()
377 mp->height = h / factor; in vivid_try_fmt_vid_out()
379 struct v4l2_rect r = { 0, 0, mp->width, mp->height * factor }; in vivid_try_fmt_vid_out()
392 mp->width = r.width; in vivid_try_fmt_vid_out()
393 mp->height = r.height / factor; in vivid_try_fmt_vid_out()
398 mp->num_planes = fmt->buffers; in vivid_try_fmt_vid_out()
401 bytesperline = (mp->width * fmt->bit_depth[p]) >> 3; in vivid_try_fmt_vid_out()
410 pfmt[p].sizeimage = (pfmt[p].bytesperline * mp->height) / in vivid_try_fmt_vid_out()
416 pfmt[0].sizeimage += (pfmt[0].bytesperline * mp->height * in vivid_try_fmt_vid_out()
420 mp->xfer_func = V4L2_XFER_FUNC_DEFAULT; in vivid_try_fmt_vid_out()
421 mp->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in vivid_try_fmt_vid_out()
422 mp->quantization = V4L2_QUANTIZATION_DEFAULT; in vivid_try_fmt_vid_out()
424 mp->colorspace = V4L2_COLORSPACE_SMPTE170M; in vivid_try_fmt_vid_out()
426 mp->colorspace = V4L2_COLORSPACE_SRGB; in vivid_try_fmt_vid_out()
428 mp->quantization = V4L2_QUANTIZATION_LIM_RANGE; in vivid_try_fmt_vid_out()
430 mp->colorspace = V4L2_COLORSPACE_SMPTE170M; in vivid_try_fmt_vid_out()
431 } else if (mp->colorspace != V4L2_COLORSPACE_SMPTE170M && in vivid_try_fmt_vid_out()
432 mp->colorspace != V4L2_COLORSPACE_REC709 && in vivid_try_fmt_vid_out()
433 mp->colorspace != V4L2_COLORSPACE_OPRGB && in vivid_try_fmt_vid_out()
434 mp->colorspace != V4L2_COLORSPACE_BT2020 && in vivid_try_fmt_vid_out()
435 mp->colorspace != V4L2_COLORSPACE_SRGB) { in vivid_try_fmt_vid_out()
436 mp->colorspace = V4L2_COLORSPACE_REC709; in vivid_try_fmt_vid_out()
438 memset(mp->reserved, 0, sizeof(mp->reserved)); in vivid_try_fmt_vid_out()
445 struct v4l2_pix_format_mplane *mp = &f->fmt.pix_mp; in vivid_s_fmt_vid_out() local
459 mp->width != dev->fmt_out_rect.width || in vivid_s_fmt_vid_out()
460 mp->height != dev->fmt_out_rect.height || in vivid_s_fmt_vid_out()
461 mp->pixelformat != dev->fmt_out->fourcc || in vivid_s_fmt_vid_out()
462 mp->field != dev->field_out)) { in vivid_s_fmt_vid_out()
475 dev->fmt_out = vivid_get_format(dev, mp->pixelformat); in vivid_s_fmt_vid_out()
476 if (V4L2_FIELD_HAS_T_OR_B(mp->field)) in vivid_s_fmt_vid_out()
480 struct v4l2_rect r = { 0, 0, mp->width, mp->height }; in vivid_s_fmt_vid_out()
539 struct v4l2_rect r = { 0, 0, mp->width, mp->height }; in vivid_s_fmt_vid_out()
546 dev->fmt_out_rect.width = mp->width; in vivid_s_fmt_vid_out()
547 dev->fmt_out_rect.height = mp->height; in vivid_s_fmt_vid_out()
548 for (p = 0; p < mp->num_planes; p++) in vivid_s_fmt_vid_out()
549 dev->bytesperline_out[p] = mp->plane_fmt[p].bytesperline; in vivid_s_fmt_vid_out()
554 dev->field_out = mp->field; in vivid_s_fmt_vid_out()
556 dev->tv_field_out = mp->field; in vivid_s_fmt_vid_out()
559 dev->colorspace_out = mp->colorspace; in vivid_s_fmt_vid_out()
560 dev->xfer_func_out = mp->xfer_func; in vivid_s_fmt_vid_out()
561 dev->ycbcr_enc_out = mp->ycbcr_enc; in vivid_s_fmt_vid_out()
562 dev->quantization_out = mp->quantization; in vivid_s_fmt_vid_out()
812 f->numerator = 11; in vivid_vid_out_g_pixelaspect()