Lines Matching refs:pixfmt
355 struct v4l2_pix_format *pixfmt = &f->fmt.pix; in sun6i_video_try_fmt() local
358 if (!is_pixformat_valid(pixfmt->pixelformat)) in sun6i_video_try_fmt()
359 pixfmt->pixelformat = supported_pixformats[0]; in sun6i_video_try_fmt()
361 v4l_bound_align_image(&pixfmt->width, MIN_WIDTH, MAX_WIDTH, 1, in sun6i_video_try_fmt()
362 &pixfmt->height, MIN_HEIGHT, MAX_WIDTH, 1, 1); in sun6i_video_try_fmt()
364 bpp = sun6i_csi_get_bpp(pixfmt->pixelformat); in sun6i_video_try_fmt()
365 pixfmt->bytesperline = (pixfmt->width * bpp) >> 3; in sun6i_video_try_fmt()
366 pixfmt->sizeimage = pixfmt->bytesperline * pixfmt->height; in sun6i_video_try_fmt()
368 if (pixfmt->field == V4L2_FIELD_ANY) in sun6i_video_try_fmt()
369 pixfmt->field = V4L2_FIELD_NONE; in sun6i_video_try_fmt()
371 pixfmt->colorspace = V4L2_COLORSPACE_RAW; in sun6i_video_try_fmt()
372 pixfmt->ycbcr_enc = V4L2_YCBCR_ENC_DEFAULT; in sun6i_video_try_fmt()
373 pixfmt->quantization = V4L2_QUANTIZATION_DEFAULT; in sun6i_video_try_fmt()
374 pixfmt->xfer_func = V4L2_XFER_FUNC_DEFAULT; in sun6i_video_try_fmt()