feat(project): settle phase 4 contracts: conditional settings format, transforms, look, output size
Groundwork for owner review 1, phase 4, so the parallel packages build on fixed contracts and strings. - Settings: camera rotate/mirror/flip/straighten and a look, declared after the existing members and omitted at default. ToJson writes the lowest format that renders the same (2 only while a transform or look is used), so projects without them keep byte-identical text and hash; an old-build simulation test proves the order survives an older build's round trip. - RenderSize and RenderRules: proportions win over a fixed preset box, and the routing format a job needs. - FrameOrientation, CropFrame, OrientationEdit, LookFilter (identity) and FrameFinish (look, then knee) wired into the render pipeline and preview; RenderGeometry gains view-frame members equivalent to today. - Protocol trailing members for node, job and server formats; SyncText keys; EditPath counts transforms and the look as hand values. - New en/it strings and tooltips, five icons, test fixtures moved to v3 as the first unread format, and the 18 DECISIONS rows. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
4ad29977b9
commit
e4364c4f25
43 files changed
+1544
-178
No files matched your search
@@ -138,6 +138,28 @@ I["Triangle"] = (None, "M8 3 L13.5 12.5 H2.5 Z")
|
||||
I["TriangleRight"] = (None, "M5 3 L12 8 L5 13 Z")
|
||||
I["Cross"] = ("M4.5 4.5 L11.5 11.5 M11.5 4.5 L4.5 11.5", None)
|
||||
|
||||
# Owner review 1, R6: the Camera step's orientation controls. A turn is a picture under a quarter-circle arrow; mirror and
|
||||
# flip are two triangles across a dashed axis, the outline one becoming the filled one; straighten levels a tilted line.
|
||||
def head(tx, ty, angle, size=2.4, spread=40):
|
||||
"""Arrowhead strokes ending at (tx, ty) for travel along angle degrees (0 = 12 o'clock, clockwise)."""
|
||||
f = lambda v: f"{v:.2f}".rstrip("0").rstrip(".")
|
||||
back = math.radians(angle + 180)
|
||||
wing = lambda d: (tx + size * math.sin(back + math.radians(d)), ty - size * math.cos(back + math.radians(d)))
|
||||
(ax, ay), (bx, by) = wing(-spread), wing(spread)
|
||||
return f"M{f(ax)} {f(ay)} L{f(tx)} {f(ty)} L{f(bx)} {f(by)}"
|
||||
|
||||
def turn_arrow(clockwise):
|
||||
cx, cy, r, a0, a1 = 8, 8.5, 5.5, 295, 65
|
||||
x1, y1 = cx + r * math.sin(math.radians(a1)), cy - r * math.cos(math.radians(a1))
|
||||
x0, y0 = cx + r * math.sin(math.radians(a0)), cy - r * math.cos(math.radians(a0))
|
||||
return arc(cx, cy, r, a0, a1) + " " + (head(x1, y1, a1 + 90) if clockwise else head(x0, y0, a0 - 90))
|
||||
|
||||
I["RotateRight"] = (rr(4.5,9.5,7,5,1)+" "+turn_arrow(True), None)
|
||||
I["RotateLeft"] = (rr(4.5,9.5,7,5,1)+" "+turn_arrow(False), None)
|
||||
I["Mirror"] = ("M8 1.5 V3 M8 5.5 V7.5 M8 10 V12 M8 14 V14.5 M6 4 V12.5 H1.5 Z", "M10 4 L14.5 12.5 H10 Z")
|
||||
I["Flip"] = ("M1.5 8 H3 M5.5 8 H7.5 M10 8 H12 M14 8 H14.5 M4 6 H12.5 V1.5 Z", "M4 10 L12.5 14.5 V10 Z")
|
||||
I["Straighten"] = ("M1.5 12.5 H14.5 M2.5 12.5 L13 6 "+arc(2.5,12.5,7,58.2,90), None)
|
||||
|
||||
# Glyphs that point along the reading direction (arrows, chevrons, start-aligned text lines): mirrored in RTL.
|
||||
# Everything else (clocks, media controls, the ▶ rendered status, symmetric shapes) never mirrors.
|
||||
DIRECTIONAL = {"Back", "Forward", "ChevronLeft", "ChevronRight", "ExternalLink", "Jobs", "Logs", "ViewList"}
|
||||
|
||||
+151
-129
@@ -149,269 +149,291 @@
|
||||
</g>
|
||||
<text x="589" y="276" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Filter</text>
|
||||
<g transform="translate(667,224) scale(1.5)">
|
||||
<path d="M4 10 L12.5 14.5 V10 Z" fill="#f2f3f5"/>
|
||||
<path d="M1.5 8 H3 M5.5 8 H7.5 M10 8 H12 M14 8 H14.5 M4 6 H12.5 V1.5 Z" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="679" y="276" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Flip</text>
|
||||
<g transform="translate(757,224) scale(1.5)">
|
||||
<path d="M1.5 4 A1 1 0 0 1 2.5 3 H6 L7.5 4.5 H13.5 A1 1 0 0 1 14.5 5.5 V12.5 A1 1 0 0 1 13.5 13.5 H2.5 A1 1 0 0 1 1.5 12.5 Z" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="679" y="276" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Folder</text>
|
||||
<g transform="translate(757,224) scale(1.5)">
|
||||
<text x="769" y="276" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Folder</text>
|
||||
<g transform="translate(847,224) scale(1.5)">
|
||||
<path d="M1.5 12.5 V4 A1 1 0 0 1 2.5 3 H6 L7.5 4.5 H12.5 V6.5 M1.5 12.5 L3.5 7 H14.5 L12.5 13.5 H2.5 A1 1 0 0 1 1.5 12.5 Z" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="769" y="276" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">FolderOpen</text>
|
||||
<g transform="translate(847,224) scale(1.5)">
|
||||
<text x="859" y="276" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">FolderOpen</text>
|
||||
<g transform="translate(37,294) scale(1.5)">
|
||||
<path d="M3 8 H13 M9 4 L13 8 L9 12" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="859" y="276" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Forward</text>
|
||||
<g transform="translate(37,294) scale(1.5)">
|
||||
<text x="49" y="346" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Forward</text>
|
||||
<g transform="translate(127,294) scale(1.5)">
|
||||
<path d="M2 6 V2 H6 M10 2 H14 V6 M14 10 V14 H10 M6 14 H2 V10" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="49" y="346" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Fullscreen</text>
|
||||
<g transform="translate(127,294) scale(1.5)">
|
||||
<text x="139" y="346" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Fullscreen</text>
|
||||
<g transform="translate(217,294) scale(1.5)">
|
||||
<path d="M5.0 3.5 H11.0 A1.5 1.5 0 0 1 12.5 5.0 V11.0 A1.5 1.5 0 0 1 11.0 12.5 H5.0 A1.5 1.5 0 0 1 3.5 11.0 V5.0 A1.5 1.5 0 0 1 5.0 3.5 Z M6.5 6 H9.5 A0.5 0.5 0 0 1 10 6.5 V9.5 A0.5 0.5 0 0 1 9.5 10 H6.5 A0.5 0.5 0 0 1 6 9.5 V6.5 A0.5 0.5 0 0 1 6.5 6 Z M6 1.5 V3.5 M10 1.5 V3.5 M6 12.5 V14.5 M10 12.5 V14.5 M1.5 6 H3.5 M1.5 10 H3.5 M12.5 6 H14.5 M12.5 10 H14.5" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="139" y="346" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Gpu</text>
|
||||
<g transform="translate(217,294) scale(1.5)">
|
||||
<text x="229" y="346" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Gpu</text>
|
||||
<g transform="translate(307,294) scale(1.5)">
|
||||
<path d="M5 4 A1 1 0 1 0 7 4 A1 1 0 1 0 5 4 ZM9 4 A1 1 0 1 0 11 4 A1 1 0 1 0 9 4 ZM5 8 A1 1 0 1 0 7 8 A1 1 0 1 0 5 8 ZM9 8 A1 1 0 1 0 11 8 A1 1 0 1 0 9 8 ZM5 12 A1 1 0 1 0 7 12 A1 1 0 1 0 5 12 ZM9 12 A1 1 0 1 0 11 12 A1 1 0 1 0 9 12 Z" fill="#f2f3f5"/>
|
||||
</g>
|
||||
<text x="229" y="346" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Grip</text>
|
||||
<g transform="translate(307,294) scale(1.5)">
|
||||
<text x="319" y="346" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Grip</text>
|
||||
<g transform="translate(397,294) scale(1.5)">
|
||||
<path d="M8 4.5 A3.5 3.5 0 0 1 8 11.5 Z" fill="#f2f3f5"/>
|
||||
<path d="M4.5 8 A3.5 3.5 0 1 0 11.5 8 A3.5 3.5 0 1 0 4.5 8 Z" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="319" y="346" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">HalfDot</text>
|
||||
<g transform="translate(397,294) scale(1.5)">
|
||||
<text x="409" y="346" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">HalfDot</text>
|
||||
<g transform="translate(487,294) scale(1.5)">
|
||||
<path d="M8 4.8 L8.9 6.9 L11.1 7.1 L9.4 8.5 L9.9 10.7 L8 9.5 L6.1 10.7 L6.6 8.5 L4.9 7.1 L7.1 6.9 Z" fill="#f2f3f5"/>
|
||||
<path d="M3.0 2.5 H13.0 A1.5 1.5 0 0 1 14.5 4.0 V12.0 A1.5 1.5 0 0 1 13.0 13.5 H3.0 A1.5 1.5 0 0 1 1.5 12.0 V4.0 A1.5 1.5 0 0 1 3.0 2.5 Z" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="409" y="346" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Hero</text>
|
||||
<g transform="translate(487,294) scale(1.5)">
|
||||
<text x="499" y="346" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Hero</text>
|
||||
<g transform="translate(577,294) scale(1.5)">
|
||||
<path d="M9.600000000000001 5.6 A1.2 1.2 0 1 0 12.0 5.6 A1.2 1.2 0 1 0 9.600000000000001 5.6 Z" fill="#f2f3f5"/>
|
||||
<path d="M3.0 2.5 H13.0 A1.5 1.5 0 0 1 14.5 4.0 V12.0 A1.5 1.5 0 0 1 13.0 13.5 H3.0 A1.5 1.5 0 0 1 1.5 12.0 V4.0 A1.5 1.5 0 0 1 3.0 2.5 Z M1.5 11 L5.5 7 L9 10.5 L11 8.5 L14.5 12" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="499" y="346" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Image</text>
|
||||
<g transform="translate(577,294) scale(1.5)">
|
||||
<text x="589" y="346" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Image</text>
|
||||
<g transform="translate(667,294) scale(1.5)">
|
||||
<path d="M8 2V10 M4.5 6.5 L8 10 L11.5 6.5 M2.5 13.5 H13.5" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="589" y="346" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Import</text>
|
||||
<g transform="translate(667,294) scale(1.5)">
|
||||
<text x="679" y="346" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Import</text>
|
||||
<g transform="translate(757,294) scale(1.5)">
|
||||
<path d="M1.5 8 A6.5 6.5 0 1 0 14.5 8 A6.5 6.5 0 1 0 1.5 8 Z M8 7 V11 M8 4.8 V5.2" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="679" y="346" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Info</text>
|
||||
<g transform="translate(757,294) scale(1.5)">
|
||||
<text x="769" y="346" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Info</text>
|
||||
<g transform="translate(847,294) scale(1.5)">
|
||||
<path d="M3 8 H13 M3 4 H13 M3 12 H9" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="769" y="346" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Jobs</text>
|
||||
<g transform="translate(847,294) scale(1.5)">
|
||||
<text x="859" y="346" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Jobs</text>
|
||||
<g transform="translate(37,364) scale(1.5)">
|
||||
<path d="M2 10.5 A3 3 0 1 0 8 10.5 A3 3 0 1 0 2 10.5 Z M7.2 8.3 L13.5 2 M11.5 4 L13 5.5 M9.8 5.7 L11 6.9" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="859" y="346" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Key</text>
|
||||
<g transform="translate(37,364) scale(1.5)">
|
||||
<text x="49" y="416" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Key</text>
|
||||
<g transform="translate(127,364) scale(1.5)">
|
||||
<path d="M8 2 L13 8 L8 14 L3 8 Z" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="49" y="416" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Keyframe</text>
|
||||
<g transform="translate(127,364) scale(1.5)">
|
||||
<text x="139" y="416" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Keyframe</text>
|
||||
<g transform="translate(217,364) scale(1.5)">
|
||||
<path d="M8 1.8 L14.5 5.2 L8 8.6 L1.5 5.2 Z M1.5 8.2 L8 11.6 L14.5 8.2 M1.5 11 L8 14.4 L14.5 11" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="139" y="416" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Layers</text>
|
||||
<g transform="translate(217,364) scale(1.5)">
|
||||
<text x="229" y="416" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Layers</text>
|
||||
<g transform="translate(307,364) scale(1.5)">
|
||||
<path d="M2.5 1.5 H6.0 A1 1 0 0 1 7.0 2.5 V6.0 A1 1 0 0 1 6.0 7.0 H2.5 A1 1 0 0 1 1.5 6.0 V2.5 A1 1 0 0 1 2.5 1.5 ZM10 1.5 H13.5 A1 1 0 0 1 14.5 2.5 V6.0 A1 1 0 0 1 13.5 7.0 H10 A1 1 0 0 1 9 6.0 V2.5 A1 1 0 0 1 10 1.5 ZM2.5 9 H6.0 A1 1 0 0 1 7.0 10 V13.5 A1 1 0 0 1 6.0 14.5 H2.5 A1 1 0 0 1 1.5 13.5 V10 A1 1 0 0 1 2.5 9 ZM10 9 H13.5 A1 1 0 0 1 14.5 10 V13.5 A1 1 0 0 1 13.5 14.5 H10 A1 1 0 0 1 9 13.5 V10 A1 1 0 0 1 10 9 Z" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="229" y="416" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Library</text>
|
||||
<g transform="translate(307,364) scale(1.5)">
|
||||
<text x="319" y="416" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Library</text>
|
||||
<g transform="translate(397,364) scale(1.5)">
|
||||
<path d="M6.8 9.2 L9.2 6.8 M7.5 4.5 L9 3 A2.8 2.8 0 0 1 13 7 L11.5 8.5 M8.5 11.5 L7 13 A2.8 2.8 0 0 1 3 9 L4.5 7.5" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="319" y="416" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Link</text>
|
||||
<g transform="translate(397,364) scale(1.5)">
|
||||
<text x="409" y="416" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Link</text>
|
||||
<g transform="translate(487,364) scale(1.5)">
|
||||
<path d="M4.5 7 H11.5 A1.5 1.5 0 0 1 13 8.5 V13.0 A1.5 1.5 0 0 1 11.5 14.5 H4.5 A1.5 1.5 0 0 1 3 13.0 V8.5 A1.5 1.5 0 0 1 4.5 7 Z M5.5 7 V5 A2.5 2.5 0 0 1 10.5 5 V7" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="409" y="416" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Lock</text>
|
||||
<g transform="translate(487,364) scale(1.5)">
|
||||
<text x="499" y="416" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Lock</text>
|
||||
<g transform="translate(577,364) scale(1.5)">
|
||||
<path d="M3.5 1.5 H9.5 L12.5 4.5 V14.5 H3.5 Z M5.5 7 H10.5 M5.5 9.5 H10.5 M5.5 12 H8.5" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="499" y="416" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Logs</text>
|
||||
<g transform="translate(577,364) scale(1.5)">
|
||||
<text x="589" y="416" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Logs</text>
|
||||
<g transform="translate(667,364) scale(1.5)">
|
||||
<path d="M2.5 4 H13.5 M2.5 8 H13.5 M2.5 12 H13.5" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="589" y="416" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Menu</text>
|
||||
<g transform="translate(667,364) scale(1.5)">
|
||||
<text x="679" y="416" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Menu</text>
|
||||
<g transform="translate(757,364) scale(1.5)">
|
||||
<path d="M3 8 H13" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="679" y="416" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Minus</text>
|
||||
<g transform="translate(757,364) scale(1.5)">
|
||||
<text x="769" y="416" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Minus</text>
|
||||
<g transform="translate(847,364) scale(1.5)">
|
||||
<path d="M10 4 L14.5 12.5 H10 Z" fill="#f2f3f5"/>
|
||||
<path d="M8 1.5 V3 M8 5.5 V7.5 M8 10 V12 M8 14 V14.5 M6 4 V12.5 H1.5 Z" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="859" y="416" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Mirror</text>
|
||||
<g transform="translate(37,434) scale(1.5)">
|
||||
<path d="M9.5 1.8 A6.5 6.5 0 1 0 14.2 11.2 A5.5 5.5 0 0 1 9.5 1.8 Z" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="769" y="416" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Moon</text>
|
||||
<g transform="translate(847,364) scale(1.5)">
|
||||
<text x="49" y="486" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Moon</text>
|
||||
<g transform="translate(127,434) scale(1.5)">
|
||||
<path d="M2.4 8 A1.1 1.1 0 1 0 4.6 8 A1.1 1.1 0 1 0 2.4 8 ZM6.9 8 A1.1 1.1 0 1 0 9.1 8 A1.1 1.1 0 1 0 6.9 8 ZM11.4 8 A1.1 1.1 0 1 0 13.6 8 A1.1 1.1 0 1 0 11.4 8 Z" fill="#f2f3f5"/>
|
||||
</g>
|
||||
<text x="859" y="416" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">More</text>
|
||||
<g transform="translate(37,434) scale(1.5)">
|
||||
<text x="139" y="486" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">More</text>
|
||||
<g transform="translate(217,434) scale(1.5)">
|
||||
<path d="M1.5 8 C3.5 3 5.5 3 7.5 8 C9.5 13 11.5 13 14.5 8" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="49" y="486" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Motion</text>
|
||||
<g transform="translate(127,434) scale(1.5)">
|
||||
<text x="229" y="486" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Motion</text>
|
||||
<g transform="translate(307,434) scale(1.5)">
|
||||
<path d="M6.9 13 A1.1 1.1 0 1 0 9.1 13 A1.1 1.1 0 1 0 6.9 13 Z" fill="#f2f3f5"/>
|
||||
<path d="M2 6 A8.5 8.5 0 0 1 14 6 M4 8.5 A5.5 5.5 0 0 1 12 8.5 M6 11 A2.6 2.6 0 0 1 10 11" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="139" y="486" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Network</text>
|
||||
<g transform="translate(217,434) scale(1.5)">
|
||||
<text x="319" y="486" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Network</text>
|
||||
<g transform="translate(397,434) scale(1.5)">
|
||||
<path d="M7 2 L8.2 5.8 L12 7 L8.2 8.2 L7 12 L5.8 8.2 L2 7 L5.8 5.8 Z M12.5 10.5 L13 12 L14.5 12.5 L13 13 L12.5 14.5 L12 13 L10.5 12.5 L12 12 Z" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="229" y="486" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Optimise</text>
|
||||
<g transform="translate(307,434) scale(1.5)">
|
||||
<text x="409" y="486" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Optimise</text>
|
||||
<g transform="translate(487,434) scale(1.5)">
|
||||
<path d="M4.8 3 H5.8 A0.8 0.8 0 0 1 6.6 3.8 V12.2 A0.8 0.8 0 0 1 5.8 13 H4.8 A0.8 0.8 0 0 1 4 12.2 V3.8 A0.8 0.8 0 0 1 4.8 3 ZM10.200000000000001 3 H11.2 A0.8 0.8 0 0 1 12.0 3.8 V12.2 A0.8 0.8 0 0 1 11.2 13 H10.200000000000001 A0.8 0.8 0 0 1 9.4 12.2 V3.8 A0.8 0.8 0 0 1 10.200000000000001 3 Z" fill="#f2f3f5"/>
|
||||
</g>
|
||||
<text x="319" y="486" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Pause</text>
|
||||
<g transform="translate(397,434) scale(1.5)">
|
||||
<text x="499" y="486" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Pause</text>
|
||||
<g transform="translate(577,434) scale(1.5)">
|
||||
<path d="M4.5 2.8 L13 8 L4.5 13.2 Z" fill="#f2f3f5"/>
|
||||
</g>
|
||||
<text x="409" y="486" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Play</text>
|
||||
<g transform="translate(487,434) scale(1.5)">
|
||||
<text x="589" y="486" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Play</text>
|
||||
<g transform="translate(667,434) scale(1.5)">
|
||||
<path d="M8 3 V13 M3 8 H13" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="499" y="486" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Plus</text>
|
||||
<g transform="translate(577,434) scale(1.5)">
|
||||
<text x="679" y="486" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Plus</text>
|
||||
<g transform="translate(757,434) scale(1.5)">
|
||||
<path d="M8 1.8 V7.5 M11.54 4.59 A5.5 5.5 0 1 1 4.46 4.59" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="589" y="486" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Power</text>
|
||||
<g transform="translate(667,434) scale(1.5)">
|
||||
<text x="769" y="486" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Power</text>
|
||||
<g transform="translate(847,434) scale(1.5)">
|
||||
<path d="M10.75 3.24 A5.5 5.5 0 1 1 4.46 3.79 M13.2 2.6 L13.2 5.3 L10.5 5.3" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="679" y="486" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Refresh</text>
|
||||
<g transform="translate(757,434) scale(1.5)">
|
||||
<text x="859" y="486" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Refresh</text>
|
||||
<g transform="translate(37,504) scale(1.5)">
|
||||
<path d="M1.5 9.5 C4 8 6 10.5 8.5 9 C10.5 7.8 12.5 8.5 14.5 9.5 M1.5 13.5 H14.5 M1.5 2.5 H14.5" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="769" y="486" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Regions</text>
|
||||
<g transform="translate(847,434) scale(1.5)">
|
||||
<text x="49" y="556" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Regions</text>
|
||||
<g transform="translate(127,504) scale(1.5)">
|
||||
<path d="M6.5 5.5 L10.8 8 L6.5 10.5 Z" fill="#f2f3f5"/>
|
||||
<path d="M3.0 2.5 H13.0 A1.5 1.5 0 0 1 14.5 4.0 V12.0 A1.5 1.5 0 0 1 13.0 13.5 H3.0 A1.5 1.5 0 0 1 1.5 12.0 V4.0 A1.5 1.5 0 0 1 3.0 2.5 Z" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="859" y="486" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Render</text>
|
||||
<g transform="translate(37,504) scale(1.5)">
|
||||
<text x="139" y="556" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Render</text>
|
||||
<g transform="translate(217,504) scale(1.5)">
|
||||
<path d="M3.67 6.00 A5 5 0 1 1 5.50 12.83 M3.2 3.2 V6.2 H6.2" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="49" y="556" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Reset</text>
|
||||
<g transform="translate(127,504) scale(1.5)">
|
||||
<text x="229" y="556" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Reset</text>
|
||||
<g transform="translate(307,504) scale(1.5)">
|
||||
<path d="M10.75 3.24 A5.5 5.5 0 1 1 4.46 3.79 M13.2 2.6 L13.2 5.3 L10.5 5.3" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="139" y="556" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Retry</text>
|
||||
<g transform="translate(217,504) scale(1.5)">
|
||||
<text x="319" y="556" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Retry</text>
|
||||
<g transform="translate(397,504) scale(1.5)">
|
||||
<path d="M4.5 8 A3.5 3.5 0 1 0 11.5 8 A3.5 3.5 0 1 0 4.5 8 Z" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="229" y="556" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Ring</text>
|
||||
<g transform="translate(307,504) scale(1.5)">
|
||||
<text x="409" y="556" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Ring</text>
|
||||
<g transform="translate(487,504) scale(1.5)">
|
||||
<path d="M5.5 9.5 H10.5 A1 1 0 0 1 11.5 10.5 V13.5 A1 1 0 0 1 10.5 14.5 H5.5 A1 1 0 0 1 4.5 13.5 V10.5 A1 1 0 0 1 5.5 9.5 Z M3.02 6.18 A5.5 5.5 0 0 1 12.98 6.18 M2.39 3.86 L3.02 6.18 L5.19 5.16" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="499" y="556" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">RotateLeft</text>
|
||||
<g transform="translate(577,504) scale(1.5)">
|
||||
<path d="M5.5 9.5 H10.5 A1 1 0 0 1 11.5 10.5 V13.5 A1 1 0 0 1 10.5 14.5 H5.5 A1 1 0 0 1 4.5 13.5 V10.5 A1 1 0 0 1 5.5 9.5 Z M3.02 6.18 A5.5 5.5 0 0 1 12.98 6.18 M10.81 5.16 L12.98 6.18 L13.61 3.86" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="589" y="556" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">RotateRight</text>
|
||||
<g transform="translate(667,504) scale(1.5)">
|
||||
<path d="M2.5 7 A4.5 4.5 0 1 0 11.5 7 A4.5 4.5 0 1 0 2.5 7 Z M10.4 10.4 L14 14" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="319" y="556" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Search</text>
|
||||
<g transform="translate(397,504) scale(1.5)">
|
||||
<text x="679" y="556" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Search</text>
|
||||
<g transform="translate(757,504) scale(1.5)">
|
||||
<path d="M2 12.5 L11.5 3 L13 4.5 L3.5 14 H2 Z" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="409" y="556" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Sequence</text>
|
||||
<g transform="translate(487,504) scale(1.5)">
|
||||
<text x="769" y="556" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Sequence</text>
|
||||
<g transform="translate(847,504) scale(1.5)">
|
||||
<path d="M4.5 12.5 A3 3 0 0 1 4.2 6.5 A4 4 0 0 1 11.9 5.5 A3.5 3.5 0 0 1 12.2 12.5 Z" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="499" y="556" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Server</text>
|
||||
<g transform="translate(577,504) scale(1.5)">
|
||||
<text x="859" y="556" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Server</text>
|
||||
<g transform="translate(37,574) scale(1.5)">
|
||||
<path d="M7.15 3.48 L7.4 1.53 A6.5 6.5 0 0 1 8.6 1.53 L8.85 3.48 A4.6 4.6 0 0 1 10.6 4.2 L12.15 3 A6.5 6.5 0 0 1 13 3.85 L11.8 5.4 A4.6 4.6 0 0 1 12.52 7.15 L14.47 7.4 A6.5 6.5 0 0 1 14.47 8.6 L12.52 8.85 A4.6 4.6 0 0 1 11.8 10.6 L13 12.15 A6.5 6.5 0 0 1 12.15 13 L10.6 11.8 A4.6 4.6 0 0 1 8.85 12.52 L8.6 14.47 A6.5 6.5 0 0 1 7.4 14.47 L7.15 12.52 A4.6 4.6 0 0 1 5.4 11.8 L3.85 13 A6.5 6.5 0 0 1 3 12.15 L4.2 10.6 A4.6 4.6 0 0 1 3.48 8.85 L1.53 8.6 A6.5 6.5 0 0 1 1.53 7.4 L3.48 7.15 A4.6 4.6 0 0 1 4.2 5.4 L3 3.85 A6.5 6.5 0 0 1 3.85 3 L5.4 4.2 A4.6 4.6 0 0 1 7.15 3.48 Z M6.3 8 A1.7 1.7 0 1 0 9.7 8 A1.7 1.7 0 1 0 6.3 8 Z" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="589" y="556" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Settings</text>
|
||||
<g transform="translate(667,504) scale(1.5)">
|
||||
<text x="49" y="626" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Settings</text>
|
||||
<g transform="translate(127,574) scale(1.5)">
|
||||
<path d="M5 2.5 V13.5 M2.5 11 L5 13.5 L7.5 11 M11 13.5 V2.5 M8.5 5 L11 2.5 L13.5 5" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="679" y="556" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Sort</text>
|
||||
<g transform="translate(757,504) scale(1.5)">
|
||||
<text x="139" y="626" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Sort</text>
|
||||
<g transform="translate(217,574) scale(1.5)">
|
||||
<path d="M0.8 13 A1.2 1.2 0 1 0 3.2 13 A1.2 1.2 0 1 0 0.8 13 ZM12.8 3 A1.2 1.2 0 1 0 15.2 3 A1.2 1.2 0 1 0 12.8 3 Z" fill="#f2f3f5"/>
|
||||
<path d="M2 13 C5 13 5 3 8 8 C11 13 11 3 14 3" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="769" y="556" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Spline</text>
|
||||
<g transform="translate(847,504) scale(1.5)">
|
||||
<text x="229" y="626" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Spline</text>
|
||||
<g transform="translate(307,574) scale(1.5)">
|
||||
<path d="M8 1.8 L14.5 5.2 L8 8.6 L1.5 5.2 Z M1.5 8.2 L8 11.6 L14.5 8.2 M1.5 11 L8 14.4 L14.5 11" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="859" y="556" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Stack</text>
|
||||
<g transform="translate(37,574) scale(1.5)">
|
||||
<text x="319" y="626" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Stack</text>
|
||||
<g transform="translate(397,574) scale(1.5)">
|
||||
<path d="M8 1.8 L9.9 5.8 L14.2 6.3 L11 9.3 L11.9 13.6 L8 11.4 L4.1 13.6 L5 9.3 L1.8 6.3 L6.1 5.8 Z" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="49" y="626" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Star</text>
|
||||
<g transform="translate(127,574) scale(1.5)">
|
||||
<text x="409" y="626" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Star</text>
|
||||
<g transform="translate(487,574) scale(1.5)">
|
||||
<path d="M8 1.8 L9.9 5.8 L14.2 6.3 L11 9.3 L11.9 13.6 L8 11.4 L4.1 13.6 L5 9.3 L1.8 6.3 L6.1 5.8 Z" fill="#f2f3f5"/>
|
||||
</g>
|
||||
<text x="139" y="626" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">StarFilled</text>
|
||||
<g transform="translate(217,574) scale(1.5)">
|
||||
<text x="499" y="626" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">StarFilled</text>
|
||||
<g transform="translate(577,574) scale(1.5)">
|
||||
<path d="M5.0 3.5 H11.0 A1.5 1.5 0 0 1 12.5 5.0 V11.0 A1.5 1.5 0 0 1 11.0 12.5 H5.0 A1.5 1.5 0 0 1 3.5 11.0 V5.0 A1.5 1.5 0 0 1 5.0 3.5 Z" fill="#f2f3f5"/>
|
||||
</g>
|
||||
<text x="229" y="626" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Stop</text>
|
||||
<g transform="translate(307,574) scale(1.5)">
|
||||
<text x="589" y="626" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Stop</text>
|
||||
<g transform="translate(667,574) scale(1.5)">
|
||||
<path d="M1.5 12.5 H14.5 M2.5 12.5 L13 6 M8.45 8.81 A7 7 0 0 1 9.50 12.50" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="679" y="626" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Straighten</text>
|
||||
<g transform="translate(757,574) scale(1.5)">
|
||||
<path d="M1.5 8 A6.5 6.5 0 1 0 14.5 8 A6.5 6.5 0 1 0 1.5 8 Z M5 8.3 L7.1 10.3 L11 6" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="319" y="626" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">SuccessCircle</text>
|
||||
<g transform="translate(397,574) scale(1.5)">
|
||||
<text x="769" y="626" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">SuccessCircle</text>
|
||||
<g transform="translate(847,574) scale(1.5)">
|
||||
<path d="M5 8 A3 3 0 1 0 11 8 A3 3 0 1 0 5 8 Z M8 1 V2.5 M8 13.5 V15 M1 8 H2.5 M13.5 8 H15 M3 3 L4 4 M12 12 L13 13 M3 13 L4 12 M12 4 L13 3" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="409" y="626" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Sun</text>
|
||||
<g transform="translate(487,574) scale(1.5)">
|
||||
<text x="859" y="626" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Sun</text>
|
||||
<g transform="translate(37,644) scale(1.5)">
|
||||
<path d="M9.88 2.83 A5.5 5.5 0 0 1 9.88 13.17 M6.12 13.17 A5.5 5.5 0 0 1 6.12 2.83 M13.5 6.5 L13.2 9.4 L10.6 8.4 M2.5 9.5 L2.8 6.6 L5.4 7.6" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="499" y="626" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Sync</text>
|
||||
<g transform="translate(577,574) scale(1.5)">
|
||||
<text x="49" y="696" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Sync</text>
|
||||
<g transform="translate(127,644) scale(1.5)">
|
||||
<path d="M1.5 2.5 A1 1 0 0 1 2.5 1.5 H7.5 L14.5 8.5 L8.5 14.5 L1.5 7.5 Z M5 5 H5.1" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="589" y="626" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Tag</text>
|
||||
<g transform="translate(667,574) scale(1.5)">
|
||||
<text x="139" y="696" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Tag</text>
|
||||
<g transform="translate(217,644) scale(1.5)">
|
||||
<path d="M1.5 8 A6.5 6.5 0 1 0 14.5 8 A6.5 6.5 0 1 0 1.5 8 Z M8 4.5 V8 L10.5 9.5" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="679" y="626" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Time</text>
|
||||
<g transform="translate(757,574) scale(1.5)">
|
||||
<text x="229" y="696" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Time</text>
|
||||
<g transform="translate(307,644) scale(1.5)">
|
||||
<path d="M1.5 9.5 H5 L6.5 11.5 H9.5 L11 9.5 H14.5 M1.5 9.5 L3.5 3 H12.5 L14.5 9.5 V13.5 H1.5 Z" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="769" y="626" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Tray</text>
|
||||
<g transform="translate(847,574) scale(1.5)">
|
||||
<text x="319" y="696" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Tray</text>
|
||||
<g transform="translate(397,644) scale(1.5)">
|
||||
<path d="M8 3 L13.5 12.5 H2.5 Z" fill="#f2f3f5"/>
|
||||
</g>
|
||||
<text x="859" y="626" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Triangle</text>
|
||||
<g transform="translate(37,644) scale(1.5)">
|
||||
<text x="409" y="696" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Triangle</text>
|
||||
<g transform="translate(487,644) scale(1.5)">
|
||||
<path d="M5 3 L12 8 L5 13 Z" fill="#f2f3f5"/>
|
||||
</g>
|
||||
<text x="49" y="696" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">TriangleRight</text>
|
||||
<g transform="translate(127,644) scale(1.5)">
|
||||
<text x="499" y="696" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">TriangleRight</text>
|
||||
<g transform="translate(577,644) scale(1.5)">
|
||||
<path d="M8 10.5 V2.5 M4.5 6 L8 2.5 L11.5 6 M2.5 13.5 H13.5" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="139" y="696" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Upload</text>
|
||||
<g transform="translate(217,644) scale(1.5)">
|
||||
<text x="589" y="696" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Upload</text>
|
||||
<g transform="translate(667,644) scale(1.5)">
|
||||
<path d="M5 5 A3 3 0 1 0 11 5 A3 3 0 1 0 5 5 Z M2.5 14 A5.5 5.5 0 0 1 13.5 14" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="229" y="696" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">User</text>
|
||||
<g transform="translate(307,644) scale(1.5)">
|
||||
<text x="679" y="696" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">User</text>
|
||||
<g transform="translate(757,644) scale(1.5)">
|
||||
<path d="M5 5 A3 3 0 1 0 11 5 A3 3 0 1 0 5 5 Z M2.5 14 A5.5 5.5 0 0 1 13.5 14" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="319" y="696" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Users</text>
|
||||
<g transform="translate(397,644) scale(1.5)">
|
||||
<text x="769" y="696" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Users</text>
|
||||
<g transform="translate(847,644) scale(1.5)">
|
||||
<path d="M2.5 12.5 L7 8 M7 8 H4.5 M7 8 V10.5 M9 7 L13.5 2.5 M13.5 2.5 H11 M13.5 2.5 V5" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="409" y="696" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Vectors</text>
|
||||
<g transform="translate(487,644) scale(1.5)">
|
||||
<text x="859" y="696" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Vectors</text>
|
||||
<g transform="translate(37,714) scale(1.5)">
|
||||
<path d="M8 1.5 L13.5 3.5 V7.5 C13.5 11 11 13.3 8 14.5 C5 13.3 2.5 11 2.5 7.5 V3.5 Z M5.5 8 L7.3 9.8 L10.6 6.3" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="499" y="696" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Verify</text>
|
||||
<g transform="translate(577,644) scale(1.5)">
|
||||
<text x="49" y="766" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Verify</text>
|
||||
<g transform="translate(127,714) scale(1.5)">
|
||||
<path d="M2.5 1.5 H6.0 A1 1 0 0 1 7.0 2.5 V6.0 A1 1 0 0 1 6.0 7.0 H2.5 A1 1 0 0 1 1.5 6.0 V2.5 A1 1 0 0 1 2.5 1.5 ZM10 1.5 H13.5 A1 1 0 0 1 14.5 2.5 V6.0 A1 1 0 0 1 13.5 7.0 H10 A1 1 0 0 1 9 6.0 V2.5 A1 1 0 0 1 10 1.5 ZM2.5 9 H6.0 A1 1 0 0 1 7.0 10 V13.5 A1 1 0 0 1 6.0 14.5 H2.5 A1 1 0 0 1 1.5 13.5 V10 A1 1 0 0 1 2.5 9 ZM10 9 H13.5 A1 1 0 0 1 14.5 10 V13.5 A1 1 0 0 1 13.5 14.5 H10 A1 1 0 0 1 9 13.5 V10 A1 1 0 0 1 10 9 Z" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="589" y="696" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">ViewGrid</text>
|
||||
<g transform="translate(667,644) scale(1.5)">
|
||||
<text x="139" y="766" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">ViewGrid</text>
|
||||
<g transform="translate(217,714) scale(1.5)">
|
||||
<path d="M5.5 4 H13.5 M5.5 8 H13.5 M5.5 12 H13.5 M2.5 4 H2.6 M2.5 8 H2.6 M2.5 12 H2.6" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="679" y="696" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">ViewList</text>
|
||||
<g transform="translate(757,644) scale(1.5)">
|
||||
<text x="229" y="766" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">ViewList</text>
|
||||
<g transform="translate(307,714) scale(1.5)">
|
||||
<path d="M2 13.5 H14 M3.5 11 V8 M6 11 V5 M8.5 11 V7 M11 11 V3.5 M13.5 11 V9" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="769" y="696" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">ViewTimeline</text>
|
||||
<g transform="translate(847,644) scale(1.5)">
|
||||
<text x="319" y="766" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">ViewTimeline</text>
|
||||
<g transform="translate(397,714) scale(1.5)">
|
||||
<path d="M8 1.8 L14.8 13.8 H1.2 Z M8 6.2 V9.6 M8 11.7 V11.8" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="859" y="696" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Warning</text>
|
||||
<g transform="translate(37,714) scale(1.5)">
|
||||
<text x="409" y="766" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Warning</text>
|
||||
<g transform="translate(487,714) scale(1.5)">
|
||||
<path d="M3.0 2.5 H13.0 A1.5 1.5 0 0 1 14.5 4.0 V12.0 A1.5 1.5 0 0 1 13.0 13.5 H3.0 A1.5 1.5 0 0 1 1.5 12.0 V4.0 A1.5 1.5 0 0 1 3.0 2.5 Z M1.5 5.5 H14.5" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="49" y="766" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Window</text>
|
||||
<g transform="translate(127,714) scale(1.5)">
|
||||
<text x="499" y="766" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Window</text>
|
||||
<g transform="translate(577,714) scale(1.5)">
|
||||
<path d="M3.0 2.5 H13.0 A1.5 1.5 0 0 1 14.5 4.0 V12.0 A1.5 1.5 0 0 1 13.0 13.5 H3.0 A1.5 1.5 0 0 1 1.5 12.0 V4.0 A1.5 1.5 0 0 1 3.0 2.5 Z M8 1 V15" fill="none" stroke="#f2f3f5" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</g>
|
||||
<text x="139" y="766" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Wipe</text>
|
||||
<text x="589" y="766" fill="#a9aeb9" font-size="10" text-anchor="middle" font-family="sans-serif">Wipe</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 39 KiB |
@@ -701,3 +701,21 @@ One line per decision: date · decision · alternative · reason.
|
||||
| 2026-11-04 | A move's failure and cancel: before the switch, renamed entries go back (if that fails the journal stays and the workspace stays held until Resume) and copies at the target are removed, the journal deleted; a user cancel (running, paused or failed) undoes it the same way. After the switch nothing is undone: a source entry goes only while each file still matches its verified copy (name, size, time), one changed since is kept and logged, one held open keeps the journal, and the job ends Done with `Archive.Log.WorkspaceMoveLeft`; the next run clears the rest. A pause, a yield or closing the program keep the journal. A resumed move does not check for other jobs again. (Owner review 2, R8, phase 5c; review safety-3, tests-3.) | Fail the job after the switch | The target is the workspace by then; refusing to resume would strand a half-done move. |
|
||||
| 2026-11-04 | Jobs and the move: `WorkspaceJobRoots.Resolve` (Data) makes a copy, render or send work in the folder that holds its project now (the one named, a switched move's target, or the folder in use through `CurrentRoot`), and refuses it (`Errors.Workspace.Moving`) while a move of either folder has not switched; a retry after the move then works. The desktop's gate (`WorkspaceHost.IsMoving`: a move job queued, running or paused, followed through `JobChanged` and adopted at start, or a journal in the folder in use) holds checkout, copies, Proxies only, save, sync, conflicts, restore, the picker's lists, rename, delete, Remove local copy, Change, Empty… and the clean-up. A journal at start, also one left in the old folder of a switched move into the folder in use, raises a notice and Settings shows *Resume*; Change… and Move… stay disabled meanwhile, their tooltips saying why. (Owner review 2, R8, phase 5c; review jobs-6, integration-2, integration-3, integration-6, ui-3; final check.) | Gate only the desktop's commands | Engine retries bypassed the gate and wrote into the old folder; choosing another folder before Resume would lose the old copy for good. |
|
||||
| 2026-11-04 | Phase 5c strings: every new key in en and it with final text; 19 unused keys removed from en and it and `i18n prune` removed 144 orphans from the other cultures; `Errors.Workspace.DiskFull` kept (the copy's space check). The Italian move plan, trash and job kind wordings were revised. (Owner review 2, R8, phase 5c; review ui-8, ui-9.) | Keep unused keys for later | Unused keys cost every translation. |
|
||||
| 2026-11-04 | Conditional settings format: `ProjectSettings.CurrentVersion = 2` is the highest format this build reads; `ToJson` writes the lowest format that renders the same (`RequiredFormat`: 2 only when a turn, mirror, flip, straighten or non-identity look is set, otherwise `BaseVersion` 1; a newer project read-only keeps its own number through `WrittenFormat`); `ProjectContent.FormatOf` falls back to 1. (Owner review 1, R5/R6, phase 4.) | Always write 2 | Every project that does not use the new features keeps byte-identical canonical text and hash, so no External versions appear and older builds treat it as before. |
|
||||
| 2026-11-04 | Rule for future settings members: a member that changes pixels and that the previous format would ignore raises the written format only when it is used; it is declared after the existing members, before `Extra`, and omitted at its default; lists that grow are strings, not enums. (Owner review 1, phase 4.) | Bump the format per release | Keeps old text stable and lets an older build carry the member through `Extra` in the same place. |
|
||||
| 2026-11-04 | Orientation members and order: `camera.rotate` 0/90/180/270 clockwise after Exif orientation, then `mirror` (left↔right) and `flip` (top↔bottom) in screen axes after the turn, then `straighten` ±15° positive clockwise; all inside the single warp between stabilisation and the virtual camera. Pixels are never rotated after decode. (Owner review 1, R5, phase 4.) | Rotate the decoded pixels | Stabiliser paths, the sky mask and the horizon stay in raw-frame space and one resample is kept. |
|
||||
| 2026-11-04 | Straighten cover zoom is automatic and never stored: c = cos\|θ\| + max(W'/H', H'/W')·sin\|θ\| (`FrameOrientation.CoverZoomOf`). (Owner review 1, R5, phase 4.) | A user zoom or a clamped border | No smeared border can ever show and any crop in [0,1]² stays valid. |
|
||||
| 2026-11-04 | Crop coordinates: `camera.crop` and the keyframe centres are normalised in the view frame T (oriented, straightened, cover-zoomed), which is today's meaning for the identity transform; the crop stays one atomic array in `ProjectMerge`, so a concurrent move and resize give one `camera.crop` conflict. (Owner review 1, R5, phase 4.) | Raw-frame coordinates; per-edge merge | The mask maps 1:1 to the stored crop and a merge never yields a rectangle of the wrong ratio. |
|
||||
| 2026-11-04 | Locked crop: editor edits write the aspect-locked box itself with `offsetX`/`offsetY` 0, so `FitCrop` returns it unchanged; the first edit of a legacy free crop with offsets bakes them in (`FitCrop(crop, ratio, offsets)`); the renderer keeps `FitCrop` as the safety net; an aspect change refits the box (same centre, new ratio, inside the frame). (Owner review 1, R5, phase 4.) | Keep free crops plus offsets | What the user drags is what renders. |
|
||||
| 2026-11-04 | A quarter turn keeps the content: rotate left/right remaps the crop and keyframe centres exactly and transposes a non-square aspect (manual or the Auto's advised value: 16:9 → 9:16); mirror and flip remap crop and centres and negate the keyframe roll; each press is one undo step (`OrientationEdit`). (Owner review 1, R5, phase 4.) | Reset the framing on a turn | The framed subject stays framed. |
|
||||
| 2026-11-04 | Proportions win: when the resolved aspect is not "source", a fixed-size preset is a size box and the aspect is fitted inside it, the box turned to portrait for a ratio below 1 (4K at 9:16 = 2160×3840, 1:1 = 2160×2160, 4:5 = 2160×2700, 21:9 = 3840×1646; 1080p at 9:16 = 1080×1920); "source" keeps the preset's size; sizes stay even for non-managed codecs; `AspectFromPreset` is removed and the preset name does not flip to Custom (`RenderSize`). (Owner review 1, R6, phase 4.) | The preset ratio wins (crop in the preset frame) | The chosen proportions are what the user asked for; default projects do not change. |
|
||||
| 2026-11-04 | Proportions win is not format-gated in storage: raising the format for it would drift the canonical text of stored projects and spawn External versions; it is gated only in routing and in the desktop's server gating, and the output change is a CHANGELOG upgrade note. (Owner review 1, R6, phase 4.) | Write format 2 for it | Stored projects keep their hash. |
|
||||
| 2026-11-04 | Routing format: `RenderRules.RequiredFormat(settings, export, srcW, srcH)` = max(written format, 2 when the adapted size differs from the preset's fixed size), never written; nodes announce `RegisterNodeRequest.SettingsFormat` (older node = 1); jobs carry `RenderJobParameters.RequiredSettingsFormat`; a claim and the "awaits a node" check skip incompatible nodes. (Owner review 1, phase 4.) | Send every job to every node | An older node never renders a job it would get wrong. |
|
||||
| 2026-11-04 | Server format announcement: `ServerInfo.SettingsFormat` is new (null from an older server = 1); the desktop disables Push and Send-and-render when the required format exceeds the server's, with a tooltip giving the reason (`Tooltips.Server.NeedsNewerServer`). (Owner review 1, phase 4.) | Let the server refuse | The user sees why before acting. |
|
||||
| 2026-11-04 | Colour look: parametric and built in (no LUT files a server or Docker image would lack): a linear-light 3×3 matrix, a contrast power about 0.18 and a lift, blended by strength; applied once per output frame after stacking, interpolation and blur and before the knee (`FrameFinish`), never seen by measuring, flow or stacking; `look.filter` is a string and an unknown name renders as identity with `Export.Render.LookIgnored`. (Owner review 1, R6, phase 4.) | LUT files; look before stacking | Same pixels everywhere, the knee compresses any overshoot, analysis stays on real data. |
|
||||
| 2026-11-04 | No ninth step: the transforms join the Camera step and the look joins the Exposure step (BRIEF §12.3); Alt+1…8, "n / 8" and the 82-px step cells are unchanged. (Owner review 1, phase 4.) | A Transform or Look step | Keeps the eight-step model. |
|
||||
| 2026-11-04 | Raw thumbnails: library, filmstrip, hero and admin-panel covers stay raw photos, without transforms or look. (Owner review 1, phase 4.) | Oriented covers | Thumbnails are frame identity, not output previews, and need no render. |
|
||||
| 2026-11-04 | Preview Source framing: with a non-identity transform the whole T frame is shown without stabilisation or camera pose, so the Camera-step mask is static and maps 1:1 to `camera.crop`; the Export step shows the per-frame output footprint mapped into T (`RenderGeometry.FootprintInView`). (Owner review 1, R5, phase 4.) | Show the raw frame | The mask the user drags is the stored crop. |
|
||||
| 2026-11-04 | Global only: the new settings are not per-frame and not frame-keyed, so there are no new parked positions; the keyframe `Rotation` roll is unchanged. (Owner review 1, phase 4.) | Keyframed straighten or look | Simple, and roll already covers per-frame tilt. |
|
||||
| 2026-11-04 | Phase 4 compatibility: new server + old node: v1 rendered by the node, v2 and proportions-win jobs never sent to it; old server + new desktop: v1 works, v2 push and render disabled with a reason, proportions-win render disabled (push works); new server + old desktop: v1 works, v2 listed and opened read-only, never mirrored or merged, the old desktop's own render uses the preset ratio (known limitation); old desktop local: v2 read-only, a format-1 `.chronos` refuses it, proportions-win renders at the preset ratio (CHANGELOG note). (Owner review 1, phase 4.) | — | Records the matrix the format, routing and gating rows give. |
|
||||
| 2026-11-04 | Phase 4 groundwork details: `ProjectSettings.WrittenFormat` (the format `ToJson` stamps, a newer project's own number); `EditPath.HasHandValues` counts a crop only when not whole (`CropFrame.IsWhole`), which matches today; FrameFinish clamps the look strength to 0..1 (missing = 1) and an unknown look still writes format 2 (it is a newer Chronos's); look names are ordinal and case-sensitive; `OrientationEdit` also remaps offsets and pending keyframes, negates straighten on mirror/flip, normalises rotate to 0..270 and rounds remapped coordinates to 12 decimals so four turns give the original text; the SelfTest geometry and colour checks sit before the robustness checks. (Owner review 1, phase 4.) | — | Simplest safe choices where the plan was silent. |
|
||||
@@ -29,14 +29,24 @@
|
||||
<data name="Editor.Camera.CropBottom" xml:space="preserve"><value>Crop bottom</value></data>
|
||||
<data name="Editor.Camera.CropLeft" xml:space="preserve"><value>Crop left</value></data>
|
||||
<data name="Editor.Camera.CropRight" xml:space="preserve"><value>Crop right</value></data>
|
||||
<data name="Editor.Camera.CropSize" xml:space="preserve"><value>Crop size</value></data>
|
||||
<data name="Editor.Camera.CropTop" xml:space="preserve"><value>Crop top</value></data>
|
||||
<data name="Editor.Camera.CropX" xml:space="preserve"><value>Crop X</value></data>
|
||||
<data name="Editor.Camera.CropY" xml:space="preserve"><value>Crop Y</value></data>
|
||||
<data name="Editor.Camera.Curve" xml:space="preserve"><value>Keyframes</value></data>
|
||||
<data name="Editor.Camera.Flip" xml:space="preserve"><value>Flip</value></data>
|
||||
<data name="Editor.Camera.KeyOf" xml:space="preserve"><value>Keyframe {0} of {1} · {2}</value></data>
|
||||
<data name="Editor.Camera.Keys.one" xml:space="preserve"><value>{0} keyframe</value></data>
|
||||
<data name="Editor.Camera.Keys.other" xml:space="preserve"><value>{0} keyframes</value></data>
|
||||
<data name="Editor.Camera.Mirror" xml:space="preserve"><value>Mirror</value></data>
|
||||
<data name="Editor.Camera.OffsetX" xml:space="preserve"><value>Horizontal placement</value></data>
|
||||
<data name="Editor.Camera.OffsetY" xml:space="preserve"><value>Vertical placement</value></data>
|
||||
<data name="Editor.Camera.RemoveKey" xml:space="preserve"><value>Remove keyframe</value></data>
|
||||
<data name="Editor.Camera.ResetFraming" xml:space="preserve"><value>Reset framing</value></data>
|
||||
<data name="Editor.Camera.RotateLeft" xml:space="preserve"><value>Rotate left</value></data>
|
||||
<data name="Editor.Camera.RotateRight" xml:space="preserve"><value>Rotate right</value></data>
|
||||
<data name="Editor.Camera.Rotation" xml:space="preserve"><value>Rotation</value></data>
|
||||
<data name="Editor.Camera.Straighten" xml:space="preserve"><value>Straighten</value></data>
|
||||
<data name="Editor.Camera.Zoom" xml:space="preserve"><value>Zoom</value></data>
|
||||
<data name="Editor.Change" xml:space="preserve"><value>Change sequence</value></data>
|
||||
<data name="Editor.Chart.Clouds" xml:space="preserve"><value>cloud cover %</value></data>
|
||||
@@ -79,6 +89,7 @@
|
||||
<data name="Editor.Export.Batch" xml:space="preserve"><value>Batch…</value></data>
|
||||
<data name="Editor.Export.Bpp" xml:space="preserve"><value>{0} bpp</value><comment>invariant</comment></data>
|
||||
<data name="Editor.Export.Browse" xml:space="preserve"><value>Choose folder…</value></data>
|
||||
<data name="Editor.Export.Capped" xml:space="preserve"><value>{0} (capped)</value><comment>{0} output size as width×height</comment></data>
|
||||
<data name="Editor.Export.Codec" xml:space="preserve"><value>Codec</value></data>
|
||||
<data name="Editor.Export.Colour" xml:space="preserve"><value>Colour</value></data>
|
||||
<data name="Editor.Export.Container" xml:space="preserve"><value>Container</value></data>
|
||||
@@ -97,6 +108,7 @@
|
||||
<data name="Editor.Export.Mbps" xml:space="preserve"><value>{0} Mb/s</value><comment>invariant</comment></data>
|
||||
<data name="Editor.Export.NoHistory" xml:space="preserve"><value>No renders yet</value></data>
|
||||
<data name="Editor.Export.Output" xml:space="preserve"><value>Output · {0}</value></data>
|
||||
<data name="Editor.Export.OutputSize" xml:space="preserve"><value>Output size</value></data>
|
||||
<data name="Editor.Export.Preset" xml:space="preserve"><value>Export preset</value></data>
|
||||
<data name="Editor.Export.Quality" xml:space="preserve"><value>Quality</value></data>
|
||||
<data name="Editor.Export.QualityValue" xml:space="preserve"><value>Quality {0}</value></data>
|
||||
@@ -180,6 +192,17 @@
|
||||
<data name="Editor.History.Title" xml:space="preserve"><value>History of {0}</value><comment>{0} project name</comment></data>
|
||||
<data name="Editor.History.Version" xml:space="preserve"><value>Version {0}</value><comment>{0} version number</comment></data>
|
||||
<data name="Editor.Loading" xml:space="preserve"><value>Opening sequence</value></data>
|
||||
<data name="Editor.Look.Cool" xml:space="preserve"><value>Cool</value></data>
|
||||
<data name="Editor.Look.Fade" xml:space="preserve"><value>Fade</value></data>
|
||||
<data name="Editor.Look.Filter" xml:space="preserve"><value>Filter</value></data>
|
||||
<data name="Editor.Look.Group" xml:space="preserve"><value>Look</value></data>
|
||||
<data name="Editor.Look.Mono" xml:space="preserve"><value>Mono</value></data>
|
||||
<data name="Editor.Look.Muted" xml:space="preserve"><value>Muted</value></data>
|
||||
<data name="Editor.Look.None" xml:space="preserve"><value>None</value></data>
|
||||
<data name="Editor.Look.Sepia" xml:space="preserve"><value>Sepia</value></data>
|
||||
<data name="Editor.Look.Strength" xml:space="preserve"><value>Strength</value></data>
|
||||
<data name="Editor.Look.Vivid" xml:space="preserve"><value>Vivid</value></data>
|
||||
<data name="Editor.Look.Warm" xml:space="preserve"><value>Warm</value></data>
|
||||
<data name="Editor.Marker.Cut" xml:space="preserve"><value>Cut: pause or gap</value></data>
|
||||
<data name="Editor.Marker.Keyframe" xml:space="preserve"><value>Keyframe</value></data>
|
||||
<data name="Editor.Marker.Step" xml:space="preserve"><value>Exposure step {0} EV</value></data>
|
||||
@@ -227,6 +250,7 @@
|
||||
<data name="Editor.Preview.Compare" xml:space="preserve"><value>Compare</value></data>
|
||||
<data name="Editor.Preview.CropMask" xml:space="preserve"><value>Crop mask</value></data>
|
||||
<data name="Editor.Preview.CropResult" xml:space="preserve"><value>Crop result</value></data>
|
||||
<data name="Editor.Preview.CropValue" xml:space="preserve"><value>x {0}, y {1}, size {2}</value><comment>automation value of the crop box; {0} left edge, {1} top edge, {2} size, each a percentage</comment></data>
|
||||
<data name="Editor.Preview.ExitFullScreen" xml:space="preserve"><value>Exit full screen</value></data>
|
||||
<data name="Editor.Preview.FullScreen" xml:space="preserve"><value>Full screen</value></data>
|
||||
<data name="Editor.Preview.OutputSize" xml:space="preserve"><value>output {0}</value></data>
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
<data name="Errors.Project.TooLarge" xml:space="preserve"><value>The project's settings are larger than {0} MB; Chronos cannot store them.</value><comment>{0} megabytes</comment></data>
|
||||
<data name="Errors.Render.Download" xml:space="preserve"><value>{0} could not be downloaded intact.</value><comment>{0} file name</comment></data>
|
||||
<data name="Errors.Render.Failed" xml:space="preserve"><value>Exports failed: {0} of {1}; see the job log.</value><comment>{0} failed count; {1} total count</comment></data>
|
||||
<data name="Errors.Render.NewerSettings" xml:space="preserve"><value>These settings need a newer Chronos.</value></data>
|
||||
<data name="Errors.Render.NodeBatch" xml:space="preserve"><value>Render nodes send back one file per job; post each preset of a batch as its own job.</value><comment>long</comment></data>
|
||||
<data name="Errors.Render.NodeSequence" xml:space="preserve"><value>Render nodes send back one file per job; image sequences render where the archive is.</value></data>
|
||||
<data name="Errors.Render.Parameters" xml:space="preserve"><value>The render job has no valid export settings.</value></data>
|
||||
|
||||
@@ -70,11 +70,14 @@
|
||||
<data name="Export.Render.FrameUnreadable" xml:space="preserve"><value>Frame {0} ({1}) cannot be decoded; exclude it or check the file.</value><comment>long; {0} frame number from 1; {1} file name</comment></data>
|
||||
<data name="Export.Render.KeyframeIgnored" xml:space="preserve"><value>The keyframe at frame {0} is invalid and was skipped.</value><comment>long; {0} source frame number</comment></data>
|
||||
<data name="Export.Render.KneeIgnored" xml:space="preserve"><value>Highlight knee {0} is out of range and is ignored.</value><comment>long; {0} knee value as entered</comment></data>
|
||||
<data name="Export.Render.LookIgnored" xml:space="preserve"><value>Look “{0}” not known; the colours are left as they are.</value><comment>long; {0} filter name as stored</comment></data>
|
||||
<data name="Export.Render.NoFrames" xml:space="preserve"><value>Every frame is excluded; there is nothing to render.</value><comment>long</comment></data>
|
||||
<data name="Export.Render.RegionsUnavailable" xml:space="preserve"><value>No sky and land mask; deflicker uses the whole frame.</value><comment>long</comment></data>
|
||||
<data name="Export.Render.RegionsUnreliable" xml:space="preserve"><value>The sky and land mask is uncertain (confidence {0}); deflicker uses the whole frame.</value><comment>long; {0} mask confidence between 0 and 1</comment></data>
|
||||
<data name="Export.Render.RotationIgnored" xml:space="preserve"><value>Rotation {0}° is not a quarter turn and is ignored.</value><comment>long; {0} rotation in degrees as stored</comment></data>
|
||||
<data name="Export.Render.StabilizationBorders" xml:space="preserve"><value>Strong shake: stabilisation would keep only {0} of the frame, so borders may show.</value><comment>long; {0} kept fraction of the frame between 0 and 1</comment></data>
|
||||
<data name="Export.Render.StabilizationUnavailable" xml:space="preserve"><value>Stabilisation is unavailable: too little detail to track.</value><comment>long</comment></data>
|
||||
<data name="Export.Render.StraightenClamped" xml:space="preserve"><value>Straighten {0}° is out of range; {1}° is used.</value><comment>long; {0} angle in degrees as stored; {1} angle in degrees used</comment></data>
|
||||
<data name="Export.Warning.ContainerIgnored" xml:space="preserve"><value>The container does not suit the codec; the codec's container is used.</value><comment>long</comment></data>
|
||||
<data name="Export.Warning.UnknownCodec" xml:space="preserve"><value>Unknown codec; the preset's codec is used.</value><comment>long</comment></data>
|
||||
<data name="Export.Warning.UnknownFrameRate" xml:space="preserve"><value>Unknown frame rate; the preset's frame rate is used.</value><comment>long</comment></data>
|
||||
|
||||
@@ -164,13 +164,18 @@
|
||||
<data name="Server.Setting.ExportValues" xml:space="preserve"><value>Export values</value></data>
|
||||
<data name="Server.Setting.ExposureOffset" xml:space="preserve"><value>Exposure offset</value></data>
|
||||
<data name="Server.Setting.FitToDuration" xml:space="preserve"><value>Fit to duration</value></data>
|
||||
<data name="Server.Setting.Flip" xml:space="preserve"><value>Flip</value></data>
|
||||
<data name="Server.Setting.FlowQuality" xml:space="preserve"><value>Flow quality</value></data>
|
||||
<data name="Server.Setting.FrameRate" xml:space="preserve"><value>Frame rate</value></data>
|
||||
<data name="Server.Setting.HeroFrame" xml:space="preserve"><value>Hero frame</value></data>
|
||||
<data name="Server.Setting.HighlightKnee" xml:space="preserve"><value>Highlight knee</value></data>
|
||||
<data name="Server.Setting.HolyGrail" xml:space="preserve"><value>Holy grail</value></data>
|
||||
<data name="Server.Setting.Keyframes" xml:space="preserve"><value>Camera keyframes</value></data>
|
||||
<data name="Server.Setting.Look" xml:space="preserve"><value>Look</value></data>
|
||||
<data name="Server.Setting.LookFilter" xml:space="preserve"><value>Look filter</value></data>
|
||||
<data name="Server.Setting.LookStrength" xml:space="preserve"><value>Look strength</value></data>
|
||||
<data name="Server.Setting.Manual" xml:space="preserve"><value>manual</value></data>
|
||||
<data name="Server.Setting.Mirror" xml:space="preserve"><value>Mirror</value></data>
|
||||
<data name="Server.Setting.MotionBlur" xml:space="preserve"><value>Motion blur</value></data>
|
||||
<data name="Server.Setting.Notes" xml:space="preserve"><value>Notes</value></data>
|
||||
<data name="Server.Setting.Off" xml:space="preserve"><value>off</value></data>
|
||||
@@ -179,10 +184,12 @@
|
||||
<data name="Server.Setting.OutputName" xml:space="preserve"><value>Output name</value></data>
|
||||
<data name="Server.Setting.Rating" xml:space="preserve"><value>Rating</value></data>
|
||||
<data name="Server.Setting.Regions" xml:space="preserve"><value>Regions</value></data>
|
||||
<data name="Server.Setting.Rotation" xml:space="preserve"><value>Rotation</value></data>
|
||||
<data name="Server.Setting.ShutterAngle" xml:space="preserve"><value>Shutter angle</value></data>
|
||||
<data name="Server.Setting.Stabilize" xml:space="preserve"><value>Stabilisation</value></data>
|
||||
<data name="Server.Setting.StabilizeSmoothing" xml:space="preserve"><value>Stabilisation smoothing</value></data>
|
||||
<data name="Server.Setting.Stacking" xml:space="preserve"><value>Stacking</value></data>
|
||||
<data name="Server.Setting.Straighten" xml:space="preserve"><value>Straighten</value></data>
|
||||
<data name="Server.Setting.Tags" xml:space="preserve"><value>Tags</value></data>
|
||||
<data name="Server.Setting.TimeRemap" xml:space="preserve"><value>Time remap</value></data>
|
||||
<data name="Server.Setting.TimingMode" xml:space="preserve"><value>Timing mode</value></data>
|
||||
|
||||
+23
-3
@@ -136,17 +136,28 @@
|
||||
<data name="Tooltips.Editor.Back" xml:space="preserve"><value>Back to Library</value></data>
|
||||
<data name="Tooltips.Editor.Busy" xml:space="preserve"><value>An analysis or render of this sequence is running; settings wait until it ends</value></data>
|
||||
<data name="Tooltips.Editor.Camera.AddKey" xml:space="preserve"><value>Add a keyframe at the current frame</value></data>
|
||||
<data name="Tooltips.Editor.Camera.Aspect" xml:space="preserve"><value>Output aspect ratio; a preset with a fixed size uses its own</value></data>
|
||||
<data name="Tooltips.Editor.Camera.Aspect" xml:space="preserve"><value>Output proportions; a preset's resolution adapts to them (4K at 9:16 = 2160×3840)</value></data>
|
||||
<data name="Tooltips.Editor.Camera.CenterX" xml:space="preserve"><value>Horizontal centre of the selected keyframe’s view</value></data>
|
||||
<data name="Tooltips.Editor.Camera.CenterY" xml:space="preserve"><value>Vertical centre of the selected keyframe’s view</value></data>
|
||||
<data name="Tooltips.Editor.Camera.Crop" xml:space="preserve"><value>Cuts this share of the frame on that side; aspect and placement then apply inside the crop</value></data>
|
||||
<data name="Tooltips.Editor.Camera.CropSize" xml:space="preserve"><value>Size of the crop as a share of the largest one the aspect allows; drag a handle on the preview too</value></data>
|
||||
<data name="Tooltips.Editor.Camera.CropX" xml:space="preserve"><value>Moves the crop left or right within the frame; drag it on the preview too</value></data>
|
||||
<data name="Tooltips.Editor.Camera.CropY" xml:space="preserve"><value>Moves the crop up or down within the frame; drag it on the preview too</value></data>
|
||||
<data name="Tooltips.Editor.Camera.Curve" xml:space="preserve"><value>Zoom keyframes over the sequence: double-click adds · drag moves · Delete removes · arrows nudge</value></data>
|
||||
<data name="Tooltips.Editor.Camera.Flip" xml:space="preserve"><value>Turns the picture upside down</value></data>
|
||||
<data name="Tooltips.Editor.Camera.KeyExists" xml:space="preserve"><value>This frame already has a keyframe; select it on the curve to edit it</value></data>
|
||||
<data name="Tooltips.Editor.Camera.Keys" xml:space="preserve"><value>Virtual-camera keyframes: zoom and framing at chosen frames, eased in between</value></data>
|
||||
<data name="Tooltips.Editor.Camera.Mirror" xml:space="preserve"><value>Swaps left and right</value></data>
|
||||
<data name="Tooltips.Editor.Camera.NoKey" xml:space="preserve"><value>Select a keyframe on the curve first</value></data>
|
||||
<data name="Tooltips.Editor.Camera.OffsetX" xml:space="preserve"><value>Moves the crop left or right inside the frame</value></data>
|
||||
<data name="Tooltips.Editor.Camera.OffsetY" xml:space="preserve"><value>Moves the crop up or down inside the frame</value></data>
|
||||
<data name="Tooltips.Editor.Camera.RemoveKey" xml:space="preserve"><value>Remove the selected keyframe</value></data>
|
||||
<data name="Tooltips.Editor.Camera.ResetFraming" xml:space="preserve"><value>Clears the crop, rotation, mirror, flip and straighten; keyframes stay</value></data>
|
||||
<data name="Tooltips.Editor.Camera.ResetFramingNone" xml:space="preserve"><value>Nothing to reset: the whole frame is shown as shot</value></data>
|
||||
<data name="Tooltips.Editor.Camera.RotateLeft" xml:space="preserve"><value>Turns the picture a quarter turn anticlockwise</value></data>
|
||||
<data name="Tooltips.Editor.Camera.RotateRight" xml:space="preserve"><value>Turns the picture a quarter turn clockwise</value></data>
|
||||
<data name="Tooltips.Editor.Camera.Rotation" xml:space="preserve"><value>Quarter turns of the picture; the crop and the keyframes turn with it</value></data>
|
||||
<data name="Tooltips.Editor.Camera.Straighten" xml:space="preserve"><value>Levels the horizon; the picture zooms in just enough to hide the corners</value></data>
|
||||
<data name="Tooltips.Editor.Camera.Zoom" xml:space="preserve"><value>Zoom of the selected keyframe; 1 shows the whole crop, more zooms in and softens</value></data>
|
||||
<data name="Tooltips.Editor.Change" xml:space="preserve"><value>Choose another sequence to edit; this one is saved first · Ctrl+O</value></data>
|
||||
<data name="Tooltips.Editor.Chart.Flicker" xml:space="preserve"><value>Frame-to-frame brightness change before and after the correction</value></data>
|
||||
@@ -174,10 +185,12 @@
|
||||
<data name="Tooltips.Editor.Export.FrameRate" xml:space="preserve"><value>Frames per second of the video file</value></data>
|
||||
<data name="Tooltips.Editor.Export.FrameRateAuto" xml:space="preserve"><value>Auto: the preset’s {0} fps</value></data>
|
||||
<data name="Tooltips.Editor.Export.FrameRateReset" xml:space="preserve"><value>Return to the preset’s frame rate</value></data>
|
||||
<data name="Tooltips.Editor.Export.Height" xml:space="preserve"><value>Output height in pixels; empty follows the width · Enter applies, Esc reverts</value></data>
|
||||
<data name="Tooltips.Editor.Export.Height" xml:space="preserve"><value>Height of the box the output fits in; empty follows the width · Enter applies, Esc reverts</value></data>
|
||||
<data name="Tooltips.Editor.Export.History" xml:space="preserve"><value>Open Jobs filtered on this sequence</value></data>
|
||||
<data name="Tooltips.Editor.Export.InBatch" xml:space="preserve"><value>Include this preset when Batch queues the render</value></data>
|
||||
<data name="Tooltips.Editor.Export.Name" xml:space="preserve"><value>Tokens: {date} {title} {preset} {codec} {width} {height} {fps} · Enter applies, Esc reverts</value></data>
|
||||
<data name="Tooltips.Editor.Export.OutputCapped" xml:space="preserve"><value>The encoder takes at most {0}, so the output is made smaller</value><comment>{0} the encoder's largest size as width×height</comment></data>
|
||||
<data name="Tooltips.Editor.Export.OutputSize" xml:space="preserve"><value>The preset's resolution fitted to the chosen aspect</value></data>
|
||||
<data name="Tooltips.Editor.Export.Preset" xml:space="preserve"><value>Render with {0}; editing a value makes it Custom</value></data>
|
||||
<data name="Tooltips.Editor.Export.Quality" xml:space="preserve"><value>Image quality; 95 looks lossless, lower makes smaller files</value></data>
|
||||
<data name="Tooltips.Editor.Export.Recommended" xml:space="preserve"><value>Advisor pick: {0}</value></data>
|
||||
@@ -189,7 +202,7 @@
|
||||
<data name="Tooltips.Editor.Export.SyncNotLinked" xml:space="preserve"><value>The server does not have this sequence: upload it from the Server screen first</value></data>
|
||||
<data name="Tooltips.Editor.Export.SyncRemote" xml:space="preserve"><value>Renders of a server sequence are made on the server and stay there</value></data>
|
||||
<data name="Tooltips.Editor.Export.SyncSignedOut" xml:space="preserve"><value>Connect to the server first to send renders to it</value></data>
|
||||
<data name="Tooltips.Editor.Export.Width" xml:space="preserve"><value>Output width in pixels; empty uses the preset or the source · Enter applies, Esc reverts</value></data>
|
||||
<data name="Tooltips.Editor.Export.Width" xml:space="preserve"><value>Width of the box the output fits in; empty uses the preset or the source · Enter applies, Esc reverts</value></data>
|
||||
<data name="Tooltips.Editor.Exposure.Deflicker" xml:space="preserve"><value>Removes frame-to-frame brightness flicker; off keeps the camera’s own exposure</value></data>
|
||||
<data name="Tooltips.Editor.Exposure.HolyGrail" xml:space="preserve"><value>Turns ISO, shutter and aperture steps into smooth ramps; off keeps the jumps</value></data>
|
||||
<data name="Tooltips.Editor.Exposure.Offset" xml:space="preserve"><value>Brightens or darkens the whole video after correction, in stops</value></data>
|
||||
@@ -213,6 +226,9 @@
|
||||
<data name="Tooltips.Editor.History.Offline" xml:space="preserve"><value>The library cannot be reached: the versions this PC keeps are listed</value></data>
|
||||
<data name="Tooltips.Editor.History.Offline.Server" xml:space="preserve"><value>The server cannot be reached: the versions this PC keeps are listed</value></data>
|
||||
<data name="Tooltips.Editor.History.Restore" xml:space="preserve"><value>Make version {0} the project again (one step: Ctrl+Z takes it back); unsaved changes are saved as a version first</value><comment>{0} version number</comment></data>
|
||||
<data name="Tooltips.Editor.Look.Filter" xml:space="preserve"><value>Colour look of the video; the wipe compares it with the original</value></data>
|
||||
<data name="Tooltips.Editor.Look.Group" xml:space="preserve"><value>Colour look of every output frame, applied before the highlight knee</value></data>
|
||||
<data name="Tooltips.Editor.Look.Strength" xml:space="preserve"><value>How much of the filter applies; 0 % leaves the picture as it is</value></data>
|
||||
<data name="Tooltips.Editor.Motion.Blur" xml:space="preserve"><value>Adds blur along the motion like a slower shutter; costs optical flow on every frame</value></data>
|
||||
<data name="Tooltips.Editor.Motion.Flow" xml:space="preserve"><value>Optical flow precision for blur and synthesised frames; Best is the slowest</value></data>
|
||||
<data name="Tooltips.Editor.Motion.Shutter" xml:space="preserve"><value>Target shutter angle; 180° is the film look, more smears moving things</value></data>
|
||||
@@ -225,6 +241,8 @@
|
||||
<data name="Tooltips.Editor.NotApplicable.Lossless" xml:space="preserve"><value>Not applicable: this format is lossless</value></data>
|
||||
<data name="Tooltips.Editor.NotApplicable.NeedsAnalysis" xml:space="preserve"><value>Needs the deep analysis: press Analyse</value></data>
|
||||
<data name="Tooltips.Editor.NotApplicable.NoFlow" xml:space="preserve"><value>Not applicable: used only by motion blur and interpolated timing</value></data>
|
||||
<data name="Tooltips.Editor.NotApplicable.NoLook" xml:space="preserve"><value>Not applicable: no filter is chosen</value></data>
|
||||
<data name="Tooltips.Editor.NotApplicable.NoSlack" xml:space="preserve"><value>Not applicable: the crop fills the frame this way</value></data>
|
||||
<data name="Tooltips.Editor.NotApplicable.StabilizeOff" xml:space="preserve"><value>Not applicable: stabilisation is off</value></data>
|
||||
<data name="Tooltips.Editor.NotApplicable.StackOff" xml:space="preserve"><value>Not applicable: stacking is off</value></data>
|
||||
<data name="Tooltips.Editor.OpenWorkspace.Existing" xml:space="preserve"><value>Open a project the library has for this sequence; Main holds its settings as they are</value></data>
|
||||
@@ -253,6 +271,7 @@
|
||||
<data name="Tooltips.Editor.Play" xml:space="preserve"><value>Play the frames · Space; arrows step one frame</value></data>
|
||||
<data name="Tooltips.Editor.Preview.Clip" xml:space="preserve"><value>Play ten seconds of the video’s frames with the current settings</value></data>
|
||||
<data name="Tooltips.Editor.Preview.Compare" xml:space="preserve"><value>Wipe compare: original on the left, corrected on the right; drag the line</value></data>
|
||||
<data name="Tooltips.Editor.Preview.CropEdit" xml:space="preserve"><value>Drag to move · drag a handle to resize, aspect kept; Alt keeps the centre · arrows nudge, + and − resize · Esc cancels</value></data>
|
||||
<data name="Tooltips.Editor.Preview.CropLoss" xml:space="preserve"><value>Dim what the output cuts (what I lose)</value></data>
|
||||
<data name="Tooltips.Editor.Preview.CropMask" xml:space="preserve"><value>Show the whole frame and darken what the output will cut</value></data>
|
||||
<data name="Tooltips.Editor.Preview.CropModeOff" xml:space="preserve"><value>Turn on Crop mask to choose between what you lose and how it will look</value></data>
|
||||
@@ -687,6 +706,7 @@
|
||||
<data name="Tooltips.Server.LoginCancel" xml:space="preserve"><value>Close without signing in · Esc</value></data>
|
||||
<data name="Tooltips.Server.LoginPassword" xml:space="preserve"><value>Sent only to this server; Chronos keeps a session token, never the password</value></data>
|
||||
<data name="Tooltips.Server.LoginUser" xml:space="preserve"><value>Your user name on the server</value></data>
|
||||
<data name="Tooltips.Server.NeedsNewerServer" xml:space="preserve"><value>This server's Chronos cannot read these settings; update it</value></data>
|
||||
<data name="Tooltips.Server.NodeEncoders" xml:space="preserve"><value>Video encoders the server can use on this PC: {0}</value></data>
|
||||
<data name="Tooltips.Server.NoneFound" xml:space="preserve"><value>No server found on this network yet; type its address</value></data>
|
||||
<data name="Tooltips.Server.Quota" xml:space="preserve"><value>Space you use on the server out of your quota</value></data>
|
||||
|
||||
@@ -28,14 +28,24 @@
|
||||
<data name="Editor.Camera.CropBottom" xml:space="preserve"><value>Ritaglio in basso</value></data>
|
||||
<data name="Editor.Camera.CropLeft" xml:space="preserve"><value>Ritaglio a sinistra</value></data>
|
||||
<data name="Editor.Camera.CropRight" xml:space="preserve"><value>Ritaglio a destra</value></data>
|
||||
<data name="Editor.Camera.CropSize" xml:space="preserve"><value>Dimensione ritaglio</value></data>
|
||||
<data name="Editor.Camera.CropTop" xml:space="preserve"><value>Ritaglio in alto</value></data>
|
||||
<data name="Editor.Camera.CropX" xml:space="preserve"><value>Ritaglio X</value></data>
|
||||
<data name="Editor.Camera.CropY" xml:space="preserve"><value>Ritaglio Y</value></data>
|
||||
<data name="Editor.Camera.Curve" xml:space="preserve"><value>Fotogrammi chiave</value></data>
|
||||
<data name="Editor.Camera.Flip" xml:space="preserve"><value>Capovolgi</value></data>
|
||||
<data name="Editor.Camera.KeyOf" xml:space="preserve"><value>Chiave {0} di {1} · {2}</value></data>
|
||||
<data name="Editor.Camera.Keys.one" xml:space="preserve"><value>{0} chiave</value></data>
|
||||
<data name="Editor.Camera.Keys.other" xml:space="preserve"><value>{0} chiavi</value></data>
|
||||
<data name="Editor.Camera.Mirror" xml:space="preserve"><value>Specchia</value></data>
|
||||
<data name="Editor.Camera.OffsetX" xml:space="preserve"><value>Posizione orizzontale</value></data>
|
||||
<data name="Editor.Camera.OffsetY" xml:space="preserve"><value>Posizione verticale</value></data>
|
||||
<data name="Editor.Camera.RemoveKey" xml:space="preserve"><value>Rimuovi chiave</value></data>
|
||||
<data name="Editor.Camera.ResetFraming" xml:space="preserve"><value>Ripristina inquadratura</value></data>
|
||||
<data name="Editor.Camera.RotateLeft" xml:space="preserve"><value>Ruota a sinistra</value></data>
|
||||
<data name="Editor.Camera.RotateRight" xml:space="preserve"><value>Ruota a destra</value></data>
|
||||
<data name="Editor.Camera.Rotation" xml:space="preserve"><value>Rotazione</value></data>
|
||||
<data name="Editor.Camera.Straighten" xml:space="preserve"><value>Raddrizza</value></data>
|
||||
<data name="Editor.Camera.Zoom" xml:space="preserve"><value>Zoom</value></data>
|
||||
<data name="Editor.Change" xml:space="preserve"><value>Cambia sequenza</value></data>
|
||||
<data name="Editor.Chart.Clouds" xml:space="preserve"><value>copertura nuvolosa %</value></data>
|
||||
@@ -77,6 +87,7 @@
|
||||
<data name="Editor.Export.AddToQueue" xml:space="preserve"><value>Metti in coda</value></data>
|
||||
<data name="Editor.Export.Batch" xml:space="preserve"><value>In serie…</value></data>
|
||||
<data name="Editor.Export.Browse" xml:space="preserve"><value>Scegli cartella…</value></data>
|
||||
<data name="Editor.Export.Capped" xml:space="preserve"><value>{0} (ridotta)</value></data>
|
||||
<data name="Editor.Export.Codec" xml:space="preserve"><value>Codec</value></data>
|
||||
<data name="Editor.Export.Colour" xml:space="preserve"><value>Colore</value></data>
|
||||
<data name="Editor.Export.Container" xml:space="preserve"><value>Contenitore</value></data>
|
||||
@@ -92,6 +103,7 @@
|
||||
<data name="Editor.Export.InBatch" xml:space="preserve"><value>In serie</value></data>
|
||||
<data name="Editor.Export.NoHistory" xml:space="preserve"><value>Ancora nessun render</value></data>
|
||||
<data name="Editor.Export.Output" xml:space="preserve"><value>Uscita · {0}</value></data>
|
||||
<data name="Editor.Export.OutputSize" xml:space="preserve"><value>Dimensione uscita</value></data>
|
||||
<data name="Editor.Export.Preset" xml:space="preserve"><value>Preset di esportazione</value></data>
|
||||
<data name="Editor.Export.Quality" xml:space="preserve"><value>Qualità</value></data>
|
||||
<data name="Editor.Export.QualityValue" xml:space="preserve"><value>Qualità {0}</value></data>
|
||||
@@ -172,6 +184,17 @@
|
||||
<data name="Editor.History.Title" xml:space="preserve"><value>Cronologia di {0}</value></data>
|
||||
<data name="Editor.History.Version" xml:space="preserve"><value>Versione {0}</value></data>
|
||||
<data name="Editor.Loading" xml:space="preserve"><value>Apertura sequenza</value></data>
|
||||
<data name="Editor.Look.Cool" xml:space="preserve"><value>Freddo</value></data>
|
||||
<data name="Editor.Look.Fade" xml:space="preserve"><value>Sbiadito</value></data>
|
||||
<data name="Editor.Look.Filter" xml:space="preserve"><value>Filtro</value></data>
|
||||
<data name="Editor.Look.Group" xml:space="preserve"><value>Aspetto</value></data>
|
||||
<data name="Editor.Look.Mono" xml:space="preserve"><value>Mono</value></data>
|
||||
<data name="Editor.Look.Muted" xml:space="preserve"><value>Tenue</value></data>
|
||||
<data name="Editor.Look.None" xml:space="preserve"><value>Nessuno</value></data>
|
||||
<data name="Editor.Look.Sepia" xml:space="preserve"><value>Seppia</value></data>
|
||||
<data name="Editor.Look.Strength" xml:space="preserve"><value>Intensità</value></data>
|
||||
<data name="Editor.Look.Vivid" xml:space="preserve"><value>Vivace</value></data>
|
||||
<data name="Editor.Look.Warm" xml:space="preserve"><value>Caldo</value></data>
|
||||
<data name="Editor.Marker.Cut" xml:space="preserve"><value>Taglio: pausa o vuoto</value></data>
|
||||
<data name="Editor.Marker.Keyframe" xml:space="preserve"><value>Fotogramma chiave</value></data>
|
||||
<data name="Editor.Marker.Step" xml:space="preserve"><value>Salto di esposizione {0} EV</value></data>
|
||||
@@ -216,6 +239,7 @@
|
||||
<data name="Editor.Preview.Compare" xml:space="preserve"><value>Confronta</value></data>
|
||||
<data name="Editor.Preview.CropMask" xml:space="preserve"><value>Maschera ritaglio</value></data>
|
||||
<data name="Editor.Preview.CropResult" xml:space="preserve"><value>Risultato ritaglio</value></data>
|
||||
<data name="Editor.Preview.CropValue" xml:space="preserve"><value>x {0}, y {1}, dimensione {2}</value></data>
|
||||
<data name="Editor.Preview.ExitFullScreen" xml:space="preserve"><value>Esci da schermo intero</value></data>
|
||||
<data name="Editor.Preview.FullScreen" xml:space="preserve"><value>Schermo intero</value></data>
|
||||
<data name="Editor.Preview.OutputSize" xml:space="preserve"><value>uscita {0}</value></data>
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
<data name="Errors.Project.TooLarge" xml:space="preserve"><value>Le impostazioni del progetto superano {0} MB; Chronos non può salvarle.</value></data>
|
||||
<data name="Errors.Render.Download" xml:space="preserve"><value>{0} non è stato scaricato integro.</value></data>
|
||||
<data name="Errors.Render.Failed" xml:space="preserve"><value>Esportazioni non riuscite: {0} su {1}; vedi il registro del job.</value></data>
|
||||
<data name="Errors.Render.NewerSettings" xml:space="preserve"><value>Queste impostazioni richiedono un Chronos più recente.</value></data>
|
||||
<data name="Errors.Render.NodeBatch" xml:space="preserve"><value>I nodi di rendering restituiscono un file per job; invia ogni preset di un gruppo come job a sé.</value></data>
|
||||
<data name="Errors.Render.NodeSequence" xml:space="preserve"><value>I nodi di rendering restituiscono un file per job; le sequenze di immagini si renderizzano dove si trova l'archivio.</value></data>
|
||||
<data name="Errors.Render.Parameters" xml:space="preserve"><value>Il job di rendering non ha impostazioni di esportazione valide.</value></data>
|
||||
|
||||
@@ -56,11 +56,14 @@
|
||||
<data name="Export.Render.FrameUnreadable" xml:space="preserve"><value>Il fotogramma {0} ({1}) non è decodificabile; escludilo o controlla il file.</value></data>
|
||||
<data name="Export.Render.KeyframeIgnored" xml:space="preserve"><value>Il fotogramma chiave {0} non è valido ed è stato saltato.</value></data>
|
||||
<data name="Export.Render.KneeIgnored" xml:space="preserve"><value>Compressione delle alte luci {0} fuori intervallo, ignorata.</value></data>
|
||||
<data name="Export.Render.LookIgnored" xml:space="preserve"><value>Aspetto «{0}» sconosciuto; i colori restano come sono.</value></data>
|
||||
<data name="Export.Render.NoFrames" xml:space="preserve"><value>Tutti i fotogrammi sono esclusi: non c'è nulla da renderizzare.</value></data>
|
||||
<data name="Export.Render.RegionsUnavailable" xml:space="preserve"><value>Nessuna maschera cielo/terra; il deflicker usa l'intera immagine.</value></data>
|
||||
<data name="Export.Render.RegionsUnreliable" xml:space="preserve"><value>La maschera cielo/terra è incerta (affidabilità {0}); il deflicker usa l'intera immagine.</value></data>
|
||||
<data name="Export.Render.RotationIgnored" xml:space="preserve"><value>La rotazione di {0}° non è un quarto di giro e viene ignorata.</value></data>
|
||||
<data name="Export.Render.StabilizationBorders" xml:space="preserve"><value>Vibrazioni forti: la stabilizzazione conserverebbe solo {0} dell'immagine, i bordi possono vedersi.</value></data>
|
||||
<data name="Export.Render.StabilizationUnavailable" xml:space="preserve"><value>Stabilizzazione non disponibile: troppo pochi dettagli da tracciare.</value></data>
|
||||
<data name="Export.Render.StraightenClamped" xml:space="preserve"><value>Raddrizzamento di {0}° fuori intervallo; si usa {1}°.</value></data>
|
||||
<data name="Export.Warning.ContainerIgnored" xml:space="preserve"><value>Il contenitore non è adatto al codec; viene usato quello del codec.</value></data>
|
||||
<data name="Export.Warning.UnknownCodec" xml:space="preserve"><value>Codec sconosciuto; viene usato quello del preset.</value></data>
|
||||
<data name="Export.Warning.UnknownFrameRate" xml:space="preserve"><value>Frequenza sconosciuta; viene usata quella del preset.</value></data>
|
||||
|
||||
@@ -162,13 +162,18 @@
|
||||
<data name="Server.Setting.ExportValues" xml:space="preserve"><value>Valori di esportazione</value></data>
|
||||
<data name="Server.Setting.ExposureOffset" xml:space="preserve"><value>Correzione esposizione</value></data>
|
||||
<data name="Server.Setting.FitToDuration" xml:space="preserve"><value>Adatta alla durata</value></data>
|
||||
<data name="Server.Setting.Flip" xml:space="preserve"><value>Capovolgimento</value></data>
|
||||
<data name="Server.Setting.FlowQuality" xml:space="preserve"><value>Qualità del flusso</value></data>
|
||||
<data name="Server.Setting.FrameRate" xml:space="preserve"><value>Frequenza fotogrammi</value></data>
|
||||
<data name="Server.Setting.HeroFrame" xml:space="preserve"><value>Fotogramma copertina</value></data>
|
||||
<data name="Server.Setting.HighlightKnee" xml:space="preserve"><value>Compressione alte luci</value></data>
|
||||
<data name="Server.Setting.HolyGrail" xml:space="preserve"><value>Holy grail</value></data>
|
||||
<data name="Server.Setting.Keyframes" xml:space="preserve"><value>Keyframe camera</value></data>
|
||||
<data name="Server.Setting.Look" xml:space="preserve"><value>Aspetto</value></data>
|
||||
<data name="Server.Setting.LookFilter" xml:space="preserve"><value>Filtro aspetto</value></data>
|
||||
<data name="Server.Setting.LookStrength" xml:space="preserve"><value>Intensità aspetto</value></data>
|
||||
<data name="Server.Setting.Manual" xml:space="preserve"><value>manuale</value></data>
|
||||
<data name="Server.Setting.Mirror" xml:space="preserve"><value>Specchiatura</value></data>
|
||||
<data name="Server.Setting.MotionBlur" xml:space="preserve"><value>Sfocatura di movimento</value></data>
|
||||
<data name="Server.Setting.Notes" xml:space="preserve"><value>Note</value></data>
|
||||
<data name="Server.Setting.Off" xml:space="preserve"><value>disattivo</value></data>
|
||||
@@ -177,10 +182,12 @@
|
||||
<data name="Server.Setting.OutputName" xml:space="preserve"><value>Nome del file</value></data>
|
||||
<data name="Server.Setting.Rating" xml:space="preserve"><value>Valutazione</value></data>
|
||||
<data name="Server.Setting.Regions" xml:space="preserve"><value>Regioni</value></data>
|
||||
<data name="Server.Setting.Rotation" xml:space="preserve"><value>Rotazione</value></data>
|
||||
<data name="Server.Setting.ShutterAngle" xml:space="preserve"><value>Angolo otturatore</value></data>
|
||||
<data name="Server.Setting.Stabilize" xml:space="preserve"><value>Stabilizzazione</value></data>
|
||||
<data name="Server.Setting.StabilizeSmoothing" xml:space="preserve"><value>Morbidezza stabilizzazione</value></data>
|
||||
<data name="Server.Setting.Stacking" xml:space="preserve"><value>Stacking</value></data>
|
||||
<data name="Server.Setting.Straighten" xml:space="preserve"><value>Raddrizzamento</value></data>
|
||||
<data name="Server.Setting.Tags" xml:space="preserve"><value>Tag</value></data>
|
||||
<data name="Server.Setting.TimeRemap" xml:space="preserve"><value>Rimappatura del tempo</value></data>
|
||||
<data name="Server.Setting.TimingMode" xml:space="preserve"><value>Modalità dei tempi</value></data>
|
||||
|
||||
@@ -136,17 +136,28 @@
|
||||
<data name="Tooltips.Editor.Back" xml:space="preserve"><value>Torna alla Libreria</value></data>
|
||||
<data name="Tooltips.Editor.Busy" xml:space="preserve"><value>È in corso un’analisi o un render di questa sequenza; le impostazioni attendono la fine</value></data>
|
||||
<data name="Tooltips.Editor.Camera.AddKey" xml:space="preserve"><value>Aggiunge una chiave al fotogramma corrente</value></data>
|
||||
<data name="Tooltips.Editor.Camera.Aspect" xml:space="preserve"><value>Formato dell’uscita; un preset con dimensioni fisse usa il proprio</value></data>
|
||||
<data name="Tooltips.Editor.Camera.Aspect" xml:space="preserve"><value>Proporzioni dell’uscita; la risoluzione del preset si adatta a esse (4K a 9:16 = 2160×3840)</value></data>
|
||||
<data name="Tooltips.Editor.Camera.CenterX" xml:space="preserve"><value>Centro orizzontale dell’inquadratura della chiave scelta</value></data>
|
||||
<data name="Tooltips.Editor.Camera.CenterY" xml:space="preserve"><value>Centro verticale dell’inquadratura della chiave scelta</value></data>
|
||||
<data name="Tooltips.Editor.Camera.Crop" xml:space="preserve"><value>Taglia questa parte del fotogramma su quel lato; formato e posizione valgono poi dentro il ritaglio</value></data>
|
||||
<data name="Tooltips.Editor.Camera.CropSize" xml:space="preserve"><value>Dimensione del ritaglio rispetto al più grande che le proporzioni consentono; si cambia anche trascinando una maniglia sull’anteprima</value></data>
|
||||
<data name="Tooltips.Editor.Camera.CropX" xml:space="preserve"><value>Sposta il ritaglio a sinistra o a destra nel fotogramma; si trascina anche sull’anteprima</value></data>
|
||||
<data name="Tooltips.Editor.Camera.CropY" xml:space="preserve"><value>Sposta il ritaglio in alto o in basso nel fotogramma; si trascina anche sull’anteprima</value></data>
|
||||
<data name="Tooltips.Editor.Camera.Curve" xml:space="preserve"><value>Fotogrammi chiave dello zoom: doppio clic aggiunge · trascina sposta · Canc rimuove · le frecce spostano di poco</value></data>
|
||||
<data name="Tooltips.Editor.Camera.Flip" xml:space="preserve"><value>Capovolge l’immagine, scambiando alto e basso</value></data>
|
||||
<data name="Tooltips.Editor.Camera.KeyExists" xml:space="preserve"><value>Questo fotogramma ha già un fotogramma chiave; selezionalo sulla curva per modificarlo</value></data>
|
||||
<data name="Tooltips.Editor.Camera.Keys" xml:space="preserve"><value>Chiavi della camera virtuale: zoom e inquadratura in fotogrammi scelti, raccordati tra loro</value></data>
|
||||
<data name="Tooltips.Editor.Camera.Mirror" xml:space="preserve"><value>Scambia sinistra e destra</value></data>
|
||||
<data name="Tooltips.Editor.Camera.NoKey" xml:space="preserve"><value>Seleziona prima un fotogramma chiave sulla curva</value></data>
|
||||
<data name="Tooltips.Editor.Camera.OffsetX" xml:space="preserve"><value>Sposta il ritaglio a sinistra o a destra nel fotogramma</value></data>
|
||||
<data name="Tooltips.Editor.Camera.OffsetY" xml:space="preserve"><value>Sposta il ritaglio in alto o in basso nel fotogramma</value></data>
|
||||
<data name="Tooltips.Editor.Camera.RemoveKey" xml:space="preserve"><value>Rimuove la chiave selezionata</value></data>
|
||||
<data name="Tooltips.Editor.Camera.ResetFraming" xml:space="preserve"><value>Annulla ritaglio, rotazione, specchiatura, capovolgimento e raddrizzamento; le chiavi restano</value></data>
|
||||
<data name="Tooltips.Editor.Camera.ResetFramingNone" xml:space="preserve"><value>Niente da ripristinare: si vede tutto il fotogramma come è stato scattato</value></data>
|
||||
<data name="Tooltips.Editor.Camera.RotateLeft" xml:space="preserve"><value>Ruota l’immagine di un quarto di giro in senso antiorario</value></data>
|
||||
<data name="Tooltips.Editor.Camera.RotateRight" xml:space="preserve"><value>Ruota l’immagine di un quarto di giro in senso orario</value></data>
|
||||
<data name="Tooltips.Editor.Camera.Rotation" xml:space="preserve"><value>Quarti di giro dell’immagine; il ritaglio e le chiavi girano con essa</value></data>
|
||||
<data name="Tooltips.Editor.Camera.Straighten" xml:space="preserve"><value>Livella l’orizzonte; l’immagine si ingrandisce quanto basta a nascondere gli angoli</value></data>
|
||||
<data name="Tooltips.Editor.Camera.Zoom" xml:space="preserve"><value>Zoom della chiave scelta; 1 mostra tutto il ritaglio, di più ingrandisce e ammorbidisce</value></data>
|
||||
<data name="Tooltips.Editor.Change" xml:space="preserve"><value>Scegli un'altra sequenza da modificare; questa viene salvata prima · Ctrl+O</value></data>
|
||||
<data name="Tooltips.Editor.Chart.Flicker" xml:space="preserve"><value>Variazione di luminosità tra fotogrammi prima e dopo la correzione</value></data>
|
||||
@@ -174,10 +185,12 @@
|
||||
<data name="Tooltips.Editor.Export.FrameRate" xml:space="preserve"><value>Fotogrammi al secondo del file video</value></data>
|
||||
<data name="Tooltips.Editor.Export.FrameRateAuto" xml:space="preserve"><value>Auto: i {0} fps del preset</value></data>
|
||||
<data name="Tooltips.Editor.Export.FrameRateReset" xml:space="preserve"><value>Torna ai fotogrammi al secondo del preset</value></data>
|
||||
<data name="Tooltips.Editor.Export.Height" xml:space="preserve"><value>Altezza in pixel; vuoto segue la larghezza · Invio applica, Esc annulla</value></data>
|
||||
<data name="Tooltips.Editor.Export.Height" xml:space="preserve"><value>Altezza del riquadro in cui sta l’uscita; vuoto segue la larghezza · Invio applica, Esc annulla</value></data>
|
||||
<data name="Tooltips.Editor.Export.History" xml:space="preserve"><value>Apre Lavori filtrati su questa sequenza</value></data>
|
||||
<data name="Tooltips.Editor.Export.InBatch" xml:space="preserve"><value>Include questo preset quando In serie mette in coda il render</value></data>
|
||||
<data name="Tooltips.Editor.Export.Name" xml:space="preserve"><value>Segnaposto: {date} {title} {preset} {codec} {width} {height} {fps} · Invio applica, Esc annulla</value></data>
|
||||
<data name="Tooltips.Editor.Export.OutputCapped" xml:space="preserve"><value>L’encoder accetta al massimo {0}, quindi l’uscita viene ridotta</value></data>
|
||||
<data name="Tooltips.Editor.Export.OutputSize" xml:space="preserve"><value>La risoluzione del preset adattata alle proporzioni scelte</value></data>
|
||||
<data name="Tooltips.Editor.Export.Preset" xml:space="preserve"><value>Renderizza con {0}; modificare un valore lo rende Personalizzato</value></data>
|
||||
<data name="Tooltips.Editor.Export.Quality" xml:space="preserve"><value>Qualità dell’immagine; 95 sembra senza perdite, meno fa file più piccoli</value></data>
|
||||
<data name="Tooltips.Editor.Export.Recommended" xml:space="preserve"><value>Scelta del consulente: {0}</value></data>
|
||||
@@ -189,7 +202,7 @@
|
||||
<data name="Tooltips.Editor.Export.SyncNotLinked" xml:space="preserve"><value>Il server non ha questa sequenza: caricala prima dalla schermata Server</value></data>
|
||||
<data name="Tooltips.Editor.Export.SyncRemote" xml:space="preserve"><value>I render di una sequenza del server si fanno sul server e restano lì</value></data>
|
||||
<data name="Tooltips.Editor.Export.SyncSignedOut" xml:space="preserve"><value>Connettiti prima al server per inviargli i render</value></data>
|
||||
<data name="Tooltips.Editor.Export.Width" xml:space="preserve"><value>Larghezza in pixel; vuoto usa il preset o la sorgente · Invio applica, Esc annulla</value></data>
|
||||
<data name="Tooltips.Editor.Export.Width" xml:space="preserve"><value>Larghezza del riquadro in cui sta l’uscita; vuoto usa il preset o la sorgente · Invio applica, Esc annulla</value></data>
|
||||
<data name="Tooltips.Editor.Exposure.Deflicker" xml:space="preserve"><value>Elimina lo sfarfallio di luminosità tra fotogrammi; spento lascia l’esposizione della fotocamera</value></data>
|
||||
<data name="Tooltips.Editor.Exposure.HolyGrail" xml:space="preserve"><value>Trasforma i salti di ISO, tempo e diaframma in rampe morbide; spento li lascia</value></data>
|
||||
<data name="Tooltips.Editor.Exposure.Offset" xml:space="preserve"><value>Schiarisce o scurisce tutto il video dopo la correzione, in stop</value></data>
|
||||
@@ -213,6 +226,9 @@
|
||||
<data name="Tooltips.Editor.History.Offline" xml:space="preserve"><value>La libreria non è raggiungibile: sono elencate le versioni che questo PC conserva</value></data>
|
||||
<data name="Tooltips.Editor.History.Offline.Server" xml:space="preserve"><value>Il server non è raggiungibile: sono elencate le versioni che questo PC conserva</value></data>
|
||||
<data name="Tooltips.Editor.History.Restore" xml:space="preserve"><value>Rendi di nuovo la versione {0} il progetto (un passo: Ctrl+Z lo annulla); le modifiche non salvate diventano prima una versione</value></data>
|
||||
<data name="Tooltips.Editor.Look.Filter" xml:space="preserve"><value>Aspetto cromatico del video; la tendina lo confronta con l’originale</value></data>
|
||||
<data name="Tooltips.Editor.Look.Group" xml:space="preserve"><value>Aspetto cromatico di ogni fotogramma in uscita, applicato prima della compressione delle alte luci</value></data>
|
||||
<data name="Tooltips.Editor.Look.Strength" xml:space="preserve"><value>Quanto del filtro si applica; 0 % lascia l’immagine com’è</value></data>
|
||||
<data name="Tooltips.Editor.Motion.Blur" xml:space="preserve"><value>Aggiunge mosso lungo il movimento come un tempo più lungo; richiede il flusso ottico su ogni fotogramma</value></data>
|
||||
<data name="Tooltips.Editor.Motion.Flow" xml:space="preserve"><value>Precisione del flusso ottico per mosso e fotogrammi sintetici; Massima è la più lenta</value></data>
|
||||
<data name="Tooltips.Editor.Motion.Shutter" xml:space="preserve"><value>Angolo otturatore obiettivo; 180° è l’aspetto cinema, di più impasta ciò che si muove</value></data>
|
||||
@@ -225,6 +241,8 @@
|
||||
<data name="Tooltips.Editor.NotApplicable.Lossless" xml:space="preserve"><value>Non applicabile: questo formato è senza perdite</value></data>
|
||||
<data name="Tooltips.Editor.NotApplicable.NeedsAnalysis" xml:space="preserve"><value>Serve l’analisi approfondita: premi Analizza</value></data>
|
||||
<data name="Tooltips.Editor.NotApplicable.NoFlow" xml:space="preserve"><value>Non applicabile: serve solo al mosso e ai tempi interpolati</value></data>
|
||||
<data name="Tooltips.Editor.NotApplicable.NoLook" xml:space="preserve"><value>Non applicabile: nessun filtro scelto</value></data>
|
||||
<data name="Tooltips.Editor.NotApplicable.NoSlack" xml:space="preserve"><value>Non applicabile: il ritaglio riempie il fotogramma in questa direzione</value></data>
|
||||
<data name="Tooltips.Editor.NotApplicable.StabilizeOff" xml:space="preserve"><value>Non applicabile: la stabilizzazione è spenta</value></data>
|
||||
<data name="Tooltips.Editor.NotApplicable.StackOff" xml:space="preserve"><value>Non applicabile: lo stacking è spento</value></data>
|
||||
<data name="Tooltips.Editor.OpenWorkspace.Existing" xml:space="preserve"><value>Apri un progetto che la libreria ha per questa sequenza; Principale ne contiene le impostazioni attuali</value></data>
|
||||
@@ -253,6 +271,7 @@
|
||||
<data name="Tooltips.Editor.Play" xml:space="preserve"><value>Riproduce i fotogrammi · Spazio; le frecce avanzano di uno</value></data>
|
||||
<data name="Tooltips.Editor.Preview.Clip" xml:space="preserve"><value>Riproduce dieci secondi dei fotogrammi del video con le impostazioni attuali</value></data>
|
||||
<data name="Tooltips.Editor.Preview.Compare" xml:space="preserve"><value>Confronto a tendina: originale a sinistra, corretto a destra; trascina la linea</value></data>
|
||||
<data name="Tooltips.Editor.Preview.CropEdit" xml:space="preserve"><value>Trascina per spostare · trascina una maniglia per ridimensionare a proporzioni bloccate; Alt tiene fermo il centro · le frecce spostano, + e − ridimensionano · Esc annulla</value></data>
|
||||
<data name="Tooltips.Editor.Preview.CropLoss" xml:space="preserve"><value>Scurisce ciò che l’uscita taglia (cosa perdo)</value></data>
|
||||
<data name="Tooltips.Editor.Preview.CropMask" xml:space="preserve"><value>Mostra tutto il fotogramma e scurisce ciò che l’uscita taglierà</value></data>
|
||||
<data name="Tooltips.Editor.Preview.CropModeOff" xml:space="preserve"><value>Attiva Maschera ritaglio per scegliere tra cosa perdi e come apparirà</value></data>
|
||||
@@ -685,6 +704,7 @@
|
||||
<data name="Tooltips.Server.LoginCancel" xml:space="preserve"><value>Chiude senza accedere · Esc</value></data>
|
||||
<data name="Tooltips.Server.LoginPassword" xml:space="preserve"><value>Inviata solo a questo server; Chronos conserva un token di sessione, mai la password</value></data>
|
||||
<data name="Tooltips.Server.LoginUser" xml:space="preserve"><value>Il tuo nome utente sul server</value></data>
|
||||
<data name="Tooltips.Server.NeedsNewerServer" xml:space="preserve"><value>Il Chronos di questo server non legge queste impostazioni; aggiornalo</value></data>
|
||||
<data name="Tooltips.Server.NodeEncoders" xml:space="preserve"><value>Encoder video che il server può usare su questo PC: {0}</value></data>
|
||||
<data name="Tooltips.Server.NoneFound" xml:space="preserve"><value>Nessun server trovato ancora in questa rete; scrivi il suo indirizzo</value></data>
|
||||
<data name="Tooltips.Server.Quota" xml:space="preserve"><value>Spazio che usi sul server rispetto alla tua quota</value></data>
|
||||
|
||||
@@ -5,6 +5,7 @@ using Chronos.App.Jobs;
|
||||
using Chronos.Core.Advice;
|
||||
using Chronos.Core.Analysis;
|
||||
using Chronos.Core.Analysis.Deep;
|
||||
using Chronos.Core.Imaging.Geometry;
|
||||
using Chronos.Core.Localization;
|
||||
using Chronos.Core.Model;
|
||||
using Chronos.Core.Project;
|
||||
@@ -223,13 +224,16 @@ public static class EditPath
|
||||
|| (setting.IsAuto(project) && EditorSettings.Applies(setting, project, deep));
|
||||
}
|
||||
|
||||
/// <summary>Values of the section set by hand that are not Auto settings: crop, offsets and camera moves; fit to a duration; the exposure offset.</summary>
|
||||
/// <summary>
|
||||
/// Values of the section set by hand that are not Auto settings: crop, offsets, orientation and camera moves; fit to a
|
||||
/// duration; the exposure offset and the look.
|
||||
/// </summary>
|
||||
private static bool HasHandValues(ProjectSettings project, AdvisorSection section) => section switch
|
||||
{
|
||||
AdvisorSection.Camera => CropMargins.Of(project.Camera.Crop).Any(m => m > 0) || project.Camera.OffsetX != 0 || project.Camera.OffsetY != 0
|
||||
|| project.Camera.Keyframes.Count > 0,
|
||||
AdvisorSection.Camera => !CropFrame.IsWhole(project.Camera.Crop) || project.Camera.OffsetX != 0 || project.Camera.OffsetY != 0
|
||||
|| project.Camera.Keyframes.Count > 0 || project.Camera.IsOriented,
|
||||
AdvisorSection.Timing => project.Timing.FitToSeconds is > 0,
|
||||
AdvisorSection.Exposure => project.Exposure.ExposureOffsetEv != 0,
|
||||
AdvisorSection.Exposure => project.Exposure.ExposureOffsetEv != 0 || project.Look is not null,
|
||||
_ => false,
|
||||
};
|
||||
|
||||
|
||||
@@ -58,7 +58,7 @@ public sealed class PreviewFrame(int index, ImageBuffer corrected, ImageBuffer o
|
||||
/// The corrected-frame preview through the render pipeline at preview size (BRIEF §12.3). The render pipeline has no
|
||||
/// single-frame entry point, so the per-frame steps of <c>RenderRun</c> are followed here: corrections from
|
||||
/// <see cref="RenderPreparation"/> exactly as a render prepares them, then each frame through the render's exposure
|
||||
/// stage, its single geometry warp and the highlight knee. Stacking and motion blur need neighbouring frames and are
|
||||
/// stage, its single geometry warp and its finish (look, then highlight knee). Stacking and motion blur need neighbouring frames and are
|
||||
/// left to the render.
|
||||
/// <para>
|
||||
/// Preparing is split so a slider never decodes the sequence again: a measuring preparation (luminance, colour means,
|
||||
@@ -282,7 +282,7 @@ public sealed class PreviewRenderer(SequenceContent content, ISequenceSource sou
|
||||
raw.Dispose();
|
||||
raw = framed;
|
||||
}
|
||||
if (request.Project.Exposure.HighlightKnee is > 0 and < 1 and var knee) ExposureProcessor.Apply(corrected, 0, null, knee);
|
||||
FrameFinish.Apply(corrected, request.Project.Look, request.Project.Exposure.HighlightKnee);
|
||||
return (corrected, raw, request.Framing == PreviewFraming.Output ? null : plan);
|
||||
}
|
||||
catch
|
||||
|
||||
@@ -87,6 +87,13 @@ public static class SyncText
|
||||
["camera.offsetX"] = "Server.Setting.CameraOffset",
|
||||
["camera.offsetY"] = "Server.Setting.CameraOffset",
|
||||
["camera.keyframes"] = "Server.Setting.Keyframes",
|
||||
["camera.rotate"] = "Server.Setting.Rotation",
|
||||
["camera.mirror"] = "Server.Setting.Mirror",
|
||||
["camera.flip"] = "Server.Setting.Flip",
|
||||
["camera.straighten"] = "Server.Setting.Straighten",
|
||||
["look"] = "Server.Setting.Look",
|
||||
["look.filter"] = "Server.Setting.LookFilter",
|
||||
["look.strength"] = "Server.Setting.LookStrength",
|
||||
["stack.mode"] = "Server.Setting.Stacking",
|
||||
["stack.length"] = "Server.Setting.TrailLength",
|
||||
["export.preset"] = "Server.Setting.ExportPreset",
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
namespace Chronos.Core.Imaging.Color;
|
||||
|
||||
/// <summary>
|
||||
/// The built-in colour looks (owner review 1, R6): parametric, so a server or a Docker image renders them without LUT
|
||||
/// files. Each look is a linear-light 3×3 matrix, a contrast power about 0.18 and a lift, blended with the picture by its
|
||||
/// strength; values are never clamped (the highlight knee that follows compresses any overshoot). Applied to output
|
||||
/// frames only (<see cref="Chronos.Core.Render.FrameFinish"/>), never seen by measuring, flow or stacking.
|
||||
/// </summary>
|
||||
public static class LookFilter
|
||||
{
|
||||
/// <summary>The identity look's name.</summary>
|
||||
public const string None = "none";
|
||||
|
||||
/// <summary>Every look this Chronos renders, in the order the editor lists them; names are lower case.</summary>
|
||||
public static IReadOnlyList<string> Names { get; } = [None, "mono", "sepia", "warm", "cool", "vivid", "muted", "fade"];
|
||||
|
||||
/// <summary>A name this Chronos renders: null (none) or one of <see cref="Names"/> (ordinal, case-sensitive).</summary>
|
||||
public static bool IsKnown(string? name) => name is null || Names.Contains(name, StringComparer.Ordinal);
|
||||
|
||||
/// <summary>
|
||||
/// Applies the look <paramref name="filter"/> at <paramref name="strength"/> (0..1) to the colour planes of a
|
||||
/// linear-light <paramref name="image"/> in place; a fourth (alpha) channel is left untouched. None, an unknown name and
|
||||
/// a strength of 0 leave the image as it is.
|
||||
/// </summary>
|
||||
public static void Apply(ImageBuffer image, string? filter, double strength)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(image);
|
||||
if (filter is null or None || !(strength > 0) || !IsKnown(filter)) return;
|
||||
// Every look renders as the identity until the looks are implemented.
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,168 @@
|
||||
namespace Chronos.Core.Imaging.Geometry;
|
||||
|
||||
/// <summary>The part of a crop box a pointer drags (owner review 1, R5): the inside moves it, a handle resizes it.</summary>
|
||||
public enum CropHandle
|
||||
{
|
||||
None,
|
||||
|
||||
/// <summary>Inside the box: moves it.</summary>
|
||||
Inside,
|
||||
TopLeft,
|
||||
Top,
|
||||
TopRight,
|
||||
Right,
|
||||
BottomRight,
|
||||
Bottom,
|
||||
BottomLeft,
|
||||
Left,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The crop box locked to the output proportions (owner review 1, R5), in normalised view-frame units ([0,1]² of the view
|
||||
/// T, <see cref="FrameOrientation"/>). <c>lockRatio</c> is the box's width over its height in these units: the output
|
||||
/// ratio × H'/W' (<c>RenderGeometry.LockRatio</c>). Every box returned keeps that ratio, lies inside [0,1]² and is at least
|
||||
/// <see cref="MinimumShare"/> of <see cref="Largest"/>. The editor writes the box itself to <c>CameraSettings.Crop</c>
|
||||
/// with the offsets at 0, so <see cref="AspectRatio.FitCrop"/> returns it unchanged at render time.
|
||||
/// </summary>
|
||||
public static class CropFrame
|
||||
{
|
||||
/// <summary>The smallest box, as a share of the largest one (per side).</summary>
|
||||
public const double MinimumShare = 0.1;
|
||||
|
||||
private static readonly RectD Whole = new(0, 0, 1, 1);
|
||||
|
||||
/// <summary>The largest box of <paramref name="lockRatio"/> inside [0,1]², centred.</summary>
|
||||
public static RectD Largest(double lockRatio) => AspectRatio.FitCrop(Whole, Checked(lockRatio));
|
||||
|
||||
/// <summary>
|
||||
/// A stored crop as a rectangle: <paramref name="crop"/> clamped to [0,1]² as the render reads it, the whole view for
|
||||
/// null or an invalid crop (not four finite values, or too small).
|
||||
/// </summary>
|
||||
public static RectD Of(double[]? crop)
|
||||
{
|
||||
if (crop is not [var x0, var y0, var w0, var h0] || !double.IsFinite(x0 + y0 + w0 + h0)) return Whole;
|
||||
var x = double.Clamp(x0, 0, 1);
|
||||
var y = double.Clamp(y0, 0, 1);
|
||||
var w = double.Min(w0, 1 - x);
|
||||
var h = double.Min(h0, 1 - y);
|
||||
return w <= 1e-3 || h <= 1e-3 ? Whole : new RectD(x, y, w, h);
|
||||
}
|
||||
|
||||
/// <summary>A box as <c>CameraSettings.Crop</c>; null for the whole view.</summary>
|
||||
public static double[]? ToCrop(RectD box) => IsWhole(box) ? null : [box.X, box.Y, box.Width, box.Height];
|
||||
|
||||
/// <summary>The crop shows the whole view (null, invalid, or covering [0,1]²): nothing is cut.</summary>
|
||||
public static bool IsWhole(double[]? crop) => IsWhole(Of(crop));
|
||||
|
||||
/// <summary>
|
||||
/// The locked box an editor shows and edits for a stored crop: the largest box of <paramref name="lockRatio"/> inside it,
|
||||
/// placed by the offsets as the render places it (<see cref="AspectRatio.FitCrop"/>). The first edit of a legacy free
|
||||
/// crop with offsets bakes them in this way.
|
||||
/// </summary>
|
||||
public static RectD Locked(double[]? crop, double lockRatio, double offsetX = 0, double offsetY = 0) =>
|
||||
AspectRatio.FitCrop(Of(crop), Checked(lockRatio), double.IsFinite(offsetX) ? offsetX : 0, double.IsFinite(offsetY) ? offsetY : 0);
|
||||
|
||||
/// <summary>
|
||||
/// <paramref name="box"/> made valid: its centre kept, its size forced to <paramref name="lockRatio"/> (same area),
|
||||
/// between the minimum and <see cref="Largest"/>, then moved inside [0,1]².
|
||||
/// </summary>
|
||||
public static RectD Clamp(RectD box, double lockRatio)
|
||||
{
|
||||
var largest = Largest(lockRatio);
|
||||
var area = double.IsFinite(box.Width * box.Height) && box.Width > 0 && box.Height > 0 ? box.Width * box.Height : largest.Width * largest.Height;
|
||||
var height = double.Clamp(double.Sqrt(area / lockRatio), largest.Height * MinimumShare, largest.Height);
|
||||
var width = double.Min(height * lockRatio, largest.Width);
|
||||
height = width / lockRatio;
|
||||
var cx = double.IsFinite(box.CenterX) ? box.CenterX : 0.5;
|
||||
var cy = double.IsFinite(box.CenterY) ? box.CenterY : 0.5;
|
||||
return Placed(cx - width / 2, cy - height / 2, width, height);
|
||||
}
|
||||
|
||||
/// <summary><paramref name="box"/> moved by (<paramref name="dx"/>, <paramref name="dy"/>), stopping at the edges of [0,1]².</summary>
|
||||
public static RectD Move(RectD box, double dx, double dy) => Placed(box.X + dx, box.Y + dy, box.Width, box.Height);
|
||||
|
||||
/// <summary>
|
||||
/// <paramref name="start"/> resized by dragging <paramref name="handle"/> to (<paramref name="x"/>, <paramref name="y"/>):
|
||||
/// a corner is anchored at the opposite corner, an edge at the opposite edge and stays centred on the other axis; with
|
||||
/// <paramref name="aboutCentre"/> (Alt) the centre stays. The ratio stays <paramref name="lockRatio"/>, the size between
|
||||
/// the minimum and what fits in [0,1]² from the anchor. <see cref="CropHandle.Inside"/> and <see cref="CropHandle.None"/>
|
||||
/// return <paramref name="start"/>.
|
||||
/// </summary>
|
||||
public static RectD ResizeFrom(RectD start, CropHandle handle, double x, double y, double lockRatio, bool aboutCentre = false)
|
||||
{
|
||||
Checked(lockRatio);
|
||||
if (handle is CropHandle.None or CropHandle.Inside) return start;
|
||||
// The anchor: the opposite corner or edge midpoint, or the centre; the handle's side signs (−1, 0, +1) per axis.
|
||||
var (sx, sy) = handle switch
|
||||
{
|
||||
CropHandle.TopLeft => (-1, -1),
|
||||
CropHandle.Top => (0, -1),
|
||||
CropHandle.TopRight => (1, -1),
|
||||
CropHandle.Right => (1, 0),
|
||||
CropHandle.BottomRight => (1, 1),
|
||||
CropHandle.Bottom => (0, 1),
|
||||
CropHandle.BottomLeft => (-1, 1),
|
||||
_ => (-1, 0),
|
||||
};
|
||||
var ax = aboutCentre || sx == 0 ? start.CenterX : sx > 0 ? start.X : start.Right;
|
||||
var ay = aboutCentre || sy == 0 ? start.CenterY : sy > 0 ? start.Y : start.Bottom;
|
||||
var reach = aboutCentre ? 2 : 1;
|
||||
// The height the pointer asks for along each moving axis; a corner takes the larger of the two.
|
||||
var fromX = sx == 0 ? 0 : double.Max(0, sx * (x - ax)) * reach / lockRatio;
|
||||
var fromY = sy == 0 ? 0 : double.Max(0, sy * (y - ay)) * reach;
|
||||
var height = sx == 0 ? fromY : sy == 0 ? fromX : double.Max(fromX, fromY);
|
||||
// The room around the anchor in each direction the box grows.
|
||||
double RoomX() => sx == 0 || aboutCentre ? 2 * double.Min(ax, 1 - ax) : sx > 0 ? 1 - ax : ax;
|
||||
double RoomY() => sy == 0 || aboutCentre ? 2 * double.Min(ay, 1 - ay) : sy > 0 ? 1 - ay : ay;
|
||||
var largest = Largest(lockRatio);
|
||||
var maxHeight = double.Min(double.Min(RoomY(), RoomX() / lockRatio), largest.Height);
|
||||
height = double.Clamp(height, double.Min(largest.Height * MinimumShare, maxHeight), maxHeight);
|
||||
var width = height * lockRatio;
|
||||
var left = aboutCentre || sx == 0 ? ax - width / 2 : sx > 0 ? ax : ax - width;
|
||||
var top = aboutCentre || sy == 0 ? ay - height / 2 : sy > 0 ? ay : ay - height;
|
||||
return Placed(left, top, width, height);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <paramref name="box"/> for new proportions (an aspect change): the same centre, the same area where it fits, the new
|
||||
/// ratio, kept inside [0,1]².
|
||||
/// </summary>
|
||||
public static RectD Refit(RectD box, double lockRatio) => Clamp(box, lockRatio);
|
||||
|
||||
/// <summary>
|
||||
/// The Camera step's rows for a box: its size as a share of <see cref="Largest"/> (0.1..1), and its centre within the
|
||||
/// slack per axis (−1 = left/top, 0 = centred, +1 = right/bottom; 0 where there is no slack).
|
||||
/// </summary>
|
||||
public static (double Size, double X, double Y) ToRows(RectD box, double lockRatio)
|
||||
{
|
||||
var largest = Largest(lockRatio);
|
||||
var size = double.Clamp(box.Height / largest.Height, MinimumShare, 1);
|
||||
static double Place(double start, double length) => 1 - length > 1e-9 ? double.Clamp(2 * start / (1 - length) - 1, -1, 1) : 0;
|
||||
return (size, Place(box.X, box.Width), Place(box.Y, box.Height));
|
||||
}
|
||||
|
||||
/// <summary>The box of the Camera step's rows (<see cref="ToRows"/>).</summary>
|
||||
public static RectD FromRows(double size, double x, double y, double lockRatio)
|
||||
{
|
||||
var largest = Largest(lockRatio);
|
||||
var share = double.Clamp(double.IsFinite(size) ? size : 1, MinimumShare, 1);
|
||||
var (width, height) = (largest.Width * share, largest.Height * share);
|
||||
static double Start(double place, double length) => (1 - length) * (1 + double.Clamp(double.IsFinite(place) ? place : 0, -1, 1)) / 2;
|
||||
return new RectD(Start(x, width), Start(y, height), width, height);
|
||||
}
|
||||
|
||||
/// <summary>The view has room for the box to move along x (<paramref name="horizontal"/>) or y.</summary>
|
||||
public static bool HasSlack(RectD box, bool horizontal) => (horizontal ? 1 - box.Width : 1 - box.Height) > 1e-9;
|
||||
|
||||
private static bool IsWhole(RectD box) => box.X <= 0 && box.Y <= 0 && box.Right >= 1 && box.Bottom >= 1;
|
||||
|
||||
/// <summary>A box of the given size moved inside [0,1]².</summary>
|
||||
private static RectD Placed(double left, double top, double width, double height) =>
|
||||
new(double.Clamp(left, 0, double.Max(0, 1 - width)), double.Clamp(top, 0, double.Max(0, 1 - height)), width, height);
|
||||
|
||||
private static double Checked(double lockRatio)
|
||||
{
|
||||
if (!(lockRatio > 0) || double.IsInfinity(lockRatio)) throw new ArgumentOutOfRangeException(nameof(lockRatio));
|
||||
return lockRatio;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
using Chronos.Core.Project;
|
||||
|
||||
namespace Chronos.Core.Imaging.Geometry;
|
||||
|
||||
/// <summary>
|
||||
/// The view frame T of a camera (owner review 1, R6): the decoded (Exif-oriented, stabilised) frame of
|
||||
/// <see cref="FrameWidth"/>×<see cref="FrameHeight"/> turned by <see cref="Turns"/> quarter turns clockwise, then mirrored
|
||||
/// and flipped in screen axes, then straightened by <see cref="Straighten"/> degrees clockwise about its centre and
|
||||
/// magnified by <see cref="CoverZoom"/> so no border shows. <see cref="FrameToView"/> is <c>O = S · F · Q</c> in
|
||||
/// pixel-centre coordinates (<see cref="Affine2D"/>); the quarter turns and the mirror/flip are exact integer matrices, so
|
||||
/// an unstraightened view resamples to an exact permutation of the pixels. The crop and the keyframe centres are
|
||||
/// normalised in T. Pixels are never turned after decode: the render folds <see cref="ViewToFrame"/> into its single warp.
|
||||
/// </summary>
|
||||
public sealed record FrameOrientation
|
||||
{
|
||||
/// <summary>The largest straighten angle in degrees, either way.</summary>
|
||||
public const double MaxStraighten = 15;
|
||||
|
||||
private FrameOrientation(int turns, bool mirror, bool flip, double straighten, int frameWidth, int frameHeight)
|
||||
{
|
||||
Turns = turns;
|
||||
Mirror = mirror;
|
||||
Flip = flip;
|
||||
Straighten = straighten;
|
||||
FrameWidth = frameWidth;
|
||||
FrameHeight = frameHeight;
|
||||
(ViewWidth, ViewHeight) = turns % 2 == 1 ? (frameHeight, frameWidth) : (frameWidth, frameHeight);
|
||||
CoverZoom = CoverZoomOf(straighten, ViewWidth, ViewHeight);
|
||||
FrameToView = Straightening(1) * MirrorFlip() * QuarterTurns();
|
||||
ViewToFrame = QuarterTurns().Invert() * MirrorFlip() * Straightening(-1);
|
||||
}
|
||||
|
||||
/// <summary>Quarter turns clockwise, 0..3.</summary>
|
||||
public int Turns { get; }
|
||||
|
||||
/// <summary>Left and right swapped after the turns.</summary>
|
||||
public bool Mirror { get; }
|
||||
|
||||
/// <summary>Top and bottom swapped after the turns.</summary>
|
||||
public bool Flip { get; }
|
||||
|
||||
/// <summary>Degrees clockwise, within ±<see cref="MaxStraighten"/>.</summary>
|
||||
public double Straighten { get; }
|
||||
|
||||
/// <summary>The decoded frame's size in pixels.</summary>
|
||||
public int FrameWidth { get; }
|
||||
|
||||
public int FrameHeight { get; }
|
||||
|
||||
/// <summary>The view frame's size in pixels: the frame's, swapped for an odd number of turns.</summary>
|
||||
public int ViewWidth { get; }
|
||||
|
||||
public int ViewHeight { get; }
|
||||
|
||||
/// <summary>The straighten's cover zoom c = cos|θ| + max(W'/H', H'/W')·sin|θ| (1 without straighten); never stored.</summary>
|
||||
public double CoverZoom { get; }
|
||||
|
||||
/// <summary>Frame pixel-centre coordinates to view pixel-centre coordinates (O).</summary>
|
||||
public Affine2D FrameToView { get; }
|
||||
|
||||
/// <summary>View pixel-centre coordinates to frame pixel-centre coordinates (O⁻¹), for <see cref="GeometrySettings.Warp"/>.</summary>
|
||||
public Affine2D ViewToFrame { get; }
|
||||
|
||||
/// <summary>No turn, mirror, flip or straighten: the view is the frame.</summary>
|
||||
public bool IsIdentity => Turns == 0 && !Mirror && !Flip && Straighten == 0;
|
||||
|
||||
/// <summary>The orientation of <paramref name="camera"/> for a frame of the given size, its values normalised (<see cref="TurnsOf"/>, <see cref="StraightenOf"/>).</summary>
|
||||
public static FrameOrientation Of(CameraSettings camera, int frameWidth, int frameHeight)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(camera);
|
||||
return Of(camera.Rotate, camera.Mirror, camera.Flip, camera.Straighten, frameWidth, frameHeight);
|
||||
}
|
||||
|
||||
/// <inheritdoc cref="Of(CameraSettings, int, int)"/>
|
||||
public static FrameOrientation Of(int rotate, bool mirror, bool flip, double straighten, int frameWidth, int frameHeight)
|
||||
{
|
||||
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(frameWidth);
|
||||
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(frameHeight);
|
||||
return new FrameOrientation(TurnsOf(rotate), mirror, flip, StraightenOf(straighten), frameWidth, frameHeight);
|
||||
}
|
||||
|
||||
/// <summary>The identity orientation of a frame of the given size.</summary>
|
||||
public static FrameOrientation Identity(int frameWidth, int frameHeight) => Of(0, false, false, 0, frameWidth, frameHeight);
|
||||
|
||||
/// <summary>The same orientation for a frame of another size (a decode at another long edge).</summary>
|
||||
public FrameOrientation Resized(int frameWidth, int frameHeight) => frameWidth == FrameWidth && frameHeight == FrameHeight
|
||||
? this
|
||||
: Of(Turns * 90, Mirror, Flip, Straighten, frameWidth, frameHeight);
|
||||
|
||||
/// <summary>A rotation stored in degrees is a multiple of 90 (anything else renders as no turn).</summary>
|
||||
public static bool IsValidRotate(int rotate) => rotate % 90 == 0;
|
||||
|
||||
/// <summary>Quarter turns clockwise, 0..3, of a rotation in degrees; 0 when it is not a multiple of 90.</summary>
|
||||
public static int TurnsOf(int rotate) => IsValidRotate(rotate) ? ((rotate / 90 % 4) + 4) % 4 : 0;
|
||||
|
||||
/// <summary>A straighten angle as rendered: clamped to ±<see cref="MaxStraighten"/>, 0 when not finite.</summary>
|
||||
public static double StraightenOf(double degrees) => double.IsFinite(degrees) ? double.Clamp(degrees, -MaxStraighten, MaxStraighten) : 0;
|
||||
|
||||
/// <summary>The angle is rendered as stored (finite and within ±<see cref="MaxStraighten"/>).</summary>
|
||||
public static bool IsValidStraighten(double degrees) => double.IsFinite(degrees) && double.Abs(degrees) <= MaxStraighten;
|
||||
|
||||
/// <summary>
|
||||
/// The smallest zoom about the centre at which a view of <paramref name="viewWidth"/>×<paramref name="viewHeight"/>
|
||||
/// rotated by <paramref name="degrees"/> still covers the whole view: cos|θ| + max(W/H, H/W)·sin|θ|.
|
||||
/// </summary>
|
||||
public static double CoverZoomOf(double degrees, double viewWidth, double viewHeight)
|
||||
{
|
||||
if (degrees == 0) return 1;
|
||||
var (sin, cos) = double.SinCos(double.Abs(degrees) * double.Pi / 180);
|
||||
return cos + double.Max(viewWidth / viewHeight, viewHeight / viewWidth) * sin;
|
||||
}
|
||||
|
||||
/// <summary>Q: the quarter turns, frame → turned frame, exact.</summary>
|
||||
private Affine2D QuarterTurns() => Turns switch
|
||||
{
|
||||
1 => new Affine2D(0, -1, 1, 0, FrameHeight - 1, 0),
|
||||
2 => new Affine2D(-1, 0, 0, -1, FrameWidth - 1, FrameHeight - 1),
|
||||
3 => new Affine2D(0, 1, -1, 0, 0, FrameWidth - 1),
|
||||
_ => Affine2D.Identity,
|
||||
};
|
||||
|
||||
/// <summary>F: mirror and flip in the turned frame, exact (its own inverse).</summary>
|
||||
private Affine2D MirrorFlip() => new(Mirror ? -1 : 1, 0, 0, Flip ? -1 : 1, Mirror ? ViewWidth - 1 : 0, Flip ? ViewHeight - 1 : 0);
|
||||
|
||||
/// <summary>S (<paramref name="direction"/> 1) or S⁻¹ (−1): the straighten and its cover zoom about the view's centre.</summary>
|
||||
private Affine2D Straightening(int direction)
|
||||
{
|
||||
if (Straighten == 0) return Affine2D.Identity;
|
||||
var scale = direction > 0 ? CoverZoom : 1 / CoverZoom;
|
||||
return Affine2D.About(Affine2D.Similarity(scale, direction * Straighten * double.Pi / 180, 0, 0), (ViewWidth - 1) / 2.0, (ViewHeight - 1) / 2.0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,137 @@
|
||||
using Chronos.Core.Project;
|
||||
|
||||
namespace Chronos.Core.Imaging.Geometry;
|
||||
|
||||
/// <summary>One press of the Camera step's orientation controls, as the user sees the picture (owner review 1, R6).</summary>
|
||||
public enum OrientationOp
|
||||
{
|
||||
/// <summary>A quarter turn anticlockwise on screen.</summary>
|
||||
RotateLeft,
|
||||
|
||||
/// <summary>A quarter turn clockwise on screen.</summary>
|
||||
RotateRight,
|
||||
|
||||
/// <summary>Left and right swapped on screen.</summary>
|
||||
Mirror,
|
||||
|
||||
/// <summary>Top and bottom swapped on screen.</summary>
|
||||
Flip,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Applies an orientation press to a camera so the content stays framed (owner review 1, R6): the picture as shown turns
|
||||
/// or mirrors, and the crop, its offsets and the keyframe centres (normalised in the view frame) move with it. A quarter
|
||||
/// turn transposes a non-square aspect (the manual value, or the Auto's advised one: 16:9 becomes 9:16); its stored
|
||||
/// direction is inverted while exactly one of mirror and flip is set, as a mirror reverses the sense of a turn. Mirror and
|
||||
/// flip toggle their member, negate the straighten (a mirrored level horizon stays level) and the keyframe rolls. Each
|
||||
/// press is one edit (one undo step).
|
||||
/// </summary>
|
||||
public static class OrientationEdit
|
||||
{
|
||||
/// <summary>The camera after <paramref name="op"/>.</summary>
|
||||
public static CameraSettings Apply(CameraSettings camera, OrientationOp op)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(camera);
|
||||
var map = PointMap(op);
|
||||
var turn = op is OrientationOp.RotateLeft or OrientationOp.RotateRight;
|
||||
var mirrored = op is OrientationOp.Mirror or OrientationOp.Flip;
|
||||
var result = camera with
|
||||
{
|
||||
Crop = camera.Crop is { Length: 4 } crop ? Remap(crop, op) : camera.Crop,
|
||||
OffsetX = op switch
|
||||
{
|
||||
OrientationOp.RotateRight => Negated(camera.OffsetY),
|
||||
OrientationOp.RotateLeft => camera.OffsetY,
|
||||
OrientationOp.Mirror => Negated(camera.OffsetX),
|
||||
_ => camera.OffsetX,
|
||||
},
|
||||
OffsetY = op switch
|
||||
{
|
||||
OrientationOp.RotateRight => camera.OffsetX,
|
||||
OrientationOp.RotateLeft => Negated(camera.OffsetX),
|
||||
OrientationOp.Flip => Negated(camera.OffsetY),
|
||||
_ => camera.OffsetY,
|
||||
},
|
||||
Keyframes = [.. camera.Keyframes.Select(k => Remap(k, map, mirrored))],
|
||||
Aspect = turn ? Transposed(camera.Aspect) : camera.Aspect,
|
||||
};
|
||||
if (turn)
|
||||
{
|
||||
// A turn seen through one mirror is the opposite turn of the stored (unmirrored) picture.
|
||||
var clockwise = (op == OrientationOp.RotateRight) ^ (camera.Mirror ^ camera.Flip);
|
||||
var turns = (FrameOrientation.TurnsOf(camera.Rotate) + (clockwise ? 1 : 3)) % 4;
|
||||
return result with { Rotate = turns * 90 };
|
||||
}
|
||||
return op == OrientationOp.Mirror
|
||||
? result with { Mirror = !camera.Mirror, Straighten = Negated(camera.Straighten) }
|
||||
: result with { Flip = !camera.Flip, Straighten = Negated(camera.Straighten) };
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The project after <paramref name="op"/>: <see cref="Apply(CameraSettings, OrientationOp)"/>, and the keyframes
|
||||
/// parked on photos this copy does not hold (<see cref="ProjectSettings.PendingFrames"/>) moved the same way.
|
||||
/// </summary>
|
||||
public static ProjectSettings Apply(ProjectSettings project, OrientationOp op)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(project);
|
||||
var map = PointMap(op);
|
||||
var mirrored = op is OrientationOp.Mirror or OrientationOp.Flip;
|
||||
return project with
|
||||
{
|
||||
Camera = Apply(project.Camera, op),
|
||||
PendingFrames = project.PendingFrames is { } pending
|
||||
? [.. pending.Select(p => p.Keyframes is { Count: > 0 } keys ? p with { Keyframes = [.. keys.Select(k => Remap(k, map, mirrored))] } : p)]
|
||||
: null,
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>A normalised point of the view before <paramref name="op"/> in the view after it.</summary>
|
||||
public static (double X, double Y) MapPoint(double x, double y, OrientationOp op) => PointMap(op)(x, y);
|
||||
|
||||
/// <summary>A normalised [x, y, w, h] crop of the view before <paramref name="op"/> in the view after it.</summary>
|
||||
public static double[] Remap(double[] crop, OrientationOp op)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(crop);
|
||||
if (crop is not [var x, var y, var w, var h]) return crop;
|
||||
return op switch
|
||||
{
|
||||
OrientationOp.RotateRight => [Clean(1 - y - h), x, h, w],
|
||||
OrientationOp.RotateLeft => [y, Clean(1 - x - w), h, w],
|
||||
OrientationOp.Mirror => [Clean(1 - x - w), y, w, h],
|
||||
_ => [x, Clean(1 - y - h), w, h],
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>A non-square aspect transposed ("16:9" → "9:16"): the manual value and the advised one; "source" and text it cannot read stay.</summary>
|
||||
public static Auto<string> Transposed(Auto<string> aspect)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(aspect);
|
||||
return aspect with { Manual = Transposed(aspect.Manual), AutoValue = Transposed(aspect.AutoValue) };
|
||||
}
|
||||
|
||||
private static string? Transposed(string? text) =>
|
||||
AspectRatio.TryParse(text, out var ratio) && !ratio.IsSource && ratio.Width != ratio.Height ? AspectRatio.Custom(ratio.Height, ratio.Width).ToString() : text;
|
||||
|
||||
private static Func<double, double, (double X, double Y)> PointMap(OrientationOp op) => op switch
|
||||
{
|
||||
OrientationOp.RotateRight => (x, y) => (Clean(1 - y), x),
|
||||
OrientationOp.RotateLeft => (x, y) => (y, Clean(1 - x)),
|
||||
OrientationOp.Mirror => (x, y) => (Clean(1 - x), y),
|
||||
_ => (x, y) => (x, Clean(1 - y)),
|
||||
};
|
||||
|
||||
/// <summary>
|
||||
/// A remapped coordinate rounded to 12 decimals, so that undoing a press (four turns, two mirrors) gives back the stored
|
||||
/// value and the same canonical text rather than one a rounding error away.
|
||||
/// </summary>
|
||||
private static double Clean(double value) => double.Round(value, 12);
|
||||
|
||||
/// <summary>The value negated, never −0 (which JSON would write as "-0").</summary>
|
||||
private static double Negated(double value) => value == 0 ? 0 : -value;
|
||||
|
||||
private static CameraKey Remap(CameraKey key, Func<double, double, (double X, double Y)> map, bool mirrored)
|
||||
{
|
||||
var (x, y) = map(key.CenterX, key.CenterY);
|
||||
return key with { CenterX = x, CenterY = y, Rotation = mirrored ? Negated(key.Rotation) : key.Rotation };
|
||||
}
|
||||
}
|
||||
@@ -238,17 +238,17 @@ public static class ProjectContent
|
||||
/// <summary>The settings format (<see cref="ProjectSettings.Version"/>) a project's text declares; 1 when it says none or is not a project.</summary>
|
||||
public static int FormatOf(string? json)
|
||||
{
|
||||
if (string.IsNullOrWhiteSpace(json)) return ProjectSettings.CurrentVersion;
|
||||
if (string.IsNullOrWhiteSpace(json)) return ProjectSettings.BaseVersion;
|
||||
try
|
||||
{
|
||||
return JsonNode.Parse(json, new JsonNodeOptions { PropertyNameCaseInsensitive = true }) is JsonObject project
|
||||
&& project["version"] is JsonValue value && value.TryGetValue<int>(out var version) && version > 0
|
||||
? version
|
||||
: ProjectSettings.CurrentVersion;
|
||||
: ProjectSettings.BaseVersion;
|
||||
}
|
||||
catch (Exception ex) when (ex is JsonException or ArgumentException)
|
||||
{
|
||||
return ProjectSettings.CurrentVersion;
|
||||
return ProjectSettings.BaseVersion;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -164,16 +164,59 @@ public sealed record MotionSettings
|
||||
|
||||
public sealed record CameraSettings
|
||||
{
|
||||
/// <summary>Normalised crop (0..1) or null for the full frame.</summary>
|
||||
/// <summary>
|
||||
/// Normalised [x, y, width, height] of the view frame (oriented, straightened and cover-zoomed: see
|
||||
/// <see cref="Rotate"/>), or null for the whole view. The editor writes the box locked to <see cref="Aspect"/> with
|
||||
/// the offsets at 0; the render fits any other rectangle to the aspect.
|
||||
/// </summary>
|
||||
public double[]? Crop { get; init; }
|
||||
|
||||
/// <summary>"source", "16:9", "21:9", "4:3", "3:2", "1:1", "9:16", "4:5" or "w:h".</summary>
|
||||
/// <summary>
|
||||
/// The output proportions: "source", "16:9", "21:9", "4:3", "3:2", "1:1", "9:16", "4:5" or "w:h". A preset of a fixed
|
||||
/// size adapts its size to them (4K at 9:16 = 2160×3840); "source" keeps the preset's own.
|
||||
/// </summary>
|
||||
public Auto<string> Aspect { get; init; } = new();
|
||||
|
||||
/// <summary>Placement of the aspect-fitted crop inside <see cref="Crop"/>, −1..1 per axis; 0 for a crop the editor wrote.</summary>
|
||||
public double OffsetX { get; init; }
|
||||
|
||||
/// <inheritdoc cref="OffsetX"/>
|
||||
public double OffsetY { get; init; }
|
||||
|
||||
/// <summary>Virtual-camera keyframes; their centres are normalised in the view frame, like <see cref="Crop"/>.</summary>
|
||||
public IReadOnlyList<CameraKey> Keyframes { get; init; } = [];
|
||||
|
||||
/// <summary>
|
||||
/// Quarter turns of the picture in degrees clockwise (0, 90, 180 or 270), after the Exif orientation applied at decode.
|
||||
/// A value that is not a multiple of 90 renders as 0 (<c>Export.Render.RotationIgnored</c>). Settings format 2.
|
||||
/// </summary>
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
|
||||
public int Rotate { get; init; }
|
||||
|
||||
/// <summary>Left and right swapped, in screen axes after <see cref="Rotate"/>. Settings format 2.</summary>
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
|
||||
public bool Mirror { get; init; }
|
||||
|
||||
/// <summary>Top and bottom swapped, in screen axes after <see cref="Rotate"/>. Settings format 2.</summary>
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
|
||||
public bool Flip { get; init; }
|
||||
|
||||
/// <summary>
|
||||
/// Free-angle levelling in degrees, positive clockwise, after <see cref="Mirror"/> and <see cref="Flip"/>, with an
|
||||
/// automatic cover zoom (never stored) that never shows a border. Clamped to ±15, a value that is not finite counting as
|
||||
/// 0 (<c>Export.Render.StraightenClamped</c>). Settings format 2.
|
||||
/// </summary>
|
||||
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
|
||||
public double Straighten { get; init; }
|
||||
|
||||
/// <summary>Quarter turns clockwise, 0..3; meaningful only when <see cref="Rotate"/> is a multiple of 90.</summary>
|
||||
[JsonIgnore]
|
||||
public int Turns => ((Rotate / 90 % 4) + 4) % 4;
|
||||
|
||||
/// <summary>A turn, mirror, flip or straighten is set: the view frame differs from the decoded frame.</summary>
|
||||
[JsonIgnore]
|
||||
public bool IsOriented => Rotate % 360 != 0 || Mirror || Flip || Straighten != 0;
|
||||
|
||||
/// <summary>Members this Chronos does not know (written by a newer one): kept as they are, so they survive a round trip.</summary>
|
||||
[JsonExtensionData]
|
||||
public Dictionary<string, JsonElement>? Extra { get; set; }
|
||||
@@ -240,13 +283,50 @@ public sealed record ExportSettings
|
||||
public Dictionary<string, JsonElement>? Extra { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The colour look of a render (owner review 1, R6): a built-in parametric filter blended by its strength, applied to
|
||||
/// every output frame in linear light before the highlight knee. <see cref="ProjectSettings.Look"/> is null for none.
|
||||
/// </summary>
|
||||
public sealed record LookSettings
|
||||
{
|
||||
/// <summary>
|
||||
/// The filter's name: null or "none", "mono", "sepia", "warm", "cool", "vivid", "muted" or "fade"
|
||||
/// (<c>LookFilter.Names</c>). A text, not an enum, so a newer Chronos can add looks; one this Chronos does not know
|
||||
/// renders as none (<c>Export.Render.LookIgnored</c>).
|
||||
/// </summary>
|
||||
public string? Filter { get; init; }
|
||||
|
||||
/// <summary>Share of the filter applied, 0..1; null for 1.</summary>
|
||||
public double? Strength { get; init; }
|
||||
|
||||
/// <summary>The look leaves the picture as it is.</summary>
|
||||
[JsonIgnore]
|
||||
public bool IsIdentity => Filter is null or "none" || Strength is <= 0;
|
||||
|
||||
/// <summary>Members this Chronos does not know (written by a newer one): kept as they are, so they survive a round trip.</summary>
|
||||
[JsonExtensionData]
|
||||
public Dictionary<string, JsonElement>? Extra { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The "project" of a sequence (<c>.chronos/project.json</c>, BRIEF §7): every render decision. Originals are
|
||||
/// never modified; all edits live here.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// The settings format (<see cref="Version"/>) is conditional: <see cref="ToJson"/> writes the lowest format that renders
|
||||
/// the same (<see cref="RequiredFormat"/>), so a project that uses nothing newer keeps format 1, its canonical text and its
|
||||
/// hash, and older builds read it as before. Rules for a member added later: one that changes pixels and that the previous
|
||||
/// format would ignore raises the written format only while it is used; it is declared after the existing members of its
|
||||
/// section (before <c>Extra</c>) and omitted at its default, so an older build keeps it in <c>Extra</c> and writes it
|
||||
/// back in the same place; a list of choices that may grow is a text, never an enum.
|
||||
/// </remarks>
|
||||
public sealed record ProjectSettings
|
||||
{
|
||||
public const int CurrentVersion = 1;
|
||||
/// <summary>The highest settings format this Chronos reads; a project of a higher one opens read-only (<see cref="IsNewerFormat"/>).</summary>
|
||||
public const int CurrentVersion = 2;
|
||||
|
||||
/// <summary>The format of a project that uses nothing added since the first one, which most projects are written as.</summary>
|
||||
public const int BaseVersion = 1;
|
||||
|
||||
/// <summary>Layout of a project edited as JSON (<see cref="MoveFramePositions"/>): indented like <see cref="ToJson"/>.</summary>
|
||||
private static readonly JsonSerializerOptions IndentedJson = new() { WriteIndented = true };
|
||||
@@ -254,7 +334,8 @@ public sealed record ProjectSettings
|
||||
/// <summary>Member names as a project edited as JSON reads them (an older or hand-written file may use any casing).</summary>
|
||||
private static readonly JsonNodeOptions CaseInsensitive = new() { PropertyNameCaseInsensitive = true };
|
||||
|
||||
public int Version { get; init; } = CurrentVersion;
|
||||
/// <summary>The settings format read; <see cref="ToJson"/> writes <see cref="WrittenFormat"/>.</summary>
|
||||
public int Version { get; init; } = BaseVersion;
|
||||
public TimingSettings Timing { get; init; } = new();
|
||||
public ExposureSettings Exposure { get; init; } = new();
|
||||
public MotionSettings Motion { get; init; } = new();
|
||||
@@ -274,6 +355,9 @@ public sealed record ProjectSettings
|
||||
/// </summary>
|
||||
public IReadOnlyList<PendingFrame>? PendingFrames { get; init; }
|
||||
|
||||
/// <summary>The colour look (owner review 1, R6); null for none, which the editor writes whenever the look is the identity.</summary>
|
||||
public LookSettings? Look { get; init; }
|
||||
|
||||
/// <summary>The hero waits for its photo, so advice does not choose one meanwhile.</summary>
|
||||
[JsonIgnore]
|
||||
public bool HeroPending => PendingFrames?.Any(p => p.Hero) == true;
|
||||
@@ -292,7 +376,22 @@ public sealed record ProjectSettings
|
||||
[JsonIgnore]
|
||||
public bool IsNewerFormat => Version > CurrentVersion;
|
||||
|
||||
public string ToJson() => JsonSerializer.Serialize(this, ProjectJson.Default.ProjectSettings);
|
||||
/// <summary>
|
||||
/// The lowest settings format that renders these settings the same: 2 while a turn, mirror, flip or straighten
|
||||
/// (<see cref="CameraSettings.IsOriented"/>) or a look other than the identity is set, otherwise <see cref="BaseVersion"/>.
|
||||
/// </summary>
|
||||
[JsonIgnore]
|
||||
public int RequiredFormat => Camera.IsOriented || Look is { IsIdentity: false } ? 2 : BaseVersion;
|
||||
|
||||
/// <summary>The format <see cref="ToJson"/> writes: <see cref="RequiredFormat"/>, or a newer format read, kept as it is.</summary>
|
||||
[JsonIgnore]
|
||||
public int WrittenFormat => IsNewerFormat ? Version : RequiredFormat;
|
||||
|
||||
/// <summary>
|
||||
/// The settings as JSON, stamped with <see cref="WrittenFormat"/>. Every serialisation of a project goes through here,
|
||||
/// so the version written always matches the members used.
|
||||
/// </summary>
|
||||
public string ToJson() => JsonSerializer.Serialize(Version == WrittenFormat ? this : this with { Version = WrittenFormat }, ProjectJson.Default.ProjectSettings);
|
||||
|
||||
/// <summary>
|
||||
/// Reads a project; members missing from <paramref name="json"/> (an API client's partial settings, an older file)
|
||||
|
||||
@@ -50,7 +50,8 @@ public sealed record SelfTestOptions
|
||||
/// </summary>
|
||||
public static partial class SelfTest
|
||||
{
|
||||
public static IReadOnlyList<SelfTestCheck> Checks { get; } = [.. PlanChecks(), .. ExportChecks(), .. CodecChecks(), .. RenderChecks(), .. ProcessingChecks(), .. RobustnessChecks()];
|
||||
public static IReadOnlyList<SelfTestCheck> Checks { get; } = [.. PlanChecks(), .. ExportChecks(), .. CodecChecks(), .. RenderChecks(), .. ProcessingChecks(), .. GeometryChecks(),
|
||||
.. ColourChecks(), .. RobustnessChecks()];
|
||||
|
||||
public static async Task<IReadOnlyList<SelfTestResult>> RunAsync(SelfTestOptions? options = null, IProgress<SelfTestResult>? progress = null,
|
||||
CancellationToken cancellationToken = default)
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Chronos.Core.Render.Diagnostics;
|
||||
|
||||
/// <summary>Colour look checks (owner review 1, R6).</summary>
|
||||
public static partial class SelfTest
|
||||
{
|
||||
private static IEnumerable<SelfTestCheck> ColourChecks() => [];
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Chronos.Core.Render.Diagnostics;
|
||||
|
||||
/// <summary>Orientation, straighten and output-proportion checks (owner review 1, R5/R6).</summary>
|
||||
public static partial class SelfTest
|
||||
{
|
||||
private static IEnumerable<SelfTestCheck> GeometryChecks() => [];
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
using System.Globalization;
|
||||
using Chronos.Core.Analysis;
|
||||
using Chronos.Core.Imaging;
|
||||
using Chronos.Core.Imaging.Color;
|
||||
using Chronos.Core.Project;
|
||||
|
||||
namespace Chronos.Core.Render;
|
||||
|
||||
/// <summary>
|
||||
/// The last pixel step of every output frame (owner review 1, R6), shared by the render, the editor's preview, the server
|
||||
/// and the render nodes: the colour look (<see cref="LookFilter"/>) and then the highlight knee, in linear light, after
|
||||
/// stacking, interpolation and motion blur and before the encoder. The knee comes last so it compresses any overshoot the
|
||||
/// look leaves. Measuring, flow and stacking never see either.
|
||||
/// </summary>
|
||||
public static class FrameFinish
|
||||
{
|
||||
/// <summary>
|
||||
/// The knee a render applies: <paramref name="highlightKnee"/> when it lies in (0, 1), else none, with
|
||||
/// <c>Export.Render.KneeIgnored</c> added to <paramref name="warnings"/> for a value out of range.
|
||||
/// </summary>
|
||||
public static double? Knee(double? highlightKnee, ICollection<RenderWarning>? warnings = null)
|
||||
{
|
||||
if (highlightKnee is not { } knee) return null;
|
||||
if (knee is > 0 and < 1) return knee;
|
||||
warnings?.Add(new RenderWarning("Export.Render.KneeIgnored", knee.ToString(CultureInfo.InvariantCulture)));
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The look a render applies: null for none, the identity, or a filter this Chronos does not know, which adds
|
||||
/// <c>Export.Render.LookIgnored</c> to <paramref name="warnings"/>.
|
||||
/// </summary>
|
||||
public static LookSettings? Look(LookSettings? look, ICollection<RenderWarning>? warnings = null)
|
||||
{
|
||||
if (look is null || look.IsIdentity) return null;
|
||||
if (LookFilter.IsKnown(look.Filter)) return look;
|
||||
warnings?.Add(new RenderWarning("Export.Render.LookIgnored", look.Filter ?? string.Empty));
|
||||
return null;
|
||||
}
|
||||
|
||||
/// <summary>The share of a look applied: its strength clamped to 0..1, 1 when not given (or not finite).</summary>
|
||||
public static double Strength(LookSettings look)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(look);
|
||||
return look.Strength is { } strength && double.IsFinite(strength) ? double.Clamp(strength, 0, 1) : 1;
|
||||
}
|
||||
|
||||
/// <summary>Neither a look nor a knee would change a frame.</summary>
|
||||
public static bool IsIdentity(LookSettings? look, double? knee) => (look is null || look.IsIdentity || !LookFilter.IsKnown(look.Filter)) && knee is not (> 0 and < 1);
|
||||
|
||||
/// <summary>
|
||||
/// Finishes a linear-light output <paramref name="frame"/> in place: <paramref name="look"/> (none when null, the
|
||||
/// identity or unknown), then the soft highlight knee when <paramref name="knee"/> lies in (0, 1).
|
||||
/// </summary>
|
||||
public static void Apply(ImageBuffer frame, LookSettings? look, double? knee)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(frame);
|
||||
if (look is { IsIdentity: false } && LookFilter.IsKnown(look.Filter)) LookFilter.Apply(frame, look.Filter, Strength(look));
|
||||
if (knee is > 0 and < 1 and var k) ExposureProcessor.Apply(frame, 0, null, k);
|
||||
}
|
||||
}
|
||||
@@ -28,8 +28,10 @@ public sealed class RenderGeometry
|
||||
private readonly int _maxWorkingLongEdge;
|
||||
|
||||
private RenderGeometry(VirtualCamera? camera, RectD crop, double offsetX, double offsetY, double stabilizationZoom, int sourceWidth, int sourceHeight,
|
||||
int outputWidth, int outputHeight, double fittedWidth, double fittedHeight, double maxZoom, int maxWorkingLongEdge, IReadOnlyList<RenderWarning> warnings)
|
||||
int outputWidth, int outputHeight, double fittedWidth, double fittedHeight, double maxZoom, int maxWorkingLongEdge, IReadOnlyList<RenderWarning> warnings,
|
||||
double outputRatio)
|
||||
{
|
||||
OutputRatio = outputRatio;
|
||||
_camera = camera;
|
||||
_crop = crop;
|
||||
_offsetX = offsetX;
|
||||
@@ -51,6 +53,30 @@ public sealed class RenderGeometry
|
||||
public int OutputWidth { get; }
|
||||
public int OutputHeight { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Width of the view frame T at full resolution (<see cref="FrameOrientation"/>): the source turned, mirrored and
|
||||
/// straightened. <see cref="CameraSettings.Crop"/> and the keyframe centres are normalised in it.
|
||||
/// </summary>
|
||||
public int ViewWidth => SourceWidth;
|
||||
|
||||
/// <inheritdoc cref="ViewWidth"/>
|
||||
public int ViewHeight => SourceHeight;
|
||||
|
||||
/// <summary>The output ratio (width / height) the crop is fitted to (<see cref="RenderSize.Ratio"/>), before rounding to whole pixels.</summary>
|
||||
public double OutputRatio { get; }
|
||||
|
||||
/// <summary>
|
||||
/// The crop box's width over its height in normalised view units (<see cref="OutputRatio"/> × <see cref="ViewHeight"/> /
|
||||
/// <see cref="ViewWidth"/>): the lock ratio of <see cref="CropFrame"/>.
|
||||
/// </summary>
|
||||
public double LockRatio => OutputRatio * ViewHeight / ViewWidth;
|
||||
|
||||
/// <summary>
|
||||
/// The crop the editor shows and edits, normalised in the view frame and the same on every frame: the stored crop
|
||||
/// fitted to the output ratio and placed by the offsets (<see cref="CropFrame.Locked"/>).
|
||||
/// </summary>
|
||||
public RectD EditableCrop => AspectRatio.FitCrop(_crop, LockRatio, _offsetX, _offsetY);
|
||||
|
||||
/// <summary>Remarks about ignored camera values.</summary>
|
||||
public IReadOnlyList<RenderWarning> Warnings { get; }
|
||||
|
||||
@@ -112,14 +138,14 @@ public sealed class RenderGeometry
|
||||
var cameraPath = Camera(camera.Keyframes, warnings);
|
||||
var maxZoom = (cameraPath?.Keyframes.Max(k => k.Zoom) ?? 1) * stabilizationZoom;
|
||||
return new RenderGeometry(cameraPath, crop, camera.OffsetX, camera.OffsetY, stabilizationZoom, sourceWidth, sourceHeight, width, height,
|
||||
fitted.Width, fitted.Height, maxZoom, maxWorkingLongEdge, warnings);
|
||||
fitted.Width, fitted.Height, maxZoom, maxWorkingLongEdge, warnings, ratio);
|
||||
}
|
||||
|
||||
/// <summary>The same geometry rendering into a different output size (e.g. capped by the encoder).</summary>
|
||||
public RenderGeometry WithOutputSize(int width, int height) => width == OutputWidth && height == OutputHeight
|
||||
? this
|
||||
: new RenderGeometry(_camera, _crop, _offsetX, _offsetY, _stabilizationZoom, SourceWidth, SourceHeight, width, height, _fittedWidth, _fittedHeight,
|
||||
_maxZoom, _maxWorkingLongEdge, Warnings);
|
||||
_maxZoom, _maxWorkingLongEdge, Warnings, OutputRatio);
|
||||
|
||||
/// <summary>Camera pose at a (fractional) source position, including the stabilisation zoom.</summary>
|
||||
public CameraState PoseAt(double sourcePosition)
|
||||
@@ -146,6 +172,62 @@ public sealed class RenderGeometry
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The view frame→decoded frame map (O⁻¹, <see cref="FrameOrientation.ViewToFrame"/>) for a frame of
|
||||
/// <paramref name="frameWidth"/>×<paramref name="frameHeight"/> pixels, without stabilisation: what maps overlays
|
||||
/// drawn in frame pixels (the horizon, the region mask) into the view through its inverse.
|
||||
/// </summary>
|
||||
public Affine2D ViewToFrame(int frameWidth, int frameHeight)
|
||||
{
|
||||
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(frameWidth);
|
||||
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(frameHeight);
|
||||
return Affine2D.Identity;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The whole view frame of one decoded frame at <paramref name="outputWidth"/>×<paramref name="outputHeight"/>
|
||||
/// pixels, without crop, camera pose or stabilisation: the editor's Source framing of an oriented camera.
|
||||
/// </summary>
|
||||
public GeometrySettings ViewFor(int frameWidth, int frameHeight, int outputWidth, int outputHeight)
|
||||
{
|
||||
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(outputWidth);
|
||||
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(outputHeight);
|
||||
return new GeometrySettings
|
||||
{
|
||||
Aspect = AspectRatio.Source,
|
||||
OutputWidth = outputWidth,
|
||||
OutputHeight = outputHeight,
|
||||
Warp = ViewToFrame(frameWidth, frameHeight),
|
||||
Border = BorderMode.Clamp,
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The footprint of a planned output frame (<see cref="GeometryStage.Plan"/> of <see cref="For"/> on a frame of
|
||||
/// <paramref name="frameWidth"/>×<paramref name="frameHeight"/>) in the view frame: the bounding box of its warped
|
||||
/// corners, normalised and clamped to [0,1]²; the whole view without a plan. The Export step's crop mask.
|
||||
/// </summary>
|
||||
public RectD FootprintInView(GeometryPlan? plan, int frameWidth, int frameHeight)
|
||||
{
|
||||
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(frameWidth);
|
||||
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(frameHeight);
|
||||
if (plan is not { } p) return new RectD(0, 0, 1, 1);
|
||||
var toView = ViewToFrame(frameWidth, frameHeight).Invert() * p.OutputToSource;
|
||||
double left = double.MaxValue, top = double.MaxValue, right = double.MinValue, bottom = double.MinValue;
|
||||
foreach (var (u, v) in new[] { (-0.5, -0.5), (p.OutputWidth - 0.5, -0.5), (-0.5, p.OutputHeight - 0.5), (p.OutputWidth - 0.5, p.OutputHeight - 0.5) })
|
||||
{
|
||||
var (x, y) = toView.Apply(u, v);
|
||||
(left, top, right, bottom) = (double.Min(left, x + 0.5), double.Min(top, y + 0.5), double.Max(right, x + 0.5), double.Max(bottom, y + 0.5));
|
||||
}
|
||||
var (viewWidth, viewHeight) = ViewSizeOf(frameWidth, frameHeight);
|
||||
left = double.Clamp(left / viewWidth, 0, 1);
|
||||
top = double.Clamp(top / viewHeight, 0, 1);
|
||||
return new RectD(left, top, double.Clamp(right / viewWidth, 0, 1) - left, double.Clamp(bottom / viewHeight, 0, 1) - top);
|
||||
}
|
||||
|
||||
/// <summary>The view frame's size for a decoded frame of the given size.</summary>
|
||||
private static (int Width, int Height) ViewSizeOf(int frameWidth, int frameHeight) => (frameWidth, frameHeight);
|
||||
|
||||
private static RectD NormalisedCrop(double[]? crop, List<RenderWarning> warnings)
|
||||
{
|
||||
var full = new RectD(0, 0, 1, 1);
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace Chronos.Core.Render;
|
||||
/// <see cref="IRenderFrameSource"/> at the working size; per-frame exposure corrections (deflicker, holy grail, white
|
||||
/// balance, regions) are applied; stabilisation, virtual camera and crop are resampled once to the output size;
|
||||
/// fractional positions are synthesised from the bidirectional flow; motion blur follows the flow with shutter-angle
|
||||
/// composition; stacking (median, mean, star trails) and the highlight knee come last, then the encoder. Encoding of a
|
||||
/// composition; stacking (median, mean, star trails) and the finish (look, then highlight knee: <see cref="FrameFinish"/>) come last, then the encoder. Encoding of a
|
||||
/// frame overlaps the processing of the next. Cancellation and failures leave no output behind (sessions delete their
|
||||
/// partial files on dispose) and every background task is awaited, so exceptions surface exactly once.
|
||||
/// </summary>
|
||||
@@ -111,7 +111,8 @@ internal sealed class RenderRun : IDisposable
|
||||
private readonly List<RenderWarning> _warnings = [];
|
||||
private readonly Stopwatch _clock = new();
|
||||
private readonly int _workingEdge;
|
||||
private readonly float? _knee;
|
||||
private readonly double? _knee;
|
||||
private readonly LookSettings? _look;
|
||||
private readonly double _targetShutter;
|
||||
private readonly FlowQuality _flowQuality;
|
||||
private OpticalFlowEngine? _flowEngine;
|
||||
@@ -131,12 +132,8 @@ internal sealed class RenderRun : IDisposable
|
||||
_geometry = setup.Geometry;
|
||||
_prepared = new PreparedFrameCache(int.Max(3, options.CacheFrames));
|
||||
_workingEdge = _geometry.WorkingLongEdge;
|
||||
var exposure = input.Project.Exposure;
|
||||
if (exposure.HighlightKnee is { } knee)
|
||||
{
|
||||
if (knee is > 0 and < 1) _knee = (float)knee;
|
||||
else _warnings.Add(new RenderWarning("Export.Render.KneeIgnored", knee.ToString(CultureInfo.InvariantCulture)));
|
||||
}
|
||||
_knee = FrameFinish.Knee(input.Project.Exposure.HighlightKnee, _warnings);
|
||||
_look = FrameFinish.Look(input.Project.Look, _warnings);
|
||||
var motion = input.Project.Motion;
|
||||
_targetShutter = double.Clamp(motion.TargetShutterAngle.Resolve(180.0), 0, 360);
|
||||
_flowQuality = motion.FlowQuality.Resolve(options.DefaultFlowQuality) switch
|
||||
@@ -403,14 +400,14 @@ internal sealed class RenderRun : IDisposable
|
||||
if (ev != 0 || (gains is { } g && g != ChannelGains.Identity)) ExposureProcessor.Apply(frame, ev, gains);
|
||||
}
|
||||
|
||||
/// <summary>Applies the knee and hands the frame to the encoder once the previous frame is encoded; owns <paramref name="frame"/>.</summary>
|
||||
/// <summary>Finishes the frame (look, then knee) and hands it to the encoder once the previous frame is encoded; owns <paramref name="frame"/>.</summary>
|
||||
private async Task EmitAsync(ImageBuffer frame, long duration90k)
|
||||
{
|
||||
ImageBuffer? preview = null;
|
||||
try
|
||||
{
|
||||
await FlushEncodingAsync().ConfigureAwait(false);
|
||||
if (_knee is { } knee) ExposureProcessor.Apply(frame, 0, null, knee);
|
||||
FrameFinish.Apply(frame, _look, _knee);
|
||||
_done++;
|
||||
if (_options.PreviewInterval > 0 && (_done - 1) % _options.PreviewInterval == 0) preview = Resampler.Thumbnail(frame, _options.PreviewLongEdge);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
using Chronos.Core.Export;
|
||||
using Chronos.Core.Project;
|
||||
|
||||
namespace Chronos.Core.Render;
|
||||
|
||||
/// <summary>
|
||||
/// What a render needs of the program that runs it (owner review 1, phase 4): the settings format a render node or server
|
||||
/// must read to render a job as this Chronos would. Computed for routing and gating only, never written into the settings.
|
||||
/// </summary>
|
||||
public static class RenderRules
|
||||
{
|
||||
/// <summary>
|
||||
/// The settings format a render of <paramref name="settings"/> with <paramref name="export"/> on a source of the given
|
||||
/// (Exif-oriented) size needs: the format the settings are written in (<see cref="ProjectSettings.WrittenFormat"/>), and
|
||||
/// at least 2 when the chosen proportions change a fixed-size preset's size (<see cref="RenderSize"/>), which a format-1
|
||||
/// program would render at the preset's own ratio.
|
||||
/// </summary>
|
||||
public static int RequiredFormat(ProjectSettings settings, ResolvedExport export, int sourceWidth, int sourceHeight)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(settings);
|
||||
ArgumentNullException.ThrowIfNull(export);
|
||||
var format = settings.WrittenFormat;
|
||||
if (export.Width > 0 && export.Height > 0 && sourceWidth > 0 && sourceHeight > 0 && !RenderSize.IsSource(settings.Camera)
|
||||
&& RenderSize.Of(settings.Camera, export, sourceWidth, sourceHeight) != PresetSize(export))
|
||||
format = int.Max(format, 2);
|
||||
return format;
|
||||
}
|
||||
|
||||
/// <summary>A fixed-size preset's size as a format-1 program renders it (even for codecs that are not managed).</summary>
|
||||
private static (int Width, int Height) PresetSize(ResolvedExport export) =>
|
||||
RenderSize.Of(new CameraSettings(), export, 1, 1);
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
using Chronos.Core.Export;
|
||||
using Chronos.Core.Imaging.Geometry;
|
||||
using Chronos.Core.Project;
|
||||
using Chronos.Core.Video;
|
||||
|
||||
namespace Chronos.Core.Render;
|
||||
|
||||
/// <summary>
|
||||
/// The output size of a render (owner review 1, R5: "the chosen proportions win"), before the encoder caps it
|
||||
/// (<see cref="EncoderSelector"/>): one pure function shared by the render (<see cref="RenderGeometry"/>), the editor's
|
||||
/// Export step and the server's job routing.
|
||||
/// <list type="table">
|
||||
/// <item><term>Fixed-size preset, aspect not "source"</term><description>The aspect fitted in the preset's box, the box turned to portrait for a ratio below 1 (<see cref="Adapt"/>): 4K at 9:16 = 2160×3840.</description></item>
|
||||
/// <item><term>Fixed-size preset, "source"</term><description>The preset's size.</description></item>
|
||||
/// <item><term>One side given</term><description>The other side from the ratio.</description></item>
|
||||
/// <item><term>No side given</term><description>The aspect-fitted crop of the view, scaled down to the decode cap.</description></item>
|
||||
/// </list>
|
||||
/// Sizes are made even for codecs that are not managed (H.264, HEVC, AV1), and at least 2 (1 for managed codecs).
|
||||
/// </summary>
|
||||
public static class RenderSize
|
||||
{
|
||||
/// <summary>The output size of <paramref name="export"/> for <paramref name="camera"/> on a source of the given Exif-oriented size.</summary>
|
||||
/// <param name="maxWorkingLongEdge">Decode-size cap (0 = none); it also caps source-sized outputs, as in <see cref="RenderGeometry.Create"/>.</param>
|
||||
public static (int Width, int Height) Of(CameraSettings camera, ResolvedExport export, int sourceWidth, int sourceHeight, int maxWorkingLongEdge = 0)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(camera);
|
||||
ArgumentNullException.ThrowIfNull(export);
|
||||
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(sourceWidth);
|
||||
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(sourceHeight);
|
||||
var ratio = Ratio(camera, export, sourceWidth, sourceHeight);
|
||||
int width, height;
|
||||
if (export.Width > 0 && export.Height > 0) (width, height) = IsSource(camera) ? (export.Width, export.Height) : Adapt(export.Width, export.Height, ratio);
|
||||
else if (export.Width > 0) (width, height) = (export.Width, (int)double.Round(export.Width / ratio));
|
||||
else if (export.Height > 0) (width, height) = ((int)double.Round(export.Height * ratio), export.Height);
|
||||
else
|
||||
{
|
||||
var (viewWidth, viewHeight) = ViewSize(camera, sourceWidth, sourceHeight);
|
||||
var crop = CropFrame.Of(camera.Crop);
|
||||
var fitted = AspectRatio.FitCrop(new RectD(crop.X * viewWidth, crop.Y * viewHeight, crop.Width * viewWidth, crop.Height * viewHeight), ratio,
|
||||
camera.OffsetX, camera.OffsetY);
|
||||
var scale = maxWorkingLongEdge > 0 ? double.Min(1, maxWorkingLongEdge / double.Max(fitted.Width, fitted.Height)) : 1;
|
||||
(width, height) = ((int)double.Round(fitted.Width * scale), (int)double.Round(fitted.Height * scale));
|
||||
}
|
||||
var managed = VideoCodecInfo.IsManaged(export.Codec);
|
||||
if (!managed)
|
||||
{
|
||||
width &= ~1;
|
||||
height &= ~1;
|
||||
}
|
||||
return (int.Max(managed ? 1 : 2, width), int.Max(managed ? 1 : 2, height));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The output ratio (width / height) the crop is fitted to: the aspect's, or for "source" (and an aspect that cannot be
|
||||
/// read) the fixed-size preset's ratio, else the view's (the source turned by <see cref="CameraSettings.Rotate"/>).
|
||||
/// </summary>
|
||||
public static double Ratio(CameraSettings camera, ResolvedExport export, int sourceWidth, int sourceHeight)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(camera);
|
||||
ArgumentNullException.ThrowIfNull(export);
|
||||
if (Aspect(camera) is { IsSource: false } aspect) return aspect.Width / (double)aspect.Height;
|
||||
if (export.Width > 0 && export.Height > 0) return export.Width / (double)export.Height;
|
||||
var (viewWidth, viewHeight) = ViewSize(camera, sourceWidth, sourceHeight);
|
||||
return viewWidth / (double)viewHeight;
|
||||
}
|
||||
|
||||
/// <summary>The view frame's size for a source of the given size: swapped for an odd number of quarter turns.</summary>
|
||||
public static (int Width, int Height) ViewSize(CameraSettings camera, int sourceWidth, int sourceHeight)
|
||||
{
|
||||
ArgumentNullException.ThrowIfNull(camera);
|
||||
return FrameOrientation.TurnsOf(camera.Rotate) % 2 == 1 ? (sourceHeight, sourceWidth) : (sourceWidth, sourceHeight);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The largest size of <paramref name="ratio"/> inside the box <paramref name="boxWidth"/>×<paramref name="boxHeight"/>
|
||||
/// turned to landscape for a ratio of 1 or more and to portrait below 1, rounded to whole pixels: 3840×2160 gives
|
||||
/// 2160×3840 at 9:16, 2160×2160 at 1:1, 2160×2700 at 4:5 and 3840×1646 at 21:9; 1080×1920 gives 1920×1080 at 16:9.
|
||||
/// </summary>
|
||||
public static (int Width, int Height) Adapt(int boxWidth, int boxHeight, double ratio)
|
||||
{
|
||||
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(boxWidth);
|
||||
ArgumentOutOfRangeException.ThrowIfNegativeOrZero(boxHeight);
|
||||
if (!(ratio > 0) || double.IsInfinity(ratio)) throw new ArgumentOutOfRangeException(nameof(ratio));
|
||||
var (longEdge, shortEdge) = (int.Max(boxWidth, boxHeight), int.Min(boxWidth, boxHeight));
|
||||
var (width, height) = ratio < 1 ? (shortEdge, longEdge) : (longEdge, shortEdge);
|
||||
return width / (double)height > ratio
|
||||
? (int.Max(1, (int)double.Round(height * ratio)), height)
|
||||
: (width, int.Max(1, (int)double.Round(width / ratio)));
|
||||
}
|
||||
|
||||
/// <summary>The camera's aspect resolves to "source" (or to text that cannot be read, which renders as source).</summary>
|
||||
public static bool IsSource(CameraSettings camera) => Aspect(camera) is not { IsSource: false };
|
||||
|
||||
private static AspectRatio? Aspect(CameraSettings camera) =>
|
||||
AspectRatio.TryParse(camera.Aspect.Resolve("source"), out var aspect) ? aspect : null;
|
||||
}
|
||||
@@ -13,6 +13,10 @@ public sealed record ServerLimits(long MaxUploadBytes, int ChunkSizeBytes, int P
|
||||
/// File extensions the archive files as photos (lower case, no dot): the admin panel's upload dialog offers and sends only
|
||||
/// these (owner review 2, R3). Null from servers that do not announce them.
|
||||
/// </param>
|
||||
/// <param name="SettingsFormat">
|
||||
/// The highest project settings format the server reads and renders (<c>ProjectSettings.CurrentVersion</c>, owner review 1,
|
||||
/// phase 4); null from an older server, which reads format 1 only. The desktop holds back a push or a render that needs more.
|
||||
/// </param>
|
||||
public sealed record ServerInfo(
|
||||
string Name,
|
||||
string Version,
|
||||
@@ -21,7 +25,8 @@ public sealed record ServerInfo(
|
||||
string? TlsFingerprint,
|
||||
IReadOnlyList<string> Formats,
|
||||
ServerLimits Limits,
|
||||
IReadOnlyList<string>? Extensions = null);
|
||||
IReadOnlyList<string>? Extensions = null,
|
||||
int? SettingsFormat = null);
|
||||
|
||||
/// <summary>Names of <see cref="ServerInfo.Capabilities"/> that clients act on.</summary>
|
||||
public static class ServerCapabilities
|
||||
|
||||
@@ -28,7 +28,11 @@ public sealed record CreateJobRequest(string Kind, IReadOnlyList<Guid> Target, s
|
||||
/// <c>POST /api/v1/nodes/register</c>: a client offers its GPU encoders (BRIEF §14.7). <see cref="MaxWidth"/> ×
|
||||
/// <see cref="MaxHeight"/> is the largest output of any of them, for encoders that announce no limit of their own.
|
||||
/// </summary>
|
||||
public sealed record RegisterNodeRequest(string ClientName, IReadOnlyList<NodeEncoder> Encoders, int MaxWidth, int MaxHeight);
|
||||
/// <param name="SettingsFormat">
|
||||
/// The highest project settings format the node renders (<c>ProjectSettings.CurrentVersion</c>); 1 from an older node,
|
||||
/// which is then never given a job that needs more (<see cref="RenderJobParameters.RequiredSettingsFormat"/>).
|
||||
/// </param>
|
||||
public sealed record RegisterNodeRequest(string ClientName, IReadOnlyList<NodeEncoder> Encoders, int MaxWidth, int MaxHeight, int SettingsFormat = 1);
|
||||
|
||||
/// <summary>
|
||||
/// One encoder of a render node. <see cref="MaxWidth"/> × <see cref="MaxHeight"/> is its largest output (0 = not announced:
|
||||
@@ -59,8 +63,13 @@ public sealed record JobPriorityRequest(string Priority);
|
||||
/// frames before the render.</param>
|
||||
/// <param name="ProjectId">The project whose version is rendered (owner review 2, R8); recorded with the render.</param>
|
||||
/// <param name="ProjectVersionId">The project version rendered; recorded with the render.</param>
|
||||
/// <param name="RequiredSettingsFormat">
|
||||
/// The settings format a program must read to render the job as asked (<c>RenderRules.RequiredFormat</c>: the settings'
|
||||
/// format, at least 2 when the chosen proportions change a fixed preset's size); 1 in a job of an older server. A hint for
|
||||
/// routing: a node recomputes it from the settings it claims.
|
||||
/// </param>
|
||||
public sealed record RenderJobParameters(string PresetName, string PresetJson, string Codec, int Width, int Height, bool UseProxies, string? SettingsJson,
|
||||
Guid? ProjectId = null, Guid? ProjectVersionId = null);
|
||||
Guid? ProjectId = null, Guid? ProjectVersionId = null, int RequiredSettingsFormat = 1);
|
||||
|
||||
/// <summary>
|
||||
/// <c>POST /api/v1/nodes/{id}/jobs/{jobId}/result</c>: the finished output a node is about to upload in chunks. A
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
<ui:IconData x:Key="Icon.Eye" Stroke="M1.5 8 C3.5 4 12.5 4 14.5 8 C12.5 12 3.5 12 1.5 8 Z M5.8 8 A2.2 2.2 0 1 0 10.2 8 A2.2 2.2 0 1 0 5.8 8 Z" />
|
||||
<ui:IconData x:Key="Icon.Filmstrip" Stroke="M3.0 2.5 H13.0 A1.5 1.5 0 0 1 14.5 4.0 V12.0 A1.5 1.5 0 0 1 13.0 13.5 H3.0 A1.5 1.5 0 0 1 1.5 12.0 V4.0 A1.5 1.5 0 0 1 3.0 2.5 Z M4.5 2.5 V13.5 M11.5 2.5 V13.5 M1.5 6 H4.5 M1.5 10 H4.5 M11.5 6 H14.5 M11.5 10 H14.5" />
|
||||
<ui:IconData x:Key="Icon.Filter" Stroke="M1.5 2.5 H14.5 L9.5 8.5 V13.5 L6.5 12 V8.5 Z" />
|
||||
<ui:IconData x:Key="Icon.Flip" Stroke="M1.5 8 H3 M5.5 8 H7.5 M10 8 H12 M14 8 H14.5 M4 6 H12.5 V1.5 Z" Fill="M4 10 L12.5 14.5 V10 Z" />
|
||||
<ui:IconData x:Key="Icon.Folder" Stroke="M1.5 4 A1 1 0 0 1 2.5 3 H6 L7.5 4.5 H13.5 A1 1 0 0 1 14.5 5.5 V12.5 A1 1 0 0 1 13.5 13.5 H2.5 A1 1 0 0 1 1.5 12.5 Z" />
|
||||
<ui:IconData x:Key="Icon.FolderOpen" Stroke="M1.5 12.5 V4 A1 1 0 0 1 2.5 3 H6 L7.5 4.5 H12.5 V6.5 M1.5 12.5 L3.5 7 H14.5 L12.5 13.5 H2.5 A1 1 0 0 1 1.5 12.5 Z" />
|
||||
<ui:IconData x:Key="Icon.Forward" Stroke="M3 8 H13 M9 4 L13 8 L9 12" IsDirectional="True" />
|
||||
@@ -60,6 +61,7 @@
|
||||
<ui:IconData x:Key="Icon.Logs" Stroke="M3.5 1.5 H9.5 L12.5 4.5 V14.5 H3.5 Z M5.5 7 H10.5 M5.5 9.5 H10.5 M5.5 12 H8.5" IsDirectional="True" />
|
||||
<ui:IconData x:Key="Icon.Menu" Stroke="M2.5 4 H13.5 M2.5 8 H13.5 M2.5 12 H13.5" />
|
||||
<ui:IconData x:Key="Icon.Minus" Stroke="M3 8 H13" />
|
||||
<ui:IconData x:Key="Icon.Mirror" Stroke="M8 1.5 V3 M8 5.5 V7.5 M8 10 V12 M8 14 V14.5 M6 4 V12.5 H1.5 Z" Fill="M10 4 L14.5 12.5 H10 Z" />
|
||||
<ui:IconData x:Key="Icon.Moon" Stroke="M9.5 1.8 A6.5 6.5 0 1 0 14.2 11.2 A5.5 5.5 0 0 1 9.5 1.8 Z" />
|
||||
<ui:IconData x:Key="Icon.More" Fill="M2.4 8 A1.1 1.1 0 1 0 4.6 8 A1.1 1.1 0 1 0 2.4 8 ZM6.9 8 A1.1 1.1 0 1 0 9.1 8 A1.1 1.1 0 1 0 6.9 8 ZM11.4 8 A1.1 1.1 0 1 0 13.6 8 A1.1 1.1 0 1 0 11.4 8 Z" />
|
||||
<ui:IconData x:Key="Icon.Motion" Stroke="M1.5 8 C3.5 3 5.5 3 7.5 8 C9.5 13 11.5 13 14.5 8" />
|
||||
@@ -75,6 +77,8 @@
|
||||
<ui:IconData x:Key="Icon.Reset" Stroke="M3.67 6.00 A5 5 0 1 1 5.50 12.83 M3.2 3.2 V6.2 H6.2" />
|
||||
<ui:IconData x:Key="Icon.Retry" Stroke="M10.75 3.24 A5.5 5.5 0 1 1 4.46 3.79 M13.2 2.6 L13.2 5.3 L10.5 5.3" />
|
||||
<ui:IconData x:Key="Icon.Ring" Stroke="M4.5 8 A3.5 3.5 0 1 0 11.5 8 A3.5 3.5 0 1 0 4.5 8 Z" />
|
||||
<ui:IconData x:Key="Icon.RotateLeft" Stroke="M5.5 9.5 H10.5 A1 1 0 0 1 11.5 10.5 V13.5 A1 1 0 0 1 10.5 14.5 H5.5 A1 1 0 0 1 4.5 13.5 V10.5 A1 1 0 0 1 5.5 9.5 Z M3.02 6.18 A5.5 5.5 0 0 1 12.98 6.18 M2.39 3.86 L3.02 6.18 L5.19 5.16" />
|
||||
<ui:IconData x:Key="Icon.RotateRight" Stroke="M5.5 9.5 H10.5 A1 1 0 0 1 11.5 10.5 V13.5 A1 1 0 0 1 10.5 14.5 H5.5 A1 1 0 0 1 4.5 13.5 V10.5 A1 1 0 0 1 5.5 9.5 Z M3.02 6.18 A5.5 5.5 0 0 1 12.98 6.18 M10.81 5.16 L12.98 6.18 L13.61 3.86" />
|
||||
<ui:IconData x:Key="Icon.Search" Stroke="M2.5 7 A4.5 4.5 0 1 0 11.5 7 A4.5 4.5 0 1 0 2.5 7 Z M10.4 10.4 L14 14" />
|
||||
<ui:IconData x:Key="Icon.Sequence" Stroke="M2 12.5 L11.5 3 L13 4.5 L3.5 14 H2 Z" />
|
||||
<ui:IconData x:Key="Icon.Server" Stroke="M4.5 12.5 A3 3 0 0 1 4.2 6.5 A4 4 0 0 1 11.9 5.5 A3.5 3.5 0 0 1 12.2 12.5 Z" />
|
||||
@@ -85,6 +89,7 @@
|
||||
<ui:IconData x:Key="Icon.Star" Stroke="M8 1.8 L9.9 5.8 L14.2 6.3 L11 9.3 L11.9 13.6 L8 11.4 L4.1 13.6 L5 9.3 L1.8 6.3 L6.1 5.8 Z" />
|
||||
<ui:IconData x:Key="Icon.StarFilled" Fill="M8 1.8 L9.9 5.8 L14.2 6.3 L11 9.3 L11.9 13.6 L8 11.4 L4.1 13.6 L5 9.3 L1.8 6.3 L6.1 5.8 Z" />
|
||||
<ui:IconData x:Key="Icon.Stop" Fill="M5.0 3.5 H11.0 A1.5 1.5 0 0 1 12.5 5.0 V11.0 A1.5 1.5 0 0 1 11.0 12.5 H5.0 A1.5 1.5 0 0 1 3.5 11.0 V5.0 A1.5 1.5 0 0 1 5.0 3.5 Z" />
|
||||
<ui:IconData x:Key="Icon.Straighten" Stroke="M1.5 12.5 H14.5 M2.5 12.5 L13 6 M8.45 8.81 A7 7 0 0 1 9.50 12.50" />
|
||||
<ui:IconData x:Key="Icon.SuccessCircle" Stroke="M1.5 8 A6.5 6.5 0 1 0 14.5 8 A6.5 6.5 0 1 0 1.5 8 Z M5 8.3 L7.1 10.3 L11 6" />
|
||||
<ui:IconData x:Key="Icon.Sun" Stroke="M5 8 A3 3 0 1 0 11 8 A3 3 0 1 0 5 8 Z M8 1 V2.5 M8 13.5 V15 M1 8 H2.5 M13.5 8 H15 M3 3 L4 4 M12 12 L13 13 M3 13 L4 12 M12 4 L13 3" />
|
||||
<ui:IconData x:Key="Icon.Sync" Stroke="M9.88 2.83 A5.5 5.5 0 0 1 9.88 13.17 M6.12 13.17 A5.5 5.5 0 0 1 6.12 2.83 M13.5 6.5 L13.2 9.4 L10.6 8.4 M2.5 9.5 L2.8 6.6 L5.4 7.6" />
|
||||
|
||||
@@ -117,7 +117,7 @@ public sealed class ProjectHistoryTests
|
||||
[Test]
|
||||
public void SettingsOfANewerChronosAdoptedDropTheStepsInsteadOfMergingThem()
|
||||
{
|
||||
var newer = ProjectSettings.FromJson("""{ "version": 2, "exposure": { "exposureOffsetEv": 1.5 }, "grade": { "look": "film" } }""", allowNewer: true);
|
||||
var newer = ProjectSettings.FromJson("""{ "version": 3, "exposure": { "exposureOffsetEv": 1.5 }, "grade": { "look": "film" } }""", allowNewer: true);
|
||||
// The workspace's merge throws as ProjectMerge does where both sides changed and one is a newer Chronos's.
|
||||
foreach (var merge in new Func<ProjectSettings, ProjectSettings, ProjectSettings, ProjectSettings>?[]
|
||||
{ null, (basis, ours, theirs) => ProjectMerge.MergeWithConflicts(basis, ours, theirs).Merged })
|
||||
|
||||
@@ -96,13 +96,13 @@ public sealed class ProjectBundleTests(TestContext context)
|
||||
{
|
||||
var workspace = new BundleWorkspace(Guid.CreateVersion7(), "Main", true, new BundleHome(BundleHome.ArchiveKind, SequenceId, ArchiveId), null,
|
||||
new BundleMedia(BundleMedia.Proxies, 0));
|
||||
var json = (Sample() with { Workspace = workspace }).ToJson().Replace("\"version\": 1", "\"version\": 2", StringComparison.Ordinal);
|
||||
var json = (Sample() with { Workspace = workspace }).ToJson().Replace("\"version\": 1", "\"version\": 3", StringComparison.Ordinal);
|
||||
var bundle = ProjectBundle.Parse(json);
|
||||
Assert.True(bundle.IsReadOnly);
|
||||
Assert.True(bundle.Project.IsNewerFormat);
|
||||
Assert.Equal(0.8, bundle.Project.Exposure.DeflickerStrength.Resolve(1.0));
|
||||
|
||||
var plain = Sample().ToJson().Replace("\"version\": 1", "\"version\": 2", StringComparison.Ordinal);
|
||||
var plain = Sample().ToJson().Replace("\"version\": 1", "\"version\": 3", StringComparison.Ordinal);
|
||||
Assert.Throws<InvalidDataException>(() => ProjectBundle.Parse(plain));
|
||||
}
|
||||
|
||||
|
||||
@@ -131,7 +131,7 @@ public sealed class ProjectContentTests
|
||||
Assert.Equal(saved, ProjectContent.Rebind(saved, Frames(Photo(7))));
|
||||
Assert.False(ProjectContent.SameChoices(saved, current, Frames(Photo(7))));
|
||||
// A newer Chronos's settings are its own to rename.
|
||||
var newer = """{ "version": 2, "pendingFrames": [ { "size": 1001, "capturedAt": "2026-09-28T18:00:10", "excluded": true } ] }""";
|
||||
var newer = """{ "version": 3, "pendingFrames": [ { "size": 1001, "capturedAt": "2026-09-28T18:00:10", "excluded": true } ] }""";
|
||||
Assert.Equal(newer, ProjectContent.Rebind(newer, now));
|
||||
}
|
||||
|
||||
@@ -329,12 +329,12 @@ public sealed class ProjectContentTests
|
||||
[Test]
|
||||
public void SettingsOfANewerFormatAreReadOnlyAndKeptAsTheyAre()
|
||||
{
|
||||
var newer = """{ "version": 2, "excludedFrames": [1], "exposure": { "exposureOffsetEv": 1.5 }, "grade": { "look": "film" } }""";
|
||||
var newer = """{ "version": 3, "excludedFrames": [1], "exposure": { "exposureOffsetEv": 1.5 }, "grade": { "look": "film" } }""";
|
||||
Assert.Throws<InvalidDataException>(() => ProjectSettings.FromJson(newer));
|
||||
var read = ProjectSettings.FromJson(newer, allowNewer: true);
|
||||
Assert.True(read.IsNewerFormat);
|
||||
Assert.Equal(1.5, read.Exposure.ExposureOffsetEv);
|
||||
Assert.Equal(2, ProjectContent.FormatOf(newer));
|
||||
Assert.Equal(3, ProjectContent.FormatOf(newer));
|
||||
Assert.Equal(1, ProjectContent.FormatOf("""{ "exposure": {} }"""));
|
||||
|
||||
// Its positions are a newer Chronos's to translate: only the text is made canonical.
|
||||
|
||||
@@ -77,7 +77,7 @@ public sealed class ProjectSettingsTests
|
||||
Assert.Equal("{date} {title} - {preset}", partial.Export.NameTemplate);
|
||||
Assert.SequenceEqual(new[] { 0.0, 1.0 }, partial.Timing.RemapCurve.Select(p => p.X));
|
||||
Assert.Equal(9, partial.Stack.Length);
|
||||
Assert.Equal(ProjectSettings.CurrentVersion, partial.Version);
|
||||
Assert.Equal(ProjectSettings.BaseVersion, partial.Version);
|
||||
|
||||
// An explicit null clears a nullable value; arrays are replaced, not merged.
|
||||
var cleared = ProjectSettings.FromJson("""{ "exposure": { "highlightKnee": null }, "timing": { "remapCurve": [ { "x": 0, "y": 0.5 } ] } }""");
|
||||
@@ -470,4 +470,156 @@ public sealed class ProjectSettingsTests
|
||||
Assert.Equal(24, s.GopLength);
|
||||
Assert.Equal(10, s.BitDepth);
|
||||
}
|
||||
|
||||
/// <summary>SHA-256 of the default project's canonical text, as format-1 builds write it: none of phase 4's members, version 1.</summary>
|
||||
private const string DefaultProjectHash = "df0b0f50b113475ece3753a80df0be05cc281cdaa1fa08a73a438ea9161358e0";
|
||||
|
||||
[Test]
|
||||
public void ProjectsWithoutTheNewMembersKeepTheirTextAndHash()
|
||||
{
|
||||
var defaults = new ProjectSettings().ToJson();
|
||||
Assert.Equal(DefaultProjectHash, ProjectContent.Hash(ProjectContent.Canonical(defaults)));
|
||||
Assert.Equal(OldBuild.Write(new OldProject()), defaults);
|
||||
Assert.Contains("\"version\": 1", defaults);
|
||||
foreach (var member in new[] { "rotate", "mirror", "flip", "straighten", "\"look\"" })
|
||||
Assert.False(defaults.Contains(member, StringComparison.Ordinal), member);
|
||||
|
||||
// A project written by a format-1 build reads and writes back the same, byte for byte.
|
||||
var older = new ProjectSettings
|
||||
{
|
||||
Camera = new CameraSettings { Crop = [0.1, 0.2, 0.5, 0.6], Aspect = new Auto<string>().WithManual("9:16"), Keyframes = [new CameraKey(3, 0.4, 0.5, 1.5, 2)] },
|
||||
Exposure = new ExposureSettings { ExposureOffsetEv = 0.3 },
|
||||
}.ToJson();
|
||||
Assert.Equal(older, ProjectContent.Canonical(older));
|
||||
Assert.Equal(older, OldBuild.Write(OldBuild.Read(older)));
|
||||
Assert.Equal(ProjectSettings.BaseVersion, ProjectContent.FormatOf(older));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TheNewMembersRoundTripAndRaiseTheFormatOnlyWhileUsed()
|
||||
{
|
||||
var plain = new ProjectSettings { Exposure = new ExposureSettings { ExposureOffsetEv = 0.5 } };
|
||||
Assert.Equal(ProjectSettings.BaseVersion, plain.RequiredFormat);
|
||||
var turned = plain with { Camera = plain.Camera with { Rotate = 90, Mirror = true, Flip = true, Straighten = -3.5 } };
|
||||
var looked = plain with { Look = new LookSettings { Filter = "sepia", Strength = 0.6 } };
|
||||
foreach (var settings in new[] { turned, looked, plain with { Camera = new CameraSettings { Straighten = 1 } }, plain with { Camera = new CameraSettings { Flip = true } } })
|
||||
{
|
||||
Assert.Equal(2, settings.RequiredFormat);
|
||||
var json = settings.ToJson();
|
||||
Assert.Contains("\"version\": 2", json);
|
||||
var back = ProjectSettings.FromJson(json);
|
||||
Assert.Equal(2, back.Version);
|
||||
Assert.False(back.IsNewerFormat);
|
||||
Assert.Equal(json, back.ToJson());
|
||||
}
|
||||
var read = ProjectSettings.FromJson(turned.ToJson());
|
||||
Assert.Equal((90, true, true, -3.5), (read.Camera.Rotate, read.Camera.Mirror, read.Camera.Flip, read.Camera.Straighten));
|
||||
Assert.Equal((1, true), (read.Camera.Turns, read.Camera.IsOriented));
|
||||
var look = Assert.NotNull(ProjectSettings.FromJson(looked.ToJson()).Look);
|
||||
Assert.Equal(("sepia", (double?)0.6), (look.Filter, look.Strength));
|
||||
|
||||
// Taken away again, the project is format 1 with the text it had before.
|
||||
var undone = ProjectSettings.FromJson(turned.ToJson()) with { Camera = plain.Camera };
|
||||
Assert.Equal(ProjectSettings.BaseVersion, undone.RequiredFormat);
|
||||
Assert.Equal(plain.ToJson(), undone.ToJson());
|
||||
Assert.Equal(plain.ToJson(), (ProjectSettings.FromJson(looked.ToJson()) with { Look = null }).ToJson());
|
||||
|
||||
// An identity look and a whole turn need nothing newer; an unknown look does (it is a newer Chronos's).
|
||||
Assert.Equal(1, (plain with { Look = new LookSettings { Filter = "none" } }).RequiredFormat);
|
||||
Assert.Equal(1, (plain with { Look = new LookSettings { Filter = "mono", Strength = 0 } }).RequiredFormat);
|
||||
Assert.Equal(1, (plain with { Camera = new CameraSettings { Rotate = 360 } }).RequiredFormat);
|
||||
Assert.Equal(2, (plain with { Look = new LookSettings { Filter = "film" } }).RequiredFormat);
|
||||
Assert.Equal(3, new CameraSettings { Rotate = -90 }.Turns);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TheNewMembersComeAfterTheOldOnesSoAnOlderBuildWritesThemBackInPlace()
|
||||
{
|
||||
var settings = new ProjectSettings
|
||||
{
|
||||
Camera = new CameraSettings { Crop = [0.2, 0, 0.6, 1], Keyframes = [new CameraKey(1, 0.5, 0.5, 2, 0)], Rotate = 270, Straighten = 2.25 },
|
||||
HeroFrame = 4,
|
||||
Look = new LookSettings { Filter = "warm" },
|
||||
};
|
||||
var canonical = ProjectContent.Canonical(settings.ToJson());
|
||||
|
||||
// A format-1 build keeps them as members it does not know, and writes them where they were.
|
||||
var old = OldBuild.Read(canonical);
|
||||
Assert.True(old.Camera.Extra!.ContainsKey("rotate") && old.Extra!.ContainsKey("look"));
|
||||
Assert.Equal(canonical, OldBuild.Write(old));
|
||||
Assert.Equal(ProjectContent.Hash(canonical), ProjectContent.Hash(OldBuild.Write(old)));
|
||||
var camera = System.Text.Json.Nodes.JsonNode.Parse(canonical)!["camera"]!.AsObject().Select(p => p.Key).ToList();
|
||||
Assert.SequenceEqual(["crop", "aspect", "offsetX", "offsetY", "keyframes", "rotate", "straighten"], camera);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void ANewerFormatStaysReadOnlyAndKeepsItsNumber()
|
||||
{
|
||||
const string newer = """{ "version": 3, "camera": { "rotate": 90 }, "look": { "filter": "film", "grain": 0.2 } }""";
|
||||
Assert.Throws<InvalidDataException>(() => ProjectSettings.FromJson(newer));
|
||||
var read = ProjectSettings.FromJson(newer, allowNewer: true);
|
||||
Assert.True(read.IsNewerFormat);
|
||||
Assert.Equal(3, read.WrittenFormat);
|
||||
var canonical = ProjectContent.Canonical(newer);
|
||||
Assert.Equal(3, ProjectContent.FormatOf(canonical));
|
||||
Assert.Contains("\"grain\": 0.2", canonical);
|
||||
Assert.Equal(canonical, ProjectContent.Canonical(canonical));
|
||||
|
||||
// A format-2 project is this Chronos's own (written as the format it needs); text without a version is format 1.
|
||||
Assert.False(ProjectSettings.FromJson("""{ "version": 2 }""").IsNewerFormat);
|
||||
Assert.Equal(1, ProjectSettings.FromJson("""{ "version": 2 }""").WrittenFormat);
|
||||
Assert.Equal(1, ProjectContent.FormatOf("""{ "camera": {} }"""));
|
||||
Assert.Equal(1, ProjectContent.FormatOf(null));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The settings as a format-1 build reads and writes them: its camera without phase 4's members and its project without
|
||||
/// the look, with the same serialiser options. What it does not know lands in <c>Extra</c>.
|
||||
/// </summary>
|
||||
private static class OldBuild
|
||||
{
|
||||
public static OldProject Read(string json) => System.Text.Json.JsonSerializer.Deserialize(json, OldJson.Default.OldProject)!;
|
||||
|
||||
public static string Write(OldProject project) => System.Text.Json.JsonSerializer.Serialize(project, OldJson.Default.OldProject);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>A format-1 build's camera (before owner review 1, phase 4).</summary>
|
||||
internal sealed record OldCamera
|
||||
{
|
||||
public double[]? Crop { get; init; }
|
||||
public Auto<string> Aspect { get; init; } = new();
|
||||
public double OffsetX { get; init; }
|
||||
public double OffsetY { get; init; }
|
||||
public IReadOnlyList<CameraKey> Keyframes { get; init; } = [];
|
||||
|
||||
[System.Text.Json.Serialization.JsonExtensionData]
|
||||
public Dictionary<string, System.Text.Json.JsonElement>? Extra { get; set; }
|
||||
}
|
||||
|
||||
/// <summary>A format-1 build's project (before owner review 1, phase 4).</summary>
|
||||
internal sealed record OldProject
|
||||
{
|
||||
public int Version { get; init; } = 1;
|
||||
public TimingSettings Timing { get; init; } = new();
|
||||
public ExposureSettings Exposure { get; init; } = new();
|
||||
public MotionSettings Motion { get; init; } = new();
|
||||
public OldCamera Camera { get; init; } = new();
|
||||
public StackSettings Stack { get; init; } = new();
|
||||
public ExportSettings Export { get; init; } = new();
|
||||
public IReadOnlyList<int> ExcludedFrames { get; init; } = [];
|
||||
public int? HeroFrame { get; init; }
|
||||
public IReadOnlyList<PendingFrame>? PendingFrames { get; init; }
|
||||
|
||||
[System.Text.Json.Serialization.JsonExtensionData]
|
||||
public Dictionary<string, System.Text.Json.JsonElement>? Extra { get; set; }
|
||||
}
|
||||
|
||||
[System.Text.Json.Serialization.JsonSourceGenerationOptions(
|
||||
WriteIndented = true,
|
||||
PropertyNamingPolicy = System.Text.Json.Serialization.JsonKnownNamingPolicy.CamelCase,
|
||||
DefaultIgnoreCondition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
|
||||
UseStringEnumConverter = true,
|
||||
PropertyNameCaseInsensitive = true)]
|
||||
[System.Text.Json.Serialization.JsonSerializable(typeof(OldProject))]
|
||||
internal sealed partial class OldJson : System.Text.Json.Serialization.JsonSerializerContext;
|
||||
@@ -0,0 +1,30 @@
|
||||
using Chronos.Core.Export;
|
||||
using Chronos.Core.Project;
|
||||
using Chronos.Core.Render;
|
||||
using Chronos.Testing;
|
||||
|
||||
namespace Chronos.Core.Tests.Render;
|
||||
|
||||
public sealed class RenderRulesTests
|
||||
{
|
||||
[Test]
|
||||
public void AMismatchedFixedPresetNeedsFormatTwo()
|
||||
{
|
||||
var project = new ProjectSettings { Camera = Camera("9:16") };
|
||||
Assert.Equal(2, RenderRules.RequiredFormat(project, Export("4k-h264"), 6000, 4000));
|
||||
// The same proportions as the preset, "source" or a free-size preset change nothing an older build would render.
|
||||
Assert.Equal(1, RenderRules.RequiredFormat(project with { Camera = Camera("16:9") }, Export("4k-h264"), 6000, 4000));
|
||||
Assert.Equal(1, RenderRules.RequiredFormat(new ProjectSettings(), Export("4k-h264"), 6000, 4000));
|
||||
Assert.Equal(1, RenderRules.RequiredFormat(project, Export("png-sequence"), 6000, 4000));
|
||||
// The settings' own format counts too.
|
||||
var turned = new ProjectSettings { Camera = new CameraSettings { Rotate = 90 } };
|
||||
Assert.Equal(2, RenderRules.RequiredFormat(turned, Export("png-sequence"), 6000, 4000));
|
||||
var newer = ProjectSettings.FromJson("""{ "version": 3 }""", allowNewer: true);
|
||||
Assert.Equal(3, RenderRules.RequiredFormat(newer, Export("4k-h264"), 6000, 4000));
|
||||
}
|
||||
|
||||
private static CameraSettings Camera(string aspect) => new() { Aspect = new Auto<string>().WithManual(aspect) };
|
||||
|
||||
private static ResolvedExport Export(string preset, ExportOverrides? overrides = null) =>
|
||||
ExportResolver.Resolve(new ExportSettings { Preset = new Auto<string>().WithManual(preset), Overrides = overrides ?? new ExportOverrides() });
|
||||
}
|
||||
@@ -0,0 +1,83 @@
|
||||
using Chronos.Core.Export;
|
||||
using Chronos.Core.Project;
|
||||
using Chronos.Core.Render;
|
||||
using Chronos.Testing;
|
||||
|
||||
namespace Chronos.Core.Tests.Render;
|
||||
|
||||
public sealed class RenderSizeTests
|
||||
{
|
||||
[Theory]
|
||||
[Case("4k-h264", "9:16", 2160, 3840)]
|
||||
[Case("4k-h264", "1:1", 2160, 2160)]
|
||||
[Case("4k-h264", "4:5", 2160, 2700)]
|
||||
[Case("4k-h264", "21:9", 3840, 1646)]
|
||||
[Case("4k-h264", "16:9", 3840, 2160)]
|
||||
[Case("1080p-h264", "9:16", 1080, 1920)]
|
||||
[Case("vertical-1080x1920", "16:9", 1920, 1080)]
|
||||
[Case("vertical-1080x1920", "9:16", 1080, 1920)]
|
||||
public void TheChosenProportionsWinOverAFixedPreset(string preset, string aspect, int width, int height) =>
|
||||
Assert.Equal((width, height), RenderSize.Of(Camera(aspect), Export(preset), 6000, 4000));
|
||||
|
||||
[Test]
|
||||
public void SourceKeepsThePresetsSize()
|
||||
{
|
||||
Assert.Equal((3840, 2160), RenderSize.Of(new CameraSettings(), Export("4k-h264"), 3000, 4000));
|
||||
Assert.Equal((1080, 1920), RenderSize.Of(Camera("source"), Export("vertical-1080x1920"), 6000, 4000));
|
||||
// An aspect that cannot be read renders as source.
|
||||
Assert.Equal((3840, 2160), RenderSize.Of(Camera("wide"), Export("4k-h264"), 6000, 4000));
|
||||
// The Auto's advised value counts like a manual one.
|
||||
var advised = new CameraSettings { Aspect = new Auto<string>().WithAdvice("9:16", null) };
|
||||
Assert.Equal((2160, 3840), RenderSize.Of(advised, Export("4k-h264"), 6000, 4000));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void SizesAreEvenOnlyForCodecsThatNeedIt()
|
||||
{
|
||||
var png = Export("png-sequence", new ExportOverrides { Width = 1001, Height = 1001 });
|
||||
Assert.Equal((563, 1001), RenderSize.Of(Camera("9:16"), png, 6000, 4000));
|
||||
var h264 = Export("1080p-h264", new ExportOverrides { Width = 1001, Height = 1001 });
|
||||
Assert.Equal((562, 1000), RenderSize.Of(Camera("9:16"), h264, 6000, 4000));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void FreeSizePresetsAreUnchanged()
|
||||
{
|
||||
// No side given: the aspect-fitted crop of the view, capped by the decode size.
|
||||
var png = Export("png-sequence");
|
||||
Assert.Equal((6000, 4000), RenderSize.Of(new CameraSettings(), png, 6000, 4000));
|
||||
Assert.Equal((2250, 4000), RenderSize.Of(Camera("9:16"), png, 6000, 4000));
|
||||
Assert.Equal((1500, 1000), RenderSize.Of(new CameraSettings(), png, 6000, 4000, maxWorkingLongEdge: 1500));
|
||||
Assert.Equal((3000, 2000), RenderSize.Of(new CameraSettings { Crop = [0.25, 0.25, 0.5, 0.5] }, png, 6000, 4000));
|
||||
// One side given: the other from the ratio.
|
||||
Assert.Equal((1200, 800), RenderSize.Of(new CameraSettings(), Export("png-sequence", new ExportOverrides { Width = 1200 }), 6000, 4000));
|
||||
Assert.Equal((450, 800), RenderSize.Of(Camera("9:16"), Export("png-sequence", new ExportOverrides { Height = 800 }), 6000, 4000));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void AQuarterTurnTurnsTheSourceRatio()
|
||||
{
|
||||
var turned = new CameraSettings { Rotate = 90 };
|
||||
Assert.Equal((4000, 6000), RenderSize.Of(turned, Export("png-sequence"), 6000, 4000));
|
||||
Assert.Equal((4000, 6000), RenderSize.ViewSize(turned, 6000, 4000));
|
||||
Assert.Equal((6000, 4000), RenderSize.ViewSize(turned with { Rotate = 180 }, 6000, 4000));
|
||||
// A fixed preset with "source" keeps its own size whatever the turn.
|
||||
Assert.Equal((3840, 2160), RenderSize.Of(turned, Export("4k-h264"), 6000, 4000));
|
||||
Assert.Approximately(2 / 3.0, RenderSize.Ratio(turned, Export("png-sequence"), 6000, 4000), 1e-12);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void AdaptTurnsTheBoxToTheRatiosOrientation()
|
||||
{
|
||||
Assert.Equal((2160, 3840), RenderSize.Adapt(3840, 2160, 9 / 16.0));
|
||||
Assert.Equal((2160, 3840), RenderSize.Adapt(2160, 3840, 9 / 16.0));
|
||||
Assert.Equal((1920, 1080), RenderSize.Adapt(1080, 1920, 16 / 9.0));
|
||||
Assert.Equal((1080, 1080), RenderSize.Adapt(1080, 1920, 1));
|
||||
Assert.Throws<ArgumentOutOfRangeException>(() => RenderSize.Adapt(1920, 1080, 0));
|
||||
}
|
||||
|
||||
private static CameraSettings Camera(string aspect) => new() { Aspect = new Auto<string>().WithManual(aspect) };
|
||||
|
||||
private static ResolvedExport Export(string preset, ExportOverrides? overrides = null) =>
|
||||
ExportResolver.Resolve(new ExportSettings { Preset = new Auto<string>().WithManual(preset), Overrides = overrides ?? new ExportOverrides() });
|
||||
}
|
||||
@@ -21,6 +21,55 @@ public sealed class ProjectMergeTests
|
||||
private static PendingFrame Waiting(FramePhoto photo, bool excluded = false, bool hero = false) =>
|
||||
new() { Sha256 = photo.Sha256, Size = photo.Size, CapturedAt = photo.CapturedAt, Excluded = excluded, Hero = hero };
|
||||
|
||||
[Test]
|
||||
public void ATurnOnOneSideAndALookOnTheOtherMergeIntoFormatTwo()
|
||||
{
|
||||
var basis = new ProjectSettings { Exposure = new ExposureSettings { ExposureOffsetEv = 0.2 } };
|
||||
var ours = basis with { Camera = basis.Camera with { Rotate = 90, Straighten = 1.5 } };
|
||||
var theirs = basis with { Look = new LookSettings { Filter = "sepia", Strength = 0.6 } };
|
||||
|
||||
var result = ProjectMerge.MergeWithConflicts(basis, ours, theirs);
|
||||
|
||||
Assert.False(result.HasConflicts);
|
||||
Assert.Equal((90, 1.5), (result.Merged.Camera.Rotate, result.Merged.Camera.Straighten));
|
||||
Assert.Equal("sepia", result.Merged.Look?.Filter);
|
||||
Assert.Equal(2, result.Merged.Version);
|
||||
Assert.Contains("\"version\": 2", result.Merged.ToJson());
|
||||
|
||||
// One side takes the turn away while the other keeps the look: the format the members need, not the one taken.
|
||||
var undone = ProjectMerge.MergeWithConflicts(result.Merged, result.Merged with { Camera = basis.Camera }, result.Merged with { Look = null }).Merged;
|
||||
Assert.Equal(1, ProjectContent.FormatOf(undone.ToJson()));
|
||||
Assert.Equal(basis.ToJson(), undone.ToJson());
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void BothSidesCroppingGiveOneCropConflict()
|
||||
{
|
||||
var basis = new ProjectSettings { Camera = new CameraSettings { Aspect = new Auto<string>().WithManual("9:16") } };
|
||||
var ours = basis with { Camera = basis.Camera with { Crop = [0.1, 0, 0.3, 0.9] } };
|
||||
var theirs = basis with { Camera = basis.Camera with { Crop = [0.5, 0.05, 0.2, 0.6], Mirror = true } };
|
||||
|
||||
var result = ProjectMerge.MergeWithConflicts(basis, ours, theirs);
|
||||
|
||||
// The box is one value: never the x of one side and the width of the other.
|
||||
Assert.SequenceEqual(["camera.crop"], result.Conflicts.Select(c => c.Path));
|
||||
Assert.SequenceEqual([0.1, 0, 0.3, 0.9], Assert.NotNull(result.Merged.Camera.Crop));
|
||||
Assert.True(result.Merged.Camera.Mirror);
|
||||
Assert.SequenceEqual([0.5, 0.05, 0.2, 0.6], Assert.NotNull(
|
||||
ProjectMerge.MergeWithConflicts(basis, ours, theirs, new HashSet<string> { "camera.crop" }).Merged.Camera.Crop));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void AFormatThreeSideIsNeverMerged()
|
||||
{
|
||||
var basis = new ProjectSettings { Camera = new CameraSettings { Rotate = 90 } };
|
||||
var newer = ProjectSettings.FromJson("""{ "version": 3, "camera": { "rotate": 180 }, "look": { "filter": "film" } }""", allowNewer: true);
|
||||
var mine = basis with { Look = new LookSettings { Filter = "warm" } };
|
||||
Assert.Throws<NewerSettingsException>(() => ProjectMerge.MergeWithConflicts(basis, mine, newer));
|
||||
Assert.Throws<NewerSettingsException>(() => ProjectMerge.MergeWithConflicts(basis, newer, mine));
|
||||
Assert.Equal(3, ProjectMerge.MergeWithConflicts(basis, basis, newer).Merged.Version);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void EntriesOfOnePhotoMergeAsOneWithThePositionsOfBoth()
|
||||
{
|
||||
@@ -69,7 +118,7 @@ public sealed class ProjectMergeTests
|
||||
public void SettingsOfANewerChronosAreNeverMergedWithThisOnes()
|
||||
{
|
||||
var basis = new ProjectSettings { Exposure = new ExposureSettings { ExposureOffsetEv = 0.1 } };
|
||||
var newer = ProjectSettings.FromJson("""{ "version": 2, "exposure": { "exposureOffsetEv": 0.5 }, "grade": { "look": "film" } }""", allowNewer: true);
|
||||
var newer = ProjectSettings.FromJson("""{ "version": 3, "exposure": { "exposureOffsetEv": 0.5 }, "grade": { "look": "film" } }""", allowNewer: true);
|
||||
var mine = basis with { Stack = new StackSettings { Mode = StackSetting.Median } };
|
||||
|
||||
// Both changed: refused, whichever side the newer one is, in a replay too.
|
||||
|
||||
@@ -327,7 +327,7 @@ public abstract class ProjectRecoveryTests(TestContext context) : DatabaseTest(c
|
||||
var folder = fx.Paths.Sequence(sequence.Folder);
|
||||
|
||||
// A newer Chronos on another PC sharing the archive pushes version 2 in its settings format, and mirrors it.
|
||||
var settings = """{ "version": 2, "exposure": { "exposureOffsetEv": 0.5 }, "futureThing": true }""";
|
||||
var settings = """{ "version": 3, "exposure": { "exposureOffsetEv": 0.5 }, "futureThing": true }""";
|
||||
var now = DateTimeOffset.UtcNow;
|
||||
var future = new ProjectVersion
|
||||
{
|
||||
@@ -339,7 +339,7 @@ public abstract class ProjectRecoveryTests(TestContext context) : DatabaseTest(c
|
||||
ClientName = "newer",
|
||||
SettingsJson = settings,
|
||||
ContentHash = ProjectContent.Hash(settings),
|
||||
SettingsFormat = 2,
|
||||
SettingsFormat = 3,
|
||||
FramesVersion = head.FramesVersion,
|
||||
CreatedAt = now,
|
||||
StoredAt = now,
|
||||
|
||||
@@ -332,7 +332,7 @@ public abstract class WorkspaceMergeTests(TestContext context) : DatabaseTest(co
|
||||
Assert.Equal(local.Id, sync.Unpushed(id).Single().Id);
|
||||
Assert.Equal(local.SettingsJson, sync.Unpushed(id).Single().SettingsJson);
|
||||
var working = (await sync.OpenAsync(id, fx.Ct)).Working;
|
||||
Assert.Equal((ProjectSettings.CurrentVersion, 0.3), (working.Version, working.Exposure.ExposureOffsetEv));
|
||||
Assert.Equal((ProjectSettings.BaseVersion, 0.3), (working.Version, working.Exposure.ExposureOffsetEv));
|
||||
Assert.SequenceEqual([1], working.ExcludedFrames);
|
||||
Assert.Equal(WorkspaceState.Conflict, (await sync.PullAsync(id, fx.Home, fx.Ct)).Status.State);
|
||||
|
||||
|
||||
@@ -455,7 +455,7 @@ public abstract class WorkspaceTests(TestContext context) : DatabaseTest(context
|
||||
var (_, sync) = fx.Workspace();
|
||||
var project = await fx.CheckoutAsync(sync);
|
||||
var bundle = project.ReadBundle();
|
||||
File.WriteAllText(project.BundlePath, bundle.ToJson().Replace("\"version\": 1", "\"version\": 2", StringComparison.Ordinal));
|
||||
File.WriteAllText(project.BundlePath, bundle.ToJson().Replace("\"version\": 1", "\"version\": 3", StringComparison.Ordinal));
|
||||
|
||||
var session = await sync.OpenAsync(project.ProjectId, fx.Ct);
|
||||
Assert.True(session.IsReadOnly);
|
||||
|
||||
Reference in new issue
Block a user