Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    npu vip_init 问题

    V Series
    2
    2
    1262
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      super0759 LV 5 last edited by

      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 Reply Last reply Reply Quote Share 0
      • WhycanService
        WhycanService LV 8 last edited by

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

        1 Reply Last reply Reply Quote Share 0
        • 1 / 1
        • First post
          Last post

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

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