Loading [MathJax]/extensions/tex2jax.js
  • <xmp id="om0om">
  • <table id="om0om"><noscript id="om0om"></noscript></table>
  • NVIDIA DRIVE OS Linux SDK API Reference

    6.0.10.0 Release
    All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
    nvmedia_tensor_nvscibuf.h
    Go to the documentation of this file.
    1 /*
    2  * SPDX-FileCopyrightText: Copyright (c) 2019-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
    3  * SPDX-License-Identifier: LicenseRef-NvidiaProprietary
    4  *
    5  * NVIDIA CORPORATION, its affiliates and licensors retain all intellectual
    6  * property and proprietary rights in and to this material, related
    7  * documentation and any modifications thereto. Any use, reproduction,
    8  * disclosure or distribution of this material and related documentation
    9  * without an express license agreement from NVIDIA CORPORATION or
    10  * its affiliates is strictly prohibited.
    11  */
    12 
    21 #ifndef NVMEDIA_TENSOR_NVSCIBUF_H
    22 #define NVMEDIA_TENSOR_NVSCIBUF_H
    23 
    24 #ifdef __cplusplus
    25 extern "C" {
    26 #endif
    27 
    28 #include "nvscibuf.h"
    29 #include "nvmedia_core.h"
    30 #include "nvmedia_tensor.h"
    31 
    43 #define NVMEDIA_TENSOR_NVSCIBUF_VERSION_MAJOR (1u)
    44 
    45 #define NVMEDIA_TENSOR_NVSCIBUF_VERSION_MINOR (7u)
    46 
    47 #define NVMEDIA_TENSOR_NVSCIBUF_VERSION_PATCH (0u)
    48 
    80 
    102 void
    104 
    163  const NvMediaDevice *device,
    164  const NvMediaTensorAttr *attrs,
    165  uint32_t numAttrs,
    166  uint32_t flags,
    167  NvSciBufAttrList attr_h
    168 );
    169 
    217  NvMediaDevice *device,
    218  NvSciBufObj nvSciBufObjInstance,
    219  NvMediaTensor **nvmTensor
    220 );
    221 
    253  NvMediaVersion *version
    254 );
    255 
    256 /*
    257  * \defgroup history_nvmedia_tensor_nvscibuf History
    258  * Provides change history for the NvMedia NvSciBuf API.
    259  *
    260  * \section history_nvmedia_tensor_nvscibuf Version History
    261  *
    262  * <b> Version 1.0 </b> Jan 03, 2019
    263  * - Initial release
    264  *
    265  * <b> Version 1.1 </b> Jan 03, 2019
    266  * - Adding const in NvMediaTensorFillNvSciBufAttrs
    267  * in support of Misra Rule 8.13
    268  * - Changing param name in NvMediaTensorCreateFromNvSciBuf
    269  * in support of Misra rule 8.3
    270  *
    271  * <b> Version 1.2 </b> Jan 15, 2020
    272  * - Fixed the comments for NvMediaTensorCreateFromNvSciBuf
    273  *
    274  * <b> Version 1.3 </b> Feb 13, 2020
    275  * - Updated the comments for NvMediaTensorFillNvSciBufAttrs
    276  *
    277  * <b> Version 1.4 </b> Mar 25, 2020
    278  * - Updated doxygen comments for functions
    279  *
    280  * <b> Version 1.5 </b> Apr 29, 2020
    281  * - Updated doxygen comments for NvMediaTensorCreateFromNvSciBuf
    282  * and NvMediaTensorFillNvSciBufAttrs
    283  *
    284  * <b> Version 1.6 </b> July 8, 2020
    285  * - Updated doxygen comments for NvMediaTensorFillNvSciBufAttrs
    286  *
    287  * <b> Version 1.7 </b> August 30, 2021
    288  * - Update doxygen comments for all APIs to have Thread safety information and API Group information
    289  *
    290  * <b> Version 1.7.0 </b> May 10, 2022
    291  * - Added patch version number macro: NVMEDIA_TENSOR_INTERNAL_VERSION_PATCH.
    292  *
    293  */
    296 #ifdef __cplusplus
    297 } /* extern "C" */
    298 #endif
    299 
    300 #endif /* NVMEDIA_TENSOR_NVSCIBUF_H */
    NvMediaTensorCreateFromNvSciBuf
    NvMediaStatus NvMediaTensorCreateFromNvSciBuf(NvMediaDevice *device, NvSciBufObj nvSciBufObjInstance, NvMediaTensor **nvmTensor)
    Creates NvMediaTensor from an NvSciBuf handle.
    NvMediaTensorFillNvSciBufAttrs
    NvMediaStatus NvMediaTensorFillNvSciBufAttrs(const NvMediaDevice *device, const NvMediaTensorAttr *attrs, uint32_t numAttrs, uint32_t flags, NvSciBufAttrList attr_h)
    Fills the NvSciBuf attributes used to allocate a tensor.
    NvMediaTensorNvSciBufGetVersion
    NvMediaStatus NvMediaTensorNvSciBufGetVersion(NvMediaVersion *version)
    Returns version information for the NvMediaTensor NvSciBuf API.
    NvMediaTensorNvSciBufInit
    NvMediaStatus NvMediaTensorNvSciBufInit(void)
    Initializes the NvMediaTensor NvSciBuf APIs.
    NvMediaStatus
    NvMediaStatus
    Defines all possible error codes.
    Definition: nvmedia_core.h:104
    NvSciBufObj
    struct NvSciBufObjRefRec * NvSciBufObj
    A memory object is a container holding the reconciled NvSciBufAttrList defining constraints of the bu...
    Definition: nvscibuf.h:3102
    nvmedia_tensor.h
    NVIDIA Media Interface: Tensor Processing
    NvMediaVersion
    Holds NvMedia version information.
    Definition: nvmedia_core.h:164
    NvMediaTensor
    struct NvMediaTensor NvMediaTensor
    A handle representing tensor objects.
    Definition: nvmedia_tensor.h:88
    nvmedia_core.h
    NVIDIA Media Interface: Core
    NvMediaDevice
    void NvMediaDevice
    An opaque handle representing an NvMediaDevice object.
    Definition: nvmedia_core.h:254
    NvSciBufAttrList
    struct NvSciBufAttrListRec * NvSciBufAttrList
    A container constituting an attribute list which contains.
    Definition: nvscibuf.h:3120
    nvscibuf.h
    NVIDIA Software Communications Interface (SCI) : NvSciBuf
    NvMediaTensorNvSciBufDeinit
    void NvMediaTensorNvSciBufDeinit(void)
    De-initializes the NvMediaTensor NvSciBuf APIs.
    NvMediaTensorAttr
    Holds tensor creation attributes.
    Definition: nvmedia_tensor.h:155
    人人超碰97caoporen国产