NVIDIA DRIVE OS Linux SDK API Reference

6.0.3 Release
nvmedia_image_nvscibuf.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2019-2022, 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_IMAGE_NVSCIBUF_H
17 #define NVMEDIA_IMAGE_NVSCIBUF_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 #include "nvscibuf.h"
24 #include "nvmedia_core.h"
25 #include "nvmedia_surface.h"
26 #include "nvmedia_image.h"
27 
39 #define NVMEDIA_IMAGENVSCIBUF_VERSION_MAJOR (1u)
40 
41 #define NVMEDIA_IMAGENVSCIBUF_VERSION_MINOR (2u)
42 
62 
77 void
79 
148  const NvMediaDevice *device,
149  NvMediaSurfaceType type,
150  const NvMediaSurfAllocAttr *attrs,
151  uint32_t numAttrs,
152  uint64_t flags,
153  NvSciBufAttrList attr_h
154 );
155 
192  NvMediaDevice *device,
193  NvSciBufObj nvscibufObject,
194  NvMediaImage **nvmImage
195 );
196 
215  NvMediaVersion *version
216 );
217 
218 /*
219  * \defgroup history_nvmedia_image_nvscibuf History
220  * Provides change history for the NvMedia NvSciBuf API.
221  *
222  * \section history_nvmedia_image_nvscibuf Version History
223  *
224  * <b> Version 1.0 </b> March 08, 2019
225  * - Initial release
226  *
227  * <b> Version 1.1 </b> August 30, 2021
228  * - Update doxygen comments for all APIs to have Thread safety information and API Group information
229  *
230  * <b> Version 1.2 </b> December 29, 2021
231  * - Update doxygen comments to correct reference to deprecated NvSciBuf attribute key
232  *
233  */
236 #ifdef __cplusplus
237 } /* extern "C" */
238 #endif
239 
240 #endif /* NVMEDIA_IMAGE_NVSCIBUF_H */
nvmedia_core.h
NVIDIA Media Interface: Core
nvmedia_surface.h
NVIDIA Media Interface: Surface Handling
NvMediaImageNvSciBufGetVersion
NvMediaStatus NvMediaImageNvSciBufGetVersion(NvMediaVersion *version)
Returns version information for the NvMediaImage NvSciBuf API.
NvMediaImageCreateFromNvSciBuf
NvMediaStatus NvMediaImageCreateFromNvSciBuf(NvMediaDevice *device, NvSciBufObj nvscibufObject, NvMediaImage **nvmImage)
Creates an NvMediaImage from an NvSciBufObj.
NvMediaImageNvSciBufDeinit
void NvMediaImageNvSciBufDeinit(void)
De-initializes the NvMediaImage NvSciBuf API.
NvSciBufObj
struct NvSciBufObjRefRec * NvSciBufObj
A memory object is a container holding the reconciled NvSciBufAttrList defining constraints of the bu...
Definition: nvscibuf.h:2578
NvMediaDevice
struct NvMediaDevice NvMediaDevice
An opaque handle representing an NvMediaDevice object.
Definition: tvmr/include/nvmedia_core.h:366
NvMediaVersion
Holds NvMedia version information.
Definition: tvmr/include/nvmedia_core.h:237
NvMediaImageNvSciBufInit
NvMediaStatus NvMediaImageNvSciBufInit(void)
Initializes the NvMediaImage NvSciBuf API.
NvMediaImageRec
Holds a handle representing image objects.
Definition: nvmedia_image.h:71
NvMediaImageFillNvSciBufAttrs
NvMediaStatus NvMediaImageFillNvSciBufAttrs(const NvMediaDevice *device, NvMediaSurfaceType type, const NvMediaSurfAllocAttr *attrs, uint32_t numAttrs, uint64_t flags, NvSciBufAttrList attr_h)
Fills the NvSciBuf (see nvscibuf.h) attributes which can be used to allocate an image.
NvMediaSurfaceType
#define NvMediaSurfaceType
Defines the set of NvMedia surface types.
Definition: nvmedia_surface.h:568
NvMediaStatus
NvMediaStatus
Defines all possible error codes.
Definition: tvmr/include/nvmedia_core.h:180
NvSciBufAttrList
struct NvSciBufAttrListRec * NvSciBufAttrList
A container constituting an attribute list which contains.
Definition: nvscibuf.h:2596
NvMediaSurfAllocAttr
Holds NvMedia Surface allocation attributes.
Definition: nvmedia_surface.h:558
nvscibuf.h
NVIDIA Software Communications Interface (SCI) : NvSciBuf
nvmedia_image.h
NVIDIA Media Interface: Image Processing