mirror of
https://github.com/opencv/opencv.git
synced 2025-06-29 16:11:00 +08:00
Replace MFX major version assertion to warning
This commit is contained in:
parent
4154bd0667
commit
bcc19a622d
@ -227,16 +227,15 @@ 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. G-API only supports an older version of OneVPL API.");
|
||||||
|
}
|
||||||
|
const auto& transcode_params = VPLLegacyTranscodeEngine::get_vpp_params(preferred_params);
|
||||||
|
if (!transcode_params.empty()) {
|
||||||
|
engine.reset(new VPLLegacyTranscodeEngine(std::move(acceleration)));
|
||||||
} else {
|
} else {
|
||||||
const auto& transcode_params = VPLLegacyTranscodeEngine::get_vpp_params(preferred_params);
|
engine.reset(new VPLLegacyDecodeEngine(std::move(acceleration)));
|
||||||
if (!transcode_params.empty()) {
|
|
||||||
engine.reset(new VPLLegacyTranscodeEngine(std::move(acceleration)));
|
|
||||||
} else {
|
|
||||||
engine.reset(new VPLLegacyDecodeEngine(std::move(acceleration)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user