Lines Matching refs:pixmp

174 	struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp;  in venc_try_fmt_common()  local
175 struct v4l2_plane_pix_format *pfmt = pixmp->plane_fmt; in venc_try_fmt_common()
180 memset(pixmp->reserved, 0, sizeof(pixmp->reserved)); in venc_try_fmt_common()
182 fmt = find_format(inst, pixmp->pixelformat, f->type); in venc_try_fmt_common()
185 pixmp->pixelformat = V4L2_PIX_FMT_H264; in venc_try_fmt_common()
187 pixmp->pixelformat = V4L2_PIX_FMT_NV12; in venc_try_fmt_common()
190 fmt = find_format(inst, pixmp->pixelformat, f->type); in venc_try_fmt_common()
195 pixmp->width = clamp(pixmp->width, frame_width_min(inst), in venc_try_fmt_common()
197 pixmp->height = clamp(pixmp->height, frame_height_min(inst), in venc_try_fmt_common()
200 pixmp->width = ALIGN(pixmp->width, 128); in venc_try_fmt_common()
201 pixmp->height = ALIGN(pixmp->height, 32); in venc_try_fmt_common()
203 pixmp->width = ALIGN(pixmp->width, 2); in venc_try_fmt_common()
204 pixmp->height = ALIGN(pixmp->height, 2); in venc_try_fmt_common()
206 if (pixmp->field == V4L2_FIELD_ANY) in venc_try_fmt_common()
207 pixmp->field = V4L2_FIELD_NONE; in venc_try_fmt_common()
208 pixmp->num_planes = fmt->num_planes; in venc_try_fmt_common()
209 pixmp->flags = 0; in venc_try_fmt_common()
211 sizeimage = venus_helper_get_framesz(pixmp->pixelformat, in venc_try_fmt_common()
212 pixmp->width, in venc_try_fmt_common()
213 pixmp->height); in venc_try_fmt_common()
217 pfmt[0].bytesperline = ALIGN(pixmp->width, 128); in venc_try_fmt_common()
236 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in venc_s_fmt() local
250 orig_pixmp = *pixmp; in venc_s_fmt()
257 pixfmt_out = pixmp->pixelformat; in venc_s_fmt()
260 pixfmt_cap = pixmp->pixelformat; in venc_s_fmt()
275 inst->colorspace = pixmp->colorspace; in venc_s_fmt()
276 inst->ycbcr_enc = pixmp->ycbcr_enc; in venc_s_fmt()
277 inst->quantization = pixmp->quantization; in venc_s_fmt()
278 inst->xfer_func = pixmp->xfer_func; in venc_s_fmt()
296 inst->output_buf_size = pixmp->plane_fmt[0].sizeimage; in venc_s_fmt()
304 struct v4l2_pix_format_mplane *pixmp = &f->fmt.pix_mp; in venc_g_fmt() local
315 pixmp->pixelformat = fmt->pixfmt; in venc_g_fmt()
318 pixmp->width = inst->width; in venc_g_fmt()
319 pixmp->height = inst->height; in venc_g_fmt()
320 pixmp->colorspace = inst->colorspace; in venc_g_fmt()
321 pixmp->ycbcr_enc = inst->ycbcr_enc; in venc_g_fmt()
322 pixmp->quantization = inst->quantization; in venc_g_fmt()
323 pixmp->xfer_func = inst->xfer_func; in venc_g_fmt()
325 pixmp->width = inst->out_width; in venc_g_fmt()
326 pixmp->height = inst->out_height; in venc_g_fmt()