mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 21:23:31 +08:00
Merge pull request #22507 from TolyaTalamanov:at/replace-mfx-major-version-assert-to-warning
G-API: Replace MFX major version assertion to warning
This commit is contained in:
commit
1ae801554d
@ -227,10 +227,10 @@ GSource::Priv::Priv(std::shared_ptr<IDataProvider> provider,
|
|||||||
|
|
||||||
// TODO Add factory static method in ProcessingEngineBase
|
// TODO Add factory static method in ProcessingEngineBase
|
||||||
if (mfx_impl_description->ApiVersion.Major >= VPL_NEW_API_MAJOR_VERSION) {
|
if (mfx_impl_description->ApiVersion.Major >= VPL_NEW_API_MAJOR_VERSION) {
|
||||||
GAPI_Assert(false &&
|
GAPI_LOG_WARNING(NULL,
|
||||||
"GSource mfx_impl_description->ApiVersion.Major >= VPL_NEW_API_MAJOR_VERSION"
|
"GSource mfx_impl_description->ApiVersion.Major >= VPL_NEW_API_MAJOR_VERSION"
|
||||||
" - is not implemented");
|
" - is not implemented. Rollback to MFX implementation");
|
||||||
} else {
|
}
|
||||||
const auto& transcode_params = VPLLegacyTranscodeEngine::get_vpp_params(preferred_params);
|
const auto& transcode_params = VPLLegacyTranscodeEngine::get_vpp_params(preferred_params);
|
||||||
if (!transcode_params.empty()) {
|
if (!transcode_params.empty()) {
|
||||||
engine.reset(new VPLLegacyTranscodeEngine(std::move(acceleration)));
|
engine.reset(new VPLLegacyTranscodeEngine(std::move(acceleration)));
|
||||||
@ -238,7 +238,6 @@ GSource::Priv::Priv(std::shared_ptr<IDataProvider> provider,
|
|||||||
engine.reset(new VPLLegacyDecodeEngine(std::move(acceleration)));
|
engine.reset(new VPLLegacyDecodeEngine(std::move(acceleration)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// create engine session for processing mfx session pipeline
|
// create engine session for processing mfx session pipeline
|
||||||
auto engine_session_ptr = engine->initialize_session(mfx_session, cfg_params,
|
auto engine_session_ptr = engine->initialize_session(mfx_session, cfg_params,
|
||||||
|
Loading…
Reference in New Issue
Block a user