2 Commits

Author SHA1 Message Date
Sp5rky
7dd6323be5 Merge pull request #87 from CodeName393/add-HDR-Vivid-TAG
fix(title): Add HDR Vivid Format HDR Tag
2026-03-04 15:38:03 -07:00
CodeName393
d68bb28a66 fix(title): Add HDR Vivid Format HDR Tag
The existing HDR Vivid format HDR tag processing is missing due to the feature of the title map.
2026-03-04 23:17:18 +09:00

View File

@@ -121,6 +121,8 @@ class Title:
base_layer = DYNAMIC_RANGE_MAP.get(hdr_format) base_layer = DYNAMIC_RANGE_MAP.get(hdr_format)
if base_layer and base_layer != "DV": if base_layer and base_layer != "DV":
context["hdr"] += f".{base_layer}" context["hdr"] += f".{base_layer}"
elif (primary_video_track.hdr_format or "").startswith("HDR Vivid"):
context["hdr"] = "HDR"
else: else:
context["hdr"] = DYNAMIC_RANGE_MAP.get(hdr_format, "") context["hdr"] = DYNAMIC_RANGE_MAP.get(hdr_format, "")
elif trc and "HLG" in trc: elif trc and "HLG" in trc: