mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
fix: use hardware videotoolbox filter even only scale is available
Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
parent
0a8560f64a
commit
21bf557145
@ -4999,7 +4999,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
// VideoToolbox is special. It does not use a separate tone mapping filter like others. Instead, it performs both tone mapping and scaling in a single filter.
|
// VideoToolbox is special. It does not use a separate tone mapping filter like others. Instead, it performs both tone mapping and scaling in a single filter.
|
||||||
var useHwToneMapping = IsVideoToolboxTonemapAvailable(state, options) && supportsHwScale;
|
var useHwToneMapping = IsVideoToolboxTonemapAvailable(state, options) && supportsHwScale;
|
||||||
// fallback to software filters if we are using filters not supported by hardware yet.
|
// fallback to software filters if we are using filters not supported by hardware yet.
|
||||||
var useHardwareFilters = noOverlay && (!doDeintH2645 || supportsHwDeint);
|
var useHardwareFilters = noOverlay && (!doDeintH2645 || supportsHwDeint || supportsHwScale);
|
||||||
|
|
||||||
if (!useHardwareFilters)
|
if (!useHardwareFilters)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user