feat(analysis): add streaming deep analysis with resumable checkpoints
Per-frame statistics, nine-patch shift, Draft flow on sampled pairs, stars, clouds, sky/land luminance and exposure-aligned scene distance, then sequence-level flicker, received exposure steps, white balance, shake, day/night, hero frame and findings in a versioned analysis.json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
14 files changed
+1980
No files matched your search
@@ -0,0 +1,25 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Titano.Core.Analysis.Deep;
|
||||
|
||||
/// <summary>Source-generated JSON for <c>analysis.json</c> and the database summary: compact, camelCase, enums as names.</summary>
|
||||
[JsonSourceGenerationOptions(
|
||||
PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase,
|
||||
DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
|
||||
UseStringEnumConverter = true,
|
||||
PropertyNameCaseInsensitive = true)]
|
||||
[JsonSerializable(typeof(DeepAnalysisReport))]
|
||||
[JsonSerializable(typeof(AnalysisSummary))]
|
||||
internal sealed partial class DeepAnalysisJson : JsonSerializerContext;
|
||||
|
||||
/// <summary>Checkpoint lines: exact doubles, NaN written as a literal so unmeasured values survive a resume.</summary>
|
||||
[JsonSourceGenerationOptions(
|
||||
PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase,
|
||||
NumberHandling = JsonNumberHandling.AllowNamedFloatingPointLiterals,
|
||||
UseStringEnumConverter = true)]
|
||||
[JsonSerializable(typeof(DeepFrame))]
|
||||
[JsonSerializable(typeof(CheckpointHeader))]
|
||||
internal sealed partial class DeepCheckpointJson : JsonSerializerContext;
|
||||
|
||||
/// <summary>First line of a checkpoint file.</summary>
|
||||
internal sealed record CheckpointHeader(string Fingerprint);
|
||||
Reference in new issue
Block a user