Searched refs:enc_prm (Results 1 – 4 of 4) sorted by relevance
397 struct venc_enc_param *enc_prm) in vp8_enc_set_param() argument406 inst->vsi->config.input_fourcc = enc_prm->input_yuv_fmt; in vp8_enc_set_param()407 inst->vsi->config.bitrate = enc_prm->bitrate; in vp8_enc_set_param()408 inst->vsi->config.pic_w = enc_prm->width; in vp8_enc_set_param()409 inst->vsi->config.pic_h = enc_prm->height; in vp8_enc_set_param()410 inst->vsi->config.buf_w = enc_prm->buf_width; in vp8_enc_set_param()411 inst->vsi->config.buf_h = enc_prm->buf_height; in vp8_enc_set_param()412 inst->vsi->config.gop_size = enc_prm->gop_size; in vp8_enc_set_param()413 inst->vsi->config.framerate = enc_prm->frm_rate; in vp8_enc_set_param()415 ret = vpu_enc_set_param(&inst->vpu_inst, type, enc_prm); in vp8_enc_set_param()[all …]
628 struct venc_enc_param *enc_prm) in h264_enc_set_param() argument637 inst->vsi->config.input_fourcc = enc_prm->input_yuv_fmt; in h264_enc_set_param()638 inst->vsi->config.bitrate = enc_prm->bitrate; in h264_enc_set_param()639 inst->vsi->config.pic_w = enc_prm->width; in h264_enc_set_param()640 inst->vsi->config.pic_h = enc_prm->height; in h264_enc_set_param()641 inst->vsi->config.buf_w = enc_prm->buf_width; in h264_enc_set_param()642 inst->vsi->config.buf_h = enc_prm->buf_height; in h264_enc_set_param()643 inst->vsi->config.gop_size = enc_prm->gop_size; in h264_enc_set_param()644 inst->vsi->config.framerate = enc_prm->frm_rate; in h264_enc_set_param()645 inst->vsi->config.intra_period = enc_prm->intra_period; in h264_enc_set_param()[all …]
141 struct venc_enc_param *enc_prm) in venc_enc_param_crop_right() argument143 unsigned int img_crop_right = enc_prm->buf_width - enc_prm->width; in venc_enc_param_crop_right()148 static unsigned int venc_enc_param_crop_bottom(struct venc_enc_param *enc_prm) in venc_enc_param_crop_bottom() argument150 return round_up(enc_prm->height, 16) - enc_prm->height; in venc_enc_param_crop_bottom()153 static unsigned int venc_enc_param_num_mb(struct venc_enc_param *enc_prm) in venc_enc_param_num_mb() argument155 return DIV_ROUND_UP(enc_prm->width, 16) * in venc_enc_param_num_mb()156 DIV_ROUND_UP(enc_prm->height, 16); in venc_enc_param_num_mb()
968 struct venc_enc_param enc_prm; in mtk_venc_param_change() local976 memset(&enc_prm, 0, sizeof(enc_prm)); in mtk_venc_param_change()981 enc_prm.bitrate = mtk_buf->enc_params.bitrate; in mtk_venc_param_change()985 enc_prm.bitrate); in mtk_venc_param_change()988 &enc_prm); in mtk_venc_param_change()991 enc_prm.frm_rate = mtk_buf->enc_params.framerate_num / in mtk_venc_param_change()996 enc_prm.frm_rate); in mtk_venc_param_change()999 &enc_prm); in mtk_venc_param_change()1002 enc_prm.gop_size = mtk_buf->enc_params.gop_size; in mtk_venc_param_change()1004 enc_prm.gop_size); in mtk_venc_param_change()[all …]