E3: correzioni della revisione di formati e fotogrammi
Le 16 osservazioni confermate della revisione, ognuna con la sua prova: - JPEG: il controllo stima la memoria di lavoro del decodificatore (progressivo), così un file che non si decodifica esce «troppo grande» e non «illeggibile». - Un EXIF che non si tiene lascia un EXIF minimo con l'orientamento, perché la foto convertita non esca girata. - Fotogrammi: istanti in millisecondi interi; la copia trova l'indice del nome dall'istante, non dall'ordine delle righe. - Video di durata sconosciuta misurati prima di registrare: contano nei limiti di 500 per richiesta e 5000 per video. - Rimuxaggio: la durata del segmento di elst passa nell'MP4, la fine tagliata resta nascosta (anche nei fotogrammi). - H.264: il punto di recupero vale come IDR solo con exact_match_flag. - MP3 in MP4: objectTypeIndication 0x69 fino a 24 kHz, 0x6B oltre. - Conversione della libreria: il lavoro toglie le righe di un formato spento o cambiato; spegnere toglie anche i «Non riuscito»; «Riprova» solo i formati di adesso; pausa per spazio prima di rileggere l'originale. - «Anche i N» conta e mette in coda solo il tipo che si cambia; le impostazioni dell'esportazione si salvano una per volta. - Eliminazione e «Tieni il più grande» scelgono i convertiti nella stessa transazione: nessun convertito orfano. - Un file arrivato tardi in un elemento vecchio mette in coda solo sé (file nuovo = salvato da quando il formato è scelto). - Zip dei fotogrammi a pezzi di 64 KB: un browser lento che legge non si interrompe, uno fermo sì. Decisioni in docs/decisioni.md (28/11), §4.10 della specifica precisato. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
eb79b05fda
commit
958cb71cd6
38 files changed
+1276
-222
No files matched your search
@@ -67,6 +67,14 @@ public interface IEntryStore
|
||||
/// </summary>
|
||||
Task MarkDeletedAsync(long entryId, DateTimeOffset at, IReadOnlyCollection<long> removedConversionIds, CancellationToken ct = default);
|
||||
|
||||
/// <summary>
|
||||
/// «Elimina dalla libreria» with memory: as <see cref="MarkDeletedAsync(long, DateTimeOffset, CancellationToken)"/>,
|
||||
/// and in the same transaction every conversion of its files with a file (Converted, Superseded) becomes «Tolto»
|
||||
/// and is returned as it was: chosen inside the transaction, so a conversion recorded just before is among them
|
||||
/// (its file is the caller's to delete) and none can be recorded after. The queue and the failures go.
|
||||
/// </summary>
|
||||
Task<IReadOnlyList<MediaConversion>> MarkDeletedWithConversionsAsync(long entryId, DateTimeOffset at, CancellationToken ct = default);
|
||||
|
||||
/// <summary>
|
||||
/// «Eliminalo e lascia che torni»: removes the record (files records and highlight links by cascade). Conversions
|
||||
/// without a file left (Pending, Failed, Removed) go with it; a Converted or Superseded one makes it fail with
|
||||
|
||||
@@ -50,10 +50,12 @@ public interface IMediaConversionStore
|
||||
Task<int> MarkRemovedAsync(IReadOnlyCollection<long> ids, DateTimeOffset at, CancellationToken ct = default);
|
||||
|
||||
/// <summary>
|
||||
/// A library file left its entry («Tieni il più grande» on a file of a series): its queue and failures go, its rows
|
||||
/// with a file become «Tolto», in one transaction. Returns the rows marked «Tolto».
|
||||
/// A library file leaves its entry («Tieni il più grande» on a file of a series), in one transaction: the file
|
||||
/// becomes <see cref="MediaState.Deleted"/>, its queue and failures go, its rows with a file become «Tolto». Returns
|
||||
/// those rows as they were (chosen inside the transaction: their files are the caller's to delete). The state of
|
||||
/// the entry is the caller's to recompute.
|
||||
/// </summary>
|
||||
Task<int> ForgetDeletedMediaAsync(long mediaId, DateTimeOffset at, CancellationToken ct = default);
|
||||
Task<IReadOnlyList<MediaConversion>> ForgetDeletedMediaAsync(long mediaId, DateTimeOffset at, CancellationToken ct = default);
|
||||
|
||||
/// <summary>
|
||||
/// The account's file changed from <paramref name="oldSha256"/> to <paramref name="newSha256"/> (spec §4.10
|
||||
@@ -63,8 +65,11 @@ public interface IMediaConversionStore
|
||||
/// </summary>
|
||||
Task<IReadOnlyList<long>> SupersedeAsync(long accountId, string oldSha256, string newSha256, DateTimeOffset at, CancellationToken ct = default);
|
||||
|
||||
/// <summary>The setting of a format went off or changed: its queue is emptied (Converted rows and their files stay).</summary>
|
||||
Task<int> DeletePendingAsync(ExportFormat format, CancellationToken ct = default);
|
||||
/// <summary>
|
||||
/// The setting of a format went off or changed: its queue is emptied, with its failures that «Riprova» would put
|
||||
/// back (Converted rows and their files stay, and so do the <c>AsIs*</c> verdicts). Returns how many rows went.
|
||||
/// </summary>
|
||||
Task<int> DeleteQueueAsync(ExportFormat format, CancellationToken ct = default);
|
||||
|
||||
/// <summary>Drops one Pending row (a file already in the format by its bytes: nothing to record). False when it is not Pending.</summary>
|
||||
Task<bool> DeletePendingRowAsync(long id, CancellationToken ct = default);
|
||||
@@ -97,8 +102,11 @@ public interface IMediaConversionStore
|
||||
/// </summary>
|
||||
Task<MediaConversionCommitOutcome> CommitAsync(MediaConversionCommit commit, CancellationToken ct = default);
|
||||
|
||||
/// <summary>«Riprova»: Failed rows go back to Pending, except those with an <c>AsIs*</c> code (they never convert). Returns how many.</summary>
|
||||
Task<int> ResetFailedAsync(DateTimeOffset at, CancellationToken ct = default);
|
||||
/// <summary>
|
||||
/// «Riprova»: Failed rows in <paramref name="formats"/> (the library formats set now) go back to Pending, except those
|
||||
/// with an <c>AsIs*</c> code (they never convert). Returns how many.
|
||||
/// </summary>
|
||||
Task<int> ResetFailedAsync(IReadOnlyCollection<ExportFormat> formats, DateTimeOffset at, CancellationToken ct = default);
|
||||
}
|
||||
|
||||
/// <summary>One file to queue in one format, made from these bytes.</summary>
|
||||
|
||||
Reference in new issue
Block a user