Home
last modified time | relevance | path

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

/linux/drivers/media/platform/mediatek/vcodec/decoder/
H A Dmtk_vcodec_dec.c292 struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; in vidioc_try_fmt() local
295 pix_fmt_mp->field = V4L2_FIELD_NONE; in vidioc_try_fmt()
303 pix_fmt_mp->width = clamp(pix_fmt_mp->width, MTK_VDEC_MIN_W, frmsize->max_width); in vidioc_try_fmt()
304 pix_fmt_mp->height = clamp(pix_fmt_mp->height, MTK_VDEC_MIN_H, frmsize->max_height); in vidioc_try_fmt()
307 pix_fmt_mp->num_planes = 1; in vidioc_try_fmt()
308 pix_fmt_mp->plane_fmt[0].bytesperline = 0; in vidioc_try_fmt()
318 tmp_w = pix_fmt_mp->width; in vidioc_try_fmt()
319 tmp_h = pix_fmt_mp->height; in vidioc_try_fmt()
320 v4l_bound_align_image(&pix_fmt_mp->width, MTK_VDEC_MIN_W, frmsize->max_width, 6, in vidioc_try_fmt()
321 &pix_fmt_mp->height, MTK_VDEC_MIN_H, frmsize->max_height, 6, in vidioc_try_fmt()
[all …]
/linux/drivers/media/platform/mediatek/vcodec/encoder/
H A Dmtk_vcodec_enc.c297 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/drivers/media/platform/samsung/s5p-mfc/
H A Ds5p_mfc_enc.c1393 struct v4l2_pix_format_mplane *pix_fmt_mp = &f->fmt.pix_mp; in vidioc_g_fmt() local
1398 pix_fmt_mp->width = 0; in vidioc_g_fmt()
1399 pix_fmt_mp->height = 0; in vidioc_g_fmt()
1400 pix_fmt_mp->field = V4L2_FIELD_NONE; in vidioc_g_fmt()
1401 pix_fmt_mp->pixelformat = ctx->dst_fmt->fourcc; in vidioc_g_fmt()
1402 pix_fmt_mp->num_planes = ctx->dst_fmt->num_planes; in vidioc_g_fmt()
1404 pix_fmt_mp->plane_fmt[0].bytesperline = ctx->enc_dst_buf_size; in vidioc_g_fmt()
1405 pix_fmt_mp->plane_fmt[0].sizeimage = ctx->enc_dst_buf_size; in vidioc_g_fmt()
1408 pix_fmt_mp->width = ctx->img_width; in vidioc_g_fmt()
1409 pix_fmt_mp->height = ctx->img_height; in vidioc_g_fmt()
[all …]