npu vip_init 问题
-
1, openwrt\package\npu\viplite-driver\include\vip_lite.h
/*! \brief Initial VIP Hardware, VIP lite software environment and power on VIP hardware.- \details when vpmdENABLE_MULTIPLE_TASK set to 0,
This function should be only called once before using VIP hardware if.
when vpmdENABLE_MULTIPLE_TASK set to 1,
vip_init can be called multiple times, but should paired with vip_destroy.
vip_init should be called in every process.
only need call vip_init once in multi-thread. - VIP lite driver would construct some global variable for this call.Also
- it will reset VIP and initialize VIP hardware to a ready state to accept jobs.
- \return <tt>\ref vip_status_e </tt>
- \ingroup group_global
- \version 1.0
*/
VIP_API
vip_status_e vip_init(
vip_uint32_t video_mem_size
);
2, platform\allwinner\eyesee-mpp\middleware\sun8iw21\sample\sample_odet_demo\sdk\include\vip_lite.h
/*! \brief Initial VIP Hardware, VIP lite software environment and power on VIP hardware.
- \details when vpmdENABLE_MULTIPLE_TASK set to 0,
This function should be only called once before using VIP hardware if.
when vpmdENABLE_MULTIPLE_TASK set to 1,
vip_init can be called multiple times, but should paired with vip_destroy.
vip_init should be called in every process.
only need call vip_init once in multi-thread. - VIP lite driver would construct some global variable for this call.Also
- it will reset VIP and initialize VIP hardware to a ready state to accept jobs.
- \return <tt>\ref vip_status_e </tt>
- \ingroup group_global
- \version 1.0
*/
VIP_API
vip_status_e vip_init(
void
);
这两个头文件 ,一个需要初始化分配内存, 一个不需要 ?
- \details when vpmdENABLE_MULTIPLE_TASK set to 0,
-
版本不一样,以新版本为准
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号