Home
last modified time | relevance | path

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

/drivers/media/platform/mtk-vcodec/venc/
Dvenc_h264_if.c358 struct mtk_vcodec_mem *bs_buf, in h264_encode_sps() argument
367 bs_buf, bs_size, NULL); in h264_encode_sps()
385 struct mtk_vcodec_mem *bs_buf, in h264_encode_pps() argument
394 bs_buf, bs_size, NULL); in h264_encode_pps()
412 struct mtk_vcodec_mem *bs_buf, in h264_encode_header() argument
419 ret = h264_encode_sps(inst, bs_buf, &bs_size_sps); in h264_encode_header()
427 memcpy(bs_buf->va + bs_size_sps, inst->pps_buf.va, bs_size_pps); in h264_encode_header()
435 struct mtk_vcodec_mem *bs_buf, in h264_encode_frame() argument
451 bs_buf, bs_size, &frame_info); in h264_encode_frame()
461 memcpy(bs_buf->va, in h264_encode_frame()
[all …]
Dvenc_vp8_if.c237 struct mtk_vcodec_mem *bs_buf, in vp8_enc_compose_one_frame() argument
271 if (bs_buf->size < bs_hdr_len + bs_frm_size + ac_tag_size) { in vp8_enc_compose_one_frame()
273 bs_buf->size); in vp8_enc_compose_one_frame()
284 memmove(bs_buf->va + bs_hdr_len + ac_tag_size, in vp8_enc_compose_one_frame()
285 bs_buf->va, bs_frm_size); in vp8_enc_compose_one_frame()
286 memcpy(bs_buf->va + ac_tag_size, in vp8_enc_compose_one_frame()
289 memcpy(bs_buf->va, ac_tag, ac_tag_size); in vp8_enc_compose_one_frame()
297 struct mtk_vcodec_mem *bs_buf, in vp8_enc_encode_frame() argument
305 ret = vpu_enc_encode(&inst->vpu_inst, 0, frm_buf, bs_buf, bs_size, in vp8_enc_encode_frame()
316 if (vp8_enc_compose_one_frame(inst, bs_buf, bs_size)) { in vp8_enc_encode_frame()
[all …]
/drivers/media/platform/mtk-vcodec/
Dvenc_vpu_if.c227 struct mtk_vcodec_mem *bs_buf, in vpu_enc_encode() argument
255 if (bs_buf) { in vpu_enc_encode()
256 out.base.bs_addr = bs_buf->dma_addr; in vpu_enc_encode()
257 out.base.bs_size = bs_buf->size; in vpu_enc_encode()
Dmtk_vcodec_enc.c920 struct mtk_vcodec_mem bs_buf; in mtk_venc_encode_header() local
929 bs_buf.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in mtk_venc_encode_header()
930 bs_buf.dma_addr = vb2_dma_contig_plane_dma_addr(&dst_buf->vb2_buf, 0); in mtk_venc_encode_header()
931 bs_buf.size = (size_t)dst_buf->vb2_buf.planes[0].length; in mtk_venc_encode_header()
936 dst_buf->vb2_buf.index, bs_buf.va, in mtk_venc_encode_header()
937 (u64)bs_buf.dma_addr, in mtk_venc_encode_header()
938 bs_buf.size); in mtk_venc_encode_header()
942 NULL, &bs_buf, &enc_result); in mtk_venc_encode_header()
1046 struct mtk_vcodec_mem bs_buf; in mtk_venc_worker() local
1068 bs_buf.va = vb2_plane_vaddr(&dst_buf->vb2_buf, 0); in mtk_venc_worker()
[all …]
Dvenc_drv_if.c59 struct mtk_vcodec_mem *bs_buf, in venc_if_encode() argument
73 bs_buf, result); in venc_if_encode()
Dvenc_drv_base.h34 struct mtk_vcodec_mem *bs_buf,
Dvenc_vpu_if.h47 struct mtk_vcodec_mem *bs_buf,
Dvenc_drv_if.h167 struct mtk_vcodec_mem *bs_buf,