media: mtk-vcodec: remove unused func parameter
The prarameter bs_size to function vpu_enc_encode is not used. Remove it. Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
Родитель
37365b050d
Коммит
10d0f56800
|
@ -367,8 +367,7 @@ static int h264_encode_sps(struct venc_h264_inst *inst,
|
||||||
|
|
||||||
mtk_vcodec_debug_enter(inst);
|
mtk_vcodec_debug_enter(inst);
|
||||||
|
|
||||||
ret = vpu_enc_encode(&inst->vpu_inst, H264_BS_MODE_SPS, NULL,
|
ret = vpu_enc_encode(&inst->vpu_inst, H264_BS_MODE_SPS, NULL, bs_buf, NULL);
|
||||||
bs_buf, bs_size, NULL);
|
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
@ -394,8 +393,7 @@ static int h264_encode_pps(struct venc_h264_inst *inst,
|
||||||
|
|
||||||
mtk_vcodec_debug_enter(inst);
|
mtk_vcodec_debug_enter(inst);
|
||||||
|
|
||||||
ret = vpu_enc_encode(&inst->vpu_inst, H264_BS_MODE_PPS, NULL,
|
ret = vpu_enc_encode(&inst->vpu_inst, H264_BS_MODE_PPS, NULL, bs_buf, NULL);
|
||||||
bs_buf, bs_size, NULL);
|
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
@ -451,8 +449,7 @@ static int h264_encode_frame(struct venc_h264_inst *inst,
|
||||||
mtk_vcodec_debug(inst, "frm_count = %d,skip_frm_count =%d,frm_type=%d.\n",
|
mtk_vcodec_debug(inst, "frm_count = %d,skip_frm_count =%d,frm_type=%d.\n",
|
||||||
frame_info.frm_count, frame_info.skip_frm_count,
|
frame_info.frm_count, frame_info.skip_frm_count,
|
||||||
frame_info.frm_type);
|
frame_info.frm_type);
|
||||||
ret = vpu_enc_encode(&inst->vpu_inst, H264_BS_MODE_FRAME, frm_buf,
|
ret = vpu_enc_encode(&inst->vpu_inst, H264_BS_MODE_FRAME, frm_buf, bs_buf, &frame_info);
|
||||||
bs_buf, bs_size, &frame_info);
|
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
|
@ -302,8 +302,7 @@ static int vp8_enc_encode_frame(struct venc_vp8_inst *inst,
|
||||||
|
|
||||||
mtk_vcodec_debug(inst, "->frm_cnt=%d", inst->frm_cnt);
|
mtk_vcodec_debug(inst, "->frm_cnt=%d", inst->frm_cnt);
|
||||||
|
|
||||||
ret = vpu_enc_encode(&inst->vpu_inst, 0, frm_buf, bs_buf, bs_size,
|
ret = vpu_enc_encode(&inst->vpu_inst, 0, frm_buf, bs_buf, NULL);
|
||||||
NULL);
|
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
|
@ -225,7 +225,6 @@ int vpu_enc_set_param(struct venc_vpu_inst *vpu,
|
||||||
int vpu_enc_encode(struct venc_vpu_inst *vpu, unsigned int bs_mode,
|
int vpu_enc_encode(struct venc_vpu_inst *vpu, unsigned int bs_mode,
|
||||||
struct venc_frm_buf *frm_buf,
|
struct venc_frm_buf *frm_buf,
|
||||||
struct mtk_vcodec_mem *bs_buf,
|
struct mtk_vcodec_mem *bs_buf,
|
||||||
unsigned int *bs_size,
|
|
||||||
struct venc_frame_info *frame_info)
|
struct venc_frame_info *frame_info)
|
||||||
{
|
{
|
||||||
const bool is_ext = MTK_ENC_CTX_IS_EXT(vpu->ctx);
|
const bool is_ext = MTK_ENC_CTX_IS_EXT(vpu->ctx);
|
||||||
|
|
|
@ -45,7 +45,6 @@ int vpu_enc_set_param(struct venc_vpu_inst *vpu,
|
||||||
int vpu_enc_encode(struct venc_vpu_inst *vpu, unsigned int bs_mode,
|
int vpu_enc_encode(struct venc_vpu_inst *vpu, unsigned int bs_mode,
|
||||||
struct venc_frm_buf *frm_buf,
|
struct venc_frm_buf *frm_buf,
|
||||||
struct mtk_vcodec_mem *bs_buf,
|
struct mtk_vcodec_mem *bs_buf,
|
||||||
unsigned int *bs_size,
|
|
||||||
struct venc_frame_info *frame_info);
|
struct venc_frame_info *frame_info);
|
||||||
int vpu_enc_deinit(struct venc_vpu_inst *vpu);
|
int vpu_enc_deinit(struct venc_vpu_inst *vpu);
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче