Searched refs:pix_fmt_mp (Results 1 – 3 of 3) sorted by relevance
/openbmc/linux/drivers/media/platform/mediatek/vcodec/decoder/ |
H A D | mtk_vcodec_dec.c | 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() 292 tmp_w = pix_fmt_mp->width; in vidioc_try_fmt() 300 pix_fmt_mp->width += 64; in vidioc_try_fmt() 307 tmp_w, tmp_h, pix_fmt_mp->width, pix_fmt_mp->height, in vidioc_try_fmt() 308 pix_fmt_mp->width * pix_fmt_mp->height); in vidioc_try_fmt() 312 pix_fmt_mp->width * pix_fmt_mp->height; in vidioc_try_fmt() 313 pix_fmt_mp->plane_fmt[0].bytesperline = pix_fmt_mp->width; in vidioc_try_fmt() 317 (pix_fmt_mp->width * pix_fmt_mp->height) / 2; in vidioc_try_fmt() 319 pix_fmt_mp->width; in vidioc_try_fmt() [all …]
|
/openbmc/linux/drivers/media/platform/mediatek/vcodec/encoder/ |
H A D | mtk_vcodec_enc.c | 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() 326 if (pix_fmt_mp->width < tmp_w && (pix_fmt_mp->width + 16) <= max_width) in vidioc_try_fmt_out() 328 if (pix_fmt_mp->height < tmp_h && (pix_fmt_mp->height + 32) <= max_height) in vidioc_try_fmt_out() 334 pix_fmt_mp->height, in vidioc_try_fmt_out() 340 pix_fmt_mp->width * pix_fmt_mp->height + in vidioc_try_fmt_out() 342 pix_fmt_mp->plane_fmt[0].bytesperline = pix_fmt_mp->width; in vidioc_try_fmt_out() 346 (pix_fmt_mp->width * pix_fmt_mp->height) / 2 + in vidioc_try_fmt_out() 350 pix_fmt_mp->width; in vidioc_try_fmt_out() 355 (pix_fmt_mp->width * pix_fmt_mp->height) / 4 + in vidioc_try_fmt_out() [all …]
|
/openbmc/linux/drivers/media/platform/samsung/s5p-mfc/ |
H A D | s5p_mfc_enc.c | 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() 1376 pix_fmt_mp->width = ctx->img_width; in vidioc_g_fmt() 1377 pix_fmt_mp->height = ctx->img_height; in vidioc_g_fmt() 1379 pix_fmt_mp->field = V4L2_FIELD_NONE; in vidioc_g_fmt() 1412 pix_fmt_mp->plane_fmt[0].sizeimage; in vidioc_try_fmt() 1425 &pix_fmt_mp->height, 4, 1080, 1, 0); in vidioc_try_fmt() 1461 ctx->img_width = pix_fmt_mp->width; in vidioc_s_fmt() 1462 ctx->img_height = pix_fmt_mp->height; in vidioc_s_fmt() [all …]
|