Lines Matching full:pix
366 f->fmt.pix.width = frm->width; in vidioc_g_fmt()
367 f->fmt.pix.height = frm->height; in vidioc_g_fmt()
368 f->fmt.pix.field = V4L2_FIELD_NONE; in vidioc_g_fmt()
369 f->fmt.pix.pixelformat = frm->fmt->fourcc; in vidioc_g_fmt()
370 f->fmt.pix.bytesperline = (frm->width * frm->fmt->depth) >> 3; in vidioc_g_fmt()
371 f->fmt.pix.sizeimage = frm->size; in vidioc_g_fmt()
372 f->fmt.pix.colorspace = ctx->colorspace; in vidioc_g_fmt()
373 f->fmt.pix.xfer_func = ctx->xfer_func; in vidioc_g_fmt()
374 f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; in vidioc_g_fmt()
375 f->fmt.pix.quantization = ctx->quant; in vidioc_g_fmt()
385 u32 fourcc = f->fmt.pix.pixelformat; in vidioc_try_fmt()
389 f->fmt.pix.pixelformat = formats[0].fourcc; in vidioc_try_fmt()
390 fmt = find_fmt(f->fmt.pix.pixelformat); in vidioc_try_fmt()
393 field = &f->fmt.pix.field; in vidioc_try_fmt()
399 if (f->fmt.pix.width > MAX_WIDTH) in vidioc_try_fmt()
400 f->fmt.pix.width = MAX_WIDTH; in vidioc_try_fmt()
401 if (f->fmt.pix.height > MAX_HEIGHT) in vidioc_try_fmt()
402 f->fmt.pix.height = MAX_HEIGHT; in vidioc_try_fmt()
404 if (f->fmt.pix.width < 1) in vidioc_try_fmt()
405 f->fmt.pix.width = 1; in vidioc_try_fmt()
406 if (f->fmt.pix.height < 1) in vidioc_try_fmt()
407 f->fmt.pix.height = 1; in vidioc_try_fmt()
409 if (f->type == V4L2_BUF_TYPE_VIDEO_OUTPUT && !f->fmt.pix.colorspace) { in vidioc_try_fmt()
410 f->fmt.pix.colorspace = V4L2_COLORSPACE_REC709; in vidioc_try_fmt()
412 f->fmt.pix.colorspace = ctx->colorspace; in vidioc_try_fmt()
413 f->fmt.pix.xfer_func = ctx->xfer_func; in vidioc_try_fmt()
414 f->fmt.pix.ycbcr_enc = ctx->ycbcr_enc; in vidioc_try_fmt()
415 f->fmt.pix.quantization = ctx->quant; in vidioc_try_fmt()
417 f->fmt.pix.bytesperline = (f->fmt.pix.width * fmt->depth) >> 3; in vidioc_try_fmt()
418 f->fmt.pix.sizeimage = f->fmt.pix.height * f->fmt.pix.bytesperline; in vidioc_try_fmt()
442 fmt = find_fmt(f->fmt.pix.pixelformat); in vidioc_s_fmt()
447 ctx->colorspace = f->fmt.pix.colorspace; in vidioc_s_fmt()
448 ctx->xfer_func = f->fmt.pix.xfer_func; in vidioc_s_fmt()
449 ctx->ycbcr_enc = f->fmt.pix.ycbcr_enc; in vidioc_s_fmt()
450 ctx->quant = f->fmt.pix.quantization; in vidioc_s_fmt()
454 frm->width = f->fmt.pix.width; in vidioc_s_fmt()
455 frm->height = f->fmt.pix.height; in vidioc_s_fmt()
456 frm->size = f->fmt.pix.sizeimage; in vidioc_s_fmt()