Lines Matching refs:pix
398 struct v4l2_pix_format *pix = &f->fmt.pix; in sh_veu_g_fmt() local
404 pix->width = vfmt->frame.width; in sh_veu_g_fmt()
405 pix->height = vfmt->frame.height; in sh_veu_g_fmt()
406 pix->field = V4L2_FIELD_NONE; in sh_veu_g_fmt()
407 pix->pixelformat = vfmt->fmt->fourcc; in sh_veu_g_fmt()
408 pix->colorspace = sh_veu_4cc2cspace(pix->pixelformat); in sh_veu_g_fmt()
409 pix->bytesperline = vfmt->bytesperline; in sh_veu_g_fmt()
410 pix->sizeimage = vfmt->bytesperline * pix->height * in sh_veu_g_fmt()
413 f->type, pix->sizeimage, pix->width, pix->height, pix->pixelformat); in sh_veu_g_fmt()
432 struct v4l2_pix_format *pix = &f->fmt.pix; in sh_veu_try_fmt() local
439 switch (pix->field) { in sh_veu_try_fmt()
442 pix->field = V4L2_FIELD_NONE; in sh_veu_try_fmt()
448 v4l_bound_align_image(&pix->width, MIN_W, MAX_W, ALIGN_W, in sh_veu_try_fmt()
449 &pix->height, MIN_H, MAX_H, 0, 0); in sh_veu_try_fmt()
451 y_bytes_used = (pix->width * fmt->ydepth) >> 3; in sh_veu_try_fmt()
453 if (pix->bytesperline < y_bytes_used) in sh_veu_try_fmt()
454 pix->bytesperline = y_bytes_used; in sh_veu_try_fmt()
455 pix->sizeimage = pix->height * pix->bytesperline * fmt->depth / fmt->ydepth; in sh_veu_try_fmt()
457 pix->pixelformat = fmt->fourcc; in sh_veu_try_fmt()
458 pix->colorspace = sh_veu_4cc2cspace(pix->pixelformat); in sh_veu_try_fmt()
460 pr_debug("%s(): type: %d, size %u\n", __func__, f->type, pix->sizeimage); in sh_veu_try_fmt()
470 pr_debug("%s(%d;%d)\n", __func__, f->type, f->fmt.pix.field); in sh_veu_find_fmt()
487 if (sh_veu_fmt[fmt[i]].fourcc == f->fmt.pix.pixelformat) in sh_veu_find_fmt()
551 struct v4l2_pix_format *pix = &f->fmt.pix; in sh_veu_s_fmt() local
573 vfmt->frame.width = pix->width; in sh_veu_s_fmt()
574 vfmt->frame.height = pix->height; in sh_veu_s_fmt()
575 vfmt->bytesperline = pix->bytesperline; in sh_veu_s_fmt()
588 f->type, pix->width, pix->height, vfmt->fmt->fourcc); in sh_veu_s_fmt()
877 const struct v4l2_pix_format *pix = &f->fmt.pix; in sh_veu_queue_setup() local
881 if (fmt->fourcc != pix->pixelformat) in sh_veu_queue_setup()
884 if (ftmp.fmt.pix.width != pix->width || in sh_veu_queue_setup()
885 ftmp.fmt.pix.height != pix->height) in sh_veu_queue_setup()
887 size = pix->bytesperline ? pix->bytesperline * pix->height * fmt->depth / fmt->ydepth : in sh_veu_queue_setup()
888 pix->width * pix->height * fmt->depth / fmt->ydepth; in sh_veu_queue_setup()