refactor(core): name the advisor namespace Advice; record advisor decisions

The Advisor class shared its namespace's name, forcing an alias in every
Titano.Core caller.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-02 11:07:02 +00:00
1 parent b1f262653e
commit 52cde1419b
10 files changed
+84 -49

No files matched your search

+7
View File
@@ -81,3 +81,10 @@ One line per decision: date · decision · alternative · reason.
| 2026-10-02 | Network watch folders are polled (default 5 min); local folders every 60 s plus `FileSystemWatcher` hints. | Watcher everywhere | SMB change notifications are unreliable. |
| 2026-10-02 | The Dockerfile uses BuildKit's built-in frontend (no `# syntax=docker/dockerfile:1`). | Pinned external frontend | Every feature used is built in; the build no longer depends on Docker Hub (a 502 there failed CI). Base images come from mcr.microsoft.com. |
| 2026-10-02 | SQLite sessions run every blocking call on the thread pool (`ThreadPoolHop`) and cancel through a per-connection flag polled by `sqlite3_progress_handler` (every 1000 VM instructions) in addition to `sqlite3_interrupt`. | Callers offload themselves / interrupt only | A repository awaited on the UI thread never freezes it; an interrupt that lands before `sqlite3_step` starts was silently lost and the query ran to the end. |
| 2026-10-02 | Deep analysis persists per-frame shifts from the nine-patch `Stabilizer` and smooths the path itself; per-frame data is stored as columns (~80–110 bytes/frame) with a JSON-lines checkpoint that drops a torn last line. | `Stabilizer.Solve` / row objects | `Solve` cannot resume from a checkpoint; the report stays small for 100k-frame sequences. |
| 2026-10-02 | Sky/land mask from a pre-pass over 15 sampled frames before the main pass. | Segment after the pass | Cloud coverage and per-region luminance need the mask during the pass. |
| 2026-10-02 | Scene distance: chi-square on histograms smoothed by ⅛ EV and levelled to the same mean; flow statistics use brightness-levelled images and forward–backward-consistent vectors only; noise is median-based (Immerkær). | Raw chi-square / raw flow / mean noise | Flicker and exposure steps no longer read as scene changes or motion; stars no longer inflate noise. |
| 2026-10-02 | Shake and motion thresholds are judged in output pixels (stabilise above 0.3 px RMS). | Source pixels | That is what the viewer sees. |
| 2026-10-02 | Automatic output stops at 4K UHD; no automatic stacking advice. | 8K / temporal-median denoise | 8K stays a manual choice; a median erases moving stars and stillness cannot be verified reliably. |
| 2026-10-02 | Apply records a missing-data reason only where no advice exists; Optimise returns modules to Auto and only adds to the user's hero, exclusions, offset or output cap; a preset's own choices are stored as manual values, content-derived values stay Auto. | Overwrite | Manual values stay in force; re-analysis does not undo a chosen preset. |
| 2026-10-02 | Advisor namespace is `Titano.Core.Advice` (class `Advisor`). | `Titano.Core.Advisor` | A class named like its namespace needed an alias in every `Titano.Core.*` caller. |
@@ -4,7 +4,7 @@ using Titano.Core.Analysis.Deep;
using Titano.Core.Localization;
using Titano.Core.Project;
namespace Titano.Core.Advisor;
namespace Titano.Core.Advice;
/// <summary>
/// The analysis advisor (BRIEF §10.3, §10.4): turns the light and deep analyses into explained recommendations
@@ -1,4 +1,4 @@
namespace Titano.Core.Advisor;
namespace Titano.Core.Advice;
/// <summary>
/// Resource keys (area <c>Advisor</c>) of the advisor's reasons, missing-data notes and sequence presets. Each key is
@@ -6,7 +6,7 @@ using Titano.Core.Imaging.Geometry;
using Titano.Core.Project;
using Titano.Core.Video;
namespace Titano.Core.Advisor;
namespace Titano.Core.Advice;
/// <summary>
/// The recommendation rules of BRIEF §10.3, one method per parameter group. Output size is decided first because
@@ -4,7 +4,7 @@ using Titano.Core.Model;
using Titano.Core.Project;
using Titano.Core.Video;
namespace Titano.Core.Advisor;
namespace Titano.Core.Advice;
/// <summary>Sequence-editor section a recommendation belongs to (BRIEF §12.3).</summary>
public enum AdvisorSection
@@ -3,7 +3,7 @@ using System.Globalization;
using Titano.Core.Export;
using Titano.Core.Project;
namespace Titano.Core.Advisor;
namespace Titano.Core.Advice;
/// <summary>How one advisor parameter reads and writes <see cref="ProjectSettings"/>.</summary>
internal sealed class ParameterBinding
@@ -8,7 +8,7 @@ using Titano.Core.Localization;
using Titano.Core.Project;
using Titano.Core.Video;
namespace Titano.Core.Advisor;
namespace Titano.Core.Advice;
/// <summary>
/// A one-click bundle (BRIEF §10.3): full project settings plus an export preset, named by a resource key and
@@ -3,7 +3,7 @@ using System.Globalization;
using System.Reflection;
using System.Resources;
using System.Text.RegularExpressions;
using Titano.Core.Advisor;
using Titano.Core.Advice;
using Titano.Core.Analysis;
using Titano.Core.Analysis.Deep;
using Titano.Core.Diagnostics.Synthetic;
@@ -12,9 +12,8 @@ using Titano.Core.Project;
using Titano.Core.Tests.Analysis.Deep;
using Titano.Testing;
namespace Titano.Core.Tests.Advisor;
namespace Titano.Core.Tests.Advice;
using AdvisorApi = Titano.Core.Advisor.Advisor;
public sealed partial class AdvisorLocalizationTests(TestContext context)
{
@@ -55,7 +54,7 @@ public sealed partial class AdvisorLocalizationTests(TestContext context)
var frames = Enumerable.Range(0, source.Count).Select(source.Metadata).ToList();
var light = LightAnalyzer.Analyze(frames);
var sequence = new SequenceContext { FrameCount = frames.Count, SourceWidth = 6000, SourceHeight = 4000, MedianExposureSeconds = 1.0 / 250 };
var result = AdvisorApi.Recommend(light, deep, sequence);
var result = Advisor.Recommend(light, deep, sequence);
foreach (var r in result.Recommendations) rendered += Render(r.ReasonKey, [.. r.ReasonArgs]);
foreach (var f in result.Findings) rendered += Render(f.Key, f.Arguments);
foreach (var p in SequencePresets.Generate(light, deep, sequence))
@@ -64,8 +63,8 @@ public sealed partial class AdvisorLocalizationTests(TestContext context)
rendered += Render(p.ReasonKey!, [.. p.ReasonArgs]);
}
// Stored reasons (culture-neutral strings) render with the current culture's numbers.
var applied = AdvisorApi.Apply(new ProjectSettings(), result);
Assert.DoesNotContain('⟦', AdvisorApi.Explain(applied.Exposure.HolyGrail.ReasonKey!, applied.Exposure.HolyGrail.ReasonArgs));
var applied = Advisor.Apply(new ProjectSettings(), result);
Assert.DoesNotContain('⟦', Advisor.Explain(applied.Exposure.HolyGrail.ReasonKey!, applied.Exposure.HolyGrail.ReasonArgs));
}
context.Log($"{rendered} texts rendered");
Assert.Greater(rendered, 80);
@@ -1,4 +1,4 @@
using Titano.Core.Advisor;
using Titano.Core.Advice;
using Titano.Core.Analysis;
using Titano.Core.Analysis.Deep;
using Titano.Core.Diagnostics.Synthetic;
@@ -8,10 +8,9 @@ using Titano.Core.Tests.Analysis.Deep;
using Titano.Core.Video;
using Titano.Testing;
namespace Titano.Core.Tests.Advisor;
namespace Titano.Core.Tests.Advice;
// The class shares its name with the namespace, which an enclosing Titano.Core.* namespace would resolve first.
using AdvisorApi = Titano.Core.Advisor.Advisor;
public sealed class AdvisorTests(TestContext context)
{
@@ -20,7 +19,7 @@ public sealed class AdvisorTests(TestContext context)
{
var (light, sequence) = Inputs(new SyntheticFrameSource(DeepScenes.NightSky()));
var deep = await DeepReports.Night;
var result = AdvisorApi.Recommend(light, deep, sequence);
var result = Advisor.Recommend(light, deep, sequence);
Log(result);
Assert.Equal(true, Value(result, AdvisorParameters.Deflicker));
@@ -54,7 +53,7 @@ public sealed class AdvisorTests(TestContext context)
{
var (light, sequence) = Inputs(new SyntheticFrameSource(DeepScenes.NightSky(jitter: 2), 2));
var deep = await DeepReports.NightJitter;
var result = AdvisorApi.Recommend(light, deep, sequence);
var result = Advisor.Recommend(light, deep, sequence);
var stabilize = result.Find(AdvisorParameters.Stabilize)!;
Assert.Equal(true, stabilize.Value);
Assert.Equal(AdvisorKeys.StabilizeOn, stabilize.ReasonKey);
@@ -73,7 +72,7 @@ public sealed class AdvisorTests(TestContext context)
{
var (light, sequence) = Inputs(new SyntheticFrameSource(DeepScenes.HolyGrail()));
var deep = await DeepReports.HolyGrail;
var result = AdvisorApi.Recommend(light, deep, sequence);
var result = Advisor.Recommend(light, deep, sequence);
Log(result);
var holyGrail = result.Find(AdvisorParameters.HolyGrail)!;
Assert.Equal(true, holyGrail.Value);
@@ -95,7 +94,7 @@ public sealed class AdvisorTests(TestContext context)
Assert.Equal(20, grail.Settings.Exposure.TransitionLength.Resolve(0));
// Without pixels the metadata steps are trusted, with the same spacing rule and less confidence.
var metadataOnly = AdvisorApi.Recommend(light, null, sequence);
var metadataOnly = Advisor.Recommend(light, null, sequence);
Assert.Equal(AdvisorKeys.HolyGrailMetadata, metadataOnly.Find(AdvisorParameters.HolyGrail)!.ReasonKey);
Assert.Equal(20, Value(metadataOnly, AdvisorParameters.TransitionLength));
Assert.Less(metadataOnly.Find(AdvisorParameters.HolyGrail)!.Confidence, holyGrail.Confidence);
@@ -107,11 +106,15 @@ public sealed class AdvisorTests(TestContext context)
const double night = 14 * 3600;
var source = new SyntheticFrameSource(SyntheticSequence.Create(new SyntheticSequenceOptions
{
Width = 96, Height = 64, FrameCount = 300, IntervalSeconds = 600, IntervalJitterSeconds = 20,
Width = 96,
Height = 64,
FrameCount = 300,
IntervalSeconds = 600,
IntervalJitterSeconds = 20,
TimeShifts = [new(60, night), new(120, night), new(180, night), new(240, night)],
}));
var (light, sequence) = Inputs(source);
var result = AdvisorApi.Recommend(light, null, sequence);
var result = Advisor.Recommend(light, null, sequence);
Log(result);
var mode = result.Find(AdvisorParameters.TimingMode)!;
Assert.Equal(TimingMode.Adaptive, mode.Value);
@@ -138,10 +141,10 @@ public sealed class AdvisorTests(TestContext context)
{
var gapped = SyntheticSequence.Create(DeepScenes.HolyGrail().Options with { TimeShifts = [new(100, 40)] });
var (light, sequence) = Inputs(new SyntheticFrameSource(gapped));
var result = AdvisorApi.Recommend(light, await DeepReports.HolyGrail, sequence);
var result = Advisor.Recommend(light, await DeepReports.HolyGrail, sequence);
Assert.Equal(TimingMode.Interpolated, Value(result, AdvisorParameters.TimingMode));
Assert.Equal(FlowQualitySetting.Best, Value(result, AdvisorParameters.FlowQuality));
Assert.Equal(TimingMode.Constant, Value(AdvisorApi.Recommend(light, null, sequence), AdvisorParameters.TimingMode));
Assert.Equal(TimingMode.Constant, Value(Advisor.Recommend(light, null, sequence), AdvisorParameters.TimingMode));
}
[Test]
@@ -149,11 +152,15 @@ public sealed class AdvisorTests(TestContext context)
{
var source = new SyntheticFrameSource(SyntheticSequence.Create(new SyntheticSequenceOptions
{
Width = 96, Height = 64, FrameCount = 240, FlickerEv = 0.15, FlickerPeriodFrames = 8,
Width = 96,
Height = 64,
FrameCount = 240,
FlickerEv = 0.15,
FlickerPeriodFrames = 8,
}));
var deep = await DeepAnalyzer.AnalyzeAsync(source, DeepScenes.Options);
var (light, sequence) = Inputs(source);
var window = AdvisorApi.Recommend(light, deep, sequence).Find(AdvisorParameters.DeflickerWindow)!;
var window = Advisor.Recommend(light, deep, sequence).Find(AdvisorParameters.DeflickerWindow)!;
Assert.Equal(33, window.Value);
Assert.Equal(AdvisorKeys.WindowPeriod, window.ReasonKey);
Assert.Equal(8.0, window.ReasonArgs[0]);
@@ -164,7 +171,7 @@ public sealed class AdvisorTests(TestContext context)
{
var (light, sequence) = Inputs(new SyntheticFrameSource(DeepScenes.HolyGrail()) { StripExposure = true });
Assert.True(light.ExposureValues.All(v => v is null));
var result = AdvisorApi.Recommend(light, null, sequence);
var result = Advisor.Recommend(light, null, sequence);
foreach (var parameter in new[] { AdvisorParameters.HolyGrail, AdvisorParameters.TransitionLength, AdvisorParameters.TargetShutterAngle, AdvisorParameters.MotionBlur })
{
var missing = result.Find(parameter)!;
@@ -181,13 +188,13 @@ public sealed class AdvisorTests(TestContext context)
TransitionLength = new Auto<int>().WithAdvice(20, AdvisorKeys.TransitionSpacing, "40", "20"),
},
};
var applied = AdvisorApi.Apply(advised, result);
var applied = Advisor.Apply(advised, result);
Assert.Same(advised.Exposure.HolyGrail, applied.Exposure.HolyGrail);
Assert.Same(advised.Exposure.TransitionLength, applied.Exposure.TransitionLength);
Assert.Empty(AdvisorApi.Optimise(AdvisorSection.Exposure, advised, result).Changes.Where(c => c.Parameter is AdvisorParameters.HolyGrail or AdvisorParameters.TransitionLength));
Assert.Empty(Advisor.Optimise(AdvisorSection.Exposure, advised, result).Changes.Where(c => c.Parameter is AdvisorParameters.HolyGrail or AdvisorParameters.TransitionLength));
// A fresh project keeps its values and learns why there is no advice.
var fresh = AdvisorApi.Apply(new ProjectSettings(), result);
var fresh = Advisor.Apply(new ProjectSettings(), result);
Assert.False(fresh.Exposure.HolyGrail.AutoValue);
Assert.Equal(AdvisorKeys.MissingExposure, fresh.Exposure.HolyGrail.ReasonKey);
Assert.Equal(0, fresh.Exposure.TransitionLength.AutoValue);
@@ -199,7 +206,7 @@ public sealed class AdvisorTests(TestContext context)
public async Task ApplyNeverOverwritesManualValues()
{
var (light, sequence) = Inputs(new SyntheticFrameSource(DeepScenes.NightSky()));
var result = AdvisorApi.Recommend(light, await DeepReports.Night, sequence);
var result = Advisor.Recommend(light, await DeepReports.Night, sequence);
var manual = new ProjectSettings
{
Timing = new TimingSettings { FrameRate = new Auto<string>().WithManual("50") },
@@ -211,7 +218,7 @@ public sealed class AdvisorTests(TestContext context)
HeroFrame = 7,
ExcludedFrames = [3],
};
var applied = AdvisorApi.Apply(manual, result);
var applied = Advisor.Apply(manual, result);
Assert.False(applied.Exposure.Deflicker.IsAuto);
Assert.False(applied.Exposure.Deflicker.Resolve(true));
Assert.True(applied.Exposure.Deflicker.AutoValue);
@@ -232,14 +239,14 @@ public sealed class AdvisorTests(TestContext context)
public async Task OptimiseTakesModuleDecisionsAndReportsChanges()
{
var (light, sequence) = Inputs(new SyntheticFrameSource(DeepScenes.NightSky(jitter: 2), 2));
var result = AdvisorApi.Recommend(light, await DeepReports.NightJitter, sequence);
var result = Advisor.Recommend(light, await DeepReports.NightJitter, sequence);
var settings = new ProjectSettings
{
Motion = new MotionSettings { Stabilize = new Auto<bool>().WithManual(false), StabilizeSmoothing = new Auto<double>().WithManual(30) },
ExcludedFrames = [3],
};
var motion = AdvisorApi.Optimise(AdvisorSection.Motion, settings, result);
var motion = Advisor.Optimise(AdvisorSection.Motion, settings, result);
Assert.True(motion.Settings.Motion.Stabilize.IsAuto);
Assert.True(motion.Settings.Motion.Stabilize.Resolve(false));
Assert.Equal(30.0, motion.Settings.Motion.StabilizeSmoothing.Resolve(12));
@@ -250,19 +257,19 @@ public sealed class AdvisorTests(TestContext context)
Assert.DoesNotContain(AdvisorParameters.StabilizeSmoothing, motion.Changes.Select(c => c.Parameter));
Assert.Null(motion.Settings.HeroFrame);
var frames = AdvisorApi.Optimise(AdvisorSection.Frames, settings, result);
var frames = Advisor.Optimise(AdvisorSection.Frames, settings, result);
Assert.Equal(result.Find(AdvisorParameters.Hero)!.Value, frames.Settings.HeroFrame);
Assert.SequenceEqual([AdvisorParameters.Hero], frames.Changes.Select(c => c.Parameter));
Assert.SequenceEqual([3], frames.Settings.ExcludedFrames);
var exposure = AdvisorApi.Optimise(AdvisorSection.Exposure, settings, result);
var exposure = Advisor.Optimise(AdvisorSection.Exposure, settings, result);
var deflicker = exposure.Changes.Single(c => c.Parameter == AdvisorParameters.Deflicker);
Assert.Null(deflicker.Before);
Assert.Equal(true, deflicker.After);
Assert.Equal(settings.Motion, exposure.Settings.Motion);
// Optimising again changes nothing.
Assert.Empty(AdvisorApi.Optimise(AdvisorSection.Motion, motion.Settings, result).Changes);
Assert.Empty(Advisor.Optimise(AdvisorSection.Motion, motion.Settings, result).Changes);
}
[Test]
@@ -270,13 +277,18 @@ public sealed class AdvisorTests(TestContext context)
{
var source = new SyntheticFrameSource(SyntheticSequence.Create(new SyntheticSequenceOptions
{
Width = 96, Height = 64, FrameCount = 40, FlickerEv = 0.05, BlackFrames = [5], DuplicateFrames = [9],
Width = 96,
Height = 64,
FrameCount = 40,
FlickerEv = 0.05,
BlackFrames = [5],
DuplicateFrames = [9],
}));
var deep = await DeepAnalyzer.AnalyzeAsync(source, DeepScenes.Options);
var (light, sequence) = Inputs(source);
var result = AdvisorApi.Recommend(light, deep, sequence with { PreviewOnlyCount = 12, PreviewWidth = 1620, PreviewHeight = 1080 });
var result = Advisor.Recommend(light, deep, sequence with { PreviewOnlyCount = 12, PreviewWidth = 1620, PreviewHeight = 1080 });
var frames = AdvisorApi.Optimise(AdvisorSection.Frames, new ProjectSettings { ExcludedFrames = [2] }, result);
var frames = Advisor.Optimise(AdvisorSection.Frames, new ProjectSettings { ExcludedFrames = [2] }, result);
Assert.SequenceEqual([2, 5, 9], frames.Settings.ExcludedFrames);
Assert.Equal(AdvisorKeys.Exclude, frames.Changes.Single(c => c.Parameter == AdvisorParameters.Excluded).ReasonKey);
@@ -284,7 +296,7 @@ public sealed class AdvisorTests(TestContext context)
Assert.Equal("1280x720", resolution.Value);
Assert.Equal(AdvisorKeys.ResolutionPreview, resolution.ReasonKey);
var big = new ProjectSettings { Export = new ExportSettings { Preset = new Auto<string>().WithManual("4k-hevc") } };
var export = AdvisorApi.Optimise(AdvisorSection.Export, big, result);
var export = Advisor.Optimise(AdvisorSection.Export, big, result);
Assert.Equal("720p-preview", export.Settings.Export.Preset.Resolve("4k-hevc"));
Assert.Null(export.Settings.Export.Overrides.Width);
}
@@ -294,21 +306,21 @@ public sealed class AdvisorTests(TestContext context)
{
var (light, sequence) = Inputs(new SyntheticFrameSource(DeepScenes.HolyGrail()));
var h264Only = sequence with { Codecs = [new EncoderCapability(VideoCodec.H264, "Software H.264", false, 1920, 1088, false)] };
var limited = AdvisorApi.Recommend(light, null, h264Only);
var limited = Advisor.Recommend(light, null, h264Only);
Assert.Equal("1920x1080", Value(limited, AdvisorParameters.Resolution));
Assert.Equal(AdvisorKeys.ResolutionCodec, limited.Find(AdvisorParameters.Resolution)!.ReasonKey);
Assert.Equal("1080p-h264", Value(limited, AdvisorParameters.ExportPreset));
var portrait = AdvisorApi.Recommend(light, null, sequence with { SourceWidth = 4000, SourceHeight = 6000 });
var portrait = Advisor.Recommend(light, null, sequence with { SourceWidth = 4000, SourceHeight = 6000 });
Assert.Equal("9:16", Value(portrait, AdvisorParameters.Aspect));
Assert.Equal("1080x1920", Value(portrait, AdvisorParameters.Resolution));
Assert.Equal("vertical-1080x1920", Value(portrait, AdvisorParameters.ExportPreset));
var landscape = AdvisorApi.Recommend(light, null, sequence);
var landscape = Advisor.Recommend(light, null, sequence);
Assert.Equal("16:9", Value(landscape, AdvisorParameters.Aspect));
Assert.SequenceEqual([6000.0, 4000.0, 84.0], landscape.Find(AdvisorParameters.Aspect)!.ReasonArgs.Select(Convert.ToDouble));
var wide = AdvisorApi.Recommend(light, null, sequence with { SourceWidth = 6000, SourceHeight = 2500 });
var wide = Advisor.Recommend(light, null, sequence with { SourceWidth = 6000, SourceHeight = 2500 });
Assert.Equal(AdvisorKeys.AspectWide, wide.Find(AdvisorParameters.Aspect)!.ReasonKey);
Assert.Equal(74.0, wide.Find(AdvisorParameters.Aspect)!.ReasonArgs[2]);
Assert.Equal("3840x2160", Value(wide, AdvisorParameters.Resolution));
@@ -319,8 +331,8 @@ public sealed class AdvisorTests(TestContext context)
{
var (light, sequence) = Inputs(new SyntheticFrameSource(DeepScenes.NightSky()));
var deep = await DeepReports.Night;
var first = AdvisorApi.Recommend(light, deep, sequence);
var second = AdvisorApi.Recommend(light, DeepAnalysisReport.FromJson(deep.ToJson()), sequence);
var first = Advisor.Recommend(light, deep, sequence);
var second = Advisor.Recommend(light, DeepAnalysisReport.FromJson(deep.ToJson()), sequence);
Assert.SequenceEqual(first.Recommendations.Select(Describe), second.Recommendations.Select(Describe));
}
@@ -66,7 +66,11 @@ public sealed class DeepAnalyzerTests(TestContext context)
{
var sequence = SyntheticSequence.Create(new SyntheticSequenceOptions
{
Width = 96, Height = 64, FrameCount = 240, FlickerEv = 0.15, FlickerPeriodFrames = period,
Width = 96,
Height = 64,
FrameCount = 240,
FlickerEv = 0.15,
FlickerPeriodFrames = period,
});
var report = await DeepAnalyzer.AnalyzeAsync(new SyntheticFrameSource(sequence), DeepScenes.Options);
Assert.Approximately(period, report.Flicker.PeriodFrames!.Value, 0.05 * period);
@@ -79,7 +83,13 @@ public sealed class DeepAnalyzerTests(TestContext context)
{
var sequence = SyntheticSequence.Create(new SyntheticSequenceOptions
{
Width = 96, Height = 64, FrameCount = 60, FlickerEv = 0.02, BlackFrames = [10], WhiteFrames = [20], DuplicateFrames = [30],
Width = 96,
Height = 64,
FrameCount = 60,
FlickerEv = 0.02,
BlackFrames = [10],
WhiteFrames = [20],
DuplicateFrames = [30],
});
var report = await DeepAnalyzer.AnalyzeAsync(new SyntheticFrameSource(sequence) { Undecodable = [40] }, DeepScenes.Options);
Assert.SequenceEqual([10], report.Issues.Black);
@@ -102,7 +112,14 @@ public sealed class DeepAnalyzerTests(TestContext context)
var first = new SyntheticFrameSource(SyntheticSequence.Create(new SyntheticSequenceOptions { Width = 96, Height = 64, FrameCount = 50, FlickerEv = 0.05 }));
var second = new SyntheticFrameSource(SyntheticSequence.Create(new SyntheticSequenceOptions
{
Width = 96, Height = 64, FrameCount = 50, FlickerEv = 0.05, Seed = 5, HorizonFraction = 0.75, SkyLevel = 0.6, LandLevel = 0.01,
Width = 96,
Height = 64,
FrameCount = 50,
FlickerEv = 0.05,
Seed = 5,
HorizonFraction = 0.75,
SkyLevel = 0.6,
LandLevel = 0.01,
}));
var report = await DeepAnalyzer.AnalyzeAsync(new SplicedSource(first, second, 30), DeepScenes.Options);
Assert.SequenceEqual([30], report.Issues.SceneChanges);