test(app): editor history, saver retry, merge, preview re-solve and capture scenes
- Tests for undo after adopted changes, run ending, saver retries and stop, the local source refusing unsaved writes, re-solves without decoding and equal to a fresh preparation, 1:1 pictures, waveform, crop margins and the values of the Optimise toast; the Windows smoke test checks Render, Batch, the waveform, 1:1, the window title and the hidden idle job bar. - The capture sample has a manual value and camera keyframes; the capture adds the overlays, the waveform, the Optimise toast and Export.html's tool state. - Crop margins live in a WPF-free class; a discarded change stops retrying. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
15 files changed
+462
-53
No files matched your search
@@ -15,6 +15,7 @@ using Titano.Core.Imaging;
|
||||
using Titano.Core.Imaging.Decoders;
|
||||
using Titano.Core.Metadata;
|
||||
using Titano.Core.Model;
|
||||
using Titano.Core.Project;
|
||||
using Titano.Core.Video;
|
||||
using Titano.Data;
|
||||
using Titano.Data.Archiving;
|
||||
@@ -91,7 +92,8 @@ public sealed class SampleData
|
||||
/// <summary>
|
||||
/// The sequence editor's sample: a second archive holding a synthetic harbour sunset of real JPEG frames with Exif
|
||||
/// (flicker, two received exposure steps, white-balance drift, a horizon), indexed by a scan, analysed (light and
|
||||
/// deep, saved as <c>analysis.json</c>), advised into <c>project.json</c> and given two past renders.
|
||||
/// deep, saved as <c>analysis.json</c>), advised into <c>project.json</c> with one manual value and three camera
|
||||
/// keyframes, and given two past renders.
|
||||
/// </summary>
|
||||
/// <returns>The sequence id to open in the editor.</returns>
|
||||
public async Task<Guid> FillEditorAsync()
|
||||
@@ -119,7 +121,14 @@ public sealed class SampleData
|
||||
var sequence = content.Sequence;
|
||||
deep.Save(new ArchivePaths(root).Sequence(sequence.Folder).AnalysisPath);
|
||||
var advice = Advisor.Recommend(content.Light, deep, SequenceContext.FromFrames(content.Frames));
|
||||
await source.SaveProjectAsync(Advisor.Apply(content.Project, advice), content.Project, CancellationToken.None);
|
||||
// As a user leaves it: the advice applied, one value taken over by hand (Sun track) and a slow push-in.
|
||||
var advised = Advisor.Apply(content.Project, advice);
|
||||
var project = advised with
|
||||
{
|
||||
Exposure = advised.Exposure with { DeflickerStrength = advised.Exposure.DeflickerStrength.WithManual(0.8) },
|
||||
Camera = advised.Camera with { Keyframes = [new CameraKey(0, 0.5, 0.5, 1, 0), new CameraKey(48, 0.6, 0.46, 1.4, 0), new CameraKey(95, 0.64, 0.4, 1.9, 0)] },
|
||||
};
|
||||
await source.SaveProjectAsync(project, content.Project, CancellationToken.None);
|
||||
await db.Sequences.RecordAnalysisAsync(id, SequenceStatus.AnalyzedLight | SequenceStatus.AnalyzedDeep | SequenceStatus.HasWarnings, SequenceStatus.None,
|
||||
advice.Findings.Count(f => f.Severity >= FindingSeverity.Warning), AnalysisSummary.From(deep).ToJson());
|
||||
foreach (var (preset, codec, width, height, daysAgo, bytes) in new[] { ("4K archive", "hevc", 3840, 2160, 7, 2_210_000_000L), ("1080p share", "h264", 1920, 1080, 3, 412_000_000L) })
|
||||
|
||||
Reference in new issue
Block a user