Implement abortion in image convertion process.

This commit is contained in:
2025-11-25 19:47:40 +00:00
parent 37b8eeaf4f
commit 5febb2012d
10 changed files with 106 additions and 39 deletions

View File

@@ -6,11 +6,15 @@ namespace Aaru.Core.Image;
public partial class Convert
{
/// <summary>
/// Builds and applies complete ImageInfo metadata to output image
/// Copies input metadata and applies command-line overrides (title, comments, creator, drive info, etc.)
/// Sets Aaru application version and applies all metadata fields to output format
/// </summary>
/// <returns></returns>
ErrorNumber SetImageMetadata()
{
// Builds and applies complete ImageInfo metadata to output image
// Copies input metadata and applies command-line overrides (title, comments, creator, drive info, etc.)
// Sets Aaru application version and applies all metadata fields to output format
if(_aborted) return ErrorNumber.NoError;
var imageInfo = new CommonTypes.Structs.ImageInfo
{