ss928_framework/ss928sdk/include/ss_mpi_vb.h

55 lines
1.7 KiB
C
Raw Normal View History

2024-12-16 13:31:45 +08:00
/*
Copyright (c), 2001-2022, Shenshu Tech. Co., Ltd.
*/
#ifndef __SS_MPI_VB_H__
#define __SS_MPI_VB_H__
#include "ot_common_vb.h"
#include "ot_common_video.h"
#ifdef __cplusplus
extern "C" {
#endif
ot_vb_pool ss_mpi_vb_create_pool(const ot_vb_pool_cfg *vb_pool_cfg);
ot_vb_pool ss_mpi_vb_create_ext_pool(const ot_vb_pool_cfg *vb_pool_cfg);
td_s32 ss_mpi_vb_destroy_pool(ot_vb_pool pool);
ot_vb_blk ss_mpi_vb_get_blk(ot_vb_pool pool, td_u64 blk_size, const td_char *mmz_name);
td_s32 ss_mpi_vb_release_blk(ot_vb_blk vb_blk);
ot_vb_blk ss_mpi_vb_insert_buf_to_ext_pool(ot_vb_pool pool, td_phys_addr_t phys_addr, td_u64 size, td_bool is_filled);
td_s32 ss_mpi_vb_delete_buf_from_ext_pool(ot_vb_blk block, td_s32 milli_sec);
ot_vb_blk ss_mpi_vb_phys_addr_to_handle(td_phys_addr_t phys_addr);
td_phys_addr_t ss_mpi_vb_handle_to_phys_addr(ot_vb_blk vb_blk);
ot_vb_pool ss_mpi_vb_handle_to_pool_id(ot_vb_blk vb_blk);
td_s32 ss_mpi_vb_inquire_user_cnt(ot_vb_blk vb_blk);
td_s32 ss_mpi_vb_get_supplement_addr(ot_vb_blk vb_blk, ot_video_supplement *supplement);
td_s32 ss_mpi_vb_set_supplement_cfg(const ot_vb_supplement_cfg *supplement_cfg);
td_s32 ss_mpi_vb_get_supplement_cfg(ot_vb_supplement_cfg *supplement_cfg);
td_s32 ss_mpi_vb_init(td_void);
td_s32 ss_mpi_vb_exit(td_void);
td_s32 ss_mpi_vb_set_cfg(const ot_vb_cfg *vb_cfg);
td_s32 ss_mpi_vb_get_cfg(ot_vb_cfg *vb_cfg);
td_s32 ss_mpi_vb_get_pool_info(ot_vb_pool pool, ot_vb_pool_info *pool_info);
td_s32 ss_mpi_vb_init_mod_common_pool(ot_vb_uid vb_uid);
td_s32 ss_mpi_vb_exit_mod_common_pool(ot_vb_uid vb_uid);
td_s32 ss_mpi_vb_set_mod_pool_cfg(ot_vb_uid vb_uid, const ot_vb_cfg *vb_cfg);
td_s32 ss_mpi_vb_get_mod_pool_cfg(ot_vb_uid vb_uid, ot_vb_cfg *vb_cfg);
#ifdef __cplusplus
}
#endif
#endif /* __SS_MPI_VB_H__ */