User-defined Endpoint Information

As an optional setup, before the blocks are connected, applications can supply user-defined data to the endpoint blocks (Producer and Consumer) with NvSciStreamBlockUserInfoSet(). After the blocks are connected, applications can query the data from every block in the connected stream with NvSciStreamBlockUserInfoGet(). All applications that operate the blocks should understand the userType value. Endpoint applications can use the information from opposed endpoints to make choices in resource creation or streaming.


NvSciError
NvSciStreamBlockUserInfoSet(
    NvSciStreamBlock const block,
    uint32_t const userType,
    uint32_t const dataSize,
    void const* const data
)

NvSciError
NvSciStreamBlockUserInfoGet(
    NvSciStreamBlock const block,
    NvSciSreamBlockType const queryBlockType,
    uint32_t const queryBlockIndex,
    uint32_t const userType, 
    uint32_t* const dataSize,
    void* const data
)