New: Detect HDR Type New: Display HDR Type in File Media Info Modal Based on Sonarr 7b694ea71d7f78bad5c03393c4cf6f7a28ada1cb Closes #6789 Fixes #4844 Co-authored-by: ta264 <ta264@users.noreply.github.com> Co-authored-by: Qstick <qstick@gmail.com>pull/6884/head
parent
9e4c94592d
commit
13e44ce19a
@ -0,0 +1,31 @@
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Core.MediaFiles.MediaInfo;
|
||||
using NzbDrone.Test.Common;
|
||||
|
||||
namespace NzbDrone.Core.Test.MediaFiles.MediaInfo.MediaInfoFormatterTests
|
||||
{
|
||||
[TestFixture]
|
||||
public class FormatVideoDynamicRangeTypeFixture : TestBase
|
||||
{
|
||||
[TestCase(HdrFormat.None, "")]
|
||||
[TestCase(HdrFormat.Hlg10, "HLG")]
|
||||
[TestCase(HdrFormat.Pq10, "PQ")]
|
||||
[TestCase(HdrFormat.Hdr10, "HDR10")]
|
||||
[TestCase(HdrFormat.Hdr10Plus, "HDR10Plus")]
|
||||
[TestCase(HdrFormat.DolbyVision, "DV")]
|
||||
[TestCase(HdrFormat.DolbyVisionHdr10, "DV HDR10")]
|
||||
[TestCase(HdrFormat.DolbyVisionHlg, "DV HLG")]
|
||||
[TestCase(HdrFormat.DolbyVisionSdr, "DV SDR")]
|
||||
public void should_format_video_dynamic_range_type(HdrFormat format, string expectedVideoDynamicRangeType)
|
||||
{
|
||||
var mediaInfo = new MediaInfoModel
|
||||
{
|
||||
VideoHdrFormat = format,
|
||||
SchemaRevision = 9
|
||||
};
|
||||
|
||||
MediaInfoFormatter.FormatVideoDynamicRangeType(mediaInfo).Should().Be(expectedVideoDynamicRangeType);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in new issue