|
NVIDIA DRIVE OS Linux SDK API Reference
|
5.2.0 Release For Test and Development only
|
Go to the documentation of this file.
19 #ifndef INCLUDED_NVSCIBUF_H
20 #define INCLUDED_NVSCIBUF_H
28 #if defined(__cplusplus)
116 #if (NV_IS_SAFETY == 0)
148 #if defined(__cplusplus)
160 #if (NV_IS_SAFETY == 0)
216 #if (NV_IS_SAFETY == 0)
246 #define NV_SCI_BUF_TENSOR_MAX_DIMS 8u
253 #define NV_SCI_BUF_IMAGE_MAX_PLANES 3u
255 #if (NV_IS_SAFETY == 0)
259 #define NV_SCI_BUF_PYRAMID_MAX_LEVELS 10u
265 #define NVSCIBUF_EXPORT_DESC_SIZE 32u
272 #define NV_SCI_BUF_ATTRKEY_BIT_COUNT 16u
279 #define NV_SCI_BUF_DATATYPE_BIT_COUNT 10u
284 #define NV_SCI_BUF_ATTR_KEY_TYPE_PUBLIC 0u
289 #define NV_SCI_BUF_KEYTYPE_BIT_START \
290 (NV_SCI_BUF_DATATYPE_BIT_COUNT + NV_SCI_BUF_ATTRKEY_BIT_COUNT)
295 #define NV_SCI_BUF_GENERAL_ATTR_KEY_START \
296 (NV_SCI_BUF_ATTR_KEY_TYPE_PUBLIC << NV_SCI_BUF_KEYTYPE_BIT_START) | \
297 (NvSciBufType_General << NV_SCI_BUF_ATTRKEY_BIT_COUNT)
302 #define NV_SCI_BUF_RAW_BUF_ATTR_KEY_START \
303 (NV_SCI_BUF_ATTR_KEY_TYPE_PUBLIC << NV_SCI_BUF_KEYTYPE_BIT_START) | \
304 (NvSciBufType_RawBuffer << NV_SCI_BUF_ATTRKEY_BIT_COUNT)
309 #define NV_SCI_BUF_IMAGE_ATTR_KEY_START \
310 (NV_SCI_BUF_ATTR_KEY_TYPE_PUBLIC << NV_SCI_BUF_KEYTYPE_BIT_START) | \
311 (NvSciBufType_Image << NV_SCI_BUF_ATTRKEY_BIT_COUNT)
313 #if (NV_IS_SAFETY == 0)
317 #define NV_SCI_BUF_PYRAMID_ATTR_KEY_START \
318 (NV_SCI_BUF_ATTR_KEY_TYPE_PUBLIC << NV_SCI_BUF_KEYTYPE_BIT_START) | \
319 (NvSciBufType_Pyramid << NV_SCI_BUF_ATTRKEY_BIT_COUNT)
324 #define NV_SCI_BUF_ARRAY_ATTR_KEY_START \
325 (NV_SCI_BUF_ATTR_KEY_TYPE_PUBLIC << NV_SCI_BUF_KEYTYPE_BIT_START) | \
326 (NvSciBufType_Array << NV_SCI_BUF_ATTRKEY_BIT_COUNT)
332 #define NV_SCI_BUF_TENSOR_ATTR_KEY_START \
333 (NV_SCI_BUF_ATTR_KEY_TYPE_PUBLIC << NV_SCI_BUF_KEYTYPE_BIT_START) | \
334 (NvSciBufType_Tensor << NV_SCI_BUF_ATTRKEY_BIT_COUNT)
874 #if (NV_IS_SAFETY == 0)
1476 #if (NV_IS_SAFETY == 0)
1509 #if (NV_IS_SAFETY == 0)
1532 #if (NV_IS_SAFETY == 0)
1613 size_t inputUnreconciledAttrListCount,
1632 bool* isReconciled);
1672 size_t unreconciledAttrListCount,
1673 bool* isReconcileListValid);
1728 #if (NV_IS_SAFETY == 0)
1750 #if (NV_IS_SAFETY == 0)
1768 size_t attrListCount,
2023 void** attrListAndObjDesc,
2024 size_t* attrListAndObjDescSize);
2080 const void* attrListAndObjDesc,
2081 size_t attrListAndObjDescSize,
2100 void* attrListAndObjDescBuf);
2207 size_t unreconciledAttrListCount,
2273 const void* descBuf,
2333 const void* descBuf,
2336 size_t inputUnreconciledAttrListCount,
2419 bool* isCompatible);
2427 #if defined(__cplusplus)
2429 #endif // __cplusplus
@ NvSciBufImageAttrKey_BottomPadding
Specifies the bottom padding for the NvSciBufType_Image.
@ NvSciColor_X4Bayer12CCCC
#define NV_SCI_BUF_GENERAL_ATTR_KEY_START
Indicates starting value of NvSciBufAttrKey for NvSciBufType_General.
#define NV_SCI_BUF_IMAGE_MAX_PLANES
Maximum number of planes supported by NvSciBufType_Image.
@ NvSciColor_X6Bayer10GRBG
NvSciError NvSciBufObjFlushCpuCacheRange(NvSciBufObj bufObj, uint64_t offset, uint64_t len)
Flushes the given len bytes at starting offset in the buffer referenced by the NvSciBufObj.
@ NvSciBufRawBufferAttrKey_Align
Specifies the alignment requirement of NvSciBufType_RawBuffer.
NvSciError NvSciBufObjDupWithReducePerm(NvSciBufObj bufObj, NvSciBufAttrValAccessPerm reducedPerm, NvSciBufObj *newBufObj)
Creates a new memory object containing a buffer handle representing new NvSciBufAttrValAccessPerm to ...
@ NvSciColor_Signed_X6Bayer10CCCC
NvSciError
Return/error codes for all NvSci functions.
@ NvSciBufPyramidAttrKey_Alignment
Alignment attribute of pyramid.
@ NvSciColor_X4Bayer12BCCR
NvSciError NvSciBufAttrListClone(NvSciBufAttrList origAttrList, NvSciBufAttrList *newAttrList)
Clones an unreconciled/reconciled NvSciBufAttrList.
@ NvSciColor_X12Bayer20CCRC
#define NV_SCI_BUF_PYRAMID_ATTR_KEY_START
Indicates the starting value of NvSciBufAttrKey for NvSciBufType_Pyramid.
NvSciError NvSciBufAttrListGetAttrs(NvSciBufAttrList attrList, NvSciBufAttrKeyValuePair *pairArray, size_t pairCount)
Returns an array of NvSciBufAttrKeyValuePair for a given set of NvSciBufAttrKey(s).
@ NvSciBufImageAttrKey_PlaneSecondFieldOffset
Indicates the offset of the start of the second field, 0 for progressive valid for interlaced.
#define NV_SCI_BUF_ATTRKEY_BIT_COUNT
Global constant to indicate number of bits used for defining an attribute key.
@ NvSciBufImageAttrKey_PlaneBaseAddrAlign
Specifies the NvSciBufType_Image plane base address alignment.
Defines GPU ID structure.
@ NvSciColor_A16B16G16R16
@ NvSciColorStd_REC601_ER
@ NvSciBufGeneralAttrKey_VidMem_GpuId
GPU ID of dGPU from which vidmem allocation should come when multiple GPUs are sharing buffer.
@ NvSciColor_FloatISP_Bayer16CCCR
@ NvSciBufType_UpperBound
size_t NvSciBufAttrListGetSlotCount(NvSciBufAttrList attrList)
Returns the slot count per NvSciBufAttrKey in a NvSciBufAttrList.
void NvSciBufObjFree(NvSciBufObj bufObj)
Removes reference to the Memory object by destroying the NvSciBufObj.
@ NvSciColor_X12Bayer20CRCC
@ NvSciColor_X12Bayer20GBRG
NvSciError NvSciBufObjIpcExport(NvSciBufObj bufObj, NvSciBufAttrValAccessPerm accPerm, NvSciIpcEndpoint ipcEndpoint, NvSciBufObjIpcExportDescriptor *exportData)
Exports the NvSciBufObj into an NvSciIpc-transferable object export descriptor.
@ NvSciBufImageAttrKey_PlaneAlignedHeight
Indicates the aligned height of the NvSciBufType_Image plane.
NvSciError NvSciBufAttrListAppendUnreconciled(const NvSciBufAttrList inputUnreconciledAttrListArray[], size_t inputUnreconciledAttrListCount, NvSciBufAttrList *newUnreconciledAttrList)
Appends multiple unreconciled NvSciBufAttrList(s) together, forming a single new unreconciled NvSciBu...
@ NvSciColor_X4Bayer12RCCB
NvSciError NvSciBufObjAlloc(NvSciBufAttrList reconciledAttrList, NvSciBufObj *bufObj)
Allocates a buffer that satisfies all the constraints defined by the attributes of the specified reco...
NvSciError NvSciBufCheckVersionCompatibility(uint32_t majorVer, uint32_t minorVer, bool *isCompatible)
Checks if loaded NvSciBuf library version is compatible with NvSciBuf library version with which elem...
@ NvSciColorStd_REC709_SR
@ NvSciBufTensorAttrKey_BaseAddrAlign
Attribute providing base address alignment requirements for tensor.
@ NvSciColor_X4Bayer12RGGB
@ NvSciColor_Signed_X4Bayer12CCCC
@ NvSciBufTensorAttrKey_SizePerDim
Specifies the size of each tensor dimension.
@ NvSciColor_X12Bayer20CRBC
@ NvSciBufTensorAttrKey_NumDims
Specifies the number of tensor dimensions.
NvSciBufAttrKey key
NvSciBufAttrKey for which value needs to be set/retrieved.
#define NV_SCI_BUF_RAW_BUF_ATTR_KEY_START
Indicates starting value of NvSciBufAttrKey for NvSciBufType_RawBuffer.
@ NvSciBufPyramidAttrKey_NumLevels
Specifies the number of levels of images in a pyramid.
@ NvSciColor_A16Y16U16V16
@ NvSciBufScan_InterlaceType
@ NvSciColor_X12Bayer20RCCB
@ NvSciBufImage_BlockLinearType
@ NvSciColorStd_REC2020_ER
#define NV_SCI_BUF_KEYTYPE_BIT_START
Global constant to specify the start-bit of attribute key type.
NvSciError NvSciBufObjGetCpuPtr(NvSciBufObj bufObj, void **ptr)
Gets the CPU virtual address (VA) of the read/write buffer referenced by the NvSciBufObj.
@ NvSciBufTensorAttrKey_Size
Size of buffer allocated for 'N' tensors.
NvSciError NvSciBufAttrListReconcile(const NvSciBufAttrList inputArray[], size_t inputCount, NvSciBufAttrList *newReconciledAttrList, NvSciBufAttrList *newConflictList)
Reconciles the given unreconciled NvSciBufAttrList(s) into a new reconciled NvSciBufAttrList.
@ NvSciColor_FloatISP_Bayer16CRCC
@ NvSciBufAttrKey_LowerBound
Specifies the lower bound value to check for a valid NvSciBuf attribute key type.
static const uint32_t NvSciBufMinorVersion
NvSciBuf API Minor version number.
@ NvSciBufScan_ProgressiveType
@ NvSciColor_X12Bayer20RGGB
@ NvSciBufTensorAttrKey_DataType
Specifies the tensor data type.
@ NvSciBufArrayAttrKey_Alignment
Indicates the base alignment of a NvSciBufType_Array.
NvSciError NvSciBufAttrListSlotGetAttrs(NvSciBufAttrList attrList, size_t slotIndex, NvSciBufAttrKeyValuePair *pairArray, size_t pairCount)
Returns an array of NvSciBufAttrKeyValuePair(s) from a multi-slot unreconciled NvSciBufAttrList at th...
@ NvSciColor_FloatISP_Bayer16GRBG
NvSciError NvSciBufAttrListIpcImportReconciled(NvSciBufModule module, NvSciIpcEndpoint ipcEndpoint, const void *descBuf, size_t descLen, const NvSciBufAttrList inputUnreconciledAttrListArray[], size_t inputUnreconciledAttrListCount, NvSciBufAttrList *importedReconciledAttrList)
Translates an exported reconciled NvSciBufAttrList descriptor (potentially received from any process)...
@ NvSciBufImageAttrKey_PlaneOffset
Indicates the starting offset of the NvSciBufType_Image plane.
@ NvSciColor_X2Bayer14CCCC
struct NvSciBufObjRefRec * NvSciBufObj
A memory object is a container holding the reconciled NvSciBufAttrList defining constraints of the bu...
@ NvSciBufGeneralAttrKey_GpuId
GpuIDs of the GPUs in the system that will access the buffer.
@ NvSciColor_Signed_X2Bayer14CCCC
@ NvSciBufGeneralAttrKey_CpuNeedSwCacheCoherency
Indicates whether the CPU is required to flush before reads and after writes.
@ NvSciBufImageAttrKey_ImageCount
Attribute to specify number of NvSciBufType_Image(s) for which buffer should be allocated.
@ NvSciBufImageAttrKey_PlaneAlignedSize
Indicates the aligned size of the NvSciBufType_Image plane.
@ NvSciColor_X4Bayer12CBRC
@ NvSciBufAccessPerm_Auto
Usage of Auto permissions is restricted only for export, ! import APIs and shouldn't be used to set v...
@ NvSciBufImageAttrKey_VprFlag
Specifies the VPR flag for the NvSciBufType_Image.
NvSciError NvSciBufAttrListIpcExportUnreconciled(const NvSciBufAttrList unreconciledAttrListArray[], size_t unreconciledAttrListCount, NvSciIpcEndpoint ipcEndpoint, void **descBuf, size_t *descLen)
Transforms the input unreconciled NvSciBufAttrList(s) to an exportable unreconciled NvSciBufAttrList ...
@ NvSciColor_Signed_X12Bayer20GBRG
@ NvSciBufArrayAttrKey_Size
Indicates the total size of a NvSciBufType_Array.
@ NvSciColor_FloatISP_Bayer16CCRC
@ NvSciColorStd_YcCbcCrc_ER
NvSciBufAttrValAccessPerm
Defines buffer access permissions for NvSciBufObj.
NvSciError NvSciBufAttrListCreate(NvSciBufModule module, NvSciBufAttrList *newAttrList)
Creates a new, single slot, unreconciled NvSciBufAttrList associated with the input NvSciBufModule wi...
@ NvSciBufImageAttrKey_ScanType
void NvSciBufModuleClose(NvSciBufModule module)
Releases the NvSciBufModule obtained through an earlier call to NvSciBufModuleOpen().
#define NVSCIBUF_EXPORT_DESC_SIZE
Indicates the size of export descriptor.
NvSciError NvSciBufAttrListValidateReconciled(NvSciBufAttrList reconciledAttrList, const NvSciBufAttrList unreconciledAttrListArray[], size_t unreconciledAttrListCount, bool *isReconcileListValid)
Validates a reconciled NvSciBufAttrList against a set of unreconciled NvSciBufAttrList(s).
@ NvSciColor_FloatISP_Bayer16BGGR
@ NvSciColor_X4Bayer12BGGR
@ NvSciColor_Float_A16B16G16R16
@ NvSciColor_Signed_X12Bayer20CCCC
@ NvSciColor_X2Bayer14BGGR
@ NvSciBufAccessPerm_ReadWrite
size_t len
Length of the value in bytes.
@ NvSciBufImageAttrKey_Size
Output size of the NvSciBufType_Image after successful reconciliation.
NvSciError NvSciBufObjDup(NvSciBufObj bufObj, NvSciBufObj *dupObj)
Creates a new NvSciBufObj holding reference to the same Memory object to which input NvSciBufObj hold...
@ NvSciColorStd_REC2020_RGB
NvSciBufAttrValColorStd
Defines the image color standard for NvSciBufType_Image.
@ NvSciColor_X12Bayer20BCCR
NvSciError NvSciBufAttrListIpcImportUnreconciled(NvSciBufModule module, NvSciIpcEndpoint ipcEndpoint, const void *descBuf, size_t descLen, NvSciBufAttrList *importedUnreconciledAttrList)
Translates an exported unreconciled NvSciBufAttrList descriptor (potentially received from any proces...
@ NvSciColor_X6Bayer10RGGB
@ NvSciBufTensorAttrKey_AlignmentPerDim
Specifies the alignment constraints per tensor dimension.
@ NvSciBufGeneralAttrKey_NeedCpuAccess
Specifies if CPU access is required for the buffer.
NvSciError NvSciBufAttrListIsReconciled(NvSciBufAttrList attrList, bool *isReconciled)
Checks if the NvSciBufAttrList is reconciled.
@ NvSciColor_X4Bayer12GRBG
@ NvSciColor_Signed_Bayer16CCCC
@ NvSciBufGeneralAttrKey_Types
An array of all types that the buffer is expected to have.
@ NvSciBufPyramidAttrKey_Scale
Specifies the scaling factor by which each successive image in a pyramid must be scaled.
uint64_t NvSciIpcEndpoint
Handle to the NvSciIpc endpoint.
NvSciError NvSciBufObjIpcImport(NvSciIpcEndpoint ipcEndpoint, const NvSciBufObjIpcExportDescriptor *desc, NvSciBufAttrList reconciledAttrList, NvSciBufAttrValAccessPerm minPermissions, int64_t timeoutUs, NvSciBufObj *bufObj)
Creates the NvSciBufObj based on supplied object export descriptor and returns the NvSciBufObj.
NvSciBufType
Enum definitions of NvSciBuf datatypes.
NvSciError NvSciBufObjGetAttrList(NvSciBufObj bufObj, NvSciBufAttrList *bufAttrList)
Retrieves the reconciled NvSciBufAttrList whose attributes define the constraints of the allocated bu...
NVIDIA Software Communications Interface (SCI) : NvSci Inter-Process Communication
@ NvSciBufAccessPerm_Readonly
@ NvSciBufArrayAttrKey_DataType
Specifies the data type of a NvSciBufType_Array.
@ NvSciColor_FloatISP_Bayer16RGGB
@ NvSciColor_X12Bayer20CCCR
@ NvSciColorStd_REQ2020PQ_ER
#define NV_SCI_BUF_IMAGE_ATTR_KEY_START
Indicates the starting value of NvSciBufAttrKey for NvSciBufType_Image.
#define NV_SCI_BUF_ARRAY_ATTR_KEY_START
Indicates the starting value of NvSciBufAttrKey for NvSciBufType_Array.
NvSciBufAttrKey
Describes the NvSciBuf public attribute keys holding corresponding values specifying buffer constrain...
@ NvSciBufImageAttrKey_PlanePitch
Indicates the pitch of the NvSciBufType_Image plane.
NvSciError NvSciBufObjGetConstCpuPtr(NvSciBufObj bufObj, const void **ptr)
Gets the CPU virtual address (VA) of the read-only buffer referenced by the NvSciBufObj.
@ NvSciBufAttrKey_UpperBound
Specifies the maximum number of NvSciBuf attribute keys.
@ NvSciBufImageAttrKey_RightPadding
Specifies the right padding for the NvSciBufType_Image.
@ NvSciBufImageAttrKey_PlaneCount
Specifies the number of planes for NvSciBufType_Image.
NvSciError NvSciBufModuleOpen(NvSciBufModule *newModule)
Initializes and returns a new NvSciBufModule with no NvSciBufAttrLists, buffers, or NvSciBufObjs boun...
@ NvSciBufRawBufferAttrKey_Size
Specifies the size of the buffer to be allocated for NvSciBufType_RawBuffer.
@ NvSciColor_X6Bayer10GBRG
@ NvSciBufPyramidAttrKey_LevelSize
NvSciBuf allocates the total buffer size considering all levels in an image pyramid and returns an ar...
@ NvSciBufImageAttrKey_TopPadding
Specifies the top padding for the NvSciBufType_Image.
@ NvSciBufGeneralAttrKey_EnableCpuCache
Specifies whether to enable/disable CPU caching.
@ NvSciBufImageAttrKey_PlaneScanType
Specifies the NvSciBufType_Image scan type: Progressive or Interlaced.
@ NvSciColor_X2Bayer14GBRG
@ NvSciColor_X4Bayer12GBRG
@ NvSciColor_X6Bayer10BGGR
struct NvSciBufModuleRec * NvSciBufModule
top-level container for the following set of resources: NvSciBufAttrLists, buffers,...
This structure defines a key/value pair used to get or set the NvSciBufAttrKey(s) and their correspon...
struct NvSciBufAttrListRec * NvSciBufAttrList
A container constituting an attribute list which contains.
@ NvSciBufTensorAttrKey_StridesPerDim
Returns the stride value (in bytes) for each tensor dimension.
static const uint32_t NvSciBufMajorVersion
NvSciBuf API Major version number.
NvSciError NvSciBufAttrListSetAttrs(NvSciBufAttrList attrList, NvSciBufAttrKeyValuePair *pairArray, size_t pairCount)
Sets the values for NvSciBufAttrKey(s) in the NvSciBufAttrList.
@ NvSciBufImageAttrKey_LeftPadding
Specifies the left padding for the NvSciBufType_Image.
const void * value
Memory which contains the value corresponding to the key.
@ NvSciBufImageAttrKey_PlaneColorStd
Specifies a set of plane color standards.
NvSciBufAttrValImageScanType
Defines the image scan type for NvSciBufType_Image.
@ NvSciColorStd_SENSOR_RGBA
@ NvSciBufArrayAttrKey_Stride
Specifies the stride of each element in the NvSciBufType_Array.
NvSciBufAttrValDataType
Defines various numeric datatypes for NvSciBuf.
@ NvSciColor_X12Bayer20CBRC
@ NvSciColor_Signed_R16G16
@ NvSciColor_X4Bayer12CRBC
@ NvSciColor_X6Bayer10CCCC
@ NvSciColor_FloatISP_Bayer16RCCB
@ NvSciBufImageAttrKey_PlaneChannelCount
Indicates the channel count in the NvSciBufType_Image plane.
@ NvSciColor_FloatISP_Bayer16CCCC
@ NvSciColor_FloatISP_Bayer16GBRG
@ NvSciDataType_UpperBound
@ NvSciBufImageAttrKey_PlaneColorFormat
Specifies the color format of the NvSciBufType_Image plane.
@ NvSciColor_X12Bayer20BGGR
@ NvSciColor_X12Bayer20GRBG
@ NvSciColor_X4Bayer12CRCC
@ NvSciColorStd_REC601_SR
@ NvSciBufImageAttrKey_PlaneBitsPerPixel
Indicates the NvSciBufType_Image plane in bits per pixel.
@ NvSciColor_FloatISP_Bayer16CBRC
@ NvSciColor_X4Bayer12RCCC
#define NV_SCI_BUF_TENSOR_MAX_DIMS
Maximum number of dimensions supported by NvSciBufType_Tensor.
@ NvSciBufArrayAttrKey_Capacity
Specifies the NvSciBufType_Array capacity.
NvSciError NvSciBufAttrListReconcileAndObjAlloc(const NvSciBufAttrList attrListArray[], size_t attrListCount, NvSciBufObj *bufObj, NvSciBufAttrList *newConflictList)
Reconciles the input unreconciled NvSciBufAttrList(s) into a new reconciled NvSciBufAttrList and allo...
@ NvSciBufTensorAttrKey_PixelFormat
Attribute providing pixel format of the tensor.
@ NvSciBufGeneralAttrKey_RequiredPerm
Specifies buffer access permissions.
NvSciBufAttrValImageLayoutType
Defines the image layout type for NvSciBufType_Image.
NvSciError NvSciBufAttrListDebugDump(NvSciBufAttrList attrList, void **buf, size_t *len)
Allocates a buffer and then dumps the contents of the specified attribute list into the buffer.
NvSciError NvSciBufIpcImportAttrListAndObj(NvSciBufModule module, NvSciIpcEndpoint ipcEndpoint, const void *attrListAndObjDesc, size_t attrListAndObjDescSize, const NvSciBufAttrList attrList[], size_t count, NvSciBufAttrValAccessPerm minPermissions, int64_t timeoutUs, NvSciBufObj *bufObj)
This API is invoked by the importing process after it receives the object export descriptor sent by t...
void NvSciBufAttrListAndObjFreeDesc(void *attrListAndObjDescBuf)
Frees the descriptor used for exporting both NvSciBufAttrList and NvSciBufObj together.
void NvSciBufAttrListFree(NvSciBufAttrList attrList)
Frees the NvSciBufAttrList and removes its association with the NvSciBufModule with which it was crea...
@ NvSciColor_Signed_A16B16G16R16
@ NvSciBufImageAttrKey_PlaneHeight
Specifies the NvSciBufType_Image plane height in pixels.
@ NvSciColor_FloatISP_Bayer16CRBC
@ NvSciColor_X12Bayer20CCCC
@ NvSciColor_X4Bayer12CCCR
#define NV_SCI_BUF_DATATYPE_BIT_COUNT
Global constant to indicate number of bits used for defining NvSciBufType of an attribute key.
@ NvSciColor_X2Bayer14GRBG
@ NvSciColorStd_REC2020_SR
NvSciError NvSciBufIpcExportAttrListAndObj(NvSciBufObj bufObj, NvSciBufAttrValAccessPerm permissions, NvSciIpcEndpoint ipcEndpoint, void **attrListAndObjDesc, size_t *attrListAndObjDescSize)
Exports NvSciBufAttrList and NvSciBufObj into an NvSciIpc-transferable object export descriptor.
@ NvSciBufImageAttrKey_PlaneWidth
Specifies the NvSciBufType_Image plane width in pixels.
@ NvSciColorStd_YcCbcCrc_SR
NvSciBufAttrValColorFmt
Defines the image color formats for NvSciBufType_Image.
@ NvSciColor_X12Bayer20RCCC
@ NvSciBufImage_PitchLinearType
#define NV_SCI_BUF_ATTR_KEY_TYPE_PUBLIC
Global constant to indicate the attribute key type is public.
@ NvSciBufType_General
Reserved for General keys.
@ NvSciBufPyramidAttrKey_LevelOffset
NvSciBuf allocates the total buffer size considering all levels in an image pyramid and returns an ar...
@ NvSciBufAccessPerm_Invalid
NvSciError NvSciBufAttrListIpcExportReconciled(NvSciBufAttrList reconciledAttrList, NvSciIpcEndpoint ipcEndpoint, void **descBuf, size_t *descLen)
Transforms the reconciled NvSciBufAttrList to an exportable reconciled NvSciBufAttrList descriptor th...
@ NvSciBufGeneralAttrKey_ActualPerm
Specifies the buffer access permissions to the NvSciBufObj.
@ NvSciColor_FloatISP_Bayer16BCCR
@ NvSciBufImageAttrKey_PlaneDatatype
Indicates the data type of the NvSciBufType_Image plane.
Defines the exported form of NvSciBufObj intended to be shared across an NvSciIpc channel.
@ NvSciColor_X4Bayer12CCRC
@ NvSciBufImageAttrKey_Alignment
Output alignment of the NvSciBufType_Image after successful reconciliation.
@ NvSciColorStd_REC709_ER
@ NvSciColor_FloatISP_Bayer16RCCC
void NvSciBufAttrListFreeDesc(void *descBuf)
Frees the NvSciBuf exported NvSciBufAttrList descriptor.
#define NV_SCI_BUF_TENSOR_ATTR_KEY_START
Indicates the starting value of NvSciBufAttrKey for NvSciBufType_Tensor.
@ NvSciColor_X2Bayer14RGGB
@ NvSciBufImageAttrKey_Layout
Specifies the layout of NvSciBufType_Image: Block-linear or Pitch-linear.
#define NV_SCI_BUF_PYRAMID_MAX_LEVELS
Maximum number of levels supported by NvSciBufType_Pyramid.