diff --git a/src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegConstants.cs b/src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegConstants.cs index f38c72820..d33fe52f6 100644 --- a/src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegConstants.cs +++ b/src/ImageSharp/Formats/Jpeg/GolangPort/OrigJpegConstants.cs @@ -25,67 +25,6 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort /// public static readonly IEnumerable FileExtensions = new[] { "jpg", "jpeg", "jfif" }; - /// - /// Represents high detail chroma horizontal subsampling. - /// - public static readonly byte[] ChromaFourFourFourHorizontal = { 0x11, 0x11, 0x11 }; - - /// - /// Represents high detail chroma vertical subsampling. - /// - public static readonly byte[] ChromaFourFourFourVertical = { 0x11, 0x11, 0x11 }; - - /// - /// Represents medium detail chroma vertical subsampling. - /// - public static readonly byte[] ChromaFourTwoTwoVertical = { 0x11, 0x11, 0x11 }; - - /// - /// Represents low detail chroma vertical subsampling. - /// - public static readonly byte[] ChromaFourTwoZeroVertical = { 0x22, 0x11, 0x11 }; - - /// - /// Represents medium detail chroma horizontal subsampling. - /// - public static readonly byte[] ChromaFourTwoTwoHorizontal = { 0x22, 0x11, 0x11 }; - - /// - /// Represents low detail chroma horizontal subsampling. - /// - public static readonly byte[] ChromaFourTwoZeroHorizontal = { 0x22, 0x11, 0x11 }; - - /// - /// Describes component ids for start of frame components. - /// - internal static class Components - { - /// - /// The YCbCr luminance component id. - /// - public const byte Y = 1; - - /// - /// The YCbCr chroma component id. - /// - public const byte Cb = 2; - - /// - /// The YCbCr chroma component id. - /// - public const byte Cr = 3; - - /// - /// The YIQ x coordinate component id. - /// - public const byte I = 4; - - /// - /// The YIQ y coordinate component id. - /// - public const byte Q = 5; - } - /// /// Describes common Jpeg markers /// @@ -231,6 +170,31 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort /// internal static class Adobe { + /// + /// Represents A in ASCII + /// + public const byte A = 0x41; + + /// + /// Represents d in ASCII + /// + public const byte D = 0x64; + + /// + /// Represents b in ASCII + /// + public const byte O = 0x6F; + + /// + /// Represents b in ASCII + /// + public const byte B = 0x62; + + /// + /// Represents e in ASCII + /// + public const byte E = 0x65; + /// /// The color transform is unknown.(RGB or CMYK) /// @@ -246,5 +210,92 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.GolangPort /// public const int ColorTransformYcck = 2; } + + /// + /// Contains EXIF specific markers + /// + internal static class Exif + { + /// + /// Represents E in ASCII + /// + public const byte E = 0x45; + + /// + /// Represents x in ASCII + /// + public const byte X = 0x78; + + /// + /// Represents i in ASCII + /// + public const byte I = 0x69; + + /// + /// Represents f in ASCII + /// + public const byte F = 0x66; + + /// + /// Represents the null "0" marker + /// + public const byte Null = 0x0; + } + + /// + /// Contains ICC specific markers + /// + internal static class ICC + { + /// + /// Represents I in ASCII + /// + public const byte I = 0x49; + + /// + /// Represents C in ASCII + /// + public const byte C = 0x43; + + /// + /// Represents _ in ASCII + /// + public const byte UnderScore = 0x5F; + + /// + /// Represents P in ASCII + /// + public const byte P = 0x50; + + /// + /// Represents R in ASCII + /// + public const byte R = 0x52; + + /// + /// Represents O in ASCII + /// + public const byte O = 0x4F; + + /// + /// Represents F in ASCII + /// + public const byte F = 0x46; + + /// + /// Represents L in ASCII + /// + public const byte L = 0x4C; + + /// + /// Represents E in ASCII + /// + public const byte E = 0x45; + + /// + /// Represents the null "0" marker + /// + public const byte Null = 0x0; + } } } \ No newline at end of file