Lines Matching refs:pixmp

154 	struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp;  in vpu_calc_fmt_bytesperline()  local
162 if (pixmp->num_planes == fmt->comp_planes) { in vpu_calc_fmt_bytesperline()
164 fmt->bytesperline[i] = pixmp->plane_fmt[i].bytesperline; in vpu_calc_fmt_bytesperline()
167 if (pixmp->num_planes > 1) in vpu_calc_fmt_bytesperline()
174 fmt->bytesperline[i] = pixmp->plane_fmt[0].bytesperline; in vpu_calc_fmt_bytesperline()
231 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in vpu_try_fmt_common() local
235 fmt->pixfmt = pixmp->pixelformat; in vpu_try_fmt_common()
241 fmt->width = pixmp->width; in vpu_try_fmt_common()
242 fmt->height = pixmp->height; in vpu_try_fmt_common()
247 fmt->field = pixmp->field == V4L2_FIELD_ANY ? V4L2_FIELD_NONE : pixmp->field; in vpu_try_fmt_common()
250 if ((fmt->flags & V4L2_FMT_FLAG_COMPRESSED) && pixmp->plane_fmt[0].sizeimage) in vpu_try_fmt_common()
251 fmt->sizeimage[0] = clamp_val(pixmp->plane_fmt[0].sizeimage, SZ_128K, SZ_8M); in vpu_try_fmt_common()
253 pixmp->pixelformat = fmt->pixfmt; in vpu_try_fmt_common()
254 pixmp->width = fmt->width; in vpu_try_fmt_common()
255 pixmp->height = fmt->height; in vpu_try_fmt_common()
256 pixmp->flags = fmt->flags; in vpu_try_fmt_common()
257 pixmp->num_planes = fmt->mem_planes; in vpu_try_fmt_common()
258 pixmp->field = fmt->field; in vpu_try_fmt_common()
259 memset(pixmp->reserved, 0, sizeof(pixmp->reserved)); in vpu_try_fmt_common()
260 for (i = 0; i < pixmp->num_planes; i++) { in vpu_try_fmt_common()
261 pixmp->plane_fmt[i].bytesperline = fmt->bytesperline[i]; in vpu_try_fmt_common()
262 pixmp->plane_fmt[i].sizeimage = vpu_get_fmt_plane_size(fmt, i); in vpu_try_fmt_common()
263 memset(pixmp->plane_fmt[i].reserved, 0, sizeof(pixmp->plane_fmt[i].reserved)); in vpu_try_fmt_common()