Searched refs:pix_fmt_mp (Results 1 – 3 of 3) sorted by relevance
/linux-6.6.21/drivers/media/platform/mediatek/vcodec/decoder/ |
D | mtk_vcodec_dec.c | 266 struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; in vidioc_try_fmt() local 269 pix_fmt_mp->field = V4L2_FIELD_NONE; in vidioc_try_fmt() 277 pix_fmt_mp->width = clamp(pix_fmt_mp->width, MTK_VDEC_MIN_W, frmsize->max_width); in vidioc_try_fmt() 278 pix_fmt_mp->height = clamp(pix_fmt_mp->height, MTK_VDEC_MIN_H, frmsize->max_height); in vidioc_try_fmt() 281 pix_fmt_mp->num_planes = 1; in vidioc_try_fmt() 282 pix_fmt_mp->plane_fmt[0].bytesperline = 0; in vidioc_try_fmt() 292 tmp_w = pix_fmt_mp->width; in vidioc_try_fmt() 293 tmp_h = pix_fmt_mp->height; in vidioc_try_fmt() 294 v4l_bound_align_image(&pix_fmt_mp->width, MTK_VDEC_MIN_W, frmsize->max_width, 6, in vidioc_try_fmt() 295 &pix_fmt_mp->height, MTK_VDEC_MIN_H, frmsize->max_height, 6, in vidioc_try_fmt() [all …]
|
/linux-6.6.21/drivers/media/platform/mediatek/vcodec/encoder/ |
D | mtk_vcodec_enc.c | 297 struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; in vidioc_try_fmt_out() local 301 pix_fmt_mp->field = V4L2_FIELD_NONE; in vidioc_try_fmt_out() 311 pix_fmt_mp->height = clamp(pix_fmt_mp->height, MTK_VENC_MIN_H, max_height); in vidioc_try_fmt_out() 312 pix_fmt_mp->width = clamp(pix_fmt_mp->width, MTK_VENC_MIN_W, max_width); in vidioc_try_fmt_out() 317 tmp_w = pix_fmt_mp->width; in vidioc_try_fmt_out() 318 tmp_h = pix_fmt_mp->height; in vidioc_try_fmt_out() 319 v4l_bound_align_image(&pix_fmt_mp->width, in vidioc_try_fmt_out() 322 &pix_fmt_mp->height, in vidioc_try_fmt_out() 326 if (pix_fmt_mp->width < tmp_w && (pix_fmt_mp->width + 16) <= max_width) in vidioc_try_fmt_out() 327 pix_fmt_mp->width += 16; in vidioc_try_fmt_out() [all …]
|
/linux-6.6.21/drivers/media/platform/samsung/s5p-mfc/ |
D | s5p_mfc_enc.c | 1361 struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; in vidioc_g_fmt() local 1366 pix_fmt_mp->width = 0; in vidioc_g_fmt() 1367 pix_fmt_mp->height = 0; in vidioc_g_fmt() 1368 pix_fmt_mp->field = V4L2_FIELD_NONE; in vidioc_g_fmt() 1369 pix_fmt_mp->pixelformat = ctx->dst_fmt->fourcc; in vidioc_g_fmt() 1370 pix_fmt_mp->num_planes = ctx->dst_fmt->num_planes; in vidioc_g_fmt() 1372 pix_fmt_mp->plane_fmt[0].bytesperline = ctx->enc_dst_buf_size; in vidioc_g_fmt() 1373 pix_fmt_mp->plane_fmt[0].sizeimage = ctx->enc_dst_buf_size; in vidioc_g_fmt() 1376 pix_fmt_mp->width = ctx->img_width; in vidioc_g_fmt() 1377 pix_fmt_mp->height = ctx->img_height; in vidioc_g_fmt() [all …]
|