Home
last modified time | relevance | path

Searched refs:bs_buf (Results 1 – 8 of 8) sorted by relevance

/linux/drivers/media/platform/mediatek/vcodec/encoder/venc/
H A Dvenc_vp8_if.c226 struct mtk_vcodec_mem *bs_buf, in vp8_enc_compose_one_frame() argument
260 if (bs_buf->size < bs_hdr_len + bs_frm_size + ac_tag_size) { in vp8_enc_compose_one_frame()
261 mtk_venc_err(inst->ctx, "bitstream buf size is too small(%zu)", bs_buf->size); in vp8_enc_compose_one_frame()
272 memmove(bs_buf->va + bs_hdr_len + ac_tag_size, in vp8_enc_compose_one_frame()
273 bs_buf->va, bs_frm_size); in vp8_enc_compose_one_frame()
274 memcpy(bs_buf->va + ac_tag_size, in vp8_enc_compose_one_frame()
277 memcpy(bs_buf->va, ac_tag, ac_tag_size); in vp8_enc_compose_one_frame()
285 struct mtk_vcodec_mem *bs_buf, in vp8_enc_encode_frame() argument
293 ret = vpu_enc_encode(&inst->vpu_inst, 0, frm_buf, bs_buf, NULL); in vp8_enc_encode_frame()
303 if (vp8_enc_compose_one_frame(inst, bs_buf, bs_size)) { in vp8_enc_encode_frame()
[all …]
H A Dvenc_h264_if.c439 struct mtk_vcodec_mem *bs_buf, in h264_encode_sps() argument
445 ret = vpu_enc_encode(&inst->vpu_inst, H264_BS_MODE_SPS, NULL, bs_buf, NULL); in h264_encode_sps()
462 struct mtk_vcodec_mem *bs_buf, in h264_encode_pps() argument
468 ret = vpu_enc_encode(&inst->vpu_inst, H264_BS_MODE_PPS, NULL, bs_buf, NULL); in h264_encode_pps()
485 struct mtk_vcodec_mem *bs_buf, in h264_encode_header() argument
492 ret = h264_encode_sps(inst, bs_buf, &bs_size_sps); in h264_encode_header()
500 memcpy(bs_buf->va + bs_size_sps, inst->pps_buf.va, bs_size_pps); in h264_encode_header()
508 struct mtk_vcodec_mem *bs_buf, in h264_encode_frame() argument
536 frm_buf, bs_buf, &frame_info); in h264_encode_frame()
546 memcpy(bs_buf->va, in h264_encode_frame()
[all …]
/linux/drivers/media/platform/mediatek/vcodec/encoder/
H A Dvenc_vpu_if.c254 struct mtk_vcodec_mem *bs_buf, in vpu_enc_encode_32bits() argument
281 if (bs_buf) { in vpu_enc_encode_32bits()
282 out.base.bs_addr = bs_buf->dma_addr; in vpu_enc_encode_32bits()
283 out.base.bs_size = bs_buf->size; in vpu_enc_encode_32bits()
302 struct mtk_vcodec_mem *bs_buf, in vpu_enc_encode_34bits() argument
327 if (bs_buf) { in vpu_enc_encode_34bits()
328 out.bs_addr = bs_buf->dma_addr; in vpu_enc_encode_34bits()
329 out.bs_size = bs_buf->size; in vpu_enc_encode_34bits()
347 struct mtk_vcodec_mem *bs_buf, in vpu_enc_encode() argument
354 frm_buf, bs_buf, frame_info); in vpu_enc_encode()
[all …]
H A Dvenc_drv_if.c55 struct mtk_vcodec_mem *bs_buf, in venc_if_encode() argument
72 bs_buf, result); in venc_if_encode()
H A Dmtk_vcodec_enc.c1023 struct mtk_vcodec_mem bs_buf; in mtk_venc_encode_header() local
1032 bs_buf.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in mtk_venc_encode_header()
1033 bs_buf.dma_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in mtk_venc_encode_header()
1034 bs_buf.size = (size_t)dst_buf->vb2_buf.planes[0].length; in mtk_venc_encode_header()
1038 ctx->id, dst_buf->vb2_buf.index, bs_buf.va, in mtk_venc_encode_header()
1039 (u64)bs_buf.dma_addr, bs_buf.size); in mtk_venc_encode_header()
1043 NULL, &bs_buf, &enc_result); in mtk_venc_encode_header()
1144 struct mtk_vcodec_mem bs_buf; in mtk_venc_worker() local
1180 bs_buf.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in mtk_venc_worker()
1181 bs_buf.dma_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in mtk_venc_worker()
[all …]
H A Dvenc_drv_base.h34 struct mtk_vcodec_mem *bs_buf,
H A Dvenc_vpu_if.h46 struct mtk_vcodec_mem *bs_buf,
H A Dvenc_drv_if.h166 struct mtk_vcodec_mem *bs_buf,