Skip to content

Commit

Permalink
Update deviceCapabilities.bs
Browse files Browse the repository at this point in the history
Correct for "VideoRangeTypeNotSupported" issues when a DOVI video with SDR/HDR/HLG support is played. 
Resolves issue #1811
  • Loading branch information
Skin80 committed Sep 13, 2024
1 parent fbd9ce1 commit da42f13
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions source/utils/deviceCapabilities.bs
Original file line number Diff line number Diff line change
Expand Up @@ -526,24 +526,24 @@ function getCodecProfiles() as object
end for

' HDR SUPPORT
h264VideoRangeTypes = "SDR"
hevcVideoRangeTypes = "SDR"
h264VideoRangeTypes = "SDR|DOVIWithSDR"
hevcVideoRangeTypes = "SDR|DOVIWithSDR"
vp9VideoRangeTypes = "SDR"
av1VideoRangeTypes = "SDR"
av1VideoRangeTypes = "SDRSDR|DOVIWithSDR"

dp = di.GetDisplayProperties()
if dp.Hdr10
hevcVideoRangeTypes = hevcVideoRangeTypes + "|HDR10"
hevcVideoRangeTypes = hevcVideoRangeTypes + "|HDR10|DOVIWithHDR10"
vp9VideoRangeTypes = vp9VideoRangeTypes + "|HDR10"
av1VideoRangeTypes = av1VideoRangeTypes + "|HDR10"
av1VideoRangeTypes = av1VideoRangeTypes + "|HDR10|DOVIWithHDR10"
end if
if dp.Hdr10Plus
av1VideoRangeTypes = av1VideoRangeTypes + "|HDR10+"
end if
if dp.HLG
hevcVideoRangeTypes = hevcVideoRangeTypes + "|HLG"
vp9VideoRangeTypes = vp9VideoRangeTypes + "|HLG"
av1VideoRangeTypes = av1VideoRangeTypes + "|HLG"
hevcVideoRangeTypes = hevcVideoRangeTypes + "|HLG|DOVIWithHLG"
vp9VideoRangeTypes = vp9VideoRangeTypes + "|HLG|DOVIWithHLG"
av1VideoRangeTypes = av1VideoRangeTypes + "|HLG|DOVIWithHLG"
end if
if dp.DolbyVision
h264VideoRangeTypes = h264VideoRangeTypes + "|DOVI"
Expand Down

0 comments on commit da42f13

Please sign in to comment.