Packet Destruction
Packets can be destroyed one by one with the function:
NvSciError
NvSciStreamPoolPacketDelete(
NvSciStreamBlock const pool,
NvSciStreamPacket const handle
)
This API schedules an existing packet to be removed from the pool. If the packet is currently in the pool, it is removed right away. Otherwise, this is deferred until the packet returns to the pool. When the specified packet is returned to the pool, the pool releases resources associated with it and sends a NvSciStreamEventType_PacketDelete event to the producer and consumer. Once deleted, the packet may no longer be used for pool operations.