RAII wrapper for xvecExecutionContextTag.
Context & operator=(Context &&other) noexcept
static uint32_t getNumDevices()
Get the number of available devices.
Context(uint32_t deviceId)
Create an execution context using the embedded production kernel.
Context(Context &&other) noexcept
void setProperty(const std::string &key, const std::string &value)
Set a context property.
Context(const Context &)=delete
void resetVpe()
Reset the VPE SRAM allocator state.
xvecExecutionContextTag * handle() const noexcept
Get the underlying C API handle.
std::string getProperty(const std::string &key) const
Get a context property.
Context & operator=(const Context &)=delete
std::optional< std::string > tryGetProperty(const std::string &key) const
Try to get a context property.