chore: bootstrap repository foundation
Solution layout, build rules with zero-package guard, in-house test framework, localization runtime, brand mark rasteriser with ICO/PNG generation, Core contracts (imaging, video, domain model, TIFF reader), Titano.Tools (make-icon, i18n, xaml-lint, package-guard) and docs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
109 files changed
+7523
No files matched your search
@@ -0,0 +1,71 @@
|
||||
using Titano.Core.Imaging;
|
||||
using Titano.Core.Model;
|
||||
|
||||
namespace Titano.Core.Metadata;
|
||||
|
||||
public enum PreviewKind
|
||||
{
|
||||
Thumbnail,
|
||||
Preview,
|
||||
FullSize,
|
||||
}
|
||||
|
||||
/// <summary>An embedded JPEG inside a RAW/TIFF/HEIF/JPEG(MPF) container.</summary>
|
||||
public sealed record EmbeddedPreview(long Offset, long Length, int Width, int Height, PreviewKind Kind);
|
||||
|
||||
public sealed record GpsPosition(double Latitude, double Longitude, double? Altitude, DateTime? UtcTimestamp);
|
||||
|
||||
/// <summary>Everything Titano reads from one photo's metadata (BRIEF §9). Never throws while parsing:
|
||||
/// malformed input yields partial data plus <see cref="Warnings"/>.</summary>
|
||||
public sealed record FrameMetadata
|
||||
{
|
||||
public ImageFileFormat Format { get; init; }
|
||||
public string? Make { get; init; }
|
||||
public string? Model { get; init; }
|
||||
public string? BodySerial { get; init; }
|
||||
public string? LensModel { get; init; }
|
||||
public string? Software { get; init; }
|
||||
public string? Artist { get; init; }
|
||||
public string? Copyright { get; init; }
|
||||
|
||||
/// <summary>Camera wall-clock time including sub-seconds (DateTimeKind.Unspecified).</summary>
|
||||
public DateTime? CapturedAt { get; init; }
|
||||
|
||||
public int? UtcOffsetMinutes { get; init; }
|
||||
public TimestampSource TimestampSource { get; init; }
|
||||
public double? ExposureTime { get; init; }
|
||||
public double? FNumber { get; init; }
|
||||
public int? Iso { get; init; }
|
||||
public double? FocalLength { get; init; }
|
||||
public double? FocalLength35 { get; init; }
|
||||
public double? ExposureBias { get; init; }
|
||||
public int? ExposureProgram { get; init; }
|
||||
public int? MeteringMode { get; init; }
|
||||
public int? WhiteBalanceMode { get; init; }
|
||||
public int? ColorTemperature { get; init; }
|
||||
public int? Flash { get; init; }
|
||||
|
||||
/// <summary>Exif orientation 1–8.</summary>
|
||||
public int Orientation { get; init; } = 1;
|
||||
|
||||
/// <summary>Dimensions of the main (largest) image as stored, before orientation.</summary>
|
||||
public int Width { get; init; }
|
||||
|
||||
public int Height { get; init; }
|
||||
public int? BitsPerSample { get; init; }
|
||||
public GpsPosition? Gps { get; init; }
|
||||
public int? Rating { get; init; }
|
||||
public string? Label { get; init; }
|
||||
public long? ShutterCount { get; init; }
|
||||
public bool? ImageStabilization { get; init; }
|
||||
|
||||
/// <summary>Embedded JPEGs, largest first.</summary>
|
||||
public IReadOnlyList<EmbeddedPreview> Previews { get; init; } = [];
|
||||
|
||||
public IReadOnlyList<string> Warnings { get; init; } = [];
|
||||
|
||||
/// <summary>Width/height after applying orientation 5–8 (90° rotations).</summary>
|
||||
public (int Width, int Height) OrientedSize => Orientation is >= 5 and <= 8 ? (Height, Width) : (Width, Height);
|
||||
|
||||
public EmbeddedPreview? LargestPreview => Previews.Count > 0 ? Previews[0] : null;
|
||||
}
|
||||
Reference in new issue
Block a user