|
|
@ -325,13 +325,23 @@ public class HardwareCapabilitiesFactory : IHardwareCapabilitiesFactory |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (profileEntrypoints is not null && profileEntrypoints.Count != 0) |
|
|
|
if (profileEntrypoints is not null && profileEntrypoints.Count != 0) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if (display == "drm") |
|
|
|
{ |
|
|
|
{ |
|
|
|
_logger.LogDebug( |
|
|
|
_logger.LogDebug( |
|
|
|
"Detected {Count} VAAPI profile entrypoints for using {Display} {Driver} {Device}", |
|
|
|
"Detected {Count} VAAPI profile entrypoints using {Driver} {Device}", |
|
|
|
profileEntrypoints.Count, |
|
|
|
profileEntrypoints.Count, |
|
|
|
display, |
|
|
|
|
|
|
|
driver, |
|
|
|
driver, |
|
|
|
device); |
|
|
|
device); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
_logger.LogDebug( |
|
|
|
|
|
|
|
"Detected {Count} VAAPI profile entrypoints using {Display} {Driver}", |
|
|
|
|
|
|
|
profileEntrypoints.Count, |
|
|
|
|
|
|
|
display, |
|
|
|
|
|
|
|
driver); |
|
|
|
|
|
|
|
} |
|
|
|
_memoryCache.Set(cacheKey, profileEntrypoints); |
|
|
|
_memoryCache.Set(cacheKey, profileEntrypoints); |
|
|
|
return new VaapiHardwareCapabilities(profileEntrypoints, _logger); |
|
|
|
return new VaapiHardwareCapabilities(profileEntrypoints, _logger); |
|
|
|
} |
|
|
|
} |
|
|
@ -394,7 +404,7 @@ public class HardwareCapabilitiesFactory : IHardwareCapabilitiesFactory |
|
|
|
if (profileEntrypoints is not null && profileEntrypoints.Count != 0) |
|
|
|
if (profileEntrypoints is not null && profileEntrypoints.Count != 0) |
|
|
|
{ |
|
|
|
{ |
|
|
|
_logger.LogDebug( |
|
|
|
_logger.LogDebug( |
|
|
|
"Detected {Count} VAAPI profile entrypoints for using QSV device {Device}", |
|
|
|
"Detected {Count} VAAPI profile entrypoints using QSV device {Device}", |
|
|
|
profileEntrypoints.Count, |
|
|
|
profileEntrypoints.Count, |
|
|
|
device); |
|
|
|
device); |
|
|
|
|
|
|
|
|
|
|
|