Home
last modified time | relevance | path

Searched refs:pix_fmt_mp (Results 1 – 3 of 3) sorted by relevance

/Linux-v6.1/drivers/media/platform/mediatek/vcodec/
Dmtk_vcodec_dec.c270 struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; in vidioc_try_fmt() local
273 pix_fmt_mp->field = V4L2_FIELD_NONE; in vidioc_try_fmt()
281 pix_fmt_mp->width = clamp(pix_fmt_mp->width, MTK_VDEC_MIN_W, frmsize->max_width); in vidioc_try_fmt()
282 pix_fmt_mp->height = clamp(pix_fmt_mp->height, MTK_VDEC_MIN_H, frmsize->max_height); in vidioc_try_fmt()
285 pix_fmt_mp->num_planes = 1; in vidioc_try_fmt()
286 pix_fmt_mp->plane_fmt[0].bytesperline = 0; in vidioc_try_fmt()
296 tmp_w = pix_fmt_mp->width; in vidioc_try_fmt()
297 tmp_h = pix_fmt_mp->height; in vidioc_try_fmt()
298 v4l_bound_align_image(&pix_fmt_mp->width, MTK_VDEC_MIN_W, frmsize->max_width, 6, in vidioc_try_fmt()
299 &pix_fmt_mp->height, MTK_VDEC_MIN_H, frmsize->max_height, 6, in vidioc_try_fmt()
[all …]
Dmtk_vcodec_enc.c310 struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; in vidioc_try_fmt_out() local
314 pix_fmt_mp->field = V4L2_FIELD_NONE; in vidioc_try_fmt_out()
324 pix_fmt_mp->height = clamp(pix_fmt_mp->height, MTK_VENC_MIN_H, max_height); in vidioc_try_fmt_out()
325 pix_fmt_mp->width = clamp(pix_fmt_mp->width, MTK_VENC_MIN_W, max_width); in vidioc_try_fmt_out()
330 tmp_w = pix_fmt_mp->width; in vidioc_try_fmt_out()
331 tmp_h = pix_fmt_mp->height; in vidioc_try_fmt_out()
332 v4l_bound_align_image(&pix_fmt_mp->width, in vidioc_try_fmt_out()
335 &pix_fmt_mp->height, in vidioc_try_fmt_out()
339 if (pix_fmt_mp->width < tmp_w && (pix_fmt_mp->width + 16) <= max_width) in vidioc_try_fmt_out()
340 pix_fmt_mp->width += 16; in vidioc_try_fmt_out()
[all …]
/Linux-v6.1/drivers/media/platform/samsung/s5p-mfc/
Ds5p_mfc_enc.c1353 struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; in vidioc_g_fmt() local
1358 pix_fmt_mp->width = 0; in vidioc_g_fmt()
1359 pix_fmt_mp->height = 0; in vidioc_g_fmt()
1360 pix_fmt_mp->field = V4L2_FIELD_NONE; in vidioc_g_fmt()
1361 pix_fmt_mp->pixelformat = ctx->dst_fmt->fourcc; in vidioc_g_fmt()
1362 pix_fmt_mp->num_planes = ctx->dst_fmt->num_planes; in vidioc_g_fmt()
1364 pix_fmt_mp->plane_fmt[0].bytesperline = ctx->enc_dst_buf_size; in vidioc_g_fmt()
1365 pix_fmt_mp->plane_fmt[0].sizeimage = ctx->enc_dst_buf_size; in vidioc_g_fmt()
1368 pix_fmt_mp->width = ctx->img_width; in vidioc_g_fmt()
1369 pix_fmt_mp->height = ctx->img_height; in vidioc_g_fmt()
[all …]