mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-05 20:51:15 -07:00
Update is_hdr helper function
This commit is contained in:
parent
c4f8a81190
commit
43fc7eebfe
3 changed files with 4 additions and 4 deletions
|
@ -729,7 +729,7 @@ class Export(object):
|
|||
'frameRate': None,
|
||||
'frameRateMode': None,
|
||||
'hasScalingMatrix': None,
|
||||
'hdr': lambda o: helpers.is_hdr(getattr(o, 'bitDepth', 0), getattr(o, 'colorSpace', '')),
|
||||
'hdr': lambda o: helpers.is_hdr(getattr(o, 'bitDepth', 0), getattr(o, 'colorTrc', '')),
|
||||
'height': None,
|
||||
'level': None,
|
||||
'pixelAspectRatio': None,
|
||||
|
|
|
@ -1483,9 +1483,9 @@ def move_to_front(l, value):
|
|||
return l
|
||||
|
||||
|
||||
def is_hdr(bit_depth, color_space):
|
||||
def is_hdr(bit_depth, color_trc):
|
||||
bit_depth = cast_to_int(bit_depth)
|
||||
return bit_depth > 8 and color_space == 'bt2020nc'
|
||||
return bit_depth > 8 and (color_trc == 'smpte2084' or color_trc == 'arib-std-b67')
|
||||
|
||||
|
||||
def version_to_tuple(version):
|
||||
|
|
|
@ -3391,7 +3391,7 @@ class PmsConnect(object):
|
|||
color_trc = helpers.get_xml_attr(stream, 'colorTrc')
|
||||
DOVI_profile = helpers.get_xml_attr(stream, 'DOVIProfile')
|
||||
|
||||
HDR = bool(bit_depth > 8 and (color_trc == 'smpte2084' or color_trc == 'arib-std-b67'))
|
||||
HDR = helpers.is_hdr(bit_depth, color_trc)
|
||||
DV = bool(DOVI_profile)
|
||||
|
||||
if not HDR and not DV:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue