qsv: Improve the log message of when initializing MFX_IMPL_HARDWARE{2, 3, 4}
Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
7a76c6c4df
commit
212556cd21
@ -117,12 +117,19 @@ static int qsv_init_session(AVCodecContext *avctx, QSVContext *q, mfxSession ses
|
|||||||
|
|
||||||
MFXQueryIMPL(q->internal_session, &impl);
|
MFXQueryIMPL(q->internal_session, &impl);
|
||||||
|
|
||||||
if (impl & MFX_IMPL_SOFTWARE)
|
switch (MFX_IMPL_BASETYPE(impl)) {
|
||||||
|
case MFX_IMPL_SOFTWARE:
|
||||||
desc = "software";
|
desc = "software";
|
||||||
else if (impl & MFX_IMPL_HARDWARE)
|
break;
|
||||||
|
case MFX_IMPL_HARDWARE:
|
||||||
|
case MFX_IMPL_HARDWARE2:
|
||||||
|
case MFX_IMPL_HARDWARE3:
|
||||||
|
case MFX_IMPL_HARDWARE4:
|
||||||
desc = "hardware accelerated";
|
desc = "hardware accelerated";
|
||||||
else
|
break;
|
||||||
|
default:
|
||||||
desc = "unknown";
|
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",
|
||||||
|
Loading…
Reference in New Issue
Block a user