@ -129,7 +129,7 @@ GSource::Priv::Priv(std::shared_ptr<IDataProvider> provider,
}
// collect optional-preferred input parameters from input params
// which may (optionally) or may not be used to choose the most preferr able
// which may (optionally) or may not be used to choose the most preferable
// VPL implementation (for example, specific API version or Debug/Release VPL build)
std : : vector < CfgParam > preferred_params ;
std : : copy_if ( cfg_params . begin ( ) , cfg_params . end ( ) , std : : back_inserter ( preferred_params ) ,
@ -137,7 +137,7 @@ GSource::Priv::Priv(std::shared_ptr<IDataProvider> provider,
std : : sort ( preferred_params . begin ( ) , preferred_params . end ( ) ) ;
GAPI_LOG_DEBUG ( nullptr , " Find MFX better implementation from handle: " < < mfx_handle < <
" is satisfying preferr able params count: " < < preferred_params . size ( ) ) ;
" is satisfying preferable params count: " < < preferred_params . size ( ) ) ;
int i = 0 ;
mfxImplDescription * idesc = nullptr ;
std : : vector < mfxImplDescription * > available_impl_descriptions ;
@ -162,7 +162,7 @@ GSource::Priv::Priv(std::shared_ptr<IDataProvider> provider,
GAPI_LOG_INFO ( nullptr , " Implementation index: " < < i < < " \n " < < ss . str ( ) ) ;
// Only one VPL implementation is required for GSource here.
// Let's find intersection params from available impl with preferr able input params
// Let's find intersection params from available impl with preferable input params
// to find best match.
// An available VPL implementation with max matching count
std : : vector < CfgParam > impl_params = get_params_from_string < CfgParam > ( ss . str ( ) ) ;
@ -178,7 +178,7 @@ GSource::Priv::Priv(std::shared_ptr<IDataProvider> provider,
// in case of no input preferrance we consider all params are matched
// for the first available VPL implementation. It will be a chosen one
matches_count . emplace ( impl_params . size ( ) , i + + ) ;
GAPI_LOG_DEBUG ( nullptr , " No preferr able params, use the first one implementation " ) ;
GAPI_LOG_DEBUG ( nullptr , " No preferable params, use the first one implementation " ) ;
break ;
} else {
GAPI_LOG_DEBUG ( nullptr , " Equal param intersection count: " < < matched_params . size ( ) ) ;