Preserve full opaque HD backgrounds and source-supported small cues

This commit is contained in:
raptorreplica committed 2026-10-12 08:40:14 +11:00
1 parent a02c9b0679
commit e95d060b0c
13 files changed
+1022 -33

No files matched your search

+2 -1
View File
@@ -15,7 +15,7 @@ from pathlib import Path
from PIL import Image, ImageDraw
FRAME_KEYS = {"frame", "file", "logical_width", "logical_height", "origin", "source_sha256", "crop"}
from hd_frame_policy import FRAME_KEYS, validate_frame_policy
def proposal_frames(proposal, expected=None):
@@ -30,6 +30,7 @@ def proposal_frames(proposal, expected=None):
for frame in sequence["frames"]:
if set(frame) - FRAME_KEYS:
raise ValueError("unknown manifest frame fields")
validate_frame_policy(frame)
if not 0 <= frame["frame"] < sequence["frame_count"]:
raise ValueError("frame outside sequence")
identity = f"{base + frame['frame']:05x}"