瀏覽代碼

Enable software tone-mapping by default

Transcoding HDR video without tonemapping results
in an unacceptable viewing experience. Many users
are not even aware of the option and therefore we
should always enable the software tonemapx filter.

Signed-off-by: nyanmisaka <nst7999610810@gmail.com>
nyanmisaka 6 月之前
父節點
當前提交
8e248c7c05
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs

+ 0 - 1
MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs

@@ -309,7 +309,6 @@ namespace MediaBrowser.Controller.MediaEncoding
         private bool IsSwTonemapAvailable(EncodingJobInfo state, EncodingOptions options)
         private bool IsSwTonemapAvailable(EncodingJobInfo state, EncodingOptions options)
         {
         {
             if (state.VideoStream is null
             if (state.VideoStream is null
-                || !options.EnableTonemapping
                 || GetVideoColorBitDepth(state) < 10
                 || GetVideoColorBitDepth(state) < 10
                 || !_mediaEncoder.SupportsFilter("tonemapx"))
                 || !_mediaEncoder.SupportsFilter("tonemapx"))
             {
             {