Home
last modified time | relevance | path

Searched refs:mtk_buf (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/media/platform/mtk-vcodec/
Dmtk_vcodec_enc.c770 struct mtk_video_enc_buf *mtk_buf = in vb2ops_venc_buf_queue() local
780 mtk_buf->param_change = ctx->param_change; in vb2ops_venc_buf_queue()
781 mtk_buf->enc_params = ctx->enc_params; in vb2ops_venc_buf_queue()
968 struct mtk_video_enc_buf *mtk_buf = in mtk_venc_param_change() local
975 if (mtk_buf->param_change == MTK_ENCODE_PARAM_NONE) in mtk_venc_param_change()
978 if (mtk_buf->param_change & MTK_ENCODE_PARAM_BITRATE) { in mtk_venc_param_change()
979 enc_prm.bitrate = mtk_buf->enc_params.bitrate; in mtk_venc_param_change()
988 if (!ret && mtk_buf->param_change & MTK_ENCODE_PARAM_FRAMERATE) { in mtk_venc_param_change()
989 enc_prm.frm_rate = mtk_buf->enc_params.framerate_num / in mtk_venc_param_change()
990 mtk_buf->enc_params.framerate_denom; in mtk_venc_param_change()
[all …]
Dmtk_vcodec_dec_drv.c84 struct mtk_video_dec_buf *mtk_buf = NULL; in fops_vcodec_open() local
91 mtk_buf = kzalloc(sizeof(*mtk_buf), GFP_KERNEL); in fops_vcodec_open()
92 if (!mtk_buf) { in fops_vcodec_open()
98 ctx->empty_flush_buf = mtk_buf; in fops_vcodec_open()