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.
This commit is contained in:
CodeName393
2026-03-04 23:17:18 +09:00
committed by GitHub
parent d1e6d0812c
commit d68bb28a66

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: