mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
fix: typo
Signed-off-by: gnattu <gnattuoc@me.com>
This commit is contained in:
parent
5c743f2b4d
commit
0a4457dd68
@ -309,7 +309,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
&& state.VideoStream.VideoRangeType == VideoRangeType.HDR10;
|
&& state.VideoStream.VideoRangeType == VideoRangeType.HDR10;
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool IsVideoToolboxVppTonemapAvailable(EncodingJobInfo state, EncodingOptions options)
|
private bool IsVideoToolboxTonemapAvailable(EncodingJobInfo state, EncodingOptions options)
|
||||||
{
|
{
|
||||||
if (state.VideoStream is null
|
if (state.VideoStream is null
|
||||||
|| !options.EnableVideoToolboxTonemapping
|
|| !options.EnableVideoToolboxTonemapping
|
||||||
@ -5003,7 +5003,7 @@ namespace MediaBrowser.Controller.MediaEncoding
|
|||||||
var supportsHwDeint = _mediaEncoder.SupportsFilter("yadif_videotoolbox");
|
var supportsHwDeint = _mediaEncoder.SupportsFilter("yadif_videotoolbox");
|
||||||
var supportsHwScale = _mediaEncoder.SupportsFilter("scale_vt");
|
var supportsHwScale = _mediaEncoder.SupportsFilter("scale_vt");
|
||||||
// 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 = IsVideoToolboxVppTonemapAvailable(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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user