Selects oneVPL implementation according to the specified properties. More...
#include <impl_selector.hpp>
Public Member Functions | |
virtual | ~implemetation_selector () |
dtor | |
auto | session () const |
Creates session which has the requested properties. Session class object calls this method at the ctor and takes care on deletion of loader and session handles. More... | |
Protected Member Functions | |
implemetation_selector (std::initializer_list< property > list={}) | |
Protected ctor. More... | |
implemetation_selector (const std::vector< property > &list) | |
Protected ctor. More... | |
virtual bool | operator() (std::shared_ptr< base_implementation_capabilities > caps) const =0 |
This operator is applyed to any found oneVPL implementation. If operator returns true, a session based on found implementation is created. Otherwise, search is continued. More... | |
Protected Attributes | |
std::vector< property > | opts_ |
List of properties. | |
mfxImplCapsDeliveryFormat | format_ |
Implementation capabilities report format. More... | |
Selects oneVPL implementation according to the specified properties.
This object iterates over the available implementations and selects an appropriate one based on the list
of properties. API user can create an instance of that class. If user wants to change the implementation selection behaviour they need to subslass and implement operator ().
|
inlineexplicitprotected |
Protected ctor.
list | List of properties |
|
inlineexplicitprotected |
Protected ctor.
list | List of properties |
|
protectedpure virtual |
This operator is applyed to any found oneVPL implementation. If operator returns true, a session based on found implementation is created. Otherwise, search is continued.
caps | Pointer to the session capabilities information in the requested format. |
Implemented in oneapi::vpl::default_selector.
|
inline |
Creates session which has the requested properties. Session class object calls this method at the ctor and takes care on deletion of loader and session handles.
|
protected |
Implementation capabilities report format.