| | | 1 | | namespace Anichron.Core.Domain; |
| | | 2 | | |
| | | 3 | | /// <summary>What extraction reads from a media file, apart from its capture date.</summary> |
| | | 4 | | /// <param name="Width">The stored width in pixels.</param> |
| | | 5 | | /// <param name="Height">The stored height in pixels.</param> |
| | | 6 | | /// <param name="Orientation">The EXIF orientation value, 1-8.</param> |
| | | 7 | | /// <param name="Latitude">The position's latitude.</param> |
| | | 8 | | /// <param name="Longitude">The position's longitude.</param> |
| | | 9 | | /// <param name="CameraMake">The camera's maker.</param> |
| | | 10 | | /// <param name="CameraModel">The camera's model.</param> |
| | | 11 | | /// <param name="LensModel">The lens's model.</param> |
| | | 12 | | /// <param name="DurationInSeconds">A video's duration.</param> |
| | 1876 | 13 | | public sealed record MediaDescription( |
| | 1876 | 14 | | int Width, |
| | 1876 | 15 | | int Height, |
| | 1876 | 16 | | int Orientation, |
| | 1876 | 17 | | double? Latitude, |
| | 1876 | 18 | | double? Longitude, |
| | 1876 | 19 | | string? CameraMake, |
| | 1876 | 20 | | string? CameraModel, |
| | 1876 | 21 | | string? LensModel, |
| | 1876 | 22 | | int? DurationInSeconds) |
| | | 23 | | { |
| | | 24 | | /// <summary>A file nothing could be read from. A new value each time, since a row owns its own.</summary> |
| | 1333 | 25 | | public static MediaDescription Unknown => new(0, 0, ExifOrientation.Upright, null, null, null, null, null, null); |
| | | 26 | | } |