mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
Merge commit 'ce9d7da7650473f580dcce8c9f8550ea532aa6bd'
* commit 'ce9d7da7650473f580dcce8c9f8550ea532aa6bd': qsv: Move down the implementation query Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
commit
6e2ca81485
@ -187,22 +187,6 @@ int ff_qsv_init_internal_session(AVCodecContext *avctx, QSVSession *qs,
|
||||
if (ret < 0)
|
||||
return ret;
|
||||
|
||||
MFXQueryIMPL(qs->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) {
|
||||
while (*load_plugins) {
|
||||
mfxPluginUID uid;
|
||||
@ -242,6 +226,22 @@ load_plugin_fail:
|
||||
}
|
||||
}
|
||||
|
||||
MFXQueryIMPL(qs->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,
|
||||
"Initialized an internal MFX session using %s implementation\n",
|
||||
desc);
|
||||
|
Loading…
Reference in New Issue
Block a user