NVIDIA DRIVE OS Linux SDK API Reference

5.1.15.0 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 (3u)
41 
54 
61 void
63 
94  const NvMediaDevice *device,
95  const NvMediaTensorAttr *attrs,
96  uint32_t numAttrs,
97  uint32_t flags,
98  NvSciBufAttrList attr_h
99 );
100 
129  NvMediaDevice *device,
130  NvSciBufObj nvSciBufObjInstance,
131  NvMediaTensor **nvmTensor
132 );
133 
146  NvMediaVersion *version
147 );
148 
149 /*
150  * \defgroup history_nvmedia_tensor_nvscibuf History
151  * Provides change history for the NvMedia NvSciBuf API.
152  *
153  * \section history_nvmedia_tensor_nvscibuf Version History
154  *
155  * <b> Version 1.0 </b> Jan 03, 2019
156  * - Initial release
157  *
158  * <b> Version 1.1 </b> Jan 03, 2019
159  * - Adding const in NvMediaTensorFillNvSciBufAttrs
160  * in support of Misra Rule 8.13
161  * - Changing param name in NvMediaTensorCreateFromNvSciBuf
162  * in support of Misra rule 8.3
163  *
164  * <b> Version 1.2 </b> Jan 15, 2020
165  * - Fixed the comments for NvMediaTensorCreateFromNvSciBuf
166  *
167  * <b> Version 1.3 </b> Feb 13, 2020
168  * - Updated the comments for NvMediaTensorFillNvSciBufAttrs
169  */
172 #ifdef __cplusplus
173 }; /* extern "C" */
174 #endif
175 
176 #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:1290
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:69
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:1303
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:126