Loading [MathJax]/extensions/tex2jax.js
|
NVIDIA DRIVE OS Linux SDK API Reference
|
6.0.9 Release
|
Go to the documentation of this file.
19 #ifndef INCLUDED_NVSCIBUF_H
20 #define INCLUDED_NVSCIBUF_H
28 #if defined(__cplusplus)
34 #define PACK_BUF( __Declaration__ ) __Declaration__ __attribute__((packed))
36 #define PACK_BUF( __Declaration__ ) __pragma(pack(push, 1)) __Declaration__ __pragma(pack(pop))
167 #if defined(__cplusplus)
287 #define NV_SCI_BUF_TENSOR_MAX_DIMS 8u
294 #define NV_SCI_BUF_IMAGE_MAX_PLANES 3u
299 #define NV_SCI_BUF_PYRAMID_MAX_LEVELS 10u
304 #define NVSCIBUF_EXPORT_DESC_SIZE 32u
309 #define NV_SCI_BUF_PEER_INFO_MAX_NUMBER 128u
314 #define NV_SCI_BUF_PEER_INFO_SELF_SOCID 0xFFFFFFFFu
319 #define NV_SCI_BUF_PEER_INFO_SELF_VMID 0xFFFFFFFFu
325 #define NV_SCI_BUF_PEER_HW_ENGINE_MAX_NUMBER 128U
331 #define NV_SCI_BUF_MAX_GPUS 16
338 #define NV_SCI_BUF_ATTRKEY_BIT_COUNT 16u
345 #define NV_SCI_BUF_DATATYPE_BIT_COUNT 10u
350 #define NV_SCI_BUF_ATTR_KEY_TYPE_PUBLIC 0u
355 #define NV_SCI_BUF_KEYTYPE_BIT_START \
356 (NV_SCI_BUF_DATATYPE_BIT_COUNT + NV_SCI_BUF_ATTRKEY_BIT_COUNT)
361 #define NV_SCI_BUF_GENERAL_ATTR_KEY_START \
362 ((NV_SCI_BUF_ATTR_KEY_TYPE_PUBLIC << NV_SCI_BUF_KEYTYPE_BIT_START) | \
363 (NvSciBufType_General << NV_SCI_BUF_ATTRKEY_BIT_COUNT))
368 #define NV_SCI_BUF_RAW_BUF_ATTR_KEY_START \
369 ((NV_SCI_BUF_ATTR_KEY_TYPE_PUBLIC << NV_SCI_BUF_KEYTYPE_BIT_START) | \
370 (NvSciBufType_RawBuffer << NV_SCI_BUF_ATTRKEY_BIT_COUNT))
375 #define NV_SCI_BUF_IMAGE_ATTR_KEY_START \
376 ((NV_SCI_BUF_ATTR_KEY_TYPE_PUBLIC << NV_SCI_BUF_KEYTYPE_BIT_START) | \
377 (NvSciBufType_Image << NV_SCI_BUF_ATTRKEY_BIT_COUNT))
382 #define NV_SCI_BUF_PYRAMID_ATTR_KEY_START \
383 ((NV_SCI_BUF_ATTR_KEY_TYPE_PUBLIC << NV_SCI_BUF_KEYTYPE_BIT_START) | \
384 (NvSciBufType_Pyramid << NV_SCI_BUF_ATTRKEY_BIT_COUNT))
389 #define NV_SCI_BUF_ARRAY_ATTR_KEY_START \
390 ((NV_SCI_BUF_ATTR_KEY_TYPE_PUBLIC << NV_SCI_BUF_KEYTYPE_BIT_START) | \
391 (NvSciBufType_Array << NV_SCI_BUF_ATTRKEY_BIT_COUNT))
396 #define NV_SCI_BUF_TENSOR_ATTR_KEY_START \
397 ((NV_SCI_BUF_ATTR_KEY_TYPE_PUBLIC << NV_SCI_BUF_KEYTYPE_BIT_START) | \
398 (NvSciBufType_Tensor << NV_SCI_BUF_ATTRKEY_BIT_COUNT))
3044 }) NvSciBufPeerHwEngine;
3146 }) NvSciBufObjIpcExportDescriptor;
3161 }) NvSciBufPeerLocationInfo;
3462 #if (NV_IS_SAFETY == 0)
3522 #if (NV_IS_SAFETY == 0)
3552 #if (NV_IS_SAFETY == 0)
3696 size_t inputUnreconciledAttrListCount,
3732 bool* isReconciled);
3791 size_t unreconciledAttrListCount,
3792 bool* isReconcileListValid);
3864 #if (NV_IS_SAFETY == 0)
3893 #if (NV_IS_SAFETY == 0)
3930 size_t attrListCount,
4258 #if (NV_IS_SAFETY == 0)
4397 const uint32_t* dstPtrSizes,
4398 const uint32_t* dstPitches);
4513 const void** srcPtrs,
4514 const uint32_t* srcPtrSizes,
4515 const uint32_t* srcPitches);
4597 void** attrListAndObjDesc,
4598 size_t* attrListAndObjDescSize);
4695 const void* attrListAndObjDesc,
4696 size_t attrListAndObjDescSize,
4735 void* attrListAndObjDescBuf);
4801 NvSciBufObjIpcExportDescriptor* exportData);
4853 #if defined (BACKEND_RESMAN)
4854 #if (BACKEND_RESMAN)
4888 const NvSciBufObjIpcExportDescriptor* desc,
5016 size_t unreconciledAttrListCount,
5131 const void* descBuf,
5219 const void* descBuf,
5222 size_t inputUnreconciledAttrListCount,
5352 #if (NV_IS_SAFETY == 0)
5371 #if (NV_IS_SAFETY == 0)
5397 bool* isCompatible);
5403 #if (NV_IS_SAFETY == 0)
5497 const size_t pairCount);
5551 #if defined(__cplusplus)
5553 #endif // __cplusplus
@ NvSciBufImageAttrKey_BottomPadding
Specifies the bottom padding for the NvSciBufType_Image.
@ NvSciColor_X4Bayer12CCCC
@ NvSciColor_X2Bayer14BGGI_RGGI
#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.
@ NvSciSurfBPC_10
10 bits per component
@ 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 the new NvSciBufAttrValAccessPerm...
@ NvSciColor_Signed_X6Bayer10CCCC
NvSciError
Return/error codes for all NvSci functions.
@ NvSciColor_X6Bayer10GBIG_GRIG
@ NvSciBufPyramidAttrKey_Alignment
Alignment attribute of pyramid.
@ NvSciColor_X4Bayer12BCCR
bool cacheability
boolean value specifying cacheability preference.
@ NvSciSurfBPC_16
16 bits per component
@ NvSciBufImageAttrKey_SurfHeightBase
Specifies the Surface base height.
@ NvSciBufImageAttrKey_SurfComponentOrder
Specifies the NvSciSurfComponentOrder.
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).
@ NvSciSurfSampleType_444
4:4:4 subsampling
@ 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 for every plane in terms of an array.
NvSciError NvSciBufObjPutPixels(NvSciBufObj bufObj, const NvSciBufRect *rect, const void **srcPtrs, const uint32_t *srcPtrSizes, const uint32_t *srcPitches)
Writes pixels to the buffer represented by memory object pointed to by bufObj provided NvSciBufGenera...
Defines GPU ID structure.
#define NV_SCI_BUF_PEER_INFO_MAX_NUMBER
Maxium number of peer info supported.
@ NvSciColor_A16B16G16R16
@ NvSciColorStd_REC601_ER
@ NvSciSurfSampleType_400
4:0:0 subsampling
@ NvSciBufGeneralAttrKey_VidMem_GpuId
GPU ID of dGPU from which vidmem allocation should come when multiple GPUs are sharing buffer.
@ NvSciColor_FloatISP_Bayer16CCCR
#define PACK_BUF(__Declaration__)
@ NvSciBufType_UpperBound
size_t NvSciBufAttrListGetSlotCount(NvSciBufAttrList attrList)
Returns the slot count per NvSciBufAttrKey in a NvSciBufAttrList.
@ NvSciBufGeneralAttrKey_PeerHwEngineArray
An attribute indicating list of hardware engines which will access the allocated buffer on late attac...
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
Outputs the aligned height of every plane in terms of number of pixels.
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...
@ NvSciColor_X6Bayer10IGGB_IGGR
@ NvSciColorStd_REC709_SR
@ NvSciBufTensorAttrKey_BaseAddrAlign
Attribute providing base address alignment requirements for tensor.
@ NvSciColor_X4Bayer12GBIG_GRIG
@ NvSciColor_X4Bayer12RGGB
@ NvSciColor_Signed_X4Bayer12CCCC
@ NvSciBufTensorAttrKey_SizePerDim
Specifies the size of each tensor dimension.
@ NvSciColor_X12Bayer20CRBC
NvSciError NvSciBufObjAttachPeer(NvSciBufObj bufObj, const NvSciBufAttrList inputArray[], size_t inputCount)
Allows remote peer NvSciIpcEndpoint to gain access to already allocated NvSciBufObj.
@ NvSciBufImageAttrKey_SurfBPC
Specifies the NvSciBufSurfBPC.
NvSciBufCompressionType
an enum spcifying various GPU compression values supported by NvSciBuf
@ 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
Block linear layout format.
@ NvSciSurfMemLayout_Planar
Planar format.
NvSciBufSurfBPC
Bits Per Component.
@ NvSciBufGeneralAttrKey_EnableGpuCompression
Specifies whether to enable/disable GPU compression for the particular GPU.
@ NvSciColorStd_REC2020_ER
#define NV_SCI_BUF_KEYTYPE_BIT_START
Global constant to specify the start-bit of attribute key type.
@ NvSciBufPlatformName_LowerBound
#define NV_SCI_BUF_MAX_GPUS
Maximum number of GPUs that can share the NvSciBufObj.
NvSciError NvSciBufObjGetCpuPtr(NvSciBufObj bufObj, void **ptr)
Gets the CPU virtual address (VA) of the read/write buffer referenced by the NvSciBufObj.
@ NvSciBufTensorAttrKey_Size
Specifies the size of the NvSciBufType_Tensor NvSciBufObj with NvSciBufTensorAttrKey_NumDims tensor d...
@ NvSciBufImageAttrKey_SurfMemLayout
Specifies the NvSciBufSurfMemLayout.
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.
@ NvSciColor_X2Bayer14IGGR_IGGB
@ NvSciSurfBPC_14
14 bits per component
static const uint32_t NvSciBufMinorVersion
NvSciBuf API Minor version number.
@ NvSciBufScan_ProgressiveType
@ NvSciColor_X12Bayer20RGGB
@ NvSciBufTensorAttrKey_DataType
Specifies the tensor data type.
@ NvSciBufImageAttrKey_SurfColorStd
Specifies the NvSciBufAttrValColorStd applicable to all the surface's planes.
@ 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 input NvSciBufAttrList at the given slot index.
@ 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 from the first plane.
@ NvSciColor_X2Bayer14GBIG_GRIG
@ NvSciColor_X2Bayer14RGGI_BGGI
@ NvSciBufHwEngName_NVJPG
@ 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.
@ NvSciBufImageAttrKey_SurfType
Specifies the NvSciBufSurfType.
@ NvSciSurfSampleType_422R
4:2:2 (transposed) subsampling
Datatype specifying compression type needed for a particular GPU ID.
@ NvSciColor_Signed_X2Bayer14CCCC
@ NvSciBufGeneralAttrKey_CpuNeedSwCacheCoherency
Indicates whether the CPU is required to flush before reads and after writes.
NvSciBufSurfType
Surface types.
@ NvSciColor_X2Bayer14GIRG_GIBG
@ NvSciBufImageAttrKey_ImageCount
Attribute to specify number of NvSciBufType_Image(s) for which buffer should be allocated.
@ NvSciBufImageAttrKey_PlaneAlignedSize
Indicates the aligned size of every plane.
@ NvSciColor_Bayer16BGGI_RGGI
@ NvSciColor_X4Bayer12CBRC
@ NvSciColor_Bayer16RGGI_BGGI
@ NvSciBufAccessPerm_Auto
Usage of Auto permissions is restricted only for export, import APIs and shouldn't be used to set val...
@ 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
Specifies the size of the NvSciBufType_Array NvSciBufObj that the underlying buffer allocation satisf...
@ NvSciColor_X4Bayer12IGGB_IGGR
@ NvSciColor_FloatISP_Bayer16CCRC
@ NvSciColorStd_YcCbcCrc_ER
NvSciError NvSciBufObjGetMaxPerm(const NvSciBufObj bufObj, const NvSciIpcEndpoint ipcEndpoint, NvSciBufAttrValAccessPerm *accPerm)
Retrieve the NvSciBufAttrValAccessPerm of an NvSciBufObj for given NvSciIpcEndpoint.
@ NvSciColor_X4Bayer12RGGB_RJ
@ NvSciColor_X2Bayer14GIBG_GIRG
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 NvSciBufAttrListValidateReconciledAgainstAttrs(const NvSciBufAttrList reconciledAttrList, const NvSciBufAttrKeyValuePair *pairArray, const size_t pairCount)
Validate the reconciled NvSciBufAttrList against the set of all attributes that the user has set in t...
@ NvSciBufPlatformName_UpperBound
NvSciError NvSciBufAttrListValidateReconciled(NvSciBufAttrList reconciledAttrList, const NvSciBufAttrList unreconciledAttrListArray[], size_t unreconciledAttrListCount, bool *isReconcileListValid)
Validates a reconciled NvSciBufAttrList against a set of unreconciled NvSciBufAttrList(s).
@ NvSciColor_X4Bayer12GIBG_GIRG
NvSciBufSurfMemLayout
Memory type.
@ NvSciColor_FloatISP_Bayer16BGGR
@ NvSciBufPlatformName_Orin
Late attaching peer(s) runs on DRIVEOS Orin platform.
@ NvSciColor_X4Bayer12BGGR
@ NvSciColor_X4Bayer12GRIG_GBIG
@ NvSciColor_Float_A16B16G16R16
@ NvSciColor_Signed_X12Bayer20CCCC
NvSciBufPlatformName
Enum to identify the platform on which late attaching peer(s) is running.
@ NvSciColor_X2Bayer14BGGR
@ NvSciColor_Bayer16IGGB_IGGR
@ NvSciBufAccessPerm_ReadWrite
@ NvSciColor_X6Bayer10IGGR_IGGB
size_t len
Length of the value in bytes.
@ NvSciBufImageAttrKey_Size
Specifies the size of the NvSciBufType_Image NvSciBufObj that the underlying buffer allocation satisf...
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_X6Bayer10GIBG_GIRG
@ 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...
const struct NvSciBufObjRefRec * NvSciBufObjConst
A reference, that is not modifiable, to a particular Memory Object.
@ 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
@ NvSciSurfSampleType_420
4:2:0 subsampling
@ NvSciColor_Signed_Bayer16CCCC
@ NvSciBufGeneralAttrKey_Types
An array of all types that the buffer is expected to have.
@ NvSciSurfBPC_Layout_10_8_8
10:8:8 bits per component layout
uint64_t y1
Bottom Y co-ordinate.
@ NvSciBufPyramidAttrKey_Scale
Specifies the scaling factor by which each successive image in a pyramid must be scaled.
@ NvSciBufCompressionType_GenericCompressible
Enum to request all possible GPU compression including enabling PLC (Post L-2 Compression).
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 bound ...
NvSciBufType
Enum definitions of NvSciBuf datatypes.
NvSciBufSurfSampleType
Subsampling type.
NvSciError NvSciBufObjGetAttrList(NvSciBufObj bufObj, NvSciBufAttrList *bufAttrList)
Retrieves the reconciled NvSciBufAttrList whose attributes define the constraints of the allocated bu...
@ NvSciBufHwEngName_Invalid
NVIDIA Software Communications Interface (SCI) : NvSci Inter-Process Communication
@ NvSciBufCompressionType_None
Default value spcifying that GPU compression defaults to incompressible kind.
@ NvSciColor_Bayer16GIBG_GIRG
@ NvSciColor_X4Bayer12BGGI_RGGI
@ NvSciBufAccessPerm_Readonly
@ NvSciBufArrayAttrKey_DataType
Specifies the data type of a NvSciBufType_Array.
@ NvSciColor_Bayer16GIRG_GIBG
NvSciError NvSciBufObjValidate(NvSciBufObj bufObj)
Validates the NvSciBufObj satisfies the constraints of the NvSciBufAttrList that it is associated wit...
@ NvSciColor_FloatISP_Bayer16RGGB
@ NvSciColor_X12Bayer20CCCR
@ NvSciBufHwEngName_NVDEC
@ NvSciColor_Bayer16IGGR_IGGB
@ NvSciBufGeneralAttrKey_PeerLocationInfo
An attribute indicating location information of late attaching peer(s) which are going to gain access...
@ NvSciColorStd_REQ2020PQ_ER
@ NvSciSurfBPC_12
12 bits per component
@ NvSciBufHwEngName_MSENC
uint64_t NvSciIpcEndpoint
Handle to the NvSciIpc endpoint.
#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.
@ NvSciSurfSampleType_422
4:2:2 subsampling
NvSciBufAttrKey
Describes the NvSciBuf public attribute keys holding corresponding values specifying buffer constrain...
@ NvSciBufImageAttrKey_PlanePitch
Outputs the pitch (aka width in bytes) for every 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.
@ NvSciSurfComponentOrder_YVU
YVU component order.
@ NvSciBufImageAttrKey_PlaneCount
Specifies the number of planes for NvSciBufType_Image.
uint64_t x1
Right X co-ordinate.
NvSciError NvSciBufModuleOpen(NvSciBufModule *newModule)
Initializes and returns a new NvSciBufModule with no NvSciBufAttrLists, buffers, or NvSciBufObjs boun...
@ NvSciSurfBPC_Layout_16_8_8
16:8:8 bits per component layout
@ NvSciBufRawBufferAttrKey_Size
Specifies the size of the NvSciBufType_RawBuffer NvSciBufObj that the underlying buffer allocation sa...
@ NvSciColor_X6Bayer10GBRG
#define NV_SCI_BUF_PEER_INFO_SELF_SOCID
Self SOC ID value if the late peer is from same SoC.
@ NvSciBufPyramidAttrKey_LevelSize
Buffer size per pyramid level.
@ 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_X4Bayer12GIRG_GIBG
@ NvSciColor_X2Bayer14GBRG
@ NvSciColor_X4Bayer12GBRG
@ NvSciColor_X6Bayer10BGGR
struct NvSciBufModuleRec * NvSciBufModule
top-level container for the following set of resources: NvSciBufAttrLists, memory objects,...
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.
@ NvSciColor_X6Bayer10BGGI_RGGI
@ 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.
@ NvSciColor_X6Bayer10GRIG_GBIG
@ NvSciBufImageAttrKey_LeftPadding
Specifies the left padding for the NvSciBufType_Image.
NvSciRmGpuId gpuId
GPU ID for which cache preference need to be specified.
const void * value
Pointer to the value corresponding to the attribute.
@ NvSciBufImageAttrKey_PlaneColorStd
Specifies a set of plane color standards.
NvSciBufAttrValImageScanType
Defines the image scan type for NvSciBufType_Image.
@ NvSciColorStd_SENSOR_RGBA
Datatype specifying GPU cacheability preference for a particular GPU ID.
@ NvSciBufArrayAttrKey_Stride
Specifies the stride of each element in the NvSciBufType_Array.
@ NvSciBufPlatformName_PG199
Late attaching peer(s) runs on x86 PG199 platform.
@ NvSciSurfMemLayout_MaxValid
NvSciError NvSciBufObjGetPixels(NvSciBufObj bufObj, const NvSciBufRect *rect, void **dstPtrs, const uint32_t *dstPtrSizes, const uint32_t *dstPitches)
Gets pixels from the buffer represented by memory object pointed to by bufObj provided NvSciBufGenera...
NvSciBufAttrValDataType
Defines various numeric datatypes for NvSciBuf.
uint64_t x0
Left X co-ordinate.
@ NvSciColor_X12Bayer20CBRC
@ NvSciColor_Signed_R16G16
@ NvSciColor_X4Bayer12CRBC
@ NvSciColor_X6Bayer10CCCC
@ NvSciSurfMemLayout_Packed
Packed format.
@ NvSciColor_FloatISP_Bayer16RCCB
@ NvSciBufImageAttrKey_PlaneChannelCount
Outputs number of channels per plane.
@ NvSciColor_FloatISP_Bayer16CCCC
@ NvSciColor_FloatISP_Bayer16GBRG
@ NvSciColor_Bayer16GBIG_GRIG
@ NvSciDataType_UpperBound
@ NvSciBufImageAttrKey_PlaneColorFormat
Specifies the NvSciBufAttrValColorFmt of the NvSciBufType_Image plane.
@ NvSciColor_X12Bayer20BGGR
@ NvSciColor_X12Bayer20GRBG
NvSciRmGpuId gpuId
GPU ID for which compression needs to be specified.
@ NvSciColor_X4Bayer12CRCC
@ NvSciColorStd_REC601_SR
@ NvSciBufImageAttrKey_PlaneBitsPerPixel
Outputs number of bits per pixel corresponding to the NvSciBufAttrValColorFmt for each plane specifie...
@ 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.
NvSciBufHwEngName
Enum to identify hardware engines.
@ NvSciColor_X4Bayer12RGGI_BGGI
@ NvSciBufGeneralAttrKey_RequiredPerm
Specifies buffer access permissions.
@ NvSciColor_X6Bayer10GIRG_GIBG
NvSciBufAttrValImageLayoutType
Defines the image layout type for NvSciBufType_Image.
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.
@ NvSciBufPlatformName_PG189
Late attaching peer(s) runs on x86 PG189 platform.
@ NvSciBufHwEngName_Display
void NvSciBufAttrListFree(NvSciBufAttrList attrList)
Frees the NvSciBufAttrList and removes its association with the NvSciBufModule with which it was crea...
@ NvSciColor_Signed_A16B16G16R16
@ NvSciSurfComponentOrder_MaxValid
@ NvSciSurfType_RGBA
RGBA surface.
@ NvSciBufImageAttrKey_PlaneHeight
Specifies the NvSciBufType_Image plane height in number of pixels.
@ NvSciColor_FloatISP_Bayer16CRBC
@ NvSciBufGeneralAttrKey_EnableGpuCache
An array of NvSciBufAttrValGpuCache[] specifying GPU cacheability requirements.
uint64_t y0
Top Y co-ordinate.
@ NvSciColor_X12Bayer20CCCC
@ NvSciColor_X2Bayer14IGGB_IGGR
@ 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.
@ NvSciSurfComponentOrder_YUV
YUV component order.
@ NvSciBufImageAttrKey_PlaneWidth
Specifies the NvSciBufType_Image plane width in pixels.
@ NvSciColorStd_YcCbcCrc_SR
@ NvSciSurfMemLayout_SemiPlanar
Semi-planar format.
Datatype specifying the surface co-ordinates for NvSciBufObjGetPixels / NvSciBufObjPutPixels function...
NvSciBufAttrValColorFmt
Defines the image color formats for NvSciBufType_Image.
@ NvSciColor_X12Bayer20RCCC
@ NvSciBufGeneralAttrKey_GpuSwNeedCacheCoherency
An attribute indicating whether application needs to perform GPU cache maintenance before read and af...
@ NvSciColor_V8_U8
Note : NvSciColor_V8_U8 will be deprecated in future release.
#define NV_SCI_BUF_PEER_INFO_SELF_VMID
Self VM ID value if the late peer is from same VM.
@ NvSciSurfType_RAW
RAW surface.
NvSciBufCompressionType compressionType
Type of compression.
@ NvSciBufImageAttrKey_SurfSampleType
Specifies the NvSciBufSurfSampleType.
@ NvSciBufImage_PitchLinearType
Pitch linear layout format.
#define NV_SCI_BUF_PEER_HW_ENGINE_MAX_NUMBER
Global Constant to define maximum number of NvSciBufPeerHwEngine supported.
#define NV_SCI_BUF_ATTR_KEY_TYPE_PUBLIC
Global constant to indicate the attribute key type is public.
@ NvSciSurfType_YUV
YUV surface.
@ NvSciBufType_General
Reserved for General keys.
@ NvSciColor_Bayer16GRIG_GBIG
@ NvSciBufPyramidAttrKey_LevelOffset
Buffer offset per level.
@ NvSciColor_X6Bayer10RGGI_BGGI
@ NvSciSurfSampleType_MaxValid
@ NvSciBufAccessPerm_Invalid
@ NvSciColor_U8_V8
Note : NvSciColor_U8_V8 will be deprecated in future release.
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
Outputs the NvSciBufAttrValDataType of each plane based on the NvSciBufAttrValColorFmt provided in Nv...
@ NvSciColor_X4Bayer12CCRC
@ NvSciBufImageAttrKey_Alignment
Output alignment of the NvSciBufType_Image after successful reconciliation.
@ NvSciColorStd_REC709_ER
@ NvSciBufImageAttrKey_SurfWidthBase
Specifies the surface base width.
@ NvSciColor_FloatISP_Bayer16RCCC
@ NvSciSurfComponentOrder_Luma
Luma-only ordering.
@ NvSciColor_X2Bayer14GRIG_GBIG
NvSciBufSurfComponentOrder
Component ordering.
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.
@ NvSciSurfBPC_8
8 bits per component
@ NvSciColor_X2Bayer14RGGB
@ NvSciBufImageAttrKey_Layout
Specifies the layout of NvSciBufType_Image: Block-linear or Pitch-linear.
@ NvSciColor_X4Bayer12IGGR_IGGB
#define NV_SCI_BUF_PYRAMID_MAX_LEVELS
Maximum number of levels supported by NvSciBufType_Pyramid.
人人超碰97caoporen国产