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:
Alby96andClaude Opus 5.5 committed 2026-11-04 19:10:12 +01:00
1 parent 4ad29977b9
commit e4364c4f25
43 files changed
+1544 -178

No files matched your search

+8 -4
View File
@@ -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,
};