wip(processing): analysis and render job handlers, render node client (interrupted)

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 16:33:27 +00:00
1 parent f4e2f285a9
commit fee198f627
30 files changed
+2262 -21

No files matched your search

@@ -0,0 +1,43 @@
using Titano.Core.Analysis.Deep;
using Titano.Core.Export;
using Titano.Core.Imaging;
using Titano.Core.Render;
using Titano.Core.Video;
using Titano.Core.Video.Managed;
using Titano.Data.Archiving;
namespace Titano.Data.Processing;
/// <summary>
/// What differs between the hosts that analyse and render (BRIEF §4.2): decoders (inside <see cref="Archive"/>),
/// encoders and where the work runs. Client: WIC then managed decoders, Media Foundation then managed encoders;
/// server: managed only.
/// </summary>
public sealed record ProcessingOptions
{
/// <summary>Decoders, lease owner and lease timing for the sidecar and project writes.</summary>
public ArchiveServiceOptions Archive { get; init; } = new();
/// <summary>Encoder providers in priority order.</summary>
public IReadOnlyList<IVideoEncoderProvider> Encoders { get; init; } = [new ManagedEncoderProvider()];
/// <summary>The server delegates platform codecs to render nodes and never runs them itself.</summary>
public EncoderHost Host { get; init; } = EncoderHost.Client;
/// <summary>Recorded with every render this host produces (client or server name).</summary>
public string ProducedBy { get; init; } = Environment.MachineName;
public DeepAnalysisOptions DeepAnalysis { get; init; } = DeepAnalysisOptions.Default;
/// <summary>Read-ahead and memory budget of the render decode window.</summary>
public FrameWindowOptions FrameWindow { get; init; } = new();
public RenderOptions Render { get; init; } = RenderOptions.Default;
/// <summary>
/// Encoders the advisor may count on: this machine's on a client; none listed on the server (render nodes can
/// produce any codec, so the advisor rules none out).
/// </summary>
internal IReadOnlyList<EncoderCapability> AdvisorCodecs =>
Host == EncoderHost.Server ? [] : [.. Encoders.SelectMany(e => e.Capabilities)];
}