|
|
NVIDIA DriveOS Linux SDK API Reference
|
7.2.5.0 Early Access Release
|
Go to the documentation of this file.
22 #ifndef NVSCISTREAM_API_H
23 #define NVSCISTREAM_API_H
34 #include "nvscierror.h"
346 bool const crcValidate,
497 bool const crcValidate,
563 uint32_t
const numPackets,
763 uint32_t
const outputCount,
1210 uint32_t
const maxPackets,
1411 int64_t
const timeoutUsec,
1461 NvSciError*
const status
1518 uint32_t*
const numConsumers
1593 bool const completed
1675 uint32_t
const userType,
1758 uint32_t*
const numElements
1850 uint32_t
const elemIndex,
1851 uint32_t*
const userType,
1927 uint32_t
const userType,
1928 uint32_t
const consumerIndex
1998 uint32_t
const elemIndex,
2135 uint32_t
const index,
2383 uint32_t
const elemIndex,
2514 NvSciError
const status
2573 bool*
const accepted
2641 uint32_t
const queryBlockIndex,
2642 NvSciError*
const status
2709 uint32_t
const elemIndex,
2804 uint32_t
const userType,
2877 uint32_t
const elemIndex,
2948 uint32_t
const elemIndex,
3030 uint32_t
const queryBlockIndex,
3031 uint32_t
const elemIndex,
3331 uint32_t
const elemIndex,
3399 uint32_t
const queryBlockIndex,
3400 uint32_t
const elemIndex,
3464 uint32_t
const consumerIndex,
3465 bool*
const newConnected );
3622 int32_t *
const value
3791 uint32_t*
const notifierCount,
3916 uint32_t
const userType,
3917 uint32_t
const dataSize,
3918 void const*
const data);
3996 uint32_t
const queryBlockIndex,
3997 uint32_t
const userType,
3998 uint32_t*
const dataSize,
4070 uint32_t
const userType,
4071 uint32_t
const dataSize,
4072 void const*
const data,
4073 uint32_t*
const crc);
4159 uint32_t
const queryBlockIndex,
4160 uint32_t
const userType,
4161 uint32_t*
const dataSize,
4163 uint32_t*
const crc);
4251 uint32_t
const userType,
4253 uint32_t*
const crc);
4352 uint32_t
const elemIndex,
4353 uint32_t*
const userType,
4355 uint32_t*
const crc);
4428 uint32_t
const index,
4430 uint32_t*
const crc);
4509 uint32_t
const elemIndex,
4511 size_t const crcCount,
4512 uint32_t*
const crc);
4589 uint32_t
const elemIndex,
4591 uint32_t*
const crc);
4678 uint32_t
const queryBlockIndex,
4679 uint32_t
const elemIndex,
4681 uint32_t*
const crc);
4753 uint32_t
const elemIndex,
4755 uint32_t*
const crc);
4831 uint32_t
const queryBlockIndex,
4832 uint32_t
const elemIndex,
4834 uint32_t*
const crc);
4889 uint32_t*
const index);
5013 uint32_t
const cfgArrCount
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...
NVIDIA Software Communications Interface (SCI) : NvSci Event Service
NvSciError NvSciStreamPoolPacketDelete(NvSciStreamBlock const pool, NvSciStreamPacket const handle)
Removes a packet referenced by the given NvSciStreamPacket from the pool block referenced by the give...
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 ...
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,...
NvSciError NvSciStreamBlockPacketNewHandleGet(NvSciStreamBlock const block, NvSciStreamPacket *const handle)
In producer and consumer blocks, queries the handle of a newly defined packet.
NvSciError NvSciStreamConsumerIndexGet(NvSciStreamBlock const consumer, uint32_t *const index)
Queries the index of the consumer block referenced by the given NvSciStreamBlock.
NvSciError NvSciStreamConsumerPacketRelease(NvSciStreamBlock const consumer, NvSciStreamPacket const handle)
Instructs the consumer referenced by consumer to release the packet referenced by handle into the str...
uintptr_t NvSciStreamBlock
Handle to a block.
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...
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 ...
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...
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...
NvSciError NvSciStreamPoolPacketComplete(NvSciStreamBlock const pool, NvSciStreamPacket const handle)
Marks a packet as complete and sends it to the rest of the stream.
NvSciError NvSciStreamAttributeQuery(NvSciStreamQueryableAttrib const attr, int32_t *const value)
Queries the value of one of the NvSciStreamQueryableAttrib.
NvSciError NvSciStreamBlockEventQuery(NvSciStreamBlock const block, int64_t const timeoutUsec, NvSciStreamEventType *const event)
Queries for the next event from block referenced by the given NvSciStreamBlock, optionally waiting wh...
NvSciError NvSciStreamProducerPacketGet(NvSciStreamBlock const producer, NvSciStreamCookie *const cookie)
Instructs the producer referenced by producer to retrieve a packet from the pool.
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...
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...
NvSciError NvSciStreamPacketSendSync(NvSciStreamBlock const block)
Enables the synchronous payload transfer during runtime.
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,...
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 ...
NvSciError NvSciStreamLimiterCreate(uint32_t const maxPackets, NvSciStreamBlock *const limiter)
Creates an instance of Limiter block and returns a NvSciStreamBlock referencing the created Limiter b...
const WFDPipeline NvSciBufObj *const bufObj
NvSciError NvSciStreamBlockConsumerCountGet(NvSciStreamBlock const block, uint32_t *const numConsumers)
Queries the number of consumers downstream of the block referenced by the given NvSciStreamBlock (or ...
NvSciError NvSciStreamConsumerPacketAcquire(NvSciStreamBlock const consumer, NvSciStreamCookie *const cookie)
Instructs the consumer referenced by consumer to retrieve a packet from the queue.
NvSciError NvSciStreamFifoQueueCreate(NvSciStreamBlock *const queue)
Creates an instance of FIFO queue block and returns a NvSciStreamBlock referencing the created FIFO q...
NvSciError NvSciStreamProducerCreate(NvSciStreamBlock const pool, NvSciStreamBlock *const producer)
Creates an instance of producer block, associates the given pool referenced by the given NvSciStreamB...
NvSciError NvSciStreamReturnSyncCreate(NvSciSyncModule const syncModule, NvSciStreamBlock *const returnSync)
Creates an instance of ReturnSync block and returns a NvSciStreamBlock referencing the created Return...
NvSciError NvSciStreamStaticPoolCreate(uint32_t const numPackets, NvSciStreamBlock *const pool)
Creates an instance of static pool block and returns a NvSciStreamBlock referencing the created pool ...
struct NvSciSyncAttrListRec * NvSciSyncAttrList
A container constituting an NvSciSyncAttrList which contains:
This structure defines a key/value pair used to configure the NvSciStream block before connection.
NvSciError NvSciStreamBlockDisconnect(NvSciStreamBlock const block)
Disconnects an IpcSrc block referenced by the given NvSciStreamBlock during streaming phase.
struct NvSciBufObjRefRec * NvSciBufObj
A memory object is a container holding the reconciled NvSciBufAttrList defining constraints of the bu...
An abstract interface to notify event to event consumer and to register event handler of the event co...
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.
NVIDIA Software Communications Interface (SCI) : NvSciSync
NvSciStreamQueryableAttrib
Defines NvSciStream attributes that are queryable.
NvSciError NvSciStreamBlockSetupStatusSet(NvSciStreamBlock const block, NvSciStreamSetup const setupType, bool const completed)
Indicates a group of setup operations identified by setupType on block are complete.
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,...
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...
NvSciError NvSciStreamBlockHandleInternalEvents(NvSciStreamBlock const block)
Handle NvSciStream internal events on a block referenced by the given NvSciStreamBlock.
NvSciError NvSciStreamBlockInternalEventServiceSetup(NvSciStreamBlock const block, NvSciEventService *const eventService, uint32_t *const notifierCount, NvSciEventNotifier **const eventNotifierArray)
Configures a block referenced by the given NvSciStreamBlock to use the user-provided NvSciEventServic...
NvSciError NvSciStreamMulticastCreate(uint32_t const outputCount, NvSciStreamBlock *const multicast)
Creates an instance of multicast block and returns a NvSciStreamBlock referencing the created multica...
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 ...
NvSciError NvSciStreamBlockElementAndWaiterAttrSet(NvSciStreamBlock const block, uint32_t const userType, NvSciBufAttrList const bufAttrList, NvSciSyncAttrList const waitSyncAttrList)
Specifies a user-defined userType and a list of NvSciBuf attributes for an element along with corresp...
NvSciStreamSetup
Setup information will be broken into several distinct groups, ! with restrictions on when they can b...
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 ...
NvSciError NvSciStreamNewConsumerGet(NvSciStreamBlock const producer, uint32_t const consumerIndex, bool *const newConnected)
Queries whether the indexed consumer is a newly connected consumer.
NVIDIA Software Communications Interface (SCI) : NvSci Inter-Process Communication
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...
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,...
uintptr_t NvSciStreamCookie
Application assigned cookie for a NvSciStreamPacket.
NvSciError NvSciStreamBlockConfig(NvSciStreamBlock const block, NvSciStreamConfig const *const streamConfigArr, uint32_t const cfgArrCount)
Configure the block according to the streamConfigArr before connection.
uint64_t NvSciIpcEndpoint
Handle to the NvSciIpc endpoint.
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.
NVIDIA Software Communications Interface (SCI) : NvSciStream
NvSciError NvSciStreamProducerPacketPresent(NvSciStreamBlock const producer, NvSciStreamPacket const handle)
Instructs the producer referenced by producer to insert the packet referenced by handle into the stre...
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...
NVIDIA VM State Manager Client Library API
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...
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 ...
uintptr_t NvSciStreamPacket
NvSciStream assigned handle for a packet.
struct NvSciBufModuleRec * NvSciBufModule
top-level container for the following set of resources: NvSciBufAttrLists, memory objects,...
struct NvSciBufAttrListRec * NvSciBufAttrList
A container constituting an attribute list which contains.
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.
NvSciError NvSciStreamPresentSyncCreate(NvSciSyncModule const syncModule, NvSciStreamBlock *const presentSync)
Creates an instance of PresentSync block and returns a NvSciStreamBlock referencing the created Prese...
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...
NvSciError NvSciStreamMailboxQueueCreate(NvSciStreamBlock *const queue)
Creates an instance of mailbox queue block and returns a NvSciStreamBlock referencing the created mai...
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 ...
Defines the opaque NvSciSyncFence.
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.
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.
NVIDIA Software Communications Interface (SCI) : NvSciBuf
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...
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...
NvSciError NvSciStreamPoolPacketStatusAcceptGet(NvSciStreamBlock const pool, NvSciStreamPacket const handle, bool *const accepted)
In pool, queries whether or not a packet has been accepted.
NvSciStreamEventType
Defines event types for the blocks.
const WFDCommitType const WFDHandle handle
NvSciError NvSciStreamBlockDelete(NvSciStreamBlock const block)
Schedules a block referenced by the given NvSciStreamBlock for destruction, disconnecting the block i...
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.
NvSciError NvSciStreamBlockConnect(NvSciStreamBlock const upstream, NvSciStreamBlock const downstream)
Establishes connection between two blocks referenced by the given NvSciStreamBlock(s).
NvSciError NvSciStreamBlockPacketOldCookieGet(NvSciStreamBlock const block, NvSciStreamCookie *const cookie)
In producer and consumer blocks, queries the cookie of a recently deleted packet.
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.
struct NvSciSyncModuleRec * NvSciSyncModule
Represents an instance of the NvSciSyncModule.
NvSciError NvSciStreamBlockErrorGet(NvSciStreamBlock const block, NvSciError *const status)
Queries the error code for an error event.
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 ...
NvSciError NvSciStreamConsumerCreate(NvSciStreamBlock const queue, NvSciStreamBlock *const consumer)
Creates an instance of consumer block, associates the given queue block referenced by the given NvSci...
struct NvSciSyncObjRec * NvSciSyncObj
A Synchronization Object is a container holding the reconciled NvSciSyncAttrList defining constraints...
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
Most queries on one block request information received from ! another block.
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 NOT be visible to the consum...
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,...
An abstract interface for a program's event handling infrastructure.