mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-07-29 23:38:24 +02:00
qsv: Move down the implementation query
The plugin loaded may not match the general implementation capability wise.
This commit is contained in:
parent
dbb43b8b83
commit
ce9d7da765
@ -101,22 +101,6 @@ int ff_qsv_init_internal_session(AVCodecContext *avctx, mfxSession *session,
|
|||||||
return ff_qsv_error(ret);
|
return ff_qsv_error(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
MFXQueryIMPL(*session, &impl);
|
|
||||||
|
|
||||||
switch (MFX_IMPL_BASETYPE(impl)) {
|
|
||||||
case MFX_IMPL_SOFTWARE:
|
|
||||||
desc = "software";
|
|
||||||
break;
|
|
||||||
case MFX_IMPL_HARDWARE:
|
|
||||||
case MFX_IMPL_HARDWARE2:
|
|
||||||
case MFX_IMPL_HARDWARE3:
|
|
||||||
case MFX_IMPL_HARDWARE4:
|
|
||||||
desc = "hardware accelerated";
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
desc = "unknown";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (load_plugins && *load_plugins) {
|
if (load_plugins && *load_plugins) {
|
||||||
while (*load_plugins) {
|
while (*load_plugins) {
|
||||||
mfxPluginUID uid;
|
mfxPluginUID uid;
|
||||||
@ -156,6 +140,22 @@ load_plugin_fail:
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MFXQueryIMPL(*session, &impl);
|
||||||
|
|
||||||
|
switch (MFX_IMPL_BASETYPE(impl)) {
|
||||||
|
case MFX_IMPL_SOFTWARE:
|
||||||
|
desc = "software";
|
||||||
|
break;
|
||||||
|
case MFX_IMPL_HARDWARE:
|
||||||
|
case MFX_IMPL_HARDWARE2:
|
||||||
|
case MFX_IMPL_HARDWARE3:
|
||||||
|
case MFX_IMPL_HARDWARE4:
|
||||||
|
desc = "hardware accelerated";
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
desc = "unknown";
|
||||||
|
}
|
||||||
|
|
||||||
av_log(avctx, AV_LOG_VERBOSE,
|
av_log(avctx, AV_LOG_VERBOSE,
|
||||||
"Initialized an internal MFX session using %s implementation\n",
|
"Initialized an internal MFX session using %s implementation\n",
|
||||||
desc);
|
desc);
|
||||||
|
Loading…
Reference in New Issue
Block a user