Lines Matching refs:format

19 	struct v4l2_pix_format format;  member
72 *fmt = vcapture->format; in vimc_capture_get_format()
80 f->fmt.pix = vcapture->format; in vimc_capture_g_fmt_vid_cap()
88 struct v4l2_pix_format *format = &f->fmt.pix; in vimc_capture_try_fmt_vid_cap() local
91 format->width = clamp_t(u32, format->width, VIMC_FRAME_MIN_WIDTH, in vimc_capture_try_fmt_vid_cap()
93 format->height = clamp_t(u32, format->height, VIMC_FRAME_MIN_HEIGHT, in vimc_capture_try_fmt_vid_cap()
97 vpix = vimc_pix_map_by_pixelformat(format->pixelformat); in vimc_capture_try_fmt_vid_cap()
99 format->pixelformat = fmt_default.pixelformat; in vimc_capture_try_fmt_vid_cap()
100 vpix = vimc_pix_map_by_pixelformat(format->pixelformat); in vimc_capture_try_fmt_vid_cap()
103 format->bytesperline = format->width * vpix->bpp; in vimc_capture_try_fmt_vid_cap()
104 format->sizeimage = format->bytesperline * format->height; in vimc_capture_try_fmt_vid_cap()
106 if (format->field == V4L2_FIELD_ANY) in vimc_capture_try_fmt_vid_cap()
107 format->field = fmt_default.field; in vimc_capture_try_fmt_vid_cap()
109 vimc_colorimetry_clamp(format); in vimc_capture_try_fmt_vid_cap()
111 if (format->colorspace == V4L2_COLORSPACE_DEFAULT) in vimc_capture_try_fmt_vid_cap()
112 format->colorspace = fmt_default.colorspace; in vimc_capture_try_fmt_vid_cap()
135 vcapture->format.width, vcapture->format.height, in vimc_capture_s_fmt_vid_cap()
136 vcapture->format.pixelformat, vcapture->format.colorspace, in vimc_capture_s_fmt_vid_cap()
137 vcapture->format.quantization, vcapture->format.xfer_func, in vimc_capture_s_fmt_vid_cap()
138 vcapture->format.ycbcr_enc, in vimc_capture_s_fmt_vid_cap()
145 vcapture->format = f->fmt.pix; in vimc_capture_s_fmt_vid_cap()
302 return sizes[0] < vcapture->format.sizeimage ? -EINVAL : 0; in vimc_capture_queue_setup()
305 sizes[0] = vcapture->format.sizeimage; in vimc_capture_queue_setup()
313 unsigned long size = vcapture->format.sizeimage; in vimc_capture_buffer_prepare()
384 vimc_buf->vb2.field = vcapture->format.field; in vimc_capture_process_frame()
388 memcpy(vbuf, frame, vcapture->format.sizeimage); in vimc_capture_process_frame()
392 vcapture->format.sizeimage); in vimc_capture_process_frame()
452 vcapture->format = fmt_default; in vimc_capture_add()
453 vpix = vimc_pix_map_by_pixelformat(vcapture->format.pixelformat); in vimc_capture_add()
454 vcapture->format.bytesperline = vcapture->format.width * vpix->bpp; in vimc_capture_add()
455 vcapture->format.sizeimage = vcapture->format.bytesperline * in vimc_capture_add()
456 vcapture->format.height; in vimc_capture_add()