Lines Matching refs:pixmp

187 	struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp;  in vdec_try_fmt_common()  local
188 struct v4l2_plane_pix_format *pfmt = pixmp->plane_fmt; in vdec_try_fmt_common()
193 memset(pixmp->reserved, 0, sizeof(pixmp->reserved)); in vdec_try_fmt_common()
195 fmt = find_format(inst, pixmp->pixelformat, f->type); in vdec_try_fmt_common()
198 pixmp->pixelformat = V4L2_PIX_FMT_NV12; in vdec_try_fmt_common()
200 pixmp->pixelformat = V4L2_PIX_FMT_H264; in vdec_try_fmt_common()
203 fmt = find_format(inst, pixmp->pixelformat, f->type); in vdec_try_fmt_common()
208 pixmp->width = clamp(pixmp->width, frame_width_min(inst), in vdec_try_fmt_common()
210 pixmp->height = clamp(pixmp->height, frame_height_min(inst), in vdec_try_fmt_common()
214 pixmp->height = ALIGN(pixmp->height, 32); in vdec_try_fmt_common()
216 if (pixmp->field == V4L2_FIELD_ANY) in vdec_try_fmt_common()
217 pixmp->field = V4L2_FIELD_NONE; in vdec_try_fmt_common()
218 pixmp->num_planes = fmt->num_planes; in vdec_try_fmt_common()
219 pixmp->flags = 0; in vdec_try_fmt_common()
221 szimage = venus_helper_get_framesz(pixmp->pixelformat, pixmp->width, in vdec_try_fmt_common()
222 pixmp->height); in vdec_try_fmt_common()
225 unsigned int stride = pixmp->width; in vdec_try_fmt_common()
227 if (pixmp->pixelformat == V4L2_PIX_FMT_P010) in vdec_try_fmt_common()
288 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in vdec_g_fmt() local
302 pixmp->pixelformat = fmt->pixfmt; in vdec_g_fmt()
305 pixmp->width = inst->width; in vdec_g_fmt()
306 pixmp->height = inst->height; in vdec_g_fmt()
307 pixmp->colorspace = inst->colorspace; in vdec_g_fmt()
308 pixmp->ycbcr_enc = inst->ycbcr_enc; in vdec_g_fmt()
309 pixmp->quantization = inst->quantization; in vdec_g_fmt()
310 pixmp->xfer_func = inst->xfer_func; in vdec_g_fmt()
312 pixmp->width = inst->out_width; in vdec_g_fmt()
313 pixmp->height = inst->out_height; in vdec_g_fmt()
324 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in vdec_s_fmt() local
338 orig_pixmp = *pixmp; in vdec_s_fmt()
343 pixfmt_out = pixmp->pixelformat; in vdec_s_fmt()
346 pixfmt_cap = pixmp->pixelformat; in vdec_s_fmt()
361 inst->colorspace = pixmp->colorspace; in vdec_s_fmt()
362 inst->ycbcr_enc = pixmp->ycbcr_enc; in vdec_s_fmt()
363 inst->quantization = pixmp->quantization; in vdec_s_fmt()
364 inst->xfer_func = pixmp->xfer_func; in vdec_s_fmt()
365 inst->input_buf_size = pixmp->plane_fmt[0].sizeimage; in vdec_s_fmt()