Lines Matching full:pix
111 (fmt->fourcc == f->fmt.pix.pixelformat)) in find_format()
492 f->fmt.pix.width = q_data->width; in vidioc_g_fmt()
493 f->fmt.pix.height = q_data->height; in vidioc_g_fmt()
494 f->fmt.pix.field = q_data->field; in vidioc_g_fmt()
495 f->fmt.pix.pixelformat = q_data->fmt->fourcc; in vidioc_g_fmt()
499 f->fmt.pix.bytesperline = q_data->width * 3 / 2; in vidioc_g_fmt()
503 f->fmt.pix.bytesperline = q_data->width * 2; in vidioc_g_fmt()
506 f->fmt.pix.sizeimage = q_data->sizeimage; in vidioc_g_fmt()
507 f->fmt.pix.colorspace = ctx->colorspace; in vidioc_g_fmt()
526 switch (f->fmt.pix.pixelformat) { in vidioc_try_fmt()
528 f->fmt.pix.bytesperline = f->fmt.pix.width * 3 / 2; in vidioc_try_fmt()
532 f->fmt.pix.bytesperline = f->fmt.pix.width * 2; in vidioc_try_fmt()
534 f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; in vidioc_try_fmt()
547 f->fmt.pix.pixelformat = V4L2_PIX_FMT_YUV420; in vidioc_try_fmt_vid_cap()
549 f->fmt.pix.colorspace = ctx->colorspace; in vidioc_try_fmt_vid_cap()
551 if (f->fmt.pix.field != V4L2_FIELD_INTERLACED_TB && in vidioc_try_fmt_vid_cap()
552 f->fmt.pix.field != V4L2_FIELD_INTERLACED_BT && in vidioc_try_fmt_vid_cap()
553 f->fmt.pix.field != V4L2_FIELD_NONE) in vidioc_try_fmt_vid_cap()
554 f->fmt.pix.field = V4L2_FIELD_INTERLACED_TB; in vidioc_try_fmt_vid_cap()
566 f->fmt.pix.pixelformat = V4L2_PIX_FMT_YUV420; in vidioc_try_fmt_vid_out()
568 if (!f->fmt.pix.colorspace) in vidioc_try_fmt_vid_out()
569 f->fmt.pix.colorspace = V4L2_COLORSPACE_REC709; in vidioc_try_fmt_vid_out()
571 if (f->fmt.pix.field != V4L2_FIELD_SEQ_TB && in vidioc_try_fmt_vid_out()
572 f->fmt.pix.field != V4L2_FIELD_SEQ_BT) in vidioc_try_fmt_vid_out()
573 f->fmt.pix.field = V4L2_FIELD_SEQ_TB; in vidioc_try_fmt_vid_out()
600 f->type, f->fmt.pix.width, f->fmt.pix.height, in vidioc_s_fmt()
601 f->fmt.pix.pixelformat, f->fmt.pix.field); in vidioc_s_fmt()
605 q_data->width = f->fmt.pix.width; in vidioc_s_fmt()
606 q_data->height = f->fmt.pix.height; in vidioc_s_fmt()
607 q_data->field = f->fmt.pix.field; in vidioc_s_fmt()
609 switch (f->fmt.pix.pixelformat) { in vidioc_s_fmt()
611 f->fmt.pix.bytesperline = f->fmt.pix.width * 3 / 2; in vidioc_s_fmt()
616 f->fmt.pix.bytesperline = f->fmt.pix.width * 2; in vidioc_s_fmt()
651 ctx->colorspace = f->fmt.pix.colorspace; in vidioc_s_fmt_vid_out()
665 /* Check that src and dst queues have the same pix format */ in vidioc_streamon()