E3: formati e fotogrammi nella copia verso le cartelle esterne

La richiesta di copia porta i formati («Copia in…» per foto e video, poi
la destinazione, poi le impostazioni), i fotogrammi dei video e la «Copia
di nuovo» di una sola copia. Il piano prevede convertiti, copiati com'è e
fotogrammi; il lavoro si ricorda di fotogrammi ed identità esatta per la
ripresa.

La copia converte prima dei controlli di spazio e di FAT32, adotta un file
già presente solo se lunghezza e SHA-256 della conversione coincidono, e
prende i fotogrammi di un video in un solo passaggio, ognuno con il suo
istante esatto come identità. Un file copiato in qualunque forma che non
sia un fotogramma è «già copiato»; un fotogramma non rende mai copiato il
file (nuovo segno FrameOnly). Le note sono un elenco di codici, con i testi
italiani nuovi e il rapporto che mostra i file copiati con una nota.

Le prove dell'archivio e dei piani delle query seguono le nuove ricerche;
due prove nuove coprono una foto convertita e un fotogramma.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-27 23:08:38 +01:00
1 parent 704c1ed9cf
commit b746aff45d
19 files changed
+1941 -257

No files matched your search

+47 -1
View File
@@ -39,8 +39,27 @@ public enum FrameMode
/// <summary>A request of frames of videos, in a photo format (Jpg, Png or WebpLossless).</summary>
public sealed record ExportFramesRequest(FrameMode Mode, TimeSpan? At, TimeSpan? Every, int? Count, ExportFormat Format);
/// <summary>
/// The formats of «Copia in…» for this request only (tappa E3, D1): null keeps the destination's (or the general
/// settings'). A photo format or Original for photos; Mp4 or Original for videos.
/// </summary>
public sealed record ExportFormatChoice(ExportFormat? Photo, ExportFormat? Video);
/// <summary>«Copia di nuovo» of one copy row (tappa E3, D11): the form of that row, looked up only by its exact identity.</summary>
/// <param name="FrameAt">The instant of a frame row; null otherwise.</param>
public sealed record ExportCopyRequest(ExportVariant Variant, ExportFormat Format, TimeSpan? FrameAt);
/// <summary>A «Copia in…»: what to copy, whether «Tolti» and «Superati» are copied again (D9), who asked.</summary>
public sealed record ExportJobRequest(ExportSelection Selection, bool CopyAgain = false, ExportRunOrigin Origin = ExportRunOrigin.Manual);
/// <param name="Formats">The formats of this request («Copia in…» → «Cambia»); null: those of the destination.</param>
/// <param name="Frames">Not null: a frames job («Fotogrammi…» → «Nella cartella delle copie»), videos only.</param>
/// <param name="Exact">«Copia di nuovo» of one copy row, only with a selection of one file.</param>
public sealed record ExportJobRequest(
ExportSelection Selection,
bool CopyAgain = false,
ExportRunOrigin Origin = ExportRunOrigin.Manual,
ExportFormatChoice? Formats = null,
ExportFramesRequest? Frames = null,
ExportCopyRequest? Exact = null);
/// <summary>
/// What a «Copia in…» would do (database only, decisions D3 and D9 of tappa E2). Each file goes to the effective
@@ -71,8 +90,35 @@ public sealed record ExportPlan(
bool HasDestination = true)
{
public static ExportPlan Empty { get; } = new(0, 0, 0, 0, 0, 0, []);
/// <summary>
/// Files predicted to be copied as they are, by kind («3 HEIC copiati come sono»): a prediction from the names
/// («circa»), the copy decides on the bytes (tappa E3).
/// </summary>
public IReadOnlyList<ExportPlanAsIs> AsIs { get; init; } = [];
/// <summary>Files predicted to be converted.</summary>
public int Converted { get; init; }
/// <summary>«Con perdita»: at least one file predicted converted to JPG, or JPG frames (D7 of tappa E3).</summary>
public bool Lossy { get; init; }
/// <summary>Frames job: the due videos.</summary>
public int Videos { get; init; }
/// <summary>Frames job: the photos of the selection, skipped («Le 4 foto si saltano»).</summary>
public int PhotosSkipped { get; init; }
/// <summary>Frames job: the frames to write (also in <see cref="Files"/>); «circa» for a video of unknown length.</summary>
public int Frames { get; init; }
/// <summary>Frames job: videos that would give more than <see cref="ExportFrames.MaxPerVideo"/> frames (the job is refused).</summary>
public int OverCap { get; init; }
}
/// <summary>Files of a plan copied as they are, of one kind («HEIC», «AVIF», «raw», «GIF», «WebM»).</summary>
public sealed record ExportPlanAsIs(string Label, int Files);
/// <summary>A destination of a plan.</summary>
/// <param name="Username">The account of an own folder; null for the general folder.</param>
/// <param name="Files">Files to write there.</param>