NVIDIA DRIVE OS Linux SDK API Reference

5.2.6 Release
For Test and Development only
nvmedia_tensor_nvscibuf.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019 - 2020, NVIDIA CORPORATION. All rights reserved. All
3  * information contained herein is proprietary and confidential to NVIDIA
4  * Corporation. Any use, reproduction, or disclosure without the written
5  * permission of NVIDIA Corporation is prohibited.
6  */
7 
16 #ifndef NVMEDIA_TENSOR_NVSCIBUF_H
17 #define NVMEDIA_TENSOR_NVSCIBUF_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 #include "nvscibuf.h"
24 #include "nvmedia_core.h"
25 #include "nvmedia_tensor.h"
26 
38 #define NVMEDIA_TENSOR_NVSCIBUF_VERSION_MAJOR (1u)
39 
40 #define NVMEDIA_TENSOR_NVSCIBUF_VERSION_MINOR (6u)
41 
54 
58 void
60 
92  const NvMediaDevice *device,
93  const NvMediaTensorAttr *attrs,
94  uint32_t numAttrs,
95  uint32_t flags,
96  NvSciBufAttrList attr_h
97 );
98 
128  NvMediaDevice *device,
129  NvSciBufObj nvSciBufObjInstance,
130  NvMediaTensor **nvmTensor
131 );
132 
145  NvMediaVersion *version
146 );
147 
148 /*
149  * \defgroup history_nvmedia_tensor_nvscibuf History
150  * Provides change history for the NvMedia NvSciBuf API.
151  *
152  * \section history_nvmedia_tensor_nvscibuf Version History
153  *
154  * <b> Version 1.0 </b> Jan 03, 2019
155  * - Initial release
156  *
157  * <b> Version 1.1 </b> Jan 03, 2019
158  * - Adding const in NvMediaTensorFillNvSciBufAttrs
159  * in support of Misra Rule 8.13
160  * - Changing param name in NvMediaTensorCreateFromNvSciBuf
161  * in support of Misra rule 8.3
162  *
163  * <b> Version 1.2 </b> Jan 15, 2020
164  * - Fixed the comments for NvMediaTensorCreateFromNvSciBuf
165  *
166  * <b> Version 1.3 </b> Feb 13, 2020
167  * - Updated the comments for NvMediaTensorFillNvSciBufAttrs
168  *
169  * <b> Version 1.4 </b> Mar 25, 2020
170  * - Updated doxygen comments for functions
171  *
172  * <b> Version 1.5 </b> Apr 29, 2020
173  * - Updated doxygen comments for NvMediaTensorCreateFromNvSciBuf
174  * and NvMediaTensorFillNvSciBufAttrs
175  *
176  * <b> Version 1.6 </b> July 8, 2020
177  * - Updated doxygen comments for NvMediaTensorFillNvSciBufAttrs
178  *
179  */
182 #ifdef __cplusplus
183 }; /* extern "C" */
184 #endif
185 
186 #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.
NvSciBufObj
struct NvSciBufObjRefRec * NvSciBufObj
A memory object is a container holding the reconciled NvSciBufAttrList defining constraints of the bu...
Definition: nvscibuf.h:1563
NvMediaDevice
struct NvMediaDevice NvMediaDevice
An opaque handle representing an NvMediaDevice object.
Definition: nvmedia_core.h:348
nvmedia_tensor.h
NVIDIA Media Interface: Tensor Processing
NvMediaVersion
Holds NvMedia version information.
Definition: nvmedia_core.h:237
NvMediaTensor
struct NvMediaTensor NvMediaTensor
A handle representing tensor objects.
Definition: nvmedia_tensor.h:81
nvmedia_core.h
NVIDIA Media Interface: Core
NvMediaStatus
NvMediaStatus
Defines all possible error codes.
Definition: nvmedia_core.h:180
NvSciBufAttrList
struct NvSciBufAttrListRec * NvSciBufAttrList
A container constituting an attribute list which contains.
Definition: nvscibuf.h:1581
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:145