Skip to content

Commit

Permalink
if display reports as 8bit but can play HDR, then tell the server we …
Browse files Browse the repository at this point in the history
…can play 10bit videos
  • Loading branch information
cewert committed Oct 15, 2024
1 parent ee2a7b9 commit 3fbe253
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/utils/globals.bs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ end sub
' Save information from roDeviceInfo to m.global.device
sub SaveDeviceToGlobal()
deviceInfo = CreateObject("roDeviceInfo")
displayProperties = deviceInfo.GetDisplayProperties()

' remove special characters
regex = CreateObject("roRegex", "[^a-zA-Z0-9\ \-\_]", "")
Expand Down Expand Up @@ -98,6 +99,7 @@ sub SaveDeviceToGlobal()
end if
videoWidth = heightToWidth[videoHeight]
if extraData <> invalid and extraData = "b10" then bitDepth = 10
if bitDepth = 8 and displayProperties.HdrSeamless then bitDepth = 10
if videoHeight = "4320" then bitDepth = 12

m.global.addFields({
Expand Down

0 comments on commit 3fbe253

Please sign in to comment.