导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    npu vip_init 问题

    V Series
    2
    2
    1310
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • S
      super0759 LV 5 最后由 编辑

      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
        );

      这两个头文件 ,一个需要初始化分配内存, 一个不需要 ?

      1 条回复 最后回复 回复 引用 分享 0
      • WhycanService
        WhycanService LV 8 最后由 编辑

        版本不一样,以新版本为准

        1 条回复 最后回复 回复 引用 分享 0
        • 1 / 1
        • First post
          Last post

        Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

        行为准则 | 用户协议 | 隐私权政策