NVIDIA DRIVE OS Linux SDK API Reference

6.0.8 Release
nvscistream_api.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020-2023 NVIDIA Corporation. All rights reserved.
3  *
4  * NVIDIA Corporation and its licensors retain all intellectual property and
5  * proprietary rights in and to this software, related documentation and any
6  * modifications thereto. Any use, reproduction, disclosure or distribution
7  * of this software and related documentation without an express license
8  * agreement from NVIDIA Corporation is strictly prohibited.
9  */
19 #ifndef NVSCISTREAM_API_H
20 #define NVSCISTREAM_API_H
21 
22 #ifdef __cplusplus
23 #include <cstdint>
24 #else
25 #include <stdint.h>
26 #endif
27 #if defined(NV_QNX)
28 #include "nvdvms_client.h"
29 #include "nvdvms_types.h"
30 #endif
31 #include "nvscierror.h"
32 #include "nvscibuf.h"
33 #include "nvscisync.h"
34 #include "nvsciipc.h"
35 #include "nvscievent.h"
36 #include "nvscistream_types.h"
37 
38 #ifdef __cplusplus
39 extern "C" {
40 #endif
41 
205  NvSciStreamBlock const upstream,
206  NvSciStreamBlock const downstream
207 );
208 
262  NvSciStreamBlock const pool,
263  NvSciStreamBlock *const producer
264 );
265 
266 
325  NvSciStreamBlock const pool,
326  bool const crcValidate,
327  NvSciStreamBlock *const producer
328 );
329 
383  NvSciStreamBlock const queue,
384  NvSciStreamBlock *const consumer
385 );
386 
387 
449  NvSciStreamBlock const queue,
450  bool const crcValidate,
451  NvSciStreamBlock *const consumer
452 );
453 
454 
503  uint32_t const numPackets,
504  NvSciStreamBlock *const pool
505 );
506 
557  NvSciStreamBlock *const queue
558 );
559 
609  NvSciStreamBlock *const queue
610 );
611 
661  uint32_t const outputCount,
662  NvSciStreamBlock *const multicast
663 );
664 
720  NvSciIpcEndpoint const ipcEndpoint,
721  NvSciSyncModule const syncModule,
722  NvSciBufModule const bufModule,
723  NvSciStreamBlock *const ipc
724 );
725 
805  NvSciIpcEndpoint const ipcEndpoint,
806  NvSciSyncModule const syncModule,
807  NvSciBufModule const bufModule,
808  NvSciStreamBlock const queue,
809  NvSciStreamBlock *const ipc
810 );
811 
867  NvSciIpcEndpoint const ipcEndpoint,
868  NvSciSyncModule const syncModule,
869  NvSciBufModule const bufModule,
870  NvSciStreamBlock *const ipc
871 );
872 
946  NvSciIpcEndpoint const ipcEndpoint,
947  NvSciSyncModule const syncModule,
948  NvSciBufModule const bufModule,
949  NvSciStreamBlock const pool,
950  NvSciStreamBlock *const ipc
951 );
952 
999  uint32_t const maxPackets,
1000  NvSciStreamBlock *const limiter
1001 );
1002 
1003 
1050  NvSciSyncModule const syncModule,
1051  NvSciStreamBlock *const returnSync
1052 );
1053 
1099  NvSciSyncModule const syncModule,
1100  NvSciStreamBlock *const presentSync
1101 );
1102 
1163  NvSciStreamBlock const block,
1164  int64_t const timeoutUsec,
1165  NvSciStreamEventType *const eventType
1166 );
1167 
1204 NvSciError
1206  NvSciStreamBlock const block,
1207  NvSciError* const status
1208 );
1209 
1248 NvSciError
1250  NvSciStreamBlock const block,
1251  uint32_t* const numConsumers
1252 );
1253 
1304 NvSciError
1306  NvSciStreamBlock const block,
1307  NvSciStreamSetup const setupType,
1308  bool const completed
1309 );
1310 
1370 NvSciError
1372  NvSciStreamBlock const block,
1373  uint32_t const userType,
1374  NvSciBufAttrList const bufAttrList
1375 );
1376 
1435 NvSciError
1437  NvSciStreamBlock const block,
1438  NvSciStreamBlockType const queryBlockType,
1439  uint32_t* const numElements
1440 );
1441 
1510 NvSciError
1512  NvSciStreamBlock const block,
1513  NvSciStreamBlockType const queryBlockType,
1514  uint32_t const elemIndex,
1515  uint32_t* const userType,
1516  NvSciBufAttrList* const bufAttrList
1517 );
1518 
1569 NvSciError
1571  NvSciStreamBlock const pool,
1572  uint32_t const userType,
1573  uint32_t const consumerIndex
1574 );
1575 
1626 NvSciError
1628  NvSciStreamBlock const block,
1629  uint32_t const elemIndex,
1630  bool const used
1631 );
1632 
1683  NvSciStreamBlock const pool,
1684  NvSciStreamCookie const cookie,
1685  NvSciStreamPacket *const handle
1686 );
1687 
1730  NvSciStreamBlock const pool,
1731  NvSciStreamPacket const handle,
1732  uint32_t const index,
1733  NvSciBufObj const bufObj
1734 );
1735 
1770 NvSciError
1772  NvSciStreamBlock const pool,
1773  NvSciStreamPacket const handle
1774 );
1775 
1814 NvSciError
1816  NvSciStreamBlock const pool,
1817  NvSciStreamPacket const handle
1818 );
1819 
1859 NvSciError
1861  NvSciStreamBlock const block,
1862  NvSciStreamPacket* const handle
1863 );
1864 
1908 NvSciError
1910  NvSciStreamBlock const block,
1911  NvSciStreamPacket const handle,
1912  uint32_t const elemIndex,
1913  NvSciBufObj* const bufObj
1914 );
1915 
1954 NvSciError
1956  NvSciStreamBlock const block,
1957  NvSciStreamCookie* const cookie
1958 );
1959 
2005 NvSciError
2007  NvSciStreamBlock const block,
2008  NvSciStreamPacket const handle,
2009  NvSciStreamCookie const cookie,
2010  NvSciError const status
2011 );
2012 
2048 NvSciError
2050  NvSciStreamBlock const pool,
2051  NvSciStreamPacket const handle,
2052  bool* const accepted
2053 );
2054 
2096 NvSciError
2098  NvSciStreamBlock const pool,
2099  NvSciStreamPacket const handle,
2100  NvSciStreamBlockType const queryBlockType,
2101  uint32_t const queryBlockIndex,
2102  NvSciError* const status
2103 );
2104 
2150 NvSciError
2152  NvSciStreamBlock const block,
2153  uint32_t const elemIndex,
2154  NvSciSyncAttrList const waitSyncAttrList
2155 );
2156 
2204 NvSciError
2206  NvSciStreamBlock const block,
2207  uint32_t const elemIndex,
2208  NvSciSyncAttrList* const waitSyncAttrList
2209 );
2210 
2258 NvSciError
2260  NvSciStreamBlock const block,
2261  uint32_t const elemIndex,
2262  NvSciSyncObj const signalSyncObj
2263 );
2264 
2323 NvSciError
2325  NvSciStreamBlock const block,
2326  uint32_t const queryBlockIndex,
2327  uint32_t const elemIndex,
2328  NvSciSyncObj* const signalSyncObj
2329 );
2330 
2376  NvSciStreamBlock const producer,
2377  NvSciStreamCookie *const cookie
2378 );
2379 
2417  NvSciStreamBlock const producer,
2418  NvSciStreamPacket const handle
2419 );
2420 
2466  NvSciStreamBlock const consumer,
2467  NvSciStreamCookie *const cookie
2468 );
2469 
2507  NvSciStreamBlock const consumer,
2508  NvSciStreamPacket const handle
2509 );
2510 
2555 NvSciError
2557  NvSciStreamBlock const block,
2558  NvSciStreamPacket const handle,
2559  uint32_t const elemIndex,
2560  NvSciSyncFence const *const postfence
2561 );
2562 
2610 NvSciError
2612  NvSciStreamBlock const block,
2613  NvSciStreamPacket const handle,
2614  uint32_t const queryBlockIndex,
2615  uint32_t const elemIndex,
2616  NvSciSyncFence* const prefence
2617 );
2618 
2660 NvSciError
2662  NvSciStreamBlock const producer,
2663  uint32_t const consumerIndex,
2664  bool* const newConnected );
2665 
2713  NvSciStreamBlock const block
2714 );
2715 
2716 
2754  NvSciStreamBlock const block
2755 );
2756 
2791  NvSciStreamQueryableAttrib const attr,
2792  int32_t *const value
2793 );
2794 
2849  NvSciStreamBlock const block,
2850  NvSciEventService *const eventService,
2851  NvSciEventNotifier **const eventNotifier
2852 );
2853 
2923 NvSciError
2925  NvSciStreamBlock const block,
2926  NvSciEventService* const eventService,
2927  uint32_t* const notifierCount,
2928  NvSciEventNotifier** const eventNotifierArray
2929 );
2930 
2974 NvSciError
2976  NvSciStreamBlock const block,
2977  uint32_t const userType,
2978  uint32_t const dataSize,
2979  void const* const data);
2980 
3037 NvSciError
3039  NvSciStreamBlock const block,
3040  NvSciStreamBlockType const queryBlockType,
3041  uint32_t const queryBlockIndex,
3042  uint32_t const userType,
3043  uint32_t* const dataSize,
3044  void* const data);
3045 
3095 NvSciError
3097  NvSciStreamBlock const block,
3098  uint32_t const userType,
3099  uint32_t const dataSize,
3100  void const* const data,
3101  uint32_t* const crc);
3102 
3165 NvSciError
3167  NvSciStreamBlock const block,
3168  NvSciStreamBlockType const queryBlockType,
3169  uint32_t const queryBlockIndex,
3170  uint32_t const userType,
3171  uint32_t* const dataSize,
3172  void* const data,
3173  uint32_t* const crc);
3174 
3240 NvSciError
3242  NvSciStreamBlock const block,
3243  uint32_t const userType,
3244  NvSciBufAttrList const bufAttrList,
3245  uint32_t* const crc);
3246 
3321 NvSciError
3323  NvSciStreamBlock const block,
3324  NvSciStreamBlockType const queryBlockType,
3325  uint32_t const elemIndex,
3326  uint32_t* const userType,
3327  NvSciBufAttrList* const bufAttrList,
3328  uint32_t* const crc);
3329 
3377 NvSciError
3379  NvSciStreamBlock const pool,
3380  NvSciStreamPacket const handle,
3381  uint32_t const index,
3382  NvSciBufObj const bufObj,
3383  uint32_t* const crc);
3384 
3435 NvSciError
3437  NvSciStreamBlock const block,
3438  NvSciStreamPacket const handle,
3439  uint32_t const elemIndex,
3440  NvSciBufObj* const bufObj,
3441  size_t const crcCount,
3442  uint32_t* const crc);
3443 
3497 NvSciError
3499  NvSciStreamBlock const block,
3500  uint32_t const elemIndex,
3501  NvSciSyncObj const signalSyncObj,
3502  uint32_t* const crc);
3503 
3568 NvSciError
3570  NvSciStreamBlock const block,
3571  uint32_t const queryBlockIndex,
3572  uint32_t const elemIndex,
3573  NvSciSyncObj* const signalSyncObj,
3574  uint32_t* const crc);
3575 
3626 NvSciError
3628  NvSciStreamBlock const block,
3629  NvSciStreamPacket const handle,
3630  uint32_t const elemIndex,
3631  NvSciSyncFence const *const postfence,
3632  uint32_t* const crc);
3633 
3687 NvSciError
3689  NvSciStreamBlock const block,
3690  NvSciStreamPacket const handle,
3691  uint32_t const queryBlockIndex,
3692  uint32_t const elemIndex,
3693  NvSciSyncFence* const prefence,
3694  uint32_t* const crc);
3695 
3730 NvSciError
3732  NvSciStreamBlock const consumer,
3733  uint32_t* const index);
3734 
3778 NvSciError
3780  NvSciStreamBlock const block);
3781 
3782 #ifdef __cplusplus
3783 }
3784 #endif
3785 
3787 #endif /* NVSCISTREAM_API_H */
NvSciStreamBlockElementSignalObjSet
NvSciError NvSciStreamBlockElementSignalObjSet(NvSciStreamBlock const block, uint32_t const elemIndex, NvSciSyncObj const signalSyncObj)
Specifies block's NvSciSync object used to signal when it is done writing or reading a buffer referen...
NvSciError
NvSciError
Return/error codes for all NvSci functions.
Definition: nvscierror.h:45
nvscievent.h
NVIDIA Software Communications Interface (SCI) : NvSci Event Service
NvSciStreamPoolPacketDelete
NvSciError NvSciStreamPoolPacketDelete(NvSciStreamBlock const pool, NvSciStreamPacket const handle)
Removes a packet referenced by the given NvSciStreamPacket from the pool block referenced by the give...
NvSciStreamBlockPacketFenceGetWithCrc
NvSciError NvSciStreamBlockPacketFenceGetWithCrc(NvSciStreamBlock const block, NvSciStreamPacket const handle, uint32_t const queryBlockIndex, uint32_t const elemIndex, NvSciSyncFence *const prefence, uint32_t *const crc)
Retrieves the prefence which indicates when the the indexed opposing endpoint will be done operating ...
NvSciStreamPoolPacketCreate
NvSciError NvSciStreamPoolPacketCreate(NvSciStreamBlock const pool, NvSciStreamCookie const cookie, NvSciStreamPacket *const handle)
Creates a new packet and adds it to the pool block referenced by the given NvSciStreamBlock,...
NvSciStreamBlockPacketNewHandleGet
NvSciError NvSciStreamBlockPacketNewHandleGet(NvSciStreamBlock const block, NvSciStreamPacket *const handle)
In producer and consumer blocks, queries the handle of a newly defined packet.
NvSciStreamConsumerIndexGet
NvSciError NvSciStreamConsumerIndexGet(NvSciStreamBlock const consumer, uint32_t *const index)
Queries the index of the consumer block referenced by the given NvSciStreamBlock.
NvSciStreamConsumerPacketRelease
NvSciError NvSciStreamConsumerPacketRelease(NvSciStreamBlock const consumer, NvSciStreamPacket const handle)
Instructs the consumer referenced by consumer to release the packet referenced by handle into the str...
NvSciStreamBlock
uintptr_t NvSciStreamBlock
Handle to a block.
Definition: nvscistream_types.h:84
NvSciStreamIpcSrcCreate
NvSciError NvSciStreamIpcSrcCreate(NvSciIpcEndpoint const ipcEndpoint, NvSciSyncModule const syncModule, NvSciBufModule const bufModule, NvSciStreamBlock *const ipc)
Creates an instance of IpcSrc block and returns a NvSciStreamBlock referencing the created IpcSrc blo...
NvSciStreamBlockUserInfoGet
NvSciError NvSciStreamBlockUserInfoGet(NvSciStreamBlock const block, NvSciStreamBlockType const queryBlockType, uint32_t const queryBlockIndex, uint32_t const userType, uint32_t *const dataSize, void *const data)
Queries the user-defined information with userType in list of endpoint information at the block from ...
NvSciStreamBlockElementWaiterAttrSet
NvSciError NvSciStreamBlockElementWaiterAttrSet(NvSciStreamBlock const block, uint32_t const elemIndex, NvSciSyncAttrList const waitSyncAttrList)
Specifies block's NvSciSync requirements to be able to wait for sync objects provided by the opposing...
NvSciStreamBlockElementSignalObjSetWithCrc
NvSciError NvSciStreamBlockElementSignalObjSetWithCrc(NvSciStreamBlock const block, uint32_t const elemIndex, NvSciSyncObj const signalSyncObj, uint32_t *const crc)
Specifies block's NvSciSync object used to signal when it is done writing or reading a buffer referen...
NvSciStreamPoolPacketComplete
NvSciError NvSciStreamPoolPacketComplete(NvSciStreamBlock const pool, NvSciStreamPacket const handle)
Marks a packet as complete and sends it to the rest of the stream.
NvSciStreamAttributeQuery
NvSciError NvSciStreamAttributeQuery(NvSciStreamQueryableAttrib const attr, int32_t *const value)
Queries the value of one of the NvSciStreamQueryableAttrib.
NvSciStreamProducerPacketGet
NvSciError NvSciStreamProducerPacketGet(NvSciStreamBlock const producer, NvSciStreamCookie *const cookie)
Instructs the producer referenced by producer to retrieve a packet from the pool.
NvSciStreamBlockEventServiceSetup
NvSciError NvSciStreamBlockEventServiceSetup(NvSciStreamBlock const block, NvSciEventService *const eventService, NvSciEventNotifier **const eventNotifier)
Sets up the NvSciEventService on a block referenced by the given NvSciStreamBlock by creating an NvSc...
NvSciStreamPoolPacketInsertBufferWithCrc
NvSciError NvSciStreamPoolPacketInsertBufferWithCrc(NvSciStreamBlock const pool, NvSciStreamPacket const handle, uint32_t const index, NvSciBufObj const bufObj, uint32_t *const crc)
Registers an NvSciBufObj as the indexed element of the referenced NvSciStreamPacket owned by the pool...
NvSciStreamPacketSendSync
NvSciError NvSciStreamPacketSendSync(NvSciStreamBlock const block)
Enables the synchronous payload transfer during runtime.
NvSciStreamBlockElementAttrGet
NvSciError NvSciStreamBlockElementAttrGet(NvSciStreamBlock const block, NvSciStreamBlockType const queryBlockType, uint32_t const elemIndex, uint32_t *const userType, NvSciBufAttrList *const bufAttrList)
Queries the user-defined type and/or buffer attribute list for an entry, referenced by elemIndex,...
NvSciStreamBlockUserInfoGetWithCrc
NvSciError NvSciStreamBlockUserInfoGetWithCrc(NvSciStreamBlock const block, NvSciStreamBlockType const queryBlockType, uint32_t const queryBlockIndex, uint32_t const userType, uint32_t *const dataSize, void *const data, uint32_t *const crc)
Queries the user-defined information with userType in list of endpoint information at the block from ...
NvSciStreamLimiterCreate
NvSciError NvSciStreamLimiterCreate(uint32_t const maxPackets, NvSciStreamBlock *const limiter)
Creates an instance of Limiter block and returns a NvSciStreamBlock referencing the created Limiter b...
NvSciStreamBlockConsumerCountGet
NvSciError NvSciStreamBlockConsumerCountGet(NvSciStreamBlock const block, uint32_t *const numConsumers)
Queries the number of consumers downstream of the block referenced by the given NvSciStreamBlock (or ...
NvSciStreamConsumerPacketAcquire
NvSciError NvSciStreamConsumerPacketAcquire(NvSciStreamBlock const consumer, NvSciStreamCookie *const cookie)
Instructs the consumer referenced by consumer to retrieve a packet from the queue.
NvSciStreamFifoQueueCreate
NvSciError NvSciStreamFifoQueueCreate(NvSciStreamBlock *const queue)
Creates an instance of FIFO queue block and returns a NvSciStreamBlock referencing the created FIFO q...
NvSciStreamProducerCreate
NvSciError NvSciStreamProducerCreate(NvSciStreamBlock const pool, NvSciStreamBlock *const producer)
Creates an instance of producer block, associates the given pool referenced by the given NvSciStreamB...
NvSciStreamReturnSyncCreate
NvSciError NvSciStreamReturnSyncCreate(NvSciSyncModule const syncModule, NvSciStreamBlock *const returnSync)
Creates an instance of ReturnSync block and returns a NvSciStreamBlock referencing the created Return...
NvSciStreamStaticPoolCreate
NvSciError NvSciStreamStaticPoolCreate(uint32_t const numPackets, NvSciStreamBlock *const pool)
Creates an instance of static pool block and returns a NvSciStreamBlock referencing the created pool ...
NvSciSyncAttrList
struct NvSciSyncAttrListRec * NvSciSyncAttrList
A container constituting an NvSciSyncAttrList which contains:
Definition: nvscisync.h:323
NvSciStreamBlockDisconnect
NvSciError NvSciStreamBlockDisconnect(NvSciStreamBlock const block)
Disconnects an IpcSrc block referenced by the given NvSciStreamBlock.
NvSciBufObj
struct NvSciBufObjRefRec * NvSciBufObj
A memory object is a container holding the reconciled NvSciBufAttrList defining constraints of the bu...
Definition: nvscibuf.h:3102
NvSciEventNotifier
An abstract interface to notify event to event consumer and to register event handler of the event co...
Definition: nvscievent.h:432
NvSciStreamBlockPacketBufferGet
NvSciError NvSciStreamBlockPacketBufferGet(NvSciStreamBlock const block, NvSciStreamPacket const handle, uint32_t const elemIndex, NvSciBufObj *const bufObj)
In producer and consumer blocks, queries an indexed buffer from a packet.
nvscisync.h
NVIDIA Software Communications Interface (SCI) : NvSciSync
NvSciStreamQueryableAttrib
NvSciStreamQueryableAttrib
Defines NvSciStream attributes that are queryable.
Definition: nvscistream_types.h:175
NvSciStreamBlockSetupStatusSet
NvSciError NvSciStreamBlockSetupStatusSet(NvSciStreamBlock const block, NvSciStreamSetup const setupType, bool const completed)
Indicates a group of setup operations identified by setupType on block are complete.
NvSciStreamBlockElementAttrGetWithCrc
NvSciError NvSciStreamBlockElementAttrGetWithCrc(NvSciStreamBlock const block, NvSciStreamBlockType const queryBlockType, uint32_t const elemIndex, uint32_t *const userType, NvSciBufAttrList *const bufAttrList, uint32_t *const crc)
Queries the user-defined type and/or buffer attribute list for an entry, referenced by elemIndex,...
NvSciStreamBlockPacketFenceSet
NvSciError NvSciStreamBlockPacketFenceSet(NvSciStreamBlock const block, NvSciStreamPacket const handle, uint32_t const elemIndex, NvSciSyncFence const *const postfence)
Sets the postfence which indicates when the application controlling will be done operating on the ind...
NvSciStreamBlockInternalEventServiceSetup
NvSciError NvSciStreamBlockInternalEventServiceSetup(NvSciStreamBlock const block, NvSciEventService *const eventService, uint32_t *const notifierCount, NvSciEventNotifier **const eventNotifierArray)
Sets up the internal NvSciEventService on a block referenced by the given NvSciStreamBlock and return...
NvSciStreamMulticastCreate
NvSciError NvSciStreamMulticastCreate(uint32_t const outputCount, NvSciStreamBlock *const multicast)
Creates an instance of multicast block and returns a NvSciStreamBlock referencing the created multica...
NvSciStreamIpcSrcCreate2
NvSciError NvSciStreamIpcSrcCreate2(NvSciIpcEndpoint const ipcEndpoint, NvSciSyncModule const syncModule, NvSciBufModule const bufModule, NvSciStreamBlock const queue, NvSciStreamBlock *const ipc)
Creates an instance of IpcSrc or C2CSrc block and returns a NvSciStreamBlock referencing the created ...
NvSciStreamSetup
NvSciStreamSetup
Setup information will be broken into several distinct groups, ! with restrictions on when they can b...
Definition: nvscistream_types.h:204
NvSciStreamBlockElementSignalObjGetWithCrc
NvSciError NvSciStreamBlockElementSignalObjGetWithCrc(NvSciStreamBlock const block, uint32_t const queryBlockIndex, uint32_t const elemIndex, NvSciSyncObj *const signalSyncObj, uint32_t *const crc)
Retrieves an opposing endpoint's NvSciSync object which it uses to signal when it is done writing or ...
NvSciStreamNewConsumerGet
NvSciError NvSciStreamNewConsumerGet(NvSciStreamBlock const producer, uint32_t const consumerIndex, bool *const newConnected)
Queries whether the indexed consumer is a newly connected consumer.
nvsciipc.h
NVIDIA Software Communications Interface (SCI) : NvSci Inter-Process Communication
NvSciStreamBlockPacketStatusSet
NvSciError NvSciStreamBlockPacketStatusSet(NvSciStreamBlock const block, NvSciStreamPacket const handle, NvSciStreamCookie const cookie, NvSciError const status)
In producer and consumer blocks, either accepts a packet, providing a cookie to be used in subsequent...
NvSciStreamBlockUserInfoSetWithCrc
NvSciError NvSciStreamBlockUserInfoSetWithCrc(NvSciStreamBlock const block, uint32_t const userType, uint32_t const dataSize, void const *const data, uint32_t *const crc)
Provides user-defined information at the producer and consumer with the specified userType,...
NvSciStreamCookie
uintptr_t NvSciStreamCookie
Application assigned cookie for a NvSciStreamPacket.
Definition: nvscistream_types.h:92
NvSciIpcEndpoint
uint64_t NvSciIpcEndpoint
Handle to the NvSciIpc endpoint.
Definition: nvsciipc.h:322
NvSciStreamBlockElementCountGet
NvSciError NvSciStreamBlockElementCountGet(NvSciStreamBlock const block, NvSciStreamBlockType const queryBlockType, uint32_t *const numElements)
Queries the number of elements received at the block from the source identified by queryBlockType.
nvscistream_types.h
NVIDIA Software Communications Interface (SCI) : NvSciStream
NvSciStreamProducerPacketPresent
NvSciError NvSciStreamProducerPacketPresent(NvSciStreamBlock const producer, NvSciStreamPacket const handle)
Instructs the producer referenced by producer to insert the packet referenced by handle into the stre...
NvSciStreamBlockPacketFenceSetWithCrc
NvSciError NvSciStreamBlockPacketFenceSetWithCrc(NvSciStreamBlock const block, NvSciStreamPacket const handle, uint32_t const elemIndex, NvSciSyncFence const *const postfence, uint32_t *const crc)
Sets the postfence which indicates when the application controlling will be done operating on the ind...
NvSciStreamBlockElementWaiterAttrGet
NvSciError NvSciStreamBlockElementWaiterAttrGet(NvSciStreamBlock const block, uint32_t const elemIndex, NvSciSyncAttrList *const waitSyncAttrList)
Retrieves the opposing endpoints' NvSciSync requirements to be be able to wait for sync objects signa...
NvSciStreamBlockPacketFenceGet
NvSciError NvSciStreamBlockPacketFenceGet(NvSciStreamBlock const block, NvSciStreamPacket const handle, uint32_t const queryBlockIndex, uint32_t const elemIndex, NvSciSyncFence *const prefence)
Retrieves the prefence which indicates when the the indexed opposing endpoint will be done operating ...
NvSciStreamPacket
uintptr_t NvSciStreamPacket
NvSciStream assigned handle for a packet.
Definition: nvscistream_types.h:87
NvSciBufModule
struct NvSciBufModuleRec * NvSciBufModule
top-level container for the following set of resources: NvSciBufAttrLists, memory objects,...
Definition: nvscibuf.h:3061
NvSciBufAttrList
struct NvSciBufAttrListRec * NvSciBufAttrList
A container constituting an attribute list which contains.
Definition: nvscibuf.h:3120
NvSciStreamBlockElementAttrSet
NvSciError NvSciStreamBlockElementAttrSet(NvSciStreamBlock const block, uint32_t const userType, NvSciBufAttrList const bufAttrList)
Adds an element with the specified userType and bufAttrList to the list of elements defined by block.
NvSciStreamPresentSyncCreate
NvSciError NvSciStreamPresentSyncCreate(NvSciSyncModule const syncModule, NvSciStreamBlock *const presentSync)
Creates an instance of PresentSync block and returns a NvSciStreamBlock referencing the created Prese...
NvSciStreamIpcDstCreate
NvSciError NvSciStreamIpcDstCreate(NvSciIpcEndpoint const ipcEndpoint, NvSciSyncModule const syncModule, NvSciBufModule const bufModule, NvSciStreamBlock *const ipc)
Creates an instance of IpcDst block and returns a NvSciStreamBlock referencing the created IpcDst blo...
NvSciStreamMailboxQueueCreate
NvSciError NvSciStreamMailboxQueueCreate(NvSciStreamBlock *const queue)
Creates an instance of mailbox queue block and returns a NvSciStreamBlock referencing the created mai...
NvSciStreamBlockElementSignalObjGet
NvSciError NvSciStreamBlockElementSignalObjGet(NvSciStreamBlock const block, uint32_t const queryBlockIndex, uint32_t const elemIndex, NvSciSyncObj *const signalSyncObj)
Retrieves an opposing endpoint's NvSciSync object which it uses to signal when it is done writing or ...
NvSciSyncFence
Defines the opaque NvSciSyncFence.
Definition: nvscisync.h:249
NvSciStreamPoolPacketStatusValueGet
NvSciError NvSciStreamPoolPacketStatusValueGet(NvSciStreamBlock const pool, NvSciStreamPacket const handle, NvSciStreamBlockType const queryBlockType, uint32_t const queryBlockIndex, NvSciError *const status)
In pool, queries the status value for a given packet returned by a specified endpoint.
NvSciStreamBlockElementAttrSetWithCrc
NvSciError NvSciStreamBlockElementAttrSetWithCrc(NvSciStreamBlock const block, uint32_t const userType, NvSciBufAttrList const bufAttrList, uint32_t *const crc)
Adds an element with the specified userType and bufAttrList to the list of elements defined by block.
nvscibuf.h
NVIDIA Software Communications Interface (SCI) : NvSciBuf
NvSciStreamProducerCreate2
NvSciError NvSciStreamProducerCreate2(NvSciStreamBlock const pool, bool const crcValidate, NvSciStreamBlock *const producer)
Creates an instance of producer block, associates the given pool referenced by the given NvSciStreamB...
NvSciStreamConsumerCreate2
NvSciError NvSciStreamConsumerCreate2(NvSciStreamBlock const queue, bool const crcValidate, NvSciStreamBlock *const consumer)
Creates an instance of consumer block, associates the given queue block referenced by the given NvSci...
NvSciStreamPoolPacketStatusAcceptGet
NvSciError NvSciStreamPoolPacketStatusAcceptGet(NvSciStreamBlock const pool, NvSciStreamPacket const handle, bool *const accepted)
In pool, queries whether or not a packet has been accepted.
NvSciStreamEventType
NvSciStreamEventType
Defines event types for the blocks.
Definition: nvscistream_types.h:390
NvSciStreamBlockDelete
NvSciError NvSciStreamBlockDelete(NvSciStreamBlock const block)
Schedules a block referenced by the given NvSciStreamBlock for destruction, disconnecting the block i...
NvSciStreamBlockElementUsageSet
NvSciError NvSciStreamBlockElementUsageSet(NvSciStreamBlock const block, uint32_t const elemIndex, bool const used)
Indicates whether the entry at elemIndex in the list of allocated elements will be used by the block.
NvSciStreamBlockConnect
NvSciError NvSciStreamBlockConnect(NvSciStreamBlock const upstream, NvSciStreamBlock const downstream)
Establishes connection between two blocks referenced by the given NvSciStreamBlock(s).
NvSciStreamBlockPacketOldCookieGet
NvSciError NvSciStreamBlockPacketOldCookieGet(NvSciStreamBlock const block, NvSciStreamCookie *const cookie)
In producer and consumer blocks, queries the cookie of a recently deleted packet.
NvSciStreamBlockPacketBufferGetWithCrc
NvSciError NvSciStreamBlockPacketBufferGetWithCrc(NvSciStreamBlock const block, NvSciStreamPacket const handle, uint32_t const elemIndex, NvSciBufObj *const bufObj, size_t const crcCount, uint32_t *const crc)
In producer and consumer blocks, queries an indexed buffer from a packet.
NvSciSyncModule
struct NvSciSyncModuleRec * NvSciSyncModule
Represents an instance of the NvSciSyncModule.
Definition: nvscisync.h:204
NvSciStreamBlockEventQuery
NvSciError NvSciStreamBlockEventQuery(NvSciStreamBlock const block, int64_t const timeoutUsec, NvSciStreamEventType *const eventType)
Queries for the next event from block referenced by the given NvSciStreamBlock, optionally waiting wh...
nvscierror.h
NvSciStreamBlockErrorGet
NvSciError NvSciStreamBlockErrorGet(NvSciStreamBlock const block, NvSciError *const status)
Queries the error code for an error event.
NvSciStreamIpcDstCreate2
NvSciError NvSciStreamIpcDstCreate2(NvSciIpcEndpoint const ipcEndpoint, NvSciSyncModule const syncModule, NvSciBufModule const bufModule, NvSciStreamBlock const pool, NvSciStreamBlock *const ipc)
Creates an instance of IpcDst or C2CDst block and returns a NvSciStreamBlock referencing the created ...
NvSciStreamConsumerCreate
NvSciError NvSciStreamConsumerCreate(NvSciStreamBlock const queue, NvSciStreamBlock *const consumer)
Creates an instance of consumer block, associates the given queue block referenced by the given NvSci...
NvSciSyncObj
struct NvSciSyncObjRec * NvSciSyncObj
A Synchronization Object is a container holding the reconciled NvSciSyncAttrList defining constraints...
Definition: nvscisync.h:304
NvSciStreamPoolPacketInsertBuffer
NvSciError NvSciStreamPoolPacketInsertBuffer(NvSciStreamBlock const pool, NvSciStreamPacket const handle, uint32_t const index, NvSciBufObj const bufObj)
Registers an NvSciBufObj as the indexed element of the referenced NvSciStreamPacket owned by the pool...
NvSciStreamBlockType
NvSciStreamBlockType
Most queries on one block request information received from ! another block.
Definition: nvscistream_types.h:188
NvSciStreamBlockElementNotVisible
NvSciError NvSciStreamBlockElementNotVisible(NvSciStreamBlock const pool, uint32_t const userType, uint32_t const consumerIndex)
Indicates the entry with userType in the list of allocated elements will be visible to the consumer b...
NvSciStreamBlockUserInfoSet
NvSciError NvSciStreamBlockUserInfoSet(NvSciStreamBlock const block, uint32_t const userType, uint32_t const dataSize, void const *const data)
Provides user-defined information at the producer and consumer with the specified userType,...
NvSciEventService
An abstract interface for a program's event handling infrastructure.
Definition: nvscievent.h:278