The interface to the frame completion queue.
Definition at line 336 of file NvSIPLPipelineMgr.hpp.
◆ INvSIPLFrameCompletionQueue()
nvsipl::INvSIPLFrameCompletionQueue::INvSIPLFrameCompletionQueue |
( |
| ) |
|
|
protecteddefault |
◆ ~INvSIPLFrameCompletionQueue()
virtual nvsipl::INvSIPLFrameCompletionQueue::~INvSIPLFrameCompletionQueue |
( |
| ) |
|
|
protectedvirtualdefault |
◆ Get()
Retrieve the next item from the queue.
The buffer returned will have a single reference that must be released by the client when it has finished with the buffer. This is done by calling item->Release().
- Precondition
- This function must be called after INvSIPLCamera::Init() and before INvSIPLCamera::Deinit().
- Parameters
-
[out] | item | The item retrieved from the queue. |
[in] | timeoutUsec | The timeout of the request, in microseconds. If the queue is empty at the time of the call, this method will wait up to timeoutUsec microseconds for a new item to arrive in the queue and be returned. |
- Return values
-
NVSIPL_STATUS_OK | if item has been successfully retrieved from the queue. |
NVSIPL_STATUS_TIMED_OUT | if an item was not available within the timeout interval. |
NVSIPL_STATUS_EOF | if the queue has been shut down. In this case, no further calls can be made on the queue object. |
NVSIPL_STATUS_ERROR | if a system error occurred. |
Usage considerations
- Allowed context for the API call
- Interrupt handler: No
- Signal handler: No
- Thread-safe: Yes
- Re-entrant: No
- Async/Sync: Sync
- Required privileges: Yes, with the following conditions:
- Grants: nonroot, allow
- Abilities: public_channel
- Application needs to have access to the SGIDs that SIPL depends on as mentioned in the NVIDIA DRIVE OS Safety Developer Guide
- API group
- Init: No
- Runtime: Yes
- De-Init: No
◆ GetCount()
virtual size_t nvsipl::INvSIPLFrameCompletionQueue::GetCount |
( |
| ) |
const |
|
pure virtual |
Return the current queue length.
- Returns
- the number of elements currently in the queue.
- Precondition
- This function must be called after INvSIPLCamera::Init() and before INvSIPLCamera::Deinit().
Usage considerations
- Allowed context for the API call
- Interrupt handler: No
- Signal handler: No
- Thread-safe: Yes
- Re-entrant: Yes
- Async/Sync: Sync
- Required privileges: Yes, with the following conditions:
- Grants: nonroot, allow
- Abilities: public_channel
- Application needs to have access to the SGIDs that SIPL depends on as mentioned in the NVIDIA DRIVE OS Safety Developer Guide
- API group
- Init: No
- Runtime: Yes
- De-Init: No
The documentation for this class was generated from the following file: