diff --git a/src/ImageSharp/Formats/Jxl/Processing/Jpeg/JpegAppMarkerType.cs b/src/ImageSharp/Formats/Jxl/Processing/Jpeg/Data/JpegAppMarkerType.cs similarity index 89% rename from src/ImageSharp/Formats/Jxl/Processing/Jpeg/JpegAppMarkerType.cs rename to src/ImageSharp/Formats/Jxl/Processing/Jpeg/Data/JpegAppMarkerType.cs index 2b05317ab..ba121c80f 100644 --- a/src/ImageSharp/Formats/Jxl/Processing/Jpeg/JpegAppMarkerType.cs +++ b/src/ImageSharp/Formats/Jxl/Processing/Jpeg/Data/JpegAppMarkerType.cs @@ -1,7 +1,7 @@ // Copyright (c) Six Labors. // Licensed under the Six Labors Split License. -namespace SixLabors.ImageSharp.Formats.Jxl.Processing.Jpeg; +namespace SixLabors.ImageSharp.Formats.Jxl.Processing.Jpeg.Data; /// /// Identifies the kind of APP marker in a JPEG file. diff --git a/src/ImageSharp/Formats/Jxl/Processing/Jpeg/Data/JpegDataConstants.cs b/src/ImageSharp/Formats/Jxl/Processing/Jpeg/Data/JpegDataConstants.cs new file mode 100644 index 000000000..525d3f4c0 --- /dev/null +++ b/src/ImageSharp/Formats/Jxl/Processing/Jpeg/Data/JpegDataConstants.cs @@ -0,0 +1,20 @@ +// Copyright (c) Six Labors. +// Licensed under the Six Labors Split License. + +namespace SixLabors.ImageSharp.Formats.Jxl.Processing.Jpeg.Data; + +/// +/// Constants used in parsed JPEG data. +/// +internal static class JpegDataConstants +{ + /// + /// Maximum number of components. + /// + public const int MaxComponents = 4; + + /// + /// Maximum number of quantizer tables. + /// + public const int MaximumQuantizationTables = 4; +} diff --git a/src/ImageSharp/Formats/Jxl/Processing/Jpeg/README.md b/src/ImageSharp/Formats/Jxl/Processing/Jpeg/README.md new file mode 100644 index 000000000..4b98e0aff --- /dev/null +++ b/src/ImageSharp/Formats/Jxl/Processing/Jpeg/README.md @@ -0,0 +1,9 @@ +# Jxl/Processing/Jpeg +This folder contains logic to: + +- Parse and represent JPEG data +- Write JPEG markers +- JPEG to JXL +- JXL to JPEG + +This does not contain a JPEG codec.