Lines Matching refs:pixmp
169 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in vdec_try_fmt_common() local
170 struct v4l2_plane_pix_format *pfmt = pixmp->plane_fmt; in vdec_try_fmt_common()
175 memset(pixmp->reserved, 0, sizeof(pixmp->reserved)); in vdec_try_fmt_common()
177 fmt = find_format(inst, pixmp->pixelformat, f->type); in vdec_try_fmt_common()
180 pixmp->pixelformat = V4L2_PIX_FMT_NV12; in vdec_try_fmt_common()
182 pixmp->pixelformat = V4L2_PIX_FMT_H264; in vdec_try_fmt_common()
185 fmt = find_format(inst, pixmp->pixelformat, f->type); in vdec_try_fmt_common()
190 pixmp->width = clamp(pixmp->width, frame_width_min(inst), in vdec_try_fmt_common()
192 pixmp->height = clamp(pixmp->height, frame_height_min(inst), in vdec_try_fmt_common()
196 pixmp->height = ALIGN(pixmp->height, 32); in vdec_try_fmt_common()
198 if (pixmp->field == V4L2_FIELD_ANY) in vdec_try_fmt_common()
199 pixmp->field = V4L2_FIELD_NONE; in vdec_try_fmt_common()
200 pixmp->num_planes = fmt->num_planes; in vdec_try_fmt_common()
201 pixmp->flags = 0; in vdec_try_fmt_common()
203 szimage = venus_helper_get_framesz(pixmp->pixelformat, pixmp->width, in vdec_try_fmt_common()
204 pixmp->height); in vdec_try_fmt_common()
208 pfmt[0].bytesperline = ALIGN(pixmp->width, 128); in vdec_try_fmt_common()
265 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in vdec_g_fmt() local
279 pixmp->pixelformat = fmt->pixfmt; in vdec_g_fmt()
282 pixmp->width = inst->width; in vdec_g_fmt()
283 pixmp->height = inst->height; in vdec_g_fmt()
284 pixmp->colorspace = inst->colorspace; in vdec_g_fmt()
285 pixmp->ycbcr_enc = inst->ycbcr_enc; in vdec_g_fmt()
286 pixmp->quantization = inst->quantization; in vdec_g_fmt()
287 pixmp->xfer_func = inst->xfer_func; in vdec_g_fmt()
289 pixmp->width = inst->out_width; in vdec_g_fmt()
290 pixmp->height = inst->out_height; in vdec_g_fmt()
301 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in vdec_s_fmt() local
315 orig_pixmp = *pixmp; in vdec_s_fmt()
320 pixfmt_out = pixmp->pixelformat; in vdec_s_fmt()
323 pixfmt_cap = pixmp->pixelformat; in vdec_s_fmt()
338 inst->colorspace = pixmp->colorspace; in vdec_s_fmt()
339 inst->ycbcr_enc = pixmp->ycbcr_enc; in vdec_s_fmt()
340 inst->quantization = pixmp->quantization; in vdec_s_fmt()
341 inst->xfer_func = pixmp->xfer_func; in vdec_s_fmt()
342 inst->input_buf_size = pixmp->plane_fmt[0].sizeimage; in vdec_s_fmt()