From 62193116a83c6e779c7afa7c8b44a7f2317bdccc Mon Sep 17 00:00:00 2001
From: Erik White <26148654+Erik-White@users.noreply.github.com>
Date: Fri, 17 Oct 2025 09:33:20 +0200
Subject: [PATCH 01/21] Update to ImageSharp 3.1.11
---
.editorconfig | 33 +++++++++------
.gitattributes | 15 +++++--
Directory.Build.props | 12 ++++++
SixLabors.ImageSharp.props | 11 +++++
codecov.yml | 11 +++++
shared-infrastructure | 2 +-
.../ImageSharp.Textures.csproj | 13 ++++--
.../ImageSharp.Textures.Benchmarks.csproj | 4 +-
...ImageSharp.Textures.InteractiveTest.csproj | 2 +-
.../ImageSharp.Textures.Tests.csproj | 4 +-
tests/ImageSharp.Textures.Tests/TestFile.cs | 11 ++++-
.../ImageComparison/ExactImageComparer.cs | 4 +-
.../ImageComparison/ImageComparer.cs | 8 ++--
.../ImageComparison/TolerantImageComparer.cs | 2 +-
.../ImageProviders/FileProvider.cs | 40 ++++++++++++-------
.../ImageProviders/TestImageProvider.cs | 4 +-
.../TestUtilities/TestEnvironment.cs | 13 ++++--
.../TestUtilities/TestImageExtensions.cs | 10 ++++-
18 files changed, 143 insertions(+), 56 deletions(-)
create mode 100644 SixLabors.ImageSharp.props
diff --git a/.editorconfig b/.editorconfig
index 33fd0577..2e3045fb 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -1,5 +1,5 @@
-# Version: 2.1.0 (Using https://semver.org/)
-# Updated: 2021-03-03
+# Version: 4.1.1 (Using https://semver.org/)
+# Updated: 2022-05-23
# See https://github.com/RehanSaeed/EditorConfig/releases for release notes.
# See https://github.com/RehanSaeed/EditorConfig for updates to this file.
# See http://EditorConfig.org for more information about .editorconfig files.
@@ -49,11 +49,11 @@ indent_size = 2
indent_size = 2
# Markdown Files
-[*.md]
+[*.{md,mdx}]
trim_trailing_whitespace = false
# Web Files
-[*.{htm,html,js,jsm,ts,tsx,css,sass,scss,less,svg,vue}]
+[*.{htm,html,js,jsm,ts,tsx,cjs,cts,ctsx,mjs,mts,mtsx,css,sass,scss,less,pcss,svg,vue}]
indent_size = 2
# Batch Files
@@ -75,7 +75,7 @@ indent_style = tab
[*.{cs,csx,cake,vb,vbx}]
# Default Severity for all .NET Code Style rules below
-dotnet_analyzer_diagnostic.category-style.severity = warning
+dotnet_analyzer_diagnostic.severity = warning
##########################################
# Language Rules
@@ -122,20 +122,21 @@ dotnet_style_coalesce_expression = true:warning
dotnet_style_null_propagation = true:warning
dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
# File header preferences
-file_header_template = Copyright (c) Six Labors.\nLicensed under the Apache License, Version 2.0.
+file_header_template = Copyright (c) Six Labors.\nLicensed under the Six Labors Split License.
# SA1636: File header copyright text should match
# Justification: .editorconfig supports file headers. If this is changed to a value other than "none", a stylecop.json file will need to added to the project.
# dotnet_diagnostic.SA1636.severity = none
# Undocumented
-dotnet_style_operator_placement_when_wrapping = end_of_line
+dotnet_style_operator_placement_when_wrapping = end_of_line:warning
+csharp_style_prefer_null_check_over_type_check = true:warning
# C# Style Rules
# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/language-rules#c-style-rules
[*.{cs,csx,cake}]
# 'var' preferences
-csharp_style_var_for_built_in_types = never
-csharp_style_var_when_type_is_apparent = true:warning
+csharp_style_var_for_built_in_types = false:warning
+csharp_style_var_when_type_is_apparent = false:warning
csharp_style_var_elsewhere = false:warning
# Expression-bodied members
csharp_style_expression_bodied_methods = true:warning
@@ -200,12 +201,15 @@ dotnet_diagnostic.IDE0059.severity = suggestion
# Organize using directives
dotnet_sort_system_directives_first = true
dotnet_separate_import_directive_groups = false
+# Dotnet namespace options
+dotnet_style_namespace_match_folder = true:suggestion
+dotnet_diagnostic.IDE0130.severity = suggestion
# C# formatting rules
# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/formatting-rules#c-formatting-rules
[*.{cs,csx,cake}]
# Newline options
-# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#new-line-options
+# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/formatting-rules#new-line-options
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
@@ -214,7 +218,7 @@ csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_between_query_expression_clauses = true
# Indentation options
-# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#indentation-options
+# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/formatting-rules#indentation-options
csharp_indent_case_contents = true
csharp_indent_switch_labels = true
csharp_indent_labels = no_change
@@ -222,7 +226,7 @@ csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents_when_block = false
# Spacing options
-# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#spacing-options
+# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/formatting-rules#spacing-options
csharp_space_after_cast = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_between_parentheses = false
@@ -246,9 +250,12 @@ csharp_space_before_open_square_brackets = false
csharp_space_between_empty_square_brackets = false
csharp_space_between_square_brackets = false
# Wrap options
-# https://docs.microsoft.com/visualstudio/ide/editorconfig-formatting-conventions#wrap-options
+# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/formatting-rules#wrap-options
csharp_preserve_single_line_statements = false
csharp_preserve_single_line_blocks = true
+# Namespace options
+# https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/formatting-rules#namespace-options
+csharp_style_namespace_declarations = file_scoped:warning
##########################################
# .NET Naming Rules
diff --git a/.gitattributes b/.gitattributes
index 70ced690..3647a706 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -64,18 +64,19 @@
# Set explicit file behavior to:
# treat as text
# normalize to Unix-style line endings and
-# use a union merge when resoling conflicts
+# use a union merge when resolving conflicts
###############################################################################
*.csproj text eol=lf merge=union
*.dbproj text eol=lf merge=union
*.fsproj text eol=lf merge=union
*.ncrunchproject text eol=lf merge=union
*.vbproj text eol=lf merge=union
+*.shproj text eol=lf merge=union
###############################################################################
# Set explicit file behavior to:
# treat as text
# normalize to Windows-style line endings and
-# use a union merge when resoling conflicts
+# use a union merge when resolving conflicts
###############################################################################
*.sln text eol=crlf merge=union
###############################################################################
@@ -87,7 +88,6 @@
*.eot binary
*.exe binary
*.otf binary
-*.pbm binary
*.pdf binary
*.ppt binary
*.pptx binary
@@ -95,7 +95,6 @@
*.snk binary
*.ttc binary
*.ttf binary
-*.wbmp binary
*.woff binary
*.woff2 binary
*.xls binary
@@ -119,6 +118,7 @@
*.bmp filter=lfs diff=lfs merge=lfs -text
*.gif filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
+*.qoi filter=lfs diff=lfs merge=lfs -text
*.tif filter=lfs diff=lfs merge=lfs -text
*.tiff filter=lfs diff=lfs merge=lfs -text
*.tga filter=lfs diff=lfs merge=lfs -text
@@ -126,3 +126,10 @@
*.dds filter=lfs diff=lfs merge=lfs -text
*.ktx filter=lfs diff=lfs merge=lfs -text
*.ktx2 filter=lfs diff=lfs merge=lfs -text
+*.pam filter=lfs diff=lfs merge=lfs -text
+*.pbm filter=lfs diff=lfs merge=lfs -text
+*.pgm filter=lfs diff=lfs merge=lfs -text
+*.ppm filter=lfs diff=lfs merge=lfs -text
+*.pnm filter=lfs diff=lfs merge=lfs -text
+*.wbmp filter=lfs diff=lfs merge=lfs -text
+*.exr filter=lfs diff=lfs merge=lfs -text
diff --git a/Directory.Build.props b/Directory.Build.props
index 3a133efe..f0af5470 100644
--- a/Directory.Build.props
+++ b/Directory.Build.props
@@ -18,4 +18,16 @@
+
+ 12.0
+
+
+
+
+ true
+
+
diff --git a/SixLabors.ImageSharp.props b/SixLabors.ImageSharp.props
new file mode 100644
index 00000000..46d8c238
--- /dev/null
+++ b/SixLabors.ImageSharp.props
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/codecov.yml b/codecov.yml
index 833fc0a5..310eefb8 100644
--- a/codecov.yml
+++ b/codecov.yml
@@ -9,3 +9,14 @@ codecov:
# Avoid Report Expired
# https://docs.codecov.io/docs/codecov-yaml#section-expired-reports
max_report_age: off
+
+coverage:
+ # Use integer precision
+ # https://docs.codecov.com/docs/codecovyml-reference#coverageprecision
+ precision: 0
+
+ # Explicitly control coverage status checks
+ # https://docs.codecov.com/docs/commit-status#disabling-a-status
+ status:
+ project: on
+ patch: off
diff --git a/shared-infrastructure b/shared-infrastructure
index a042aba1..353b9afe 160000
--- a/shared-infrastructure
+++ b/shared-infrastructure
@@ -1 +1 @@
-Subproject commit a042aba176cdb840d800c6ed4cfe41a54fb7b1e3
+Subproject commit 353b9afe32a8000410312d17263407cd7bb82d19
diff --git a/src/ImageSharp.Textures/ImageSharp.Textures.csproj b/src/ImageSharp.Textures/ImageSharp.Textures.csproj
index 696c86aa..068d9170 100644
--- a/src/ImageSharp.Textures/ImageSharp.Textures.csproj
+++ b/src/ImageSharp.Textures/ImageSharp.Textures.csproj
@@ -15,24 +15,29 @@
-
+
- net5.0;netcoreapp3.1;netcoreapp2.1;netstandard2.1;netstandard2.0
+ net8.0;net9.0
- netcoreapp3.1;netcoreapp2.1;netstandard2.1;netstandard2.0
+ net8.0
+
+
+
+
+
-
+
diff --git a/tests/ImageSharp.Textures.Benchmarks/ImageSharp.Textures.Benchmarks.csproj b/tests/ImageSharp.Textures.Benchmarks/ImageSharp.Textures.Benchmarks.csproj
index fb1e312d..ed42250f 100644
--- a/tests/ImageSharp.Textures.Benchmarks/ImageSharp.Textures.Benchmarks.csproj
+++ b/tests/ImageSharp.Textures.Benchmarks/ImageSharp.Textures.Benchmarks.csproj
@@ -2,7 +2,7 @@
Exe
- net5.0;netcoreapp3.1;netcoreapp2.1
+ net8.0
false
false
@@ -14,7 +14,7 @@
-
+
diff --git a/tests/ImageSharp.Textures.InteractiveTest/ImageSharp.Textures.InteractiveTest.csproj b/tests/ImageSharp.Textures.InteractiveTest/ImageSharp.Textures.InteractiveTest.csproj
index 8782a753..08d6c73a 100644
--- a/tests/ImageSharp.Textures.InteractiveTest/ImageSharp.Textures.InteractiveTest.csproj
+++ b/tests/ImageSharp.Textures.InteractiveTest/ImageSharp.Textures.InteractiveTest.csproj
@@ -3,7 +3,7 @@
WinExe
false
- net5.0;netcoreapp3.1;netcoreapp2.1
+ net8.0
win-x64;osx-x64
false
SixLabors.ImageSharp.Textures.InteractiveTest
diff --git a/tests/ImageSharp.Textures.Tests/ImageSharp.Textures.Tests.csproj b/tests/ImageSharp.Textures.Tests/ImageSharp.Textures.Tests.csproj
index b51f2d19..7e608c30 100644
--- a/tests/ImageSharp.Textures.Tests/ImageSharp.Textures.Tests.csproj
+++ b/tests/ImageSharp.Textures.Tests/ImageSharp.Textures.Tests.csproj
@@ -1,7 +1,7 @@
- net5.0;netcoreapp3.1;netcoreapp2.1
+ net8.0
True
AnyCPU;x64;x86
SixLabors.ImageSharp.Textures.Tests
@@ -10,7 +10,7 @@
-
+
diff --git a/tests/ImageSharp.Textures.Tests/TestFile.cs b/tests/ImageSharp.Textures.Tests/TestFile.cs
index d4c8eeff..5630c5cf 100644
--- a/tests/ImageSharp.Textures.Tests/TestFile.cs
+++ b/tests/ImageSharp.Textures.Tests/TestFile.cs
@@ -124,6 +124,15 @@ public class TestFile
///
/// The .
///
- public Image CreateRgba32Image(IImageDecoder decoder) => ImageSharp.Image.Load(this.Image.GetConfiguration(), this.Bytes, decoder);
+ public Image CreateRgba32Image(IImageFormat format, IImageDecoder decoder)
+ {
+ var options = new DecoderOptions
+ {
+ Configuration = this.Image.Configuration
+ };
+ options.Configuration.ImageFormatsManager.SetDecoder(format, decoder);
+
+ return ImageSharp.Image.Load(options, this.Bytes);
+ }
}
}
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/ExactImageComparer.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/ExactImageComparer.cs
index c9bf2fdb..4b39d16d 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/ExactImageComparer.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/ExactImageComparer.cs
@@ -18,7 +18,7 @@ public override ImageSimilarityReport CompareImages expected,
Image actual)
{
- if (expected.Size() != actual.Size())
+ if (expected.Size != actual.Size)
{
throw new InvalidOperationException("Calling ImageComparer is invalid when dimensions mismatch!");
}
@@ -33,7 +33,7 @@ public override ImageSimilarityReport CompareImages actualBuffer = actual.Frames.RootFrame.PixelBuffer;
var differences = new List();
- ImageSharp.Configuration configuration = expected.GetConfiguration();
+ ImageSharp.Configuration configuration = expected.Configuration;
for (int y = 0; y < actual.Height; y++)
{
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/ImageComparer.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/ImageComparer.cs
index b24a611b..6b94fb11 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/ImageComparer.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/ImageComparer.cs
@@ -49,9 +49,9 @@ public static void VerifySimilarity(
where TPixelA : unmanaged, IPixel
where TPixelB : unmanaged, IPixel
{
- if (expected.Size() != actual.Size())
+ if (expected.Size != actual.Size)
{
- throw new ImageDimensionsMismatchException(expected.Size(), actual.Size());
+ throw new ImageDimensionsMismatchException(expected.Size, actual.Size);
}
if (expected.Frames.Count != actual.Frames.Count)
@@ -74,9 +74,9 @@ public static void VerifySimilarityIgnoreRegion(
where TPixelA : unmanaged, IPixel
where TPixelB : unmanaged, IPixel
{
- if (expected.Size() != actual.Size())
+ if (expected.Size != actual.Size)
{
- throw new ImageDimensionsMismatchException(expected.Size(), actual.Size());
+ throw new ImageDimensionsMismatchException(expected.Size, actual.Size);
}
if (expected.Frames.Count != actual.Frames.Count)
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/TolerantImageComparer.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/TolerantImageComparer.cs
index da9843cb..f2fb1f4c 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/TolerantImageComparer.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/TolerantImageComparer.cs
@@ -60,7 +60,7 @@ public TolerantImageComparer(float imageThreshold, int perPixelManhattanThreshol
public override ImageSimilarityReport CompareImages(Image expected, Image actual)
{
- if (expected.Size() != actual.Size())
+ if (expected.Size != actual.Size)
{
throw new InvalidOperationException("Calling ImageComparer is invalid when dimensions mismatch!");
}
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageProviders/FileProvider.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageProviders/FileProvider.cs
index 60c9dbcb..46e65090 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageProviders/FileProvider.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageProviders/FileProvider.cs
@@ -1,14 +1,9 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
-using System;
using System.Collections.Concurrent;
-using System.Collections.Generic;
-using System.IO;
using System.Reflection;
-using System.Threading.Tasks;
using SixLabors.ImageSharp.Formats;
-using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using Xunit.Abstractions;
@@ -145,35 +140,45 @@ public FileProvider()
public override Image GetImage()
{
+ IImageFormat format = TestEnvironment.GetImageFormat(this.FilePath);
IImageDecoder decoder = TestEnvironment.GetReferenceDecoder(this.FilePath);
- return this.GetImage(decoder);
+ return this.GetImage(format, decoder);
}
- public override Image GetImage(IImageDecoder decoder)
+ public override Image GetImage(IImageFormat format, IImageDecoder decoder)
{
+ Guard.NotNull(format, nameof(format));
Guard.NotNull(decoder, nameof(decoder));
if (!TestEnvironment.Is64BitProcess)
{
- return this.LoadImage(decoder);
+ return this.LoadImage(format, decoder);
}
// int bufferCapacity = this.Configuration.MemoryAllocator.GetBufferCapacityInBytes();
int bufferCapacity = 500;
var key = new Key(this.PixelType, this.FilePath, bufferCapacity, decoder);
- Image cachedImage = Cache.GetOrAdd(key, _ => this.LoadImage(decoder));
+ Image cachedImage = Cache.GetOrAdd(key, _ => this.LoadImage(format, decoder));
return cachedImage.Clone(this.Configuration);
}
- public override Task> GetImageAsync(IImageDecoder decoder)
+ public override Task> GetImageAsync(IImageFormat format, IImageDecoder decoder)
{
+ Guard.NotNull(format, nameof(format));
Guard.NotNull(decoder, nameof(decoder));
// Used in small subset of decoder tests, no caching.
string path = Path.Combine(TestEnvironment.InputImagesDirectoryFullPath, this.FilePath);
- return Image.LoadAsync(this.Configuration, path, decoder);
+ ImageSharp.Configuration configuration = this.Configuration.Clone();
+ configuration.ImageFormatsManager.SetDecoder(format, decoder);
+ DecoderOptions options = new()
+ {
+ Configuration = configuration
+ };
+
+ return Image.LoadAsync(options, path);
}
public override void Deserialize(IXunitSerializationInfo info)
@@ -189,10 +194,17 @@ public override void Serialize(IXunitSerializationInfo info)
info.AddValue("path", this.FilePath);
}
- private Image LoadImage(IImageDecoder decoder)
+ private Image LoadImage(IImageFormat format, IImageDecoder decoder)
{
- var testFile = TestFile.Create(this.FilePath);
- return Image.Load(this.Configuration, testFile.Bytes, decoder);
+ TestFile testFile = TestFile.Create(this.FilePath);
+ ImageSharp.Configuration configuration = this.Configuration.Clone();
+ configuration.ImageFormatsManager.SetDecoder(format, decoder);
+ DecoderOptions options = new()
+ {
+ Configuration = configuration
+ };
+
+ return Image.Load(options, testFile.Bytes);
}
}
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageProviders/TestImageProvider.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageProviders/TestImageProvider.cs
index bc21e846..d6ef180e 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageProviders/TestImageProvider.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageProviders/TestImageProvider.cs
@@ -49,9 +49,9 @@ public static TestImageProvider File(
/// A test image.
public abstract Image GetImage();
- public virtual Image GetImage(IImageDecoder decoder) => throw new NotSupportedException($"Decoder specific GetImage() is not supported with {this.GetType().Name}!");
+ public virtual Image GetImage(IImageFormat format, IImageDecoder decoder) => throw new NotSupportedException($"Decoder specific GetImage() is not supported with {this.GetType().Name}!");
- public virtual Task> GetImageAsync(IImageDecoder decoder) => throw new NotSupportedException($"Decoder specific GetImageAsync() is not supported with {this.GetType().Name}!");
+ public virtual Task> GetImageAsync(IImageFormat format, IImageDecoder decoder) => throw new NotSupportedException($"Decoder specific GetImageAsync() is not supported with {this.GetType().Name}!");
///
/// Returns an instance to the test case with the necessary traits.
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/TestEnvironment.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/TestEnvironment.cs
index d20483cf..3459765f 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/TestEnvironment.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/TestEnvironment.cs
@@ -267,20 +267,25 @@ static FileInfo Find(DirectoryInfo root, string name)
internal static IImageDecoder GetReferenceDecoder(string filePath)
{
IImageFormat format = GetImageFormat(filePath);
- return Configuration.ImageFormatsManager.FindDecoder(format);
+ return Configuration.ImageFormatsManager.GetDecoder(format);
}
internal static IImageEncoder GetReferenceEncoder(string filePath)
{
IImageFormat format = GetImageFormat(filePath);
- return Configuration.ImageFormatsManager.FindEncoder(format);
+ return Configuration.ImageFormatsManager.GetEncoder(format);
}
internal static IImageFormat GetImageFormat(string filePath)
{
string extension = Path.GetExtension(filePath);
- return Configuration.ImageFormatsManager.FindFormatByFileExtension(extension);
+ if (!Configuration.ImageFormatsManager.TryFindFormatByFileExtension(extension, out IImageFormat format))
+ {
+ throw new NotSupportedException($"No image format found for extension '{extension}'!");
+ }
+
+ return format;
}
private static void ConfigureCodecs(
@@ -301,7 +306,7 @@ private static ImageSharp.Configuration CreateDefaultConfiguration()
cfg.ConfigureCodecs(
PngFormat.Instance,
- new PngDecoder(),
+ PngDecoder.Instance,
new PngEncoder(),
new PngImageFormatDetector());
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/TestImageExtensions.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/TestImageExtensions.cs
index 4626dcb9..14941eea 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/TestImageExtensions.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/TestImageExtensions.cs
@@ -213,9 +213,17 @@ public static Image GetReferenceOutputImage(
throw new FileNotFoundException($"Reference output file {referenceOutputFile} is missing", referenceOutputFile);
}
+ IImageFormat format = TestEnvironment.GetImageFormat(referenceOutputFile);
decoder ??= TestEnvironment.GetReferenceDecoder(referenceOutputFile);
- return Image.Load(referenceOutputFile, decoder);
+ ImageSharp.Configuration configuration = ImageSharp.Configuration.Default.Clone();
+ configuration.ImageFormatsManager.SetDecoder(format, decoder);
+ DecoderOptions options = new()
+ {
+ Configuration = configuration
+ };
+
+ return Image.Load(options, referenceOutputFile);
}
}
}
From ab9992c55f1935d70841bb485b87b80a3b3ec0a0 Mon Sep 17 00:00:00 2001
From: Erik White <26148654+Erik-White@users.noreply.github.com>
Date: Fri, 17 Oct 2025 09:34:51 +0200
Subject: [PATCH 02/21] Update test dependencies
---
.../ImageSharp.Textures.Benchmarks.csproj | 4 ++--
.../ImageSharp.Textures.InteractiveTest.csproj | 6 +++---
.../ImageSharp.Textures.Tests.csproj | 4 ++--
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/tests/ImageSharp.Textures.Benchmarks/ImageSharp.Textures.Benchmarks.csproj b/tests/ImageSharp.Textures.Benchmarks/ImageSharp.Textures.Benchmarks.csproj
index ed42250f..df56f867 100644
--- a/tests/ImageSharp.Textures.Benchmarks/ImageSharp.Textures.Benchmarks.csproj
+++ b/tests/ImageSharp.Textures.Benchmarks/ImageSharp.Textures.Benchmarks.csproj
@@ -12,8 +12,8 @@
-
-
+
+
diff --git a/tests/ImageSharp.Textures.InteractiveTest/ImageSharp.Textures.InteractiveTest.csproj b/tests/ImageSharp.Textures.InteractiveTest/ImageSharp.Textures.InteractiveTest.csproj
index 08d6c73a..fe46b9c8 100644
--- a/tests/ImageSharp.Textures.InteractiveTest/ImageSharp.Textures.InteractiveTest.csproj
+++ b/tests/ImageSharp.Textures.InteractiveTest/ImageSharp.Textures.InteractiveTest.csproj
@@ -13,10 +13,10 @@
-
+
-
-
+
+
diff --git a/tests/ImageSharp.Textures.Tests/ImageSharp.Textures.Tests.csproj b/tests/ImageSharp.Textures.Tests/ImageSharp.Textures.Tests.csproj
index 7e608c30..32341236 100644
--- a/tests/ImageSharp.Textures.Tests/ImageSharp.Textures.Tests.csproj
+++ b/tests/ImageSharp.Textures.Tests/ImageSharp.Textures.Tests.csproj
@@ -9,9 +9,9 @@
-
+
-
+
From 3b430f612087ecb43133adbe27d4d78021034e14 Mon Sep 17 00:00:00 2001
From: Erik White <26148654+Erik-White@users.noreply.github.com>
Date: Fri, 17 Oct 2025 09:41:40 +0200
Subject: [PATCH 03/21] Update workflow
---
.github/workflows/build-and-test.yml | 27 ++++-----------------------
1 file changed, 4 insertions(+), 23 deletions(-)
diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml
index 05df432e..1ba9cf86 100644
--- a/.github/workflows/build-and-test.yml
+++ b/.github/workflows/build-and-test.yml
@@ -15,31 +15,15 @@ jobs:
matrix:
options:
- os: ubuntu-latest
- framework: net5.0
+ framework: net8.0
runtime: -x64
codecov: false
- os: macos-latest
- framework: net5.0
+ framework: net8.0
runtime: -x64
codecov: false
- os: windows-latest
- framework: net5.0
- runtime: -x64
- codecov: false
- - os: ubuntu-latest
- framework: netcoreapp3.1
- runtime: -x64
- codecov: true
- - os: macos-latest
- framework: netcoreapp3.1
- runtime: -x64
- codecov: false
- - os: windows-latest
- framework: netcoreapp3.1
- runtime: -x64
- codecov: false
- - os: windows-latest
- framework: netcoreapp2.1
+ framework: net8.0
runtime: -x64
codecov: false
@@ -86,10 +70,7 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: |
- 6.0.x
- 5.0.x
- 3.1.x
- 2.1.x
+ 8.0.x
- name: Build
shell: pwsh
From 32a2d747a0440c33e568017b220454f6f37ec945 Mon Sep 17 00:00:00 2001
From: Erik White <26148654+Erik-White@users.noreply.github.com>
Date: Fri, 17 Oct 2025 09:55:54 +0200
Subject: [PATCH 04/21] Update test dependencies in targets
---
tests/Directory.Build.targets | 14 +++++++-------
.../ImageSharp.Textures.Benchmarks.csproj | 6 +++---
.../ImageSharp.Textures.InteractiveTest.csproj | 6 +++---
.../ImageSharp.Textures.Tests.csproj | 6 +++---
4 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/tests/Directory.Build.targets b/tests/Directory.Build.targets
index 7f30c9af..e27e1a57 100644
--- a/tests/Directory.Build.targets
+++ b/tests/Directory.Build.targets
@@ -17,15 +17,15 @@
-
-
-
+
+
+
-
-
+
+
-
-
+
+
diff --git a/tests/ImageSharp.Textures.Benchmarks/ImageSharp.Textures.Benchmarks.csproj b/tests/ImageSharp.Textures.Benchmarks/ImageSharp.Textures.Benchmarks.csproj
index df56f867..528ca0cf 100644
--- a/tests/ImageSharp.Textures.Benchmarks/ImageSharp.Textures.Benchmarks.csproj
+++ b/tests/ImageSharp.Textures.Benchmarks/ImageSharp.Textures.Benchmarks.csproj
@@ -12,9 +12,9 @@
-
-
-
+
+
+
diff --git a/tests/ImageSharp.Textures.InteractiveTest/ImageSharp.Textures.InteractiveTest.csproj b/tests/ImageSharp.Textures.InteractiveTest/ImageSharp.Textures.InteractiveTest.csproj
index fe46b9c8..08d6c73a 100644
--- a/tests/ImageSharp.Textures.InteractiveTest/ImageSharp.Textures.InteractiveTest.csproj
+++ b/tests/ImageSharp.Textures.InteractiveTest/ImageSharp.Textures.InteractiveTest.csproj
@@ -13,10 +13,10 @@
-
+
-
-
+
+
diff --git a/tests/ImageSharp.Textures.Tests/ImageSharp.Textures.Tests.csproj b/tests/ImageSharp.Textures.Tests/ImageSharp.Textures.Tests.csproj
index 32341236..63eddb3d 100644
--- a/tests/ImageSharp.Textures.Tests/ImageSharp.Textures.Tests.csproj
+++ b/tests/ImageSharp.Textures.Tests/ImageSharp.Textures.Tests.csproj
@@ -9,9 +9,9 @@
-
-
-
+
+
+
From bd216b668c19bb127fb689836a73a2bd882d3b74 Mon Sep 17 00:00:00 2001
From: Erik White <26148654+Erik-White@users.noreply.github.com>
Date: Fri, 17 Oct 2025 09:59:53 +0200
Subject: [PATCH 05/21] Update license
---
.../Exceptions/TextureFormatException.cs | 2 +-
.../Exceptions/TextureProcessingException.cs | 2 +-
.../UnknownTextureFormatException.cs | 2 +-
.../Common/Extensions/StreamExtensions.cs | 2 +-
.../Common/Extensions/ToStringExtension.cs | 2 +-
.../Common/Helpers/FloatHelper.cs | 2 +-
.../Common/Helpers/PixelUtils.cs | 2 +-
src/ImageSharp.Textures/Configuration.cs | 2 +-
.../Formats/Dds/DdsConfigurationModule.cs | 2 +-
.../Formats/Dds/DdsConstants.cs | 2 +-
.../Formats/Dds/DdsDecoder.cs | 2 +-
.../Formats/Dds/DdsDecoderCore.cs | 2 +-
.../Formats/Dds/DdsFormat.cs | 2 +-
.../Formats/Dds/DdsFourCC.cs | 2 +-
.../Formats/Dds/DdsHeader.cs | 2 +-
.../Formats/Dds/DdsHeaderDxt10.cs | 2 +-
.../Formats/Dds/DdsImageFormatDetector.cs | 2 +-
.../Formats/Dds/DdsPixelFormat.cs | 2 +-
.../Formats/Dds/DdsProcessor.cs | 2 +-
.../Formats/Dds/DdsSurfaceType.cs | 2 +-
.../Formats/Dds/DdsTools.cs | 2 +-
.../Dds/Enums/D3d10ResourceDimension.cs | 2 +-
.../Dds/Enums/D3d10ResourceMiscFlags.cs | 2 +-
.../Formats/Dds/Enums/D3dFormat.cs | 2 +-
.../Formats/Dds/Enums/DdsCaps1.cs | 2 +-
.../Formats/Dds/Enums/DdsCaps2.cs | 2 +-
.../Formats/Dds/Enums/DdsFlags.cs | 2 +-
.../Formats/Dds/Enums/DdsPixelFormatFlags.cs | 2 +-
.../Formats/Dds/Enums/DxgiFormat.cs | 2 +-
.../Dds/Extensions/DdsHeaderExtensions.cs | 2 +-
.../Formats/Dds/IDdsDecoderOptions.cs | 2 +-
.../Formats/ITextureDecoder.cs | 2 +-
.../Formats/ITextureEncoder.cs | 2 +-
.../Formats/ITextureFormat.cs | 2 +-
.../Formats/ITextureFormatDetector.cs | 2 +-
.../Formats/ITextureFormatManager.cs | 2 +-
.../Formats/ITextureInfoDetector.cs | 2 +-
.../Ktx/Enums/GlBaseInternalPixelFormat.cs | 2 +-
.../Ktx/Enums/GlInternalPixelFormat.cs | 2 +-
.../Formats/Ktx/Enums/GlPixelFormat.cs | 2 +-
.../Formats/Ktx/Enums/GlType.cs | 2 +-
.../Formats/Ktx/Enums/KtxEndianness.cs | 2 +-
.../Formats/Ktx/IKtxDecoderOptions.cs | 2 +-
.../Formats/Ktx/KtxConfigurationModule.cs | 2 +-
.../Formats/Ktx/KtxConstants.cs | 2 +-
.../Formats/Ktx/KtxDecoder.cs | 2 +-
.../Formats/Ktx/KtxDecoderCore.cs | 2 +-
.../Formats/Ktx/KtxFormat.cs | 2 +-
.../Formats/Ktx/KtxHeader.cs | 2 +-
.../Formats/Ktx/KtxImageFormatDetector.cs | 2 +-
.../Formats/Ktx/KtxProcessor.cs | 2 +-
.../Formats/Ktx2/Enums/VkFormat.cs | 2 +-
.../Formats/Ktx2/IKtx2DecoderOptions.cs | 2 +-
.../Formats/Ktx2/Ktx2ConfigurationModule.cs | 2 +-
.../Formats/Ktx2/Ktx2Constants.cs | 2 +-
.../Formats/Ktx2/Ktx2Decoder.cs | 2 +-
.../Formats/Ktx2/Ktx2DecoderCore.cs | 2 +-
.../Formats/Ktx2/Ktx2Format.cs | 2 +-
.../Formats/Ktx2/Ktx2Header.cs | 6 ++---
.../Formats/Ktx2/Ktx2ImageFormatDetector.cs | 2 +-
.../Formats/Ktx2/Ktx2Processor.cs | 2 +-
.../Formats/Ktx2/LevelIndex.cs | 2 +-
.../Formats/TextureFormatManager.cs | 2 +-
.../Formats/TextureTypeInfo.cs | 2 +-
.../IConfigurationModule.cs | 2 +-
src/ImageSharp.Textures/IO/IFileSystem.cs | 2 +-
src/ImageSharp.Textures/IO/LocalFileSystem.cs | 2 +-
src/ImageSharp.Textures/ITexture.cs | 2 +-
src/ImageSharp.Textures/ITextureInfo.cs | 2 +-
.../ImageSharp.Textures.csproj | 2 +-
src/ImageSharp.Textures/MipMap.cs | 2 +-
src/ImageSharp.Textures/MipMap{TBlock}.cs | 2 +-
src/ImageSharp.Textures/PixelFormats/Ayuv.cs | 2 +-
.../PixelFormats/ColorSpaceConversion.cs | 2 +-
src/ImageSharp.Textures/PixelFormats/Fp32.cs | 2 +-
.../PixelFormats/Generated/Bgr32.cs | 2 +-
.../PixelFormats/Generated/Bgr555.cs | 2 +-
.../Generated/D32_FLOAT_S8X24_UINT.cs | 2 +-
.../Generated/PixelGenerator.ignore | 24 +++++++++----------
.../PixelFormats/Generated/PixelGenerator.tt | 2 +-
.../PixelFormats/Generated/R11G11B10Float.cs | 2 +-
.../PixelFormats/Generated/Rg32Float.cs | 2 +-
.../PixelFormats/Generated/Rg64.cs | 2 +-
.../PixelFormats/Generated/Rg64Float.cs | 2 +-
.../PixelFormats/Generated/Rgb32.cs | 2 +-
.../PixelFormats/Generated/Rgb565.cs | 2 +-
.../PixelFormats/Generated/Rgb96.cs | 2 +-
.../PixelFormats/Generated/Rgb96Float.cs | 2 +-
.../PixelFormats/Generated/Rgba128.cs | 2 +-
.../PixelFormats/Generated/Rgba128Float.cs | 2 +-
.../PixelFormats/Generated/Rgba4444.cs | 2 +-
.../PixelFormats/Generated/Rgba5551.cs | 2 +-
.../PixelFormats/Generated/Rgba64Float.cs | 2 +-
src/ImageSharp.Textures/PixelFormats/L32.cs | 2 +-
.../PixelFormats/R16Float.cs | 2 +-
src/ImageSharp.Textures/PixelFormats/Rg16.cs | 2 +-
src/ImageSharp.Textures/PixelFormats/Rg32.cs | 2 +-
src/ImageSharp.Textures/PixelFormats/Y410.cs | 2 +-
src/ImageSharp.Textures/PixelFormats/Y416.cs | 2 +-
src/ImageSharp.Textures/Texture.Decode.cs | 2 +-
src/ImageSharp.Textures/Texture.FromBytes.cs | 2 +-
src/ImageSharp.Textures/Texture.FromFile.cs | 2 +-
src/ImageSharp.Textures/Texture.FromStream.cs | 2 +-
src/ImageSharp.Textures/Texture.cs | 2 +-
.../TextureFormats/CubemapTexture.cs | 2 +-
.../TextureFormats/Decoding/A8.cs | 2 +-
.../TextureFormats/Decoding/Ayuv.cs | 2 +-
.../TextureFormats/Decoding/Bc4.cs | 2 +-
.../TextureFormats/Decoding/Bc4s.cs | 2 +-
.../TextureFormats/Decoding/Bc5.cs | 2 +-
.../TextureFormats/Decoding/Bc5s.cs | 2 +-
.../TextureFormats/Decoding/Bc6h.cs | 2 +-
.../TextureFormats/Decoding/Bc6hEField.cs | 2 +-
.../Decoding/Bc6hModeDescriptor.cs | 2 +-
.../TextureFormats/Decoding/Bc6hModeInfo.cs | 2 +-
.../TextureFormats/Decoding/Bc6hs.cs | 2 +-
.../Decoding/Bc6hsModeDescriptor.cs | 2 +-
.../TextureFormats/Decoding/Bc6hsModeInfo.cs | 2 +-
.../TextureFormats/Decoding/Bc7.cs | 2 +-
.../TextureFormats/Decoding/Bc7ModeInfo.cs | 2 +-
.../TextureFormats/Decoding/Bgr24.cs | 2 +-
.../TextureFormats/Decoding/Bgr32.cs | 2 +-
.../TextureFormats/Decoding/Bgr555.cs | 2 +-
.../TextureFormats/Decoding/Bgr565.cs | 2 +-
.../TextureFormats/Decoding/Bgra16.cs | 2 +-
.../TextureFormats/Decoding/Bgra32.cs | 2 +-
.../TextureFormats/Decoding/Bgra4444.cs | 2 +-
.../TextureFormats/Decoding/Bgra5551.cs | 2 +-
.../TextureFormats/Decoding/Dxt1.cs | 2 +-
.../TextureFormats/Decoding/Dxt3.cs | 2 +-
.../TextureFormats/Decoding/Dxt5.cs | 2 +-
.../TextureFormats/Decoding/Etc1.cs | 2 +-
.../TextureFormats/Decoding/Etc2.cs | 2 +-
.../TextureFormats/Decoding/EtcDecoder.cs | 2 +-
.../TextureFormats/Decoding/Fp32.cs | 2 +-
.../TextureFormats/Decoding/Grgb32.cs | 2 +-
.../TextureFormats/Decoding/Helper.cs | 2 +-
.../TextureFormats/Decoding/IBlock.cs | 2 +-
.../TextureFormats/Decoding/IBlock{TSelf}.cs | 2 +-
.../TextureFormats/Decoding/L16.cs | 2 +-
.../TextureFormats/Decoding/L32.cs | 2 +-
.../TextureFormats/Decoding/L8.cs | 2 +-
.../TextureFormats/Decoding/La16.cs | 2 +-
.../Decoding/PixelFormats/Constants.cs | 2 +-
.../Decoding/PixelFormats/Helpers.cs | 2 +-
.../Decoding/PixelFormats/IntColor.cs | 2 +-
.../Decoding/PixelFormats/IntEndPntPair.cs | 2 +-
.../Decoding/PixelFormats/LdrColorA.cs | 2 +-
.../TextureFormats/Decoding/R16Float.cs | 2 +-
.../TextureFormats/Decoding/Rg16.cs | 2 +-
.../TextureFormats/Decoding/Rg32.cs | 2 +-
.../TextureFormats/Decoding/Rg32Float.cs | 2 +-
.../TextureFormats/Decoding/Rg64.cs | 2 +-
.../TextureFormats/Decoding/Rg64Float.cs | 2 +-
.../TextureFormats/Decoding/Rgb111110Float.cs | 2 +-
.../TextureFormats/Decoding/Rgb24.cs | 2 +-
.../TextureFormats/Decoding/Rgb32.cs | 2 +-
.../TextureFormats/Decoding/Rgb48.cs | 2 +-
.../TextureFormats/Decoding/Rgb565.cs | 2 +-
.../TextureFormats/Decoding/Rgb96.cs | 2 +-
.../TextureFormats/Decoding/Rgb96Float.cs | 2 +-
.../TextureFormats/Decoding/Rgba1010102.cs | 2 +-
.../TextureFormats/Decoding/Rgba128.cs | 2 +-
.../TextureFormats/Decoding/Rgba128Float.cs | 2 +-
.../TextureFormats/Decoding/Rgba32.cs | 2 +-
.../TextureFormats/Decoding/Rgba4444.cs | 2 +-
.../TextureFormats/Decoding/Rgba5551.cs | 2 +-
.../TextureFormats/Decoding/Rgba64.cs | 2 +-
.../TextureFormats/Decoding/Rgba64Float.cs | 2 +-
.../TextureFormats/Decoding/Rgbg32.cs | 2 +-
.../TextureFormats/Decoding/Y210.cs | 2 +-
.../TextureFormats/Decoding/Y216.cs | 2 +-
.../TextureFormats/Decoding/Y410.cs | 2 +-
.../TextureFormats/Decoding/Y416.cs | 2 +-
.../TextureFormats/Decoding/Yuy2.cs | 2 +-
.../TextureFormats/FlatTexture.cs | 2 +-
.../TextureFormats/VolumeTexture.cs | 2 +-
src/ImageSharp.Textures/TextureInfo.cs | 2 +-
.../ImageSharp.Textures.Benchmarks/Config.cs | 2 +-
.../ImageSharp.Textures.Benchmarks/Program.cs | 2 +-
.../ApplicationManager.cs | 2 +-
.../Extensions.cs | 4 ++--
.../Program.cs | 2 +-
.../ResourceLoader.cs | 4 ++--
.../UI/Button.cs | 2 +-
.../UI/MenuBar.cs | 2 +-
.../UI/TitleBar.cs | 2 +-
.../UI/Widgets.cs | 2 +-
.../UI/Wizard.cs | 2 +-
.../UI/WizardPage.cs | 4 ++--
.../UI/WizardPages/Preview.cs | 2 +-
.../UI/WizardPages/Welcome.cs | 2 +-
.../UIManager.cs | 2 +-
.../Enums/TestTextureFormat.cs | 2 +-
.../Enums/TestTextureTool.cs | 2 +-
.../Enums/TestTextureType.cs | 2 +-
.../Formats/Dds/DdsDecoderCubemapTests.cs | 2 +-
.../Formats/Dds/DdsDecoderFlatTests.cs | 2 +-
.../Formats/Dds/DdsDecoderTexConvFlatTests.cs | 2 +-
.../Formats/Dds/DdsDecoderVolumeTests.cs | 2 +-
.../Formats/Ktx/KtxDecoderTests.cs | 2 +-
.../Formats/PixelFormat/PixelFormatTests.cs | 2 +-
tests/ImageSharp.Textures.Tests/TestFile.cs | 2 +-
tests/ImageSharp.Textures.Tests/TestImages.cs | 2 +-
.../Attributes/GroupOutputAttribute.cs | 2 +-
.../Attributes/WithFileAttribute.cs | 2 +-
.../ImageComparison/ExactImageComparer.cs | 2 +-
.../ImageDimensionsMismatchException.cs | 2 +-
.../Exceptions/ImagesSimilarityException.cs | 2 +-
.../ImageComparison/ImageComparer.cs | 2 +-
.../ImageComparison/ImageSimilarityReport.cs | 2 +-
.../ImageComparison/PixelDifference.cs | 2 +-
.../ImageComparison/TolerantImageComparer.cs | 2 +-
.../ImageProviders/FileProvider.cs | 2 +-
.../ImageProviders/ITestImageProvider.cs | 2 +-
.../ImageProviders/TestImageProvider.cs | 2 +-
.../TestUtilities/ImagingTestCaseUtility.cs | 2 +-
.../TestUtilities/PixelTypes.cs | 2 +-
.../TestUtilities/TestEnvironment.cs | 2 +-
.../TestUtilities/TestImageExtensions.cs | 2 +-
.../TestUtilities/TestUtils.cs | 2 +-
.../TextureProviders/ITestTextureProvider.cs | 2 +-
.../TextureProviders/TestTextureProvider.cs | 2 +-
tests/Images/TestEnvironment.cs | 2 +-
tests/Images/TestTextures.cs | 2 +-
225 files changed, 241 insertions(+), 241 deletions(-)
diff --git a/src/ImageSharp.Textures/Common/Exceptions/TextureFormatException.cs b/src/ImageSharp.Textures/Common/Exceptions/TextureFormatException.cs
index eb53a6ba..8fd3c014 100644
--- a/src/ImageSharp.Textures/Common/Exceptions/TextureFormatException.cs
+++ b/src/ImageSharp.Textures/Common/Exceptions/TextureFormatException.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
diff --git a/src/ImageSharp.Textures/Common/Exceptions/TextureProcessingException.cs b/src/ImageSharp.Textures/Common/Exceptions/TextureProcessingException.cs
index 2d3f4f0d..ba360be0 100644
--- a/src/ImageSharp.Textures/Common/Exceptions/TextureProcessingException.cs
+++ b/src/ImageSharp.Textures/Common/Exceptions/TextureProcessingException.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
diff --git a/src/ImageSharp.Textures/Common/Exceptions/UnknownTextureFormatException.cs b/src/ImageSharp.Textures/Common/Exceptions/UnknownTextureFormatException.cs
index 466efcf7..05bce3f2 100644
--- a/src/ImageSharp.Textures/Common/Exceptions/UnknownTextureFormatException.cs
+++ b/src/ImageSharp.Textures/Common/Exceptions/UnknownTextureFormatException.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Common.Exceptions
{
diff --git a/src/ImageSharp.Textures/Common/Extensions/StreamExtensions.cs b/src/ImageSharp.Textures/Common/Extensions/StreamExtensions.cs
index 0b992bc3..274a0227 100644
--- a/src/ImageSharp.Textures/Common/Extensions/StreamExtensions.cs
+++ b/src/ImageSharp.Textures/Common/Extensions/StreamExtensions.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Buffers;
diff --git a/src/ImageSharp.Textures/Common/Extensions/ToStringExtension.cs b/src/ImageSharp.Textures/Common/Extensions/ToStringExtension.cs
index 254b1796..da8ec122 100644
--- a/src/ImageSharp.Textures/Common/Extensions/ToStringExtension.cs
+++ b/src/ImageSharp.Textures/Common/Extensions/ToStringExtension.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Text;
diff --git a/src/ImageSharp.Textures/Common/Helpers/FloatHelper.cs b/src/ImageSharp.Textures/Common/Helpers/FloatHelper.cs
index db2c28bd..98b8de50 100644
--- a/src/ImageSharp.Textures/Common/Helpers/FloatHelper.cs
+++ b/src/ImageSharp.Textures/Common/Helpers/FloatHelper.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.Runtime.CompilerServices;
diff --git a/src/ImageSharp.Textures/Common/Helpers/PixelUtils.cs b/src/ImageSharp.Textures/Common/Helpers/PixelUtils.cs
index c89db741..ed7907b2 100644
--- a/src/ImageSharp.Textures/Common/Helpers/PixelUtils.cs
+++ b/src/ImageSharp.Textures/Common/Helpers/PixelUtils.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.PixelFormats;
diff --git a/src/ImageSharp.Textures/Configuration.cs b/src/ImageSharp.Textures/Configuration.cs
index f8a9920a..d68b4726 100644
--- a/src/ImageSharp.Textures/Configuration.cs
+++ b/src/ImageSharp.Textures/Configuration.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Collections.Generic;
diff --git a/src/ImageSharp.Textures/Formats/Dds/DdsConfigurationModule.cs b/src/ImageSharp.Textures/Formats/Dds/DdsConfigurationModule.cs
index aa5022ac..c81d20b7 100644
--- a/src/ImageSharp.Textures/Formats/Dds/DdsConfigurationModule.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/DdsConfigurationModule.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Formats.Dds
{
diff --git a/src/ImageSharp.Textures/Formats/Dds/DdsConstants.cs b/src/ImageSharp.Textures/Formats/Dds/DdsConstants.cs
index 5574fa5c..0caac846 100644
--- a/src/ImageSharp.Textures/Formats/Dds/DdsConstants.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/DdsConstants.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.Collections.Generic;
diff --git a/src/ImageSharp.Textures/Formats/Dds/DdsDecoder.cs b/src/ImageSharp.Textures/Formats/Dds/DdsDecoder.cs
index a4a20f79..6291bf5d 100644
--- a/src/ImageSharp.Textures/Formats/Dds/DdsDecoder.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/DdsDecoder.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.IO;
diff --git a/src/ImageSharp.Textures/Formats/Dds/DdsDecoderCore.cs b/src/ImageSharp.Textures/Formats/Dds/DdsDecoderCore.cs
index 21862483..f2349a65 100644
--- a/src/ImageSharp.Textures/Formats/Dds/DdsDecoderCore.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/DdsDecoderCore.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Buffers.Binary;
diff --git a/src/ImageSharp.Textures/Formats/Dds/DdsFormat.cs b/src/ImageSharp.Textures/Formats/Dds/DdsFormat.cs
index 82cf2a7c..7028ce09 100644
--- a/src/ImageSharp.Textures/Formats/Dds/DdsFormat.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/DdsFormat.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.Collections.Generic;
diff --git a/src/ImageSharp.Textures/Formats/Dds/DdsFourCC.cs b/src/ImageSharp.Textures/Formats/Dds/DdsFourCC.cs
index e19136a6..2f922330 100644
--- a/src/ImageSharp.Textures/Formats/Dds/DdsFourCC.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/DdsFourCC.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Textures.Formats.Dds
diff --git a/src/ImageSharp.Textures/Formats/Dds/DdsHeader.cs b/src/ImageSharp.Textures/Formats/Dds/DdsHeader.cs
index 864d974b..27e1271e 100644
--- a/src/ImageSharp.Textures/Formats/Dds/DdsHeader.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/DdsHeader.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Buffers.Binary;
diff --git a/src/ImageSharp.Textures/Formats/Dds/DdsHeaderDxt10.cs b/src/ImageSharp.Textures/Formats/Dds/DdsHeaderDxt10.cs
index dc6aff5b..25494921 100644
--- a/src/ImageSharp.Textures/Formats/Dds/DdsHeaderDxt10.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/DdsHeaderDxt10.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Buffers.Binary;
diff --git a/src/ImageSharp.Textures/Formats/Dds/DdsImageFormatDetector.cs b/src/ImageSharp.Textures/Formats/Dds/DdsImageFormatDetector.cs
index ea6ea1a4..8c3d93f3 100644
--- a/src/ImageSharp.Textures/Formats/Dds/DdsImageFormatDetector.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/DdsImageFormatDetector.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Buffers.Binary;
diff --git a/src/ImageSharp.Textures/Formats/Dds/DdsPixelFormat.cs b/src/ImageSharp.Textures/Formats/Dds/DdsPixelFormat.cs
index 9b7409f9..76c4c46c 100644
--- a/src/ImageSharp.Textures/Formats/Dds/DdsPixelFormat.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/DdsPixelFormat.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Buffers.Binary;
diff --git a/src/ImageSharp.Textures/Formats/Dds/DdsProcessor.cs b/src/ImageSharp.Textures/Formats/Dds/DdsProcessor.cs
index e76dc302..60a51cc3 100644
--- a/src/ImageSharp.Textures/Formats/Dds/DdsProcessor.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/DdsProcessor.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.IO;
diff --git a/src/ImageSharp.Textures/Formats/Dds/DdsSurfaceType.cs b/src/ImageSharp.Textures/Formats/Dds/DdsSurfaceType.cs
index 47c4831a..187359e6 100644
--- a/src/ImageSharp.Textures/Formats/Dds/DdsSurfaceType.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/DdsSurfaceType.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Formats.Dds
{
diff --git a/src/ImageSharp.Textures/Formats/Dds/DdsTools.cs b/src/ImageSharp.Textures/Formats/Dds/DdsTools.cs
index 1e085053..7402f524 100644
--- a/src/ImageSharp.Textures/Formats/Dds/DdsTools.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/DdsTools.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using SixLabors.ImageSharp.Textures.Formats.Dds.Emums;
diff --git a/src/ImageSharp.Textures/Formats/Dds/Enums/D3d10ResourceDimension.cs b/src/ImageSharp.Textures/Formats/Dds/Enums/D3d10ResourceDimension.cs
index 8119ac37..056fb472 100644
--- a/src/ImageSharp.Textures/Formats/Dds/Enums/D3d10ResourceDimension.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/Enums/D3d10ResourceDimension.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Formats.Dds.Emums
{
diff --git a/src/ImageSharp.Textures/Formats/Dds/Enums/D3d10ResourceMiscFlags.cs b/src/ImageSharp.Textures/Formats/Dds/Enums/D3d10ResourceMiscFlags.cs
index 590a80b9..76dad602 100644
--- a/src/ImageSharp.Textures/Formats/Dds/Enums/D3d10ResourceMiscFlags.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/Enums/D3d10ResourceMiscFlags.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
diff --git a/src/ImageSharp.Textures/Formats/Dds/Enums/D3dFormat.cs b/src/ImageSharp.Textures/Formats/Dds/Enums/D3dFormat.cs
index f8a348d3..37d63eae 100644
--- a/src/ImageSharp.Textures/Formats/Dds/Enums/D3dFormat.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/Enums/D3dFormat.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Formats.Dds.Emums
{
diff --git a/src/ImageSharp.Textures/Formats/Dds/Enums/DdsCaps1.cs b/src/ImageSharp.Textures/Formats/Dds/Enums/DdsCaps1.cs
index 3cb4ea74..abd4d7ea 100644
--- a/src/ImageSharp.Textures/Formats/Dds/Enums/DdsCaps1.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/Enums/DdsCaps1.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
diff --git a/src/ImageSharp.Textures/Formats/Dds/Enums/DdsCaps2.cs b/src/ImageSharp.Textures/Formats/Dds/Enums/DdsCaps2.cs
index 2e406eb3..ae88ac0f 100644
--- a/src/ImageSharp.Textures/Formats/Dds/Enums/DdsCaps2.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/Enums/DdsCaps2.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
diff --git a/src/ImageSharp.Textures/Formats/Dds/Enums/DdsFlags.cs b/src/ImageSharp.Textures/Formats/Dds/Enums/DdsFlags.cs
index 017eb470..ae311d09 100644
--- a/src/ImageSharp.Textures/Formats/Dds/Enums/DdsFlags.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/Enums/DdsFlags.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
diff --git a/src/ImageSharp.Textures/Formats/Dds/Enums/DdsPixelFormatFlags.cs b/src/ImageSharp.Textures/Formats/Dds/Enums/DdsPixelFormatFlags.cs
index 16f2837d..4fc301c9 100644
--- a/src/ImageSharp.Textures/Formats/Dds/Enums/DdsPixelFormatFlags.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/Enums/DdsPixelFormatFlags.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
diff --git a/src/ImageSharp.Textures/Formats/Dds/Enums/DxgiFormat.cs b/src/ImageSharp.Textures/Formats/Dds/Enums/DxgiFormat.cs
index 9c343f61..dc4be9ac 100644
--- a/src/ImageSharp.Textures/Formats/Dds/Enums/DxgiFormat.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/Enums/DxgiFormat.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Textures.Formats.Dds.Emums
diff --git a/src/ImageSharp.Textures/Formats/Dds/Extensions/DdsHeaderExtensions.cs b/src/ImageSharp.Textures/Formats/Dds/Extensions/DdsHeaderExtensions.cs
index 07c17b2e..c34e7b1e 100644
--- a/src/ImageSharp.Textures/Formats/Dds/Extensions/DdsHeaderExtensions.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/Extensions/DdsHeaderExtensions.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using SixLabors.ImageSharp.Textures.Formats.Dds.Emums;
diff --git a/src/ImageSharp.Textures/Formats/Dds/IDdsDecoderOptions.cs b/src/ImageSharp.Textures/Formats/Dds/IDdsDecoderOptions.cs
index 200a941b..40a9b0cf 100644
--- a/src/ImageSharp.Textures/Formats/Dds/IDdsDecoderOptions.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/IDdsDecoderOptions.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Formats.Dds
{
diff --git a/src/ImageSharp.Textures/Formats/ITextureDecoder.cs b/src/ImageSharp.Textures/Formats/ITextureDecoder.cs
index 2b7381b0..c1e34985 100644
--- a/src/ImageSharp.Textures/Formats/ITextureDecoder.cs
+++ b/src/ImageSharp.Textures/Formats/ITextureDecoder.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Formats
{
diff --git a/src/ImageSharp.Textures/Formats/ITextureEncoder.cs b/src/ImageSharp.Textures/Formats/ITextureEncoder.cs
index 931bae65..a58ad860 100644
--- a/src/ImageSharp.Textures/Formats/ITextureEncoder.cs
+++ b/src/ImageSharp.Textures/Formats/ITextureEncoder.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Formats
{
diff --git a/src/ImageSharp.Textures/Formats/ITextureFormat.cs b/src/ImageSharp.Textures/Formats/ITextureFormat.cs
index ec48841e..bfd52970 100644
--- a/src/ImageSharp.Textures/Formats/ITextureFormat.cs
+++ b/src/ImageSharp.Textures/Formats/ITextureFormat.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.Collections.Generic;
diff --git a/src/ImageSharp.Textures/Formats/ITextureFormatDetector.cs b/src/ImageSharp.Textures/Formats/ITextureFormatDetector.cs
index dd203c84..5457af96 100644
--- a/src/ImageSharp.Textures/Formats/ITextureFormatDetector.cs
+++ b/src/ImageSharp.Textures/Formats/ITextureFormatDetector.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
diff --git a/src/ImageSharp.Textures/Formats/ITextureFormatManager.cs b/src/ImageSharp.Textures/Formats/ITextureFormatManager.cs
index e351315e..e639dee6 100644
--- a/src/ImageSharp.Textures/Formats/ITextureFormatManager.cs
+++ b/src/ImageSharp.Textures/Formats/ITextureFormatManager.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Collections.Concurrent;
diff --git a/src/ImageSharp.Textures/Formats/ITextureInfoDetector.cs b/src/ImageSharp.Textures/Formats/ITextureInfoDetector.cs
index 947f20ea..3865e173 100644
--- a/src/ImageSharp.Textures/Formats/ITextureInfoDetector.cs
+++ b/src/ImageSharp.Textures/Formats/ITextureInfoDetector.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.IO;
diff --git a/src/ImageSharp.Textures/Formats/Ktx/Enums/GlBaseInternalPixelFormat.cs b/src/ImageSharp.Textures/Formats/Ktx/Enums/GlBaseInternalPixelFormat.cs
index 05f2eb4a..bd585fe3 100644
--- a/src/ImageSharp.Textures/Formats/Ktx/Enums/GlBaseInternalPixelFormat.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx/Enums/GlBaseInternalPixelFormat.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Formats.Ktx.Enums
{
diff --git a/src/ImageSharp.Textures/Formats/Ktx/Enums/GlInternalPixelFormat.cs b/src/ImageSharp.Textures/Formats/Ktx/Enums/GlInternalPixelFormat.cs
index b7cb17d8..0597c744 100644
--- a/src/ImageSharp.Textures/Formats/Ktx/Enums/GlInternalPixelFormat.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx/Enums/GlInternalPixelFormat.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Formats.Ktx
{
diff --git a/src/ImageSharp.Textures/Formats/Ktx/Enums/GlPixelFormat.cs b/src/ImageSharp.Textures/Formats/Ktx/Enums/GlPixelFormat.cs
index b0bc2866..c709c886 100644
--- a/src/ImageSharp.Textures/Formats/Ktx/Enums/GlPixelFormat.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx/Enums/GlPixelFormat.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Formats.Ktx
{
diff --git a/src/ImageSharp.Textures/Formats/Ktx/Enums/GlType.cs b/src/ImageSharp.Textures/Formats/Ktx/Enums/GlType.cs
index 851d9919..db933289 100644
--- a/src/ImageSharp.Textures/Formats/Ktx/Enums/GlType.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx/Enums/GlType.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Formats.Ktx.Enums
{
diff --git a/src/ImageSharp.Textures/Formats/Ktx/Enums/KtxEndianness.cs b/src/ImageSharp.Textures/Formats/Ktx/Enums/KtxEndianness.cs
index e25eb849..4864d1ac 100644
--- a/src/ImageSharp.Textures/Formats/Ktx/Enums/KtxEndianness.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx/Enums/KtxEndianness.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Formats.Ktx
{
diff --git a/src/ImageSharp.Textures/Formats/Ktx/IKtxDecoderOptions.cs b/src/ImageSharp.Textures/Formats/Ktx/IKtxDecoderOptions.cs
index f9e31e63..e2b1c398 100644
--- a/src/ImageSharp.Textures/Formats/Ktx/IKtxDecoderOptions.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx/IKtxDecoderOptions.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Formats.Ktx
{
diff --git a/src/ImageSharp.Textures/Formats/Ktx/KtxConfigurationModule.cs b/src/ImageSharp.Textures/Formats/Ktx/KtxConfigurationModule.cs
index 5fbcedf6..81d2de60 100644
--- a/src/ImageSharp.Textures/Formats/Ktx/KtxConfigurationModule.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx/KtxConfigurationModule.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Formats.Ktx
{
diff --git a/src/ImageSharp.Textures/Formats/Ktx/KtxConstants.cs b/src/ImageSharp.Textures/Formats/Ktx/KtxConstants.cs
index a912e0e3..4b2fd316 100644
--- a/src/ImageSharp.Textures/Formats/Ktx/KtxConstants.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx/KtxConstants.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Collections.Generic;
diff --git a/src/ImageSharp.Textures/Formats/Ktx/KtxDecoder.cs b/src/ImageSharp.Textures/Formats/Ktx/KtxDecoder.cs
index 05184f52..4f7aa560 100644
--- a/src/ImageSharp.Textures/Formats/Ktx/KtxDecoder.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx/KtxDecoder.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.IO;
diff --git a/src/ImageSharp.Textures/Formats/Ktx/KtxDecoderCore.cs b/src/ImageSharp.Textures/Formats/Ktx/KtxDecoderCore.cs
index 63fb110f..8a6255bf 100644
--- a/src/ImageSharp.Textures/Formats/Ktx/KtxDecoderCore.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx/KtxDecoderCore.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.IO;
using SixLabors.ImageSharp.Memory;
diff --git a/src/ImageSharp.Textures/Formats/Ktx/KtxFormat.cs b/src/ImageSharp.Textures/Formats/Ktx/KtxFormat.cs
index 17d6c89b..a46ba1af 100644
--- a/src/ImageSharp.Textures/Formats/Ktx/KtxFormat.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx/KtxFormat.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.Collections.Generic;
diff --git a/src/ImageSharp.Textures/Formats/Ktx/KtxHeader.cs b/src/ImageSharp.Textures/Formats/Ktx/KtxHeader.cs
index 63c153a9..0876659a 100644
--- a/src/ImageSharp.Textures/Formats/Ktx/KtxHeader.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx/KtxHeader.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Buffers.Binary;
diff --git a/src/ImageSharp.Textures/Formats/Ktx/KtxImageFormatDetector.cs b/src/ImageSharp.Textures/Formats/Ktx/KtxImageFormatDetector.cs
index 296ad71a..91f54675 100644
--- a/src/ImageSharp.Textures/Formats/Ktx/KtxImageFormatDetector.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx/KtxImageFormatDetector.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
diff --git a/src/ImageSharp.Textures/Formats/Ktx/KtxProcessor.cs b/src/ImageSharp.Textures/Formats/Ktx/KtxProcessor.cs
index 206fd8af..88ac7f20 100644
--- a/src/ImageSharp.Textures/Formats/Ktx/KtxProcessor.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx/KtxProcessor.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Buffers.Binary;
diff --git a/src/ImageSharp.Textures/Formats/Ktx2/Enums/VkFormat.cs b/src/ImageSharp.Textures/Formats/Ktx2/Enums/VkFormat.cs
index 741e06af..a3e89738 100644
--- a/src/ImageSharp.Textures/Formats/Ktx2/Enums/VkFormat.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx2/Enums/VkFormat.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Textures.Formats.Ktx2.Enums
diff --git a/src/ImageSharp.Textures/Formats/Ktx2/IKtx2DecoderOptions.cs b/src/ImageSharp.Textures/Formats/Ktx2/IKtx2DecoderOptions.cs
index 943cde50..b534ff26 100644
--- a/src/ImageSharp.Textures/Formats/Ktx2/IKtx2DecoderOptions.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx2/IKtx2DecoderOptions.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Formats.Ktx2
{
diff --git a/src/ImageSharp.Textures/Formats/Ktx2/Ktx2ConfigurationModule.cs b/src/ImageSharp.Textures/Formats/Ktx2/Ktx2ConfigurationModule.cs
index 6490d5fb..93e05c59 100644
--- a/src/ImageSharp.Textures/Formats/Ktx2/Ktx2ConfigurationModule.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx2/Ktx2ConfigurationModule.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Formats.Ktx2
{
diff --git a/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Constants.cs b/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Constants.cs
index 459270e2..0305799b 100644
--- a/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Constants.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Constants.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Collections.Generic;
diff --git a/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Decoder.cs b/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Decoder.cs
index ea9c2c33..0442a622 100644
--- a/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Decoder.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Decoder.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.IO;
diff --git a/src/ImageSharp.Textures/Formats/Ktx2/Ktx2DecoderCore.cs b/src/ImageSharp.Textures/Formats/Ktx2/Ktx2DecoderCore.cs
index eba5fdf0..6decbef3 100644
--- a/src/ImageSharp.Textures/Formats/Ktx2/Ktx2DecoderCore.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx2/Ktx2DecoderCore.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.IO;
diff --git a/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Format.cs b/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Format.cs
index 78f94c5d..84a6ddf8 100644
--- a/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Format.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Format.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.Collections.Generic;
diff --git a/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Header.cs b/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Header.cs
index 4d5a7ba3..6b380abb 100644
--- a/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Header.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Header.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Buffers.Binary;
@@ -105,7 +105,7 @@ public Ktx2Header(
///
/// Gets the supercompression scheme.
/// supercompressionScheme indicates if a supercompression scheme has been applied to the data in levelImages.
- /// It must be one of the values from Table 2, “Supercompression Schemes”. A value of 0 indicates no supercompression.
+ /// It must be one of the values from Table 2, “Supercompression Schemesâ€. A value of 0 indicates no supercompression.
///
public uint SupercompressionScheme { get; }
@@ -139,7 +139,7 @@ public Ktx2Header(
///
/// Gets the number of bytes of supercompressionGlobalData.
- /// For supercompression schemes for which no reference is provided in the Global Data Format column of Table 2, “Supercompression Schemes”. the value must be 0.
+ /// For supercompression schemes for which no reference is provided in the Global Data Format column of Table 2, “Supercompression Schemesâ€. the value must be 0.
///
public ulong SgdByteLength { get; }
diff --git a/src/ImageSharp.Textures/Formats/Ktx2/Ktx2ImageFormatDetector.cs b/src/ImageSharp.Textures/Formats/Ktx2/Ktx2ImageFormatDetector.cs
index cf4468fe..af99577d 100644
--- a/src/ImageSharp.Textures/Formats/Ktx2/Ktx2ImageFormatDetector.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx2/Ktx2ImageFormatDetector.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
diff --git a/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Processor.cs b/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Processor.cs
index 9522d7a0..4f4923b1 100644
--- a/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Processor.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Processor.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.IO;
diff --git a/src/ImageSharp.Textures/Formats/Ktx2/LevelIndex.cs b/src/ImageSharp.Textures/Formats/Ktx2/LevelIndex.cs
index 5877724a..80d38f6f 100644
--- a/src/ImageSharp.Textures/Formats/Ktx2/LevelIndex.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx2/LevelIndex.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.Runtime.InteropServices;
diff --git a/src/ImageSharp.Textures/Formats/TextureFormatManager.cs b/src/ImageSharp.Textures/Formats/TextureFormatManager.cs
index f9706762..40536326 100644
--- a/src/ImageSharp.Textures/Formats/TextureFormatManager.cs
+++ b/src/ImageSharp.Textures/Formats/TextureFormatManager.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Collections.Concurrent;
diff --git a/src/ImageSharp.Textures/Formats/TextureTypeInfo.cs b/src/ImageSharp.Textures/Formats/TextureTypeInfo.cs
index 9f9ba889..ab632015 100644
--- a/src/ImageSharp.Textures/Formats/TextureTypeInfo.cs
+++ b/src/ImageSharp.Textures/Formats/TextureTypeInfo.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Formats
{
diff --git a/src/ImageSharp.Textures/IConfigurationModule.cs b/src/ImageSharp.Textures/IConfigurationModule.cs
index fd149b6e..13362391 100644
--- a/src/ImageSharp.Textures/IConfigurationModule.cs
+++ b/src/ImageSharp.Textures/IConfigurationModule.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures
{
diff --git a/src/ImageSharp.Textures/IO/IFileSystem.cs b/src/ImageSharp.Textures/IO/IFileSystem.cs
index 197ccb98..a36fd7eb 100644
--- a/src/ImageSharp.Textures/IO/IFileSystem.cs
+++ b/src/ImageSharp.Textures/IO/IFileSystem.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.IO
{
diff --git a/src/ImageSharp.Textures/IO/LocalFileSystem.cs b/src/ImageSharp.Textures/IO/LocalFileSystem.cs
index fd04b76c..1ff7fb9d 100644
--- a/src/ImageSharp.Textures/IO/LocalFileSystem.cs
+++ b/src/ImageSharp.Textures/IO/LocalFileSystem.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.IO
{
diff --git a/src/ImageSharp.Textures/ITexture.cs b/src/ImageSharp.Textures/ITexture.cs
index e1ae4ce6..8c978350 100644
--- a/src/ImageSharp.Textures/ITexture.cs
+++ b/src/ImageSharp.Textures/ITexture.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
diff --git a/src/ImageSharp.Textures/ITextureInfo.cs b/src/ImageSharp.Textures/ITextureInfo.cs
index db63a532..35443f67 100644
--- a/src/ImageSharp.Textures/ITextureInfo.cs
+++ b/src/ImageSharp.Textures/ITextureInfo.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using SixLabors.ImageSharp.Textures.Formats;
diff --git a/src/ImageSharp.Textures/ImageSharp.Textures.csproj b/src/ImageSharp.Textures/ImageSharp.Textures.csproj
index 068d9170..ba8a1bb0 100644
--- a/src/ImageSharp.Textures/ImageSharp.Textures.csproj
+++ b/src/ImageSharp.Textures/ImageSharp.Textures.csproj
@@ -7,7 +7,6 @@
SixLabors.ImageSharp.Textures
SixLabors.ImageSharp.Textures
sixlabors.imagesharp.textures.128.png
- Apache-2.0
https://github.com/SixLabors/ImageSharp.Textures/
$(RepositoryUrl)
Texture Surface BASIS DDS KTX KTX2 ETC1 ETC2 DXT1 DXT3 DXT5 BC5 BC6 BC7
@@ -28,6 +27,7 @@
+
diff --git a/src/ImageSharp.Textures/MipMap.cs b/src/ImageSharp.Textures/MipMap.cs
index 20b78b7f..c0e5a518 100644
--- a/src/ImageSharp.Textures/MipMap.cs
+++ b/src/ImageSharp.Textures/MipMap.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures
{
diff --git a/src/ImageSharp.Textures/MipMap{TBlock}.cs b/src/ImageSharp.Textures/MipMap{TBlock}.cs
index 47abf4a1..9d51b590 100644
--- a/src/ImageSharp.Textures/MipMap{TBlock}.cs
+++ b/src/ImageSharp.Textures/MipMap{TBlock}.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using SixLabors.ImageSharp.Textures.TextureFormats.Decoding;
diff --git a/src/ImageSharp.Textures/PixelFormats/Ayuv.cs b/src/ImageSharp.Textures/PixelFormats/Ayuv.cs
index ef448911..926e1926 100644
--- a/src/ImageSharp.Textures/PixelFormats/Ayuv.cs
+++ b/src/ImageSharp.Textures/PixelFormats/Ayuv.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/ColorSpaceConversion.cs b/src/ImageSharp.Textures/PixelFormats/ColorSpaceConversion.cs
index d81967b9..36f78ee4 100644
--- a/src/ImageSharp.Textures/PixelFormats/ColorSpaceConversion.cs
+++ b/src/ImageSharp.Textures/PixelFormats/ColorSpaceConversion.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/Fp32.cs b/src/ImageSharp.Textures/PixelFormats/Fp32.cs
index 3a42cead..9c84d658 100644
--- a/src/ImageSharp.Textures/PixelFormats/Fp32.cs
+++ b/src/ImageSharp.Textures/PixelFormats/Fp32.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/Generated/Bgr32.cs b/src/ImageSharp.Textures/PixelFormats/Generated/Bgr32.cs
index ec689f22..0aceac2c 100644
--- a/src/ImageSharp.Textures/PixelFormats/Generated/Bgr32.cs
+++ b/src/ImageSharp.Textures/PixelFormats/Generated/Bgr32.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/Generated/Bgr555.cs b/src/ImageSharp.Textures/PixelFormats/Generated/Bgr555.cs
index 0a1c3002..8c77dff3 100644
--- a/src/ImageSharp.Textures/PixelFormats/Generated/Bgr555.cs
+++ b/src/ImageSharp.Textures/PixelFormats/Generated/Bgr555.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/Generated/D32_FLOAT_S8X24_UINT.cs b/src/ImageSharp.Textures/PixelFormats/Generated/D32_FLOAT_S8X24_UINT.cs
index 0b8afd4a..dc3a0096 100644
--- a/src/ImageSharp.Textures/PixelFormats/Generated/D32_FLOAT_S8X24_UINT.cs
+++ b/src/ImageSharp.Textures/PixelFormats/Generated/D32_FLOAT_S8X24_UINT.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/Generated/PixelGenerator.ignore b/src/ImageSharp.Textures/PixelFormats/Generated/PixelGenerator.ignore
index d7cbbf60..1f06e562 100644
--- a/src/ImageSharp.Textures/PixelFormats/Generated/PixelGenerator.ignore
+++ b/src/ImageSharp.Textures/PixelFormats/Generated/PixelGenerator.ignore
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
@@ -187,7 +187,7 @@ namespace SixLabors.ImageSharp.Textures.PixelFormats
}
}
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
@@ -375,7 +375,7 @@ namespace SixLabors.ImageSharp.Textures.PixelFormats
}
}
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
@@ -554,7 +554,7 @@ namespace SixLabors.ImageSharp.Textures.PixelFormats
}
}
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
@@ -733,7 +733,7 @@ namespace SixLabors.ImageSharp.Textures.PixelFormats
}
}
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
@@ -913,7 +913,7 @@ namespace SixLabors.ImageSharp.Textures.PixelFormats
}
}
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
@@ -1089,7 +1089,7 @@ namespace SixLabors.ImageSharp.Textures.PixelFormats
}
}
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
@@ -1259,7 +1259,7 @@ namespace SixLabors.ImageSharp.Textures.PixelFormats
}
}
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
@@ -1429,7 +1429,7 @@ namespace SixLabors.ImageSharp.Textures.PixelFormats
}
}
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
@@ -1605,7 +1605,7 @@ namespace SixLabors.ImageSharp.Textures.PixelFormats
}
}
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
@@ -1782,7 +1782,7 @@ namespace SixLabors.ImageSharp.Textures.PixelFormats
}
}
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
@@ -1961,7 +1961,7 @@ namespace SixLabors.ImageSharp.Textures.PixelFormats
}
}
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/Generated/PixelGenerator.tt b/src/ImageSharp.Textures/PixelFormats/Generated/PixelGenerator.tt
index 1ac67611..4d5b47cc 100644
--- a/src/ImageSharp.Textures/PixelFormats/Generated/PixelGenerator.tt
+++ b/src/ImageSharp.Textures/PixelFormats/Generated/PixelGenerator.tt
@@ -192,7 +192,7 @@
manager.StartNewFile($"{pixelInfo.Name}.cs");
#>// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
<#= Helper.GenerateUsings(pixelInfo) #>
diff --git a/src/ImageSharp.Textures/PixelFormats/Generated/R11G11B10Float.cs b/src/ImageSharp.Textures/PixelFormats/Generated/R11G11B10Float.cs
index 19c9d08e..7816f83a 100644
--- a/src/ImageSharp.Textures/PixelFormats/Generated/R11G11B10Float.cs
+++ b/src/ImageSharp.Textures/PixelFormats/Generated/R11G11B10Float.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/Generated/Rg32Float.cs b/src/ImageSharp.Textures/PixelFormats/Generated/Rg32Float.cs
index 908129d7..8adf7c40 100644
--- a/src/ImageSharp.Textures/PixelFormats/Generated/Rg32Float.cs
+++ b/src/ImageSharp.Textures/PixelFormats/Generated/Rg32Float.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/Generated/Rg64.cs b/src/ImageSharp.Textures/PixelFormats/Generated/Rg64.cs
index 7b04adac..f3d0e333 100644
--- a/src/ImageSharp.Textures/PixelFormats/Generated/Rg64.cs
+++ b/src/ImageSharp.Textures/PixelFormats/Generated/Rg64.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/Generated/Rg64Float.cs b/src/ImageSharp.Textures/PixelFormats/Generated/Rg64Float.cs
index f09b3143..012bfe49 100644
--- a/src/ImageSharp.Textures/PixelFormats/Generated/Rg64Float.cs
+++ b/src/ImageSharp.Textures/PixelFormats/Generated/Rg64Float.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/Generated/Rgb32.cs b/src/ImageSharp.Textures/PixelFormats/Generated/Rgb32.cs
index 769e84df..fd15a77f 100644
--- a/src/ImageSharp.Textures/PixelFormats/Generated/Rgb32.cs
+++ b/src/ImageSharp.Textures/PixelFormats/Generated/Rgb32.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/Generated/Rgb565.cs b/src/ImageSharp.Textures/PixelFormats/Generated/Rgb565.cs
index be62de36..fd8a77e5 100644
--- a/src/ImageSharp.Textures/PixelFormats/Generated/Rgb565.cs
+++ b/src/ImageSharp.Textures/PixelFormats/Generated/Rgb565.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/Generated/Rgb96.cs b/src/ImageSharp.Textures/PixelFormats/Generated/Rgb96.cs
index 34e101e0..c27c7337 100644
--- a/src/ImageSharp.Textures/PixelFormats/Generated/Rgb96.cs
+++ b/src/ImageSharp.Textures/PixelFormats/Generated/Rgb96.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/Generated/Rgb96Float.cs b/src/ImageSharp.Textures/PixelFormats/Generated/Rgb96Float.cs
index f63bef7b..b0ed25a3 100644
--- a/src/ImageSharp.Textures/PixelFormats/Generated/Rgb96Float.cs
+++ b/src/ImageSharp.Textures/PixelFormats/Generated/Rgb96Float.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/Generated/Rgba128.cs b/src/ImageSharp.Textures/PixelFormats/Generated/Rgba128.cs
index 8398c1d3..ce711d98 100644
--- a/src/ImageSharp.Textures/PixelFormats/Generated/Rgba128.cs
+++ b/src/ImageSharp.Textures/PixelFormats/Generated/Rgba128.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/Generated/Rgba128Float.cs b/src/ImageSharp.Textures/PixelFormats/Generated/Rgba128Float.cs
index eab0e6a1..31144602 100644
--- a/src/ImageSharp.Textures/PixelFormats/Generated/Rgba128Float.cs
+++ b/src/ImageSharp.Textures/PixelFormats/Generated/Rgba128Float.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/Generated/Rgba4444.cs b/src/ImageSharp.Textures/PixelFormats/Generated/Rgba4444.cs
index f929bcc5..0cd5e2b8 100644
--- a/src/ImageSharp.Textures/PixelFormats/Generated/Rgba4444.cs
+++ b/src/ImageSharp.Textures/PixelFormats/Generated/Rgba4444.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/Generated/Rgba5551.cs b/src/ImageSharp.Textures/PixelFormats/Generated/Rgba5551.cs
index d5914b06..7af7e4b8 100644
--- a/src/ImageSharp.Textures/PixelFormats/Generated/Rgba5551.cs
+++ b/src/ImageSharp.Textures/PixelFormats/Generated/Rgba5551.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/Generated/Rgba64Float.cs b/src/ImageSharp.Textures/PixelFormats/Generated/Rgba64Float.cs
index 045bb8c9..057c58e4 100644
--- a/src/ImageSharp.Textures/PixelFormats/Generated/Rgba64Float.cs
+++ b/src/ImageSharp.Textures/PixelFormats/Generated/Rgba64Float.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/L32.cs b/src/ImageSharp.Textures/PixelFormats/L32.cs
index 0c3e37b4..b6e4c992 100644
--- a/src/ImageSharp.Textures/PixelFormats/L32.cs
+++ b/src/ImageSharp.Textures/PixelFormats/L32.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.Numerics;
using System.Runtime.CompilerServices;
diff --git a/src/ImageSharp.Textures/PixelFormats/R16Float.cs b/src/ImageSharp.Textures/PixelFormats/R16Float.cs
index b7d74a5f..ac554ab3 100644
--- a/src/ImageSharp.Textures/PixelFormats/R16Float.cs
+++ b/src/ImageSharp.Textures/PixelFormats/R16Float.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/Rg16.cs b/src/ImageSharp.Textures/PixelFormats/Rg16.cs
index 980f43d7..5fc69316 100644
--- a/src/ImageSharp.Textures/PixelFormats/Rg16.cs
+++ b/src/ImageSharp.Textures/PixelFormats/Rg16.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/Rg32.cs b/src/ImageSharp.Textures/PixelFormats/Rg32.cs
index 81646514..34da70b4 100644
--- a/src/ImageSharp.Textures/PixelFormats/Rg32.cs
+++ b/src/ImageSharp.Textures/PixelFormats/Rg32.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/Y410.cs b/src/ImageSharp.Textures/PixelFormats/Y410.cs
index 07b17dde..33ad854c 100644
--- a/src/ImageSharp.Textures/PixelFormats/Y410.cs
+++ b/src/ImageSharp.Textures/PixelFormats/Y410.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/PixelFormats/Y416.cs b/src/ImageSharp.Textures/PixelFormats/Y416.cs
index fb65ec3b..6203af0e 100644
--- a/src/ImageSharp.Textures/PixelFormats/Y416.cs
+++ b/src/ImageSharp.Textures/PixelFormats/Y416.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/Texture.Decode.cs b/src/ImageSharp.Textures/Texture.Decode.cs
index 2b7ea4b9..c3a63b16 100644
--- a/src/ImageSharp.Textures/Texture.Decode.cs
+++ b/src/ImageSharp.Textures/Texture.Decode.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.IO;
diff --git a/src/ImageSharp.Textures/Texture.FromBytes.cs b/src/ImageSharp.Textures/Texture.FromBytes.cs
index aacc72b6..be436dfc 100644
--- a/src/ImageSharp.Textures/Texture.FromBytes.cs
+++ b/src/ImageSharp.Textures/Texture.FromBytes.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.IO;
diff --git a/src/ImageSharp.Textures/Texture.FromFile.cs b/src/ImageSharp.Textures/Texture.FromFile.cs
index 02761d72..9e0e5f47 100644
--- a/src/ImageSharp.Textures/Texture.FromFile.cs
+++ b/src/ImageSharp.Textures/Texture.FromFile.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.IO;
diff --git a/src/ImageSharp.Textures/Texture.FromStream.cs b/src/ImageSharp.Textures/Texture.FromStream.cs
index ce9db697..f9b37952 100644
--- a/src/ImageSharp.Textures/Texture.FromStream.cs
+++ b/src/ImageSharp.Textures/Texture.FromStream.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Collections.Generic;
diff --git a/src/ImageSharp.Textures/Texture.cs b/src/ImageSharp.Textures/Texture.cs
index 9484e76f..c4f97e47 100644
--- a/src/ImageSharp.Textures/Texture.cs
+++ b/src/ImageSharp.Textures/Texture.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
diff --git a/src/ImageSharp.Textures/TextureFormats/CubemapTexture.cs b/src/ImageSharp.Textures/TextureFormats/CubemapTexture.cs
index 0dac1068..b39ff3dc 100644
--- a/src/ImageSharp.Textures/TextureFormats/CubemapTexture.cs
+++ b/src/ImageSharp.Textures/TextureFormats/CubemapTexture.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/A8.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/A8.cs
index b247cad7..98be4a8d 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/A8.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/A8.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Ayuv.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Ayuv.cs
index 344db710..7277cba0 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Ayuv.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Ayuv.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc4.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc4.cs
index 8b55a521..e650a487 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc4.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc4.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.Runtime.CompilerServices;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc4s.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc4s.cs
index da7992ef..6b2f6ec2 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc4s.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc4s.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.Runtime.CompilerServices;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc5.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc5.cs
index b9dafe6d..6075a476 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc5.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc5.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Runtime.CompilerServices;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc5s.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc5s.cs
index d6175b3f..1592b8aa 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc5s.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc5s.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6h.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6h.cs
index 5e99a491..1280b439 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6h.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6h.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Diagnostics;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hEField.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hEField.cs
index 7be85a59..fd26730b 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hEField.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hEField.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hModeDescriptor.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hModeDescriptor.cs
index d02b3fe1..3bc2f8b0 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hModeDescriptor.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hModeDescriptor.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hModeInfo.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hModeInfo.cs
index 2d3bf635..4a460cee 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hModeInfo.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hModeInfo.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using SixLabors.ImageSharp.Textures.TextureFormats.Decoding.PixelFormats;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hs.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hs.cs
index 694d618a..d2be6968 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hs.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hs.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Diagnostics;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hsModeDescriptor.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hsModeDescriptor.cs
index 72cbc7c1..97e2fd81 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hsModeDescriptor.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hsModeDescriptor.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hsModeInfo.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hsModeInfo.cs
index 034b88f0..0c9047ec 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hsModeInfo.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc6hsModeInfo.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using SixLabors.ImageSharp.Textures.TextureFormats.Decoding.PixelFormats;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc7.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc7.cs
index 66e7184f..60633226 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc7.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc7.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Diagnostics;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc7ModeInfo.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc7ModeInfo.cs
index ad6a07c4..e3debea2 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Bc7ModeInfo.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Bc7ModeInfo.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using SixLabors.ImageSharp.Textures.TextureFormats.Decoding.PixelFormats;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Bgr24.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Bgr24.cs
index 88e8597e..d349a910 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Bgr24.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Bgr24.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Bgr32.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Bgr32.cs
index 1d91d2b0..b3374cec 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Bgr32.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Bgr32.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Bgr555.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Bgr555.cs
index 053b3899..1d0ddbeb 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Bgr555.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Bgr555.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Bgr565.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Bgr565.cs
index 56604bc8..e8d1ee2c 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Bgr565.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Bgr565.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Bgra16.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Bgra16.cs
index 436fee96..0ff94436 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Bgra16.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Bgra16.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Bgra32.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Bgra32.cs
index 7e24ee03..a2f5e85f 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Bgra32.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Bgra32.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Bgra4444.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Bgra4444.cs
index bf730beb..97b67963 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Bgra4444.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Bgra4444.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Bgra5551.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Bgra5551.cs
index 4ae23b73..a52919ec 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Bgra5551.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Bgra5551.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Dxt1.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Dxt1.cs
index 3ec5680f..73459010 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Dxt1.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Dxt1.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using SixLabors.ImageSharp.Textures.Common.Helpers;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Dxt3.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Dxt3.cs
index b30f6a91..aa72f765 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Dxt3.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Dxt3.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using SixLabors.ImageSharp.Textures.Common.Helpers;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Dxt5.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Dxt5.cs
index 3bddba5d..d796401b 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Dxt5.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Dxt5.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using SixLabors.ImageSharp.Textures.Common.Helpers;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Etc1.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Etc1.cs
index aa52afaa..7ce1acb3 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Etc1.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Etc1.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Etc2.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Etc2.cs
index d7efc80d..0b59fa38 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Etc2.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Etc2.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/EtcDecoder.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/EtcDecoder.cs
index 89d78231..be1d1b2f 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/EtcDecoder.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/EtcDecoder.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Buffers.Binary;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Fp32.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Fp32.cs
index e152d960..2e5d5538 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Fp32.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Fp32.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Grgb32.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Grgb32.cs
index c81fb12c..bf02c556 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Grgb32.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Grgb32.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Runtime.InteropServices;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Helper.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Helper.cs
index 1e998842..e755cc84 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Helper.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Helper.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Runtime.CompilerServices;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/IBlock.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/IBlock.cs
index 41e855cb..99edf380 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/IBlock.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/IBlock.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/IBlock{TSelf}.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/IBlock{TSelf}.cs
index 0e5f1ade..d656dc1f 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/IBlock{TSelf}.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/IBlock{TSelf}.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/L16.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/L16.cs
index 1029ef59..8951fa6a 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/L16.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/L16.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/L32.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/L32.cs
index 1e204872..32813f6e 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/L32.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/L32.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/L8.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/L8.cs
index a537953c..e43d7d8c 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/L8.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/L8.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/La16.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/La16.cs
index 892f64cb..98aa5ff9 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/La16.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/La16.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/PixelFormats/Constants.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/PixelFormats/Constants.cs
index a73e0af7..60fc7929 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/PixelFormats/Constants.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/PixelFormats/Constants.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
// ReSharper disable InconsistentNaming
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding.PixelFormats
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/PixelFormats/Helpers.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/PixelFormats/Helpers.cs
index 53eb2eca..0b3ce4f6 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/PixelFormats/Helpers.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/PixelFormats/Helpers.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/PixelFormats/IntColor.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/PixelFormats/IntColor.cs
index 7a927761..7bceb861 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/PixelFormats/IntColor.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/PixelFormats/IntColor.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding.PixelFormats
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/PixelFormats/IntEndPntPair.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/PixelFormats/IntEndPntPair.cs
index 3d3fb964..50dd10d2 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/PixelFormats/IntEndPntPair.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/PixelFormats/IntEndPntPair.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding.PixelFormats
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/PixelFormats/LdrColorA.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/PixelFormats/LdrColorA.cs
index 86c9749e..dbee6816 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/PixelFormats/LdrColorA.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/PixelFormats/LdrColorA.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Diagnostics;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/R16Float.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/R16Float.cs
index 53dedaa9..6701581e 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/R16Float.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/R16Float.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Rg16.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Rg16.cs
index ed692c94..a9747f05 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Rg16.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Rg16.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Rg32.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Rg32.cs
index 5284935d..f3df0a7a 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Rg32.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Rg32.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Rg32Float.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Rg32Float.cs
index 06fe416d..b8253623 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Rg32Float.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Rg32Float.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Rg64.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Rg64.cs
index e00b5f9d..ef5cacb5 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Rg64.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Rg64.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Rg64Float.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Rg64Float.cs
index b4c04828..216a1b98 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Rg64Float.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Rg64Float.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb111110Float.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb111110Float.cs
index 0f5ec84b..2eed5248 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb111110Float.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb111110Float.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb24.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb24.cs
index 8d473183..905cfd88 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb24.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb24.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb32.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb32.cs
index 2c0934ae..76f4a805 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb32.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb32.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb48.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb48.cs
index e95016f1..70de61eb 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb48.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb48.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb565.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb565.cs
index 7ddbde1e..7d245e86 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb565.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb565.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb96.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb96.cs
index b6953858..5e3557b5 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb96.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb96.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb96Float.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb96Float.cs
index 76d6a6d6..0260a2f3 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb96Float.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgb96Float.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba1010102.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba1010102.cs
index 47b2b3f5..c1fab15c 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba1010102.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba1010102.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba128.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba128.cs
index d5ed7c52..06bfe861 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba128.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba128.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba128Float.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba128Float.cs
index c89d1f6f..2e2329d1 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba128Float.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba128Float.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba32.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba32.cs
index 11a95c6f..af7859ec 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba32.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba32.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba4444.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba4444.cs
index 0fefba7f..25a1c4d1 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba4444.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba4444.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba5551.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba5551.cs
index 4cf37e9c..8e560232 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba5551.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba5551.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba64.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba64.cs
index f092a81e..10228960 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba64.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba64.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba64Float.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba64Float.cs
index 6006b55d..ec517a81 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba64Float.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgba64Float.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using SixLabors.ImageSharp.Textures.PixelFormats;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgbg32.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgbg32.cs
index c9b5e020..71612c4e 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Rgbg32.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Rgbg32.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Runtime.InteropServices;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Y210.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Y210.cs
index 0b9a087d..e924fc33 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Y210.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Y210.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Y216.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Y216.cs
index 50e3ae06..88e09459 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Y216.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Y216.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Y410.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Y410.cs
index 2f6b79b6..6679bb72 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Y410.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Y410.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Y416.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Y416.cs
index 36b9f094..aee555b6 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Y416.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Y416.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.TextureFormats.Decoding
{
diff --git a/src/ImageSharp.Textures/TextureFormats/Decoding/Yuy2.cs b/src/ImageSharp.Textures/TextureFormats/Decoding/Yuy2.cs
index 8e92061f..275e52e1 100644
--- a/src/ImageSharp.Textures/TextureFormats/Decoding/Yuy2.cs
+++ b/src/ImageSharp.Textures/TextureFormats/Decoding/Yuy2.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/src/ImageSharp.Textures/TextureFormats/FlatTexture.cs b/src/ImageSharp.Textures/TextureFormats/FlatTexture.cs
index 2de5b482..e94dea0f 100644
--- a/src/ImageSharp.Textures/TextureFormats/FlatTexture.cs
+++ b/src/ImageSharp.Textures/TextureFormats/FlatTexture.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Collections.Generic;
diff --git a/src/ImageSharp.Textures/TextureFormats/VolumeTexture.cs b/src/ImageSharp.Textures/TextureFormats/VolumeTexture.cs
index 33b259eb..a4b3e4dd 100644
--- a/src/ImageSharp.Textures/TextureFormats/VolumeTexture.cs
+++ b/src/ImageSharp.Textures/TextureFormats/VolumeTexture.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Collections.Generic;
diff --git a/src/ImageSharp.Textures/TextureInfo.cs b/src/ImageSharp.Textures/TextureInfo.cs
index 18afae29..53f8e83b 100644
--- a/src/ImageSharp.Textures/TextureInfo.cs
+++ b/src/ImageSharp.Textures/TextureInfo.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using SixLabors.ImageSharp.Textures.Formats;
diff --git a/tests/ImageSharp.Textures.Benchmarks/Config.cs b/tests/ImageSharp.Textures.Benchmarks/Config.cs
index cf49f513..f57970ad 100644
--- a/tests/ImageSharp.Textures.Benchmarks/Config.cs
+++ b/tests/ImageSharp.Textures.Benchmarks/Config.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using BenchmarkDotNet.Configs;
using BenchmarkDotNet.Diagnosers;
diff --git a/tests/ImageSharp.Textures.Benchmarks/Program.cs b/tests/ImageSharp.Textures.Benchmarks/Program.cs
index aa5861a4..287b56e1 100644
--- a/tests/ImageSharp.Textures.Benchmarks/Program.cs
+++ b/tests/ImageSharp.Textures.Benchmarks/Program.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.Reflection;
using BenchmarkDotNet.Running;
diff --git a/tests/ImageSharp.Textures.InteractiveTest/ApplicationManager.cs b/tests/ImageSharp.Textures.InteractiveTest/ApplicationManager.cs
index e497088b..f1e71471 100644
--- a/tests/ImageSharp.Textures.InteractiveTest/ApplicationManager.cs
+++ b/tests/ImageSharp.Textures.InteractiveTest/ApplicationManager.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Collections.Generic;
diff --git a/tests/ImageSharp.Textures.InteractiveTest/Extensions.cs b/tests/ImageSharp.Textures.InteractiveTest/Extensions.cs
index 46c07287..f342e50d 100644
--- a/tests/ImageSharp.Textures.InteractiveTest/Extensions.cs
+++ b/tests/ImageSharp.Textures.InteractiveTest/Extensions.cs
@@ -1,5 +1,5 @@
-// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Copyright (c) Six Labors.
+// Licensed under the Six Labors Split License.
using System;
using System.Collections.Generic;
diff --git a/tests/ImageSharp.Textures.InteractiveTest/Program.cs b/tests/ImageSharp.Textures.InteractiveTest/Program.cs
index 774ccf63..759c1b70 100644
--- a/tests/ImageSharp.Textures.InteractiveTest/Program.cs
+++ b/tests/ImageSharp.Textures.InteractiveTest/Program.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using ImGuiNET;
diff --git a/tests/ImageSharp.Textures.InteractiveTest/ResourceLoader.cs b/tests/ImageSharp.Textures.InteractiveTest/ResourceLoader.cs
index 4b163e6a..f7ab619a 100644
--- a/tests/ImageSharp.Textures.InteractiveTest/ResourceLoader.cs
+++ b/tests/ImageSharp.Textures.InteractiveTest/ResourceLoader.cs
@@ -1,5 +1,5 @@
-// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Copyright (c) Six Labors.
+// Licensed under the Six Labors Split License.
using System;
using System.IO;
diff --git a/tests/ImageSharp.Textures.InteractiveTest/UI/Button.cs b/tests/ImageSharp.Textures.InteractiveTest/UI/Button.cs
index 4cbc0c50..c163405e 100644
--- a/tests/ImageSharp.Textures.InteractiveTest/UI/Button.cs
+++ b/tests/ImageSharp.Textures.InteractiveTest/UI/Button.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/tests/ImageSharp.Textures.InteractiveTest/UI/MenuBar.cs b/tests/ImageSharp.Textures.InteractiveTest/UI/MenuBar.cs
index 1a99c3af..37b9606b 100644
--- a/tests/ImageSharp.Textures.InteractiveTest/UI/MenuBar.cs
+++ b/tests/ImageSharp.Textures.InteractiveTest/UI/MenuBar.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using ImGuiNET;
diff --git a/tests/ImageSharp.Textures.InteractiveTest/UI/TitleBar.cs b/tests/ImageSharp.Textures.InteractiveTest/UI/TitleBar.cs
index e97b800a..ad93a5f0 100644
--- a/tests/ImageSharp.Textures.InteractiveTest/UI/TitleBar.cs
+++ b/tests/ImageSharp.Textures.InteractiveTest/UI/TitleBar.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.Numerics;
using ImGuiNET;
diff --git a/tests/ImageSharp.Textures.InteractiveTest/UI/Widgets.cs b/tests/ImageSharp.Textures.InteractiveTest/UI/Widgets.cs
index ffee53ef..453ae269 100644
--- a/tests/ImageSharp.Textures.InteractiveTest/UI/Widgets.cs
+++ b/tests/ImageSharp.Textures.InteractiveTest/UI/Widgets.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/tests/ImageSharp.Textures.InteractiveTest/UI/Wizard.cs b/tests/ImageSharp.Textures.InteractiveTest/UI/Wizard.cs
index b1a83d1c..fc48ce38 100644
--- a/tests/ImageSharp.Textures.InteractiveTest/UI/Wizard.cs
+++ b/tests/ImageSharp.Textures.InteractiveTest/UI/Wizard.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Numerics;
diff --git a/tests/ImageSharp.Textures.InteractiveTest/UI/WizardPage.cs b/tests/ImageSharp.Textures.InteractiveTest/UI/WizardPage.cs
index 7ec98a04..2563785f 100644
--- a/tests/ImageSharp.Textures.InteractiveTest/UI/WizardPage.cs
+++ b/tests/ImageSharp.Textures.InteractiveTest/UI/WizardPage.cs
@@ -1,5 +1,5 @@
-// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Copyright (c) Six Labors.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.InteractiveTest.UI
{
diff --git a/tests/ImageSharp.Textures.InteractiveTest/UI/WizardPages/Preview.cs b/tests/ImageSharp.Textures.InteractiveTest/UI/WizardPages/Preview.cs
index a204bd09..81384eee 100644
--- a/tests/ImageSharp.Textures.InteractiveTest/UI/WizardPages/Preview.cs
+++ b/tests/ImageSharp.Textures.InteractiveTest/UI/WizardPages/Preview.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Collections.Generic;
diff --git a/tests/ImageSharp.Textures.InteractiveTest/UI/WizardPages/Welcome.cs b/tests/ImageSharp.Textures.InteractiveTest/UI/WizardPages/Welcome.cs
index e2a5db92..893a9cd7 100644
--- a/tests/ImageSharp.Textures.InteractiveTest/UI/WizardPages/Welcome.cs
+++ b/tests/ImageSharp.Textures.InteractiveTest/UI/WizardPages/Welcome.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using ImGuiNET;
diff --git a/tests/ImageSharp.Textures.InteractiveTest/UIManager.cs b/tests/ImageSharp.Textures.InteractiveTest/UIManager.cs
index 6e2bbd0f..9abaf4df 100644
--- a/tests/ImageSharp.Textures.InteractiveTest/UIManager.cs
+++ b/tests/ImageSharp.Textures.InteractiveTest/UIManager.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.Numerics;
using ImGuiNET;
diff --git a/tests/ImageSharp.Textures.Tests/Enums/TestTextureFormat.cs b/tests/ImageSharp.Textures.Tests/Enums/TestTextureFormat.cs
index 8c954257..f737c793 100644
--- a/tests/ImageSharp.Textures.Tests/Enums/TestTextureFormat.cs
+++ b/tests/ImageSharp.Textures.Tests/Enums/TestTextureFormat.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Tests.Enums
{
diff --git a/tests/ImageSharp.Textures.Tests/Enums/TestTextureTool.cs b/tests/ImageSharp.Textures.Tests/Enums/TestTextureTool.cs
index ce73a8b3..169d4daf 100644
--- a/tests/ImageSharp.Textures.Tests/Enums/TestTextureTool.cs
+++ b/tests/ImageSharp.Textures.Tests/Enums/TestTextureTool.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Tests.Enums
{
diff --git a/tests/ImageSharp.Textures.Tests/Enums/TestTextureType.cs b/tests/ImageSharp.Textures.Tests/Enums/TestTextureType.cs
index 7c229f8f..d550f166 100644
--- a/tests/ImageSharp.Textures.Tests/Enums/TestTextureType.cs
+++ b/tests/ImageSharp.Textures.Tests/Enums/TestTextureType.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Tests.Enums
{
diff --git a/tests/ImageSharp.Textures.Tests/Formats/Dds/DdsDecoderCubemapTests.cs b/tests/ImageSharp.Textures.Tests/Formats/Dds/DdsDecoderCubemapTests.cs
index 683fb687..aed5e795 100644
--- a/tests/ImageSharp.Textures.Tests/Formats/Dds/DdsDecoderCubemapTests.cs
+++ b/tests/ImageSharp.Textures.Tests/Formats/Dds/DdsDecoderCubemapTests.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using SixLabors.ImageSharp.Textures.Formats.Dds;
using SixLabors.ImageSharp.Textures.Tests.Enums;
diff --git a/tests/ImageSharp.Textures.Tests/Formats/Dds/DdsDecoderFlatTests.cs b/tests/ImageSharp.Textures.Tests/Formats/Dds/DdsDecoderFlatTests.cs
index d79de4e8..1186142b 100644
--- a/tests/ImageSharp.Textures.Tests/Formats/Dds/DdsDecoderFlatTests.cs
+++ b/tests/ImageSharp.Textures.Tests/Formats/Dds/DdsDecoderFlatTests.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using SixLabors.ImageSharp.Textures.Formats.Dds;
diff --git a/tests/ImageSharp.Textures.Tests/Formats/Dds/DdsDecoderTexConvFlatTests.cs b/tests/ImageSharp.Textures.Tests/Formats/Dds/DdsDecoderTexConvFlatTests.cs
index def1c2b5..e2ad3379 100644
--- a/tests/ImageSharp.Textures.Tests/Formats/Dds/DdsDecoderTexConvFlatTests.cs
+++ b/tests/ImageSharp.Textures.Tests/Formats/Dds/DdsDecoderTexConvFlatTests.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using SixLabors.ImageSharp.Textures.Formats.Dds;
diff --git a/tests/ImageSharp.Textures.Tests/Formats/Dds/DdsDecoderVolumeTests.cs b/tests/ImageSharp.Textures.Tests/Formats/Dds/DdsDecoderVolumeTests.cs
index 49dbf5ca..0a3f897b 100644
--- a/tests/ImageSharp.Textures.Tests/Formats/Dds/DdsDecoderVolumeTests.cs
+++ b/tests/ImageSharp.Textures.Tests/Formats/Dds/DdsDecoderVolumeTests.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using SixLabors.ImageSharp.Textures.Formats.Dds;
using SixLabors.ImageSharp.Textures.Tests.Enums;
diff --git a/tests/ImageSharp.Textures.Tests/Formats/Ktx/KtxDecoderTests.cs b/tests/ImageSharp.Textures.Tests/Formats/Ktx/KtxDecoderTests.cs
index f7f01dec..1fbacc67 100644
--- a/tests/ImageSharp.Textures.Tests/Formats/Ktx/KtxDecoderTests.cs
+++ b/tests/ImageSharp.Textures.Tests/Formats/Ktx/KtxDecoderTests.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Textures.Formats.Ktx;
diff --git a/tests/ImageSharp.Textures.Tests/Formats/PixelFormat/PixelFormatTests.cs b/tests/ImageSharp.Textures.Tests/Formats/PixelFormat/PixelFormatTests.cs
index 660f2d8e..94248989 100644
--- a/tests/ImageSharp.Textures.Tests/Formats/PixelFormat/PixelFormatTests.cs
+++ b/tests/ImageSharp.Textures.Tests/Formats/PixelFormat/PixelFormatTests.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using SixLabors.ImageSharp.Textures.PixelFormats;
using Xunit;
diff --git a/tests/ImageSharp.Textures.Tests/TestFile.cs b/tests/ImageSharp.Textures.Tests/TestFile.cs
index 5630c5cf..bc4c0ce5 100644
--- a/tests/ImageSharp.Textures.Tests/TestFile.cs
+++ b/tests/ImageSharp.Textures.Tests/TestFile.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Collections.Concurrent;
diff --git a/tests/ImageSharp.Textures.Tests/TestImages.cs b/tests/ImageSharp.Textures.Tests/TestImages.cs
index c2123db5..d3df36c1 100644
--- a/tests/ImageSharp.Textures.Tests/TestImages.cs
+++ b/tests/ImageSharp.Textures.Tests/TestImages.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Tests
{
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/Attributes/GroupOutputAttribute.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/Attributes/GroupOutputAttribute.cs
index 245fa9da..cb024df6 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/Attributes/GroupOutputAttribute.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/Attributes/GroupOutputAttribute.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/Attributes/WithFileAttribute.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/Attributes/WithFileAttribute.cs
index 43611102..fe06bc51 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/Attributes/WithFileAttribute.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/Attributes/WithFileAttribute.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Collections.Generic;
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/ExactImageComparer.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/ExactImageComparer.cs
index 4b39d16d..3035fad6 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/ExactImageComparer.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/ExactImageComparer.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Collections.Generic;
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/Exceptions/ImageDimensionsMismatchException.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/Exceptions/ImageDimensionsMismatchException.cs
index 080ea320..f59af42a 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/Exceptions/ImageDimensionsMismatchException.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/Exceptions/ImageDimensionsMismatchException.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Tests.TestUtilities.ImageComparison.Exceptions
{
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/Exceptions/ImagesSimilarityException.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/Exceptions/ImagesSimilarityException.cs
index 37f38465..38c0454a 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/Exceptions/ImagesSimilarityException.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/Exceptions/ImagesSimilarityException.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Tests.TestUtilities.ImageComparison.Exceptions
{
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/ImageComparer.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/ImageComparer.cs
index 6b94fb11..d79105b2 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/ImageComparer.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/ImageComparer.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.Collections.Generic;
using System.Linq;
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/ImageSimilarityReport.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/ImageSimilarityReport.cs
index f0d6b1b3..cfa96547 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/ImageSimilarityReport.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/ImageSimilarityReport.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Collections.Generic;
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/PixelDifference.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/PixelDifference.cs
index d6676725..46153a6f 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/PixelDifference.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/PixelDifference.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.Numerics;
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/TolerantImageComparer.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/TolerantImageComparer.cs
index f2fb1f4c..b7d56592 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/TolerantImageComparer.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageComparison/TolerantImageComparer.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Collections.Generic;
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageProviders/FileProvider.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageProviders/FileProvider.cs
index 46e65090..6e04d293 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageProviders/FileProvider.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageProviders/FileProvider.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.Collections.Concurrent;
using System.Reflection;
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageProviders/ITestImageProvider.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageProviders/ITestImageProvider.cs
index 5345635a..5ff70bdf 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageProviders/ITestImageProvider.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageProviders/ITestImageProvider.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Tests.TestUtilities.ImageProviders
{
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageProviders/TestImageProvider.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageProviders/TestImageProvider.cs
index d6ef180e..34769228 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/ImageProviders/TestImageProvider.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/ImageProviders/TestImageProvider.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Reflection;
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/ImagingTestCaseUtility.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/ImagingTestCaseUtility.cs
index 8d80d407..769816da 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/ImagingTestCaseUtility.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/ImagingTestCaseUtility.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Collections.Generic;
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/PixelTypes.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/PixelTypes.cs
index 8bc6b36a..6499cf5f 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/PixelTypes.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/PixelTypes.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/TestEnvironment.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/TestEnvironment.cs
index 3459765f..bc01a8be 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/TestEnvironment.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/TestEnvironment.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Diagnostics;
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/TestImageExtensions.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/TestImageExtensions.cs
index 14941eea..5218853d 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/TestImageExtensions.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/TestImageExtensions.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.IO;
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/TestUtils.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/TestUtils.cs
index 11503af8..cd3e4c62 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/TestUtils.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/TestUtils.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.Collections.Generic;
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/TextureProviders/ITestTextureProvider.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/TextureProviders/ITestTextureProvider.cs
index c3138e43..757107c3 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/TextureProviders/ITestTextureProvider.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/TextureProviders/ITestTextureProvider.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using SixLabors.ImageSharp.Textures.Tests.Enums;
diff --git a/tests/ImageSharp.Textures.Tests/TestUtilities/TextureProviders/TestTextureProvider.cs b/tests/ImageSharp.Textures.Tests/TestUtilities/TextureProviders/TestTextureProvider.cs
index e95bf95d..f6431e70 100644
--- a/tests/ImageSharp.Textures.Tests/TestUtilities/TextureProviders/TestTextureProvider.cs
+++ b/tests/ImageSharp.Textures.Tests/TestUtilities/TextureProviders/TestTextureProvider.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System.IO;
using System.Text;
diff --git a/tests/Images/TestEnvironment.cs b/tests/Images/TestEnvironment.cs
index ad20951a..73c81894 100644
--- a/tests/Images/TestEnvironment.cs
+++ b/tests/Images/TestEnvironment.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
using System;
using System.IO;
diff --git a/tests/Images/TestTextures.cs b/tests/Images/TestTextures.cs
index 83277dee..6f57d93d 100644
--- a/tests/Images/TestTextures.cs
+++ b/tests/Images/TestTextures.cs
@@ -1,5 +1,5 @@
// Copyright (c) Six Labors.
-// Licensed under the Apache License, Version 2.0.
+// Licensed under the Six Labors Split License.
namespace SixLabors.ImageSharp.Textures.Tests
{
From c59e7e06249b2acc793c2a05ad02438168a7270d Mon Sep 17 00:00:00 2001
From: Erik White <26148654+Erik-White@users.noreply.github.com>
Date: Fri, 17 Oct 2025 13:23:39 +0200
Subject: [PATCH 06/21] Fix general build errors
---
.../Formats/Dds/DdsProcessor.cs | 259 ++++++++----------
.../Formats/ITextureFormatManager.cs | 5 +-
.../Formats/Ktx/KtxHeader.cs | 2 +-
.../Formats/Ktx2/Ktx2Header.cs | 2 +-
.../Formats/Ktx2/Ktx2Processor.cs | 142 +++++-----
.../Formats/TextureFormatManager.cs | 5 +-
src/ImageSharp.Textures/PixelFormats/Ayuv.cs | 34 ++-
src/ImageSharp.Textures/PixelFormats/Fp32.cs | 41 ++-
.../Generated/D32_FLOAT_S8X24_UINT.cs | 2 +
src/ImageSharp.Textures/PixelFormats/Y410.cs | 27 +-
src/ImageSharp.Textures/PixelFormats/Y416.cs | 27 +-
src/ImageSharp.Textures/Texture.FromStream.cs | 5 +-
.../TextureFormats/CubemapTexture.cs | 7 +-
.../TextureFormats/Decoding/Bc4.cs | 2 +-
.../TextureFormats/Decoding/Bc4s.cs | 2 +-
.../TextureFormats/Decoding/Bc5.cs | 2 +-
.../TextureFormats/Decoding/Bc5s.cs | 2 +-
.../TextureFormats/Decoding/Bc6h.cs | 2 +-
.../TextureFormats/Decoding/Bc6hs.cs | 2 +-
.../TextureFormats/Decoding/Bc7.cs | 2 +-
.../TextureFormats/Decoding/Dxt1.cs | 2 +-
.../TextureFormats/Decoding/Dxt3.cs | 2 +-
.../TextureFormats/Decoding/Dxt5.cs | 2 +-
.../TextureFormats/Decoding/EtcDecoder.cs | 2 +-
.../Decoding/PixelFormats/LdrColorA.cs | 24 +-
.../TextureFormats/FlatTexture.cs | 7 +-
.../TextureFormats/VolumeTexture.cs | 7 +-
.../Formats/PixelFormat/PixelFormatTests.cs | 11 +-
.../Attributes/GroupOutputAttribute.cs | 1 +
.../Attributes/WithFileAttribute.cs | 7 +-
.../ImageComparison/ImageComparer.cs | 12 +-
.../ImageComparison/ImageSimilarityReport.cs | 13 +-
.../ImageComparison/TolerantImageComparer.cs | 3 +-
.../ImageProviders/FileProvider.cs | 6 +-
.../ImageProviders/TestImageProvider.cs | 9 +-
.../TestUtilities/ImagingTestCaseUtility.cs | 56 +---
.../TextureProviders/TestTextureProvider.cs | 21 +-
tests/Images/TestEnvironment.cs | 4 +-
38 files changed, 386 insertions(+), 375 deletions(-)
diff --git a/src/ImageSharp.Textures/Formats/Dds/DdsProcessor.cs b/src/ImageSharp.Textures/Formats/Dds/DdsProcessor.cs
index 60a51cc3..73508b9a 100644
--- a/src/ImageSharp.Textures/Formats/Dds/DdsProcessor.cs
+++ b/src/ImageSharp.Textures/Formats/Dds/DdsProcessor.cs
@@ -10,6 +10,8 @@
using Fp32 = SixLabors.ImageSharp.Textures.TextureFormats.Decoding.Fp32;
using L32 = SixLabors.ImageSharp.Textures.TextureFormats.Decoding.L32;
+#nullable enable
+
namespace SixLabors.ImageSharp.Textures.Formats.Dds
{
///
@@ -50,83 +52,58 @@ public MipMap[] DecodeDds(Stream stream, int width, int height, int count)
{
Guard.MustBeGreaterThan(count, 0, nameof(count));
- switch (this.DdsHeader.PixelFormat.FourCC)
+ return this.DdsHeader.PixelFormat.FourCC switch
{
- case DdsFourCc.None:
- case DdsFourCc.R16FLOAT:
- case DdsFourCc.R16G16FLOAT:
- case DdsFourCc.R16G16B16A16SNORM:
- case DdsFourCc.R16G16B16A16UNORM:
- case DdsFourCc.R16G16B16A16FLOAT:
- case DdsFourCc.R32FLOAT:
- case DdsFourCc.R32G32FLOAT:
- case DdsFourCc.R32G32B32A32FLOAT:
- case DdsFourCc.YUY2:
- case DdsFourCc.RGBG:
- case DdsFourCc.GRGB:
- return this.ProcessUncompressed(stream, width, height, count);
- case DdsFourCc.DXT1:
- return this.AllocateMipMaps(stream, width, height, count);
- case DdsFourCc.DXT2:
- case DdsFourCc.DXT4:
- throw new NotSupportedException("Due to patentsCan, DXT2 or DXT4 cannot be supported.");
- case DdsFourCc.DXT3:
- return this.AllocateMipMaps(stream, width, height, count);
- case DdsFourCc.DXT5:
- return this.AllocateMipMaps(stream, width, height, count);
- case DdsFourCc.DX10:
- return this.GetDx10Dds(stream, width, height, count);
- case DdsFourCc.ATI1:
- case DdsFourCc.BC4U:
- return this.AllocateMipMaps(stream, width, height, count);
- case DdsFourCc.BC4S:
- return this.AllocateMipMaps(stream, width, height, count);
- case DdsFourCc.ATI2:
- case DdsFourCc.BC5U:
- return this.AllocateMipMaps(stream, width, height, count);
- case DdsFourCc.BC5S:
- return this.AllocateMipMaps(stream, width, height, count);
- default:
- throw new NotSupportedException($"FourCC: {this.DdsHeader.PixelFormat.FourCC.FourCcToString()} not supported.");
- }
+ DdsFourCc.None
+ or DdsFourCc.R16FLOAT
+ or DdsFourCc.R16G16FLOAT
+ or DdsFourCc.R16G16B16A16SNORM
+ or DdsFourCc.R16G16B16A16UNORM
+ or DdsFourCc.R16G16B16A16FLOAT
+ or DdsFourCc.R32FLOAT
+ or DdsFourCc.R32G32FLOAT
+ or DdsFourCc.R32G32B32A32FLOAT
+ or DdsFourCc.YUY2
+ or DdsFourCc.RGBG
+ or DdsFourCc.GRGB => this.ProcessUncompressed(stream, width, height, count),
+ DdsFourCc.DXT1 => AllocateMipMaps(stream, width, height, count),
+ DdsFourCc.DXT2 or DdsFourCc.DXT4 => throw new NotSupportedException("Due to patents Can, DXT2 or DXT4 cannot be supported."),
+ DdsFourCc.DXT3 => AllocateMipMaps(stream, width, height, count),
+ DdsFourCc.DXT5 => AllocateMipMaps(stream, width, height, count),
+ DdsFourCc.DX10 => this.GetDx10Dds(stream, width, height, count),
+ DdsFourCc.ATI1 or DdsFourCc.BC4U => AllocateMipMaps(stream, width, height, count),
+ DdsFourCc.BC4S => AllocateMipMaps(stream, width, height, count),
+ DdsFourCc.ATI2 or DdsFourCc.BC5U => AllocateMipMaps(stream, width, height, count),
+ DdsFourCc.BC5S => AllocateMipMaps(stream, width, height, count),
+ _ => throw new NotSupportedException($"FourCC: {this.DdsHeader.PixelFormat.FourCC.FourCcToString()} not supported."),
+ };
}
public MipMap[] ProcessUncompressed(Stream stream, int width, int height, int count)
{
uint bitsPerPixel = this.DdsHeader.PixelFormat.RGBBitCount;
- switch (bitsPerPixel)
+ return bitsPerPixel switch
{
- case 8:
- return this.EightBitImageFormat(stream, width, height, count);
- case 16:
- return this.SixteenBitImageFormat(stream, width, height, count);
- case 24:
- return this.TwentyFourBitImageFormat(stream, width, height, count);
- case 32:
- return this.ThirtyTwoBitImageFormat(stream, width, height, count);
- default:
- // For unknown reason some formats do not have the bitsPerPixel set in the header (its zero).
- switch (this.DdsHeader.PixelFormat.FourCC)
- {
- case DdsFourCc.R16FLOAT:
- return this.SixteenBitImageFormat(stream, width, height, count);
- case DdsFourCc.R32FLOAT:
- case DdsFourCc.R16G16FLOAT:
- case DdsFourCc.YUY2:
- case DdsFourCc.RGBG:
- case DdsFourCc.GRGB:
- return this.ThirtyTwoBitImageFormat(stream, width, height, count);
- case DdsFourCc.R16G16B16A16SNORM:
- case DdsFourCc.R16G16B16A16UNORM:
- case DdsFourCc.R16G16B16A16FLOAT:
- case DdsFourCc.R32G32FLOAT:
- return this.SixtyFourBitImageFormat(stream, width, height, count);
- case DdsFourCc.R32G32B32A32FLOAT:
- return this.HundredTwentyEightBitImageFormat(stream, width, height, count);
- }
-
- throw new Exception($"Unrecognized rgb bit count: {this.DdsHeader.PixelFormat.RGBBitCount}");
- }
+ 8 => this.EightBitImageFormat(stream, width, height, count),
+ 16 => this.SixteenBitImageFormat(stream, width, height, count),
+ 24 => this.TwentyFourBitImageFormat(stream, width, height, count),
+ 32 => this.ThirtyTwoBitImageFormat(stream, width, height, count),
+ _ => this.DdsHeader.PixelFormat.FourCC switch
+ {
+ DdsFourCc.R16FLOAT => this.SixteenBitImageFormat(stream, width, height, count),
+ DdsFourCc.R32FLOAT
+ or DdsFourCc.R16G16FLOAT
+ or DdsFourCc.YUY2
+ or DdsFourCc.RGBG
+ or DdsFourCc.GRGB => this.ThirtyTwoBitImageFormat(stream, width, height, count),
+ DdsFourCc.R16G16B16A16SNORM
+ or DdsFourCc.R16G16B16A16UNORM
+ or DdsFourCc.R16G16B16A16FLOAT
+ or DdsFourCc.R32G32FLOAT => this.SixtyFourBitImageFormat(stream, width, height, count),
+ DdsFourCc.R32G32B32A32FLOAT => this.HundredTwentyEightBitImageFormat(stream, width, height, count),
+ _ => throw new ArgumentOutOfRangeException($"Unrecognized rgb bit count: {this.DdsHeader.PixelFormat.RGBBitCount}"),
+ }, // For unknown reason some formats do not have the bitsPerPixel set in the header (its zero).
+ };
}
///
@@ -137,7 +114,7 @@ public MipMap[] ProcessUncompressed(Stream stream, int width, int height, int co
/// The height of the texture at level 0.
/// The mipmap count.
/// The decoded mipmaps.
- private MipMap[] AllocateMipMaps(Stream stream, int width, int height, int count)
+ private static MipMap[] AllocateMipMaps(Stream stream, int width, int height, int count)
where TBlock : struct, IBlock
{
var blockFormat = default(TBlock);
@@ -180,15 +157,15 @@ private MipMap[] EightBitImageFormat(Stream stream, int width, int height, int c
if (pixelFormat.RBitMask == 0x0 && pixelFormat.GBitMask == 0x0 && pixelFormat.BBitMask == 0x0)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
if (!hasAlpha && pixelFormat.RBitMask == 0xFF && pixelFormat.GBitMask == 0x0 && pixelFormat.BBitMask == 0x0)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
- throw new Exception("Unsupported 8 bit format");
+ throw new NotSupportedException("Unsupported 8 bit format");
}
private MipMap[] SixteenBitImageFormat(Stream stream, int width, int height, int count)
@@ -199,45 +176,45 @@ private MipMap[] SixteenBitImageFormat(Stream stream, int width, int height, int
if (hasAlpha && pixelFormat.RBitMask == 0xF00 && pixelFormat.GBitMask == 0xF0 && pixelFormat.BBitMask == 0xF)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
if (!hasAlpha && pixelFormat.RBitMask == 0x7C00 && pixelFormat.GBitMask == 0x3E0 && pixelFormat.BBitMask == 0x1F)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
if (hasAlpha && pixelFormat.RBitMask == 0x7C00 && pixelFormat.GBitMask == 0x3E0 && pixelFormat.BBitMask == 0x1F)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
if (!hasAlpha && pixelFormat.RBitMask == 0xF800 && pixelFormat.GBitMask == 0x7E0 && pixelFormat.BBitMask == 0x1F)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
if (hasAlpha && pixelFormat.RBitMask == 0xFF && pixelFormat.GBitMask == 0x0 && pixelFormat.BBitMask == 0x0)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
if (!hasAlpha && pixelFormat.RBitMask == 0xFFFF && pixelFormat.GBitMask == 0x0 && pixelFormat.BBitMask == 0x0)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
if (!hasAlpha && pixelFormat.RBitMask == 0xFF && pixelFormat.GBitMask == 0xFF00 && pixelFormat.BBitMask == 0x0)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
if (pixelFormat.FourCC == DdsFourCc.R16FLOAT)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
- throw new Exception("Unsupported 16 bit format");
+ throw new NotSupportedException("Unsupported 16 bit format");
}
private MipMap[] TwentyFourBitImageFormat(Stream stream, int width, int height, int count)
@@ -248,10 +225,10 @@ private MipMap[] TwentyFourBitImageFormat(Stream stream, int width, int height,
if (!hasAlpha && pixelFormat.RBitMask == 0xFF0000 && pixelFormat.GBitMask == 0xFF00 && pixelFormat.BBitMask == 0xFF)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
- throw new Exception("Unsupported 24 bit format");
+ throw new NotSupportedException("Unsupported 24 bit format");
}
private MipMap[] ThirtyTwoBitImageFormat(Stream stream, int width, int height, int count)
@@ -262,55 +239,55 @@ private MipMap[] ThirtyTwoBitImageFormat(Stream stream, int width, int height, i
if (hasAlpha && pixelFormat.RBitMask == 0xFF0000 && pixelFormat.GBitMask == 0xFF00 && pixelFormat.BBitMask == 0xFF)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
if (hasAlpha && pixelFormat.RBitMask == 0xFF && pixelFormat.GBitMask == 0xFF00 && pixelFormat.BBitMask == 0xFF0000)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
if (!hasAlpha && pixelFormat.RBitMask == 0xFF0000 && pixelFormat.GBitMask == 0xFF00 && pixelFormat.BBitMask == 0xFF)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
if (!hasAlpha && pixelFormat.RBitMask == 0xFF && pixelFormat.GBitMask == 0xFF00 && pixelFormat.BBitMask == 0xFF0000)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
if (!hasAlpha && pixelFormat.RBitMask == 0xFFFF && pixelFormat.GBitMask == 0xFFFF0000 && pixelFormat.BBitMask == 0x0)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
if (pixelFormat.FourCC == DdsFourCc.R32FLOAT)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
if (pixelFormat.FourCC == DdsFourCc.R16G16FLOAT)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
if (pixelFormat.FourCC == DdsFourCc.YUY2)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
if (pixelFormat.FourCC == DdsFourCc.RGBG)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
if (pixelFormat.FourCC == DdsFourCc.GRGB)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
- throw new Exception("Unsupported 32 bit format");
+ throw new NotSupportedException("Unsupported 32 bit format");
}
private MipMap[] SixtyFourBitImageFormat(Stream stream, int width, int height, int count)
@@ -319,20 +296,20 @@ private MipMap[] SixtyFourBitImageFormat(Stream stream, int width, int height, i
if (pixelFormat.FourCC == DdsFourCc.R16G16B16A16SNORM || pixelFormat.FourCC == DdsFourCc.R16G16B16A16UNORM)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
if (pixelFormat.FourCC == DdsFourCc.R32G32FLOAT)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
if (pixelFormat.FourCC == DdsFourCc.R16G16B16A16FLOAT)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
- throw new Exception("Unsupported 64 bit format");
+ throw new NotSupportedException("Unsupported 64 bit format");
}
private MipMap[] HundredTwentyEightBitImageFormat(Stream stream, int width, int height, int count)
@@ -341,10 +318,10 @@ private MipMap[] HundredTwentyEightBitImageFormat(Stream stream, int width, int
if (pixelFormat.FourCC == DdsFourCc.R32G32B32A32FLOAT || pixelFormat.FourCC == DdsFourCc.R32FLOAT)
{
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
}
- throw new Exception("Unsupported 128 bit format");
+ throw new NotSupportedException("Unsupported 128 bit format");
}
/*
@@ -359,34 +336,34 @@ private MipMap[] GetDx10Dds(Stream stream, int width, int height, int count)
case DxgiFormat.BC1_Typeless:
case DxgiFormat.BC1_UNorm_SRGB:
case DxgiFormat.BC1_UNorm:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.BC2_Typeless:
case DxgiFormat.BC2_UNorm:
case DxgiFormat.BC2_UNorm_SRGB:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.BC3_Typeless:
case DxgiFormat.BC3_UNorm:
case DxgiFormat.BC3_UNorm_SRGB:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.BC4_Typeless:
case DxgiFormat.BC4_UNorm:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.BC4_SNorm:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.BC5_Typeless:
case DxgiFormat.BC5_UNorm:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.BC5_SNorm:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.BC6H_Typeless:
case DxgiFormat.BC6H_UF16:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.BC6H_SF16:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.BC7_Typeless:
case DxgiFormat.BC7_UNorm:
case DxgiFormat.BC7_UNorm_SRGB:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.R8G8B8A8_Typeless:
case DxgiFormat.R8G8B8A8_UNorm:
case DxgiFormat.R8G8B8A8_UNorm_SRGB:
@@ -396,99 +373,99 @@ private MipMap[] GetDx10Dds(Stream stream, int width, int height, int count)
case DxgiFormat.B8G8R8X8_Typeless:
case DxgiFormat.B8G8R8X8_UNorm:
case DxgiFormat.B8G8R8X8_UNorm_SRGB:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.B8G8R8A8_Typeless:
case DxgiFormat.B8G8R8A8_UNorm:
case DxgiFormat.B8G8R8A8_UNorm_SRGB:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.R32G32B32A32_Float:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.R32G32B32A32_Typeless:
case DxgiFormat.R32G32B32A32_UInt:
case DxgiFormat.R32G32B32A32_SInt:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.R32G32B32_Float:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.R32G32B32_Typeless:
case DxgiFormat.R32G32B32_UInt:
case DxgiFormat.R32G32B32_SInt:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.R16G16B16A16_Typeless:
case DxgiFormat.R16G16B16A16_Float:
case DxgiFormat.R16G16B16A16_UNorm:
case DxgiFormat.R16G16B16A16_UInt:
case DxgiFormat.R16G16B16A16_SNorm:
case DxgiFormat.R16G16B16A16_SInt:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.R32G32_Float:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.R32G32_Typeless:
case DxgiFormat.R32G32_UInt:
case DxgiFormat.R32G32_SInt:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.R10G10B10A2_Typeless:
case DxgiFormat.R10G10B10A2_UNorm:
case DxgiFormat.R10G10B10A2_UInt:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.R16G16_Float:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.R16G16_Typeless:
case DxgiFormat.R16G16_UNorm:
case DxgiFormat.R16G16_UInt:
case DxgiFormat.R16G16_SNorm:
case DxgiFormat.R16G16_SInt:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.R32_Float:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.R32_Typeless:
case DxgiFormat.R32_UInt:
case DxgiFormat.R32_SInt:
// Treating single channel format as 32 bit gray image.
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.R8G8_Typeless:
case DxgiFormat.R8G8_UNorm:
case DxgiFormat.R8G8_UInt:
case DxgiFormat.R8G8_SNorm:
case DxgiFormat.R8G8_SInt:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.R16_Float:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.R16_Typeless:
case DxgiFormat.R16_UNorm:
case DxgiFormat.R16_UInt:
case DxgiFormat.R16_SNorm:
case DxgiFormat.R16_SInt:
// Treating single channel format as 16 bit gray image.
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.R8_Typeless:
case DxgiFormat.R8_UNorm:
case DxgiFormat.R8_UInt:
case DxgiFormat.R8_SNorm:
case DxgiFormat.R8_SInt:
// Treating single channel format as 8 bit gray image.
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.A8_UNorm:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.R1_UNorm:
- throw new Exception("not implemented");
+ throw new NotImplementedException($"{nameof(DxgiFormat.R1_UNorm)} is currently not implemented");
case DxgiFormat.R11G11B10_Float:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.Y410:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.Y416:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.Y210:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.Y216:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.AYUV:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.YUY2:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.R8G8_B8G8_UNorm:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.G8R8_G8B8_UNorm:
- return this.AllocateMipMaps(stream, width, height, count);
+ return AllocateMipMaps(stream, width, height, count);
case DxgiFormat.R32G8X24_Typeless:
case DxgiFormat.D32_Float_S8X24_UInt:
case DxgiFormat.R32_Float_X8X24_Typeless:
diff --git a/src/ImageSharp.Textures/Formats/ITextureFormatManager.cs b/src/ImageSharp.Textures/Formats/ITextureFormatManager.cs
index e639dee6..afe2836d 100644
--- a/src/ImageSharp.Textures/Formats/ITextureFormatManager.cs
+++ b/src/ImageSharp.Textures/Formats/ITextureFormatManager.cs
@@ -83,10 +83,7 @@ public void AddImageFormat(ITextureFormat format)
lock (HashLock)
{
- if (!this.imageFormats.Contains(format))
- {
- this.imageFormats.Add(format);
- }
+ _ = this.imageFormats.Add(format);
}
}
diff --git a/src/ImageSharp.Textures/Formats/Ktx/KtxHeader.cs b/src/ImageSharp.Textures/Formats/Ktx/KtxHeader.cs
index 0876659a..67ccc7c1 100644
--- a/src/ImageSharp.Textures/Formats/Ktx/KtxHeader.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx/KtxHeader.cs
@@ -137,7 +137,7 @@ public static KtxHeader Parse(ReadOnlySpan data)
{
if (data.Length < KtxConstants.KtxHeaderSize)
{
- throw new ArgumentException(nameof(data), $"Ktx header must be {KtxConstants.KtxHeaderSize} bytes. Was {data.Length} bytes.");
+ throw new ArgumentException($"Ktx header must be {KtxConstants.KtxHeaderSize} bytes. Was {data.Length} bytes.", nameof(data));
}
var endianness = (KtxEndianness)BinaryPrimitives.ReadUInt32LittleEndian(data);
diff --git a/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Header.cs b/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Header.cs
index 6b380abb..341757fa 100644
--- a/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Header.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Header.cs
@@ -147,7 +147,7 @@ public static Ktx2Header Parse(ReadOnlySpan data)
{
if (data.Length < Ktx2Constants.KtxHeaderSize)
{
- throw new ArgumentException(nameof(data), $"Ktx2 header must be {Ktx2Constants.KtxHeaderSize} bytes. Was {data.Length} bytes.");
+ throw new ArgumentException($"Ktx2 header must be {Ktx2Constants.KtxHeaderSize} bytes. Was {data.Length} bytes.", nameof(data));
}
return new Ktx2Header(
diff --git a/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Processor.cs b/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Processor.cs
index 4f4923b1..4dbd30d2 100644
--- a/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Processor.cs
+++ b/src/ImageSharp.Textures/Formats/Ktx2/Ktx2Processor.cs
@@ -51,112 +51,112 @@ public MipMap[] DecodeMipMaps(Stream stream, int width, int height, LevelIndex[]
case VkFormat.VK_FORMAT_R8_SINT:
case VkFormat.VK_FORMAT_R8_SRGB:
// Single channel textures will be decoded to luminance image.
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R16_UNORM:
case VkFormat.VK_FORMAT_R16_SNORM:
case VkFormat.VK_FORMAT_R16_UINT:
case VkFormat.VK_FORMAT_R16_SINT:
// Single channel textures will be decoded to luminance image.
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R16_SFLOAT:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R8G8_UNORM:
case VkFormat.VK_FORMAT_R8G8_SNORM:
case VkFormat.VK_FORMAT_R8G8_UINT:
case VkFormat.VK_FORMAT_R8G8_SINT:
case VkFormat.VK_FORMAT_R8G8_SRGB:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R16G16_UNORM:
case VkFormat.VK_FORMAT_R16G16_SNORM:
case VkFormat.VK_FORMAT_R16G16_UINT:
case VkFormat.VK_FORMAT_R16G16_SINT:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R32G32_UINT:
case VkFormat.VK_FORMAT_R32G32_SINT:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R32G32_SFLOAT:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R16G16B16_UNORM:
case VkFormat.VK_FORMAT_R16G16B16_SNORM:
case VkFormat.VK_FORMAT_R16G16B16_UINT:
case VkFormat.VK_FORMAT_R16G16B16_SINT:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R16G16B16A16_UNORM:
case VkFormat.VK_FORMAT_R16G16B16A16_SNORM:
case VkFormat.VK_FORMAT_R16G16B16A16_UINT:
case VkFormat.VK_FORMAT_R16G16B16A16_SINT:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R16G16B16A16_SFLOAT:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R32G32B32_UINT:
case VkFormat.VK_FORMAT_R32G32B32_SINT:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R32G32B32_SFLOAT:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R32G32B32A32_UINT:
case VkFormat.VK_FORMAT_R32G32B32A32_SINT:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R32G32B32A32_SFLOAT:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_B8G8R8_UNORM:
case VkFormat.VK_FORMAT_B8G8R8_SNORM:
case VkFormat.VK_FORMAT_B8G8R8_UINT:
case VkFormat.VK_FORMAT_B8G8R8_SINT:
case VkFormat.VK_FORMAT_B8G8R8_SRGB:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R8G8B8_UNORM:
case VkFormat.VK_FORMAT_R8G8B8_SNORM:
case VkFormat.VK_FORMAT_R8G8B8_UINT:
case VkFormat.VK_FORMAT_R8G8B8_SINT:
case VkFormat.VK_FORMAT_R8G8B8_SRGB:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R5G6B5_UNORM_PACK16:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R4G4B4A4_UNORM_PACK16:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_B8G8R8A8_UNORM:
case VkFormat.VK_FORMAT_B8G8R8A8_SNORM:
case VkFormat.VK_FORMAT_B8G8R8A8_UINT:
case VkFormat.VK_FORMAT_B8G8R8A8_SINT:
case VkFormat.VK_FORMAT_B8G8R8A8_SRGB:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_B5G5R5A1_UNORM_PACK16:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_B5G6R5_UNORM_PACK16:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_B4G4R4A4_UNORM_PACK16:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R8G8B8A8_UNORM:
case VkFormat.VK_FORMAT_R8G8B8A8_SNORM:
case VkFormat.VK_FORMAT_R8G8B8A8_UINT:
case VkFormat.VK_FORMAT_R8G8B8A8_SINT:
case VkFormat.VK_FORMAT_R8G8B8A8_SRGB:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R5G5B5A1_UNORM_PACK16:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_BC1_RGB_UNORM_BLOCK:
case VkFormat.VK_FORMAT_BC1_RGBA_UNORM_BLOCK:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_BC2_UNORM_BLOCK:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_BC3_UNORM_BLOCK:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_BC4_UNORM_BLOCK:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_BC4_SNORM_BLOCK:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_BC5_UNORM_BLOCK:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_BC5_SNORM_BLOCK:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_BC6H_UFLOAT_BLOCK:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_BC6H_SFLOAT_BLOCK:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_BC7_UNORM_BLOCK:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
case VkFormat.VK_FORMAT_ETC2_R8G8B8_UNORM_BLOCK:
- return this.AllocateMipMaps(memoryStream, width, height, levelIndices);
+ return AllocateMipMaps(memoryStream, width, height, levelIndices);
}
throw new NotSupportedException("The pixel format is not supported");
@@ -183,109 +183,109 @@ public CubemapTexture DecodeCubeMap(Stream stream, int width, int height, LevelI
case VkFormat.VK_FORMAT_R8_UINT:
case VkFormat.VK_FORMAT_R8_SINT:
case VkFormat.VK_FORMAT_R8_SRGB:
- return this.AllocateCubeMap(stream, width, height, levelIndices);
+ return AllocateCubeMap(stream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R16_UNORM:
case VkFormat.VK_FORMAT_R16_SNORM:
case VkFormat.VK_FORMAT_R16_UINT:
case VkFormat.VK_FORMAT_R16_SINT:
- return this.AllocateCubeMap(stream, width, height, levelIndices);
+ return AllocateCubeMap(stream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R8G8_UNORM:
case VkFormat.VK_FORMAT_R8G8_SNORM:
case VkFormat.VK_FORMAT_R8G8_UINT:
case VkFormat.VK_FORMAT_R8G8_SINT:
case VkFormat.VK_FORMAT_R8G8_SRGB:
- return this.AllocateCubeMap(stream, width, height, levelIndices);
+ return AllocateCubeMap(stream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R16G16_UNORM:
case VkFormat.VK_FORMAT_R16G16_SNORM:
case VkFormat.VK_FORMAT_R16G16_UINT:
case VkFormat.VK_FORMAT_R16G16_SINT:
- return this.AllocateCubeMap(stream, width, height, levelIndices);
+ return AllocateCubeMap(stream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R16G16B16_UNORM:
case VkFormat.VK_FORMAT_R16G16B16_SNORM:
case VkFormat.VK_FORMAT_R16G16B16_UINT:
case VkFormat.VK_FORMAT_R16G16B16_SINT:
- return this.AllocateCubeMap(stream, width, height, levelIndices);
+ return AllocateCubeMap(stream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R16G16B16A16_UNORM:
case VkFormat.VK_FORMAT_R16G16B16A16_SNORM:
case VkFormat.VK_FORMAT_R16G16B16A16_UINT:
case VkFormat.VK_FORMAT_R16G16B16A16_SINT:
- return this.AllocateCubeMap(stream, width, height, levelIndices);
+ return AllocateCubeMap(stream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R16_SFLOAT:
- return this.AllocateCubeMap(stream, width, height, levelIndices);
+ return AllocateCubeMap(stream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R16G16B16A16_SFLOAT:
- return this.AllocateCubeMap(stream, width, height, levelIndices);
+ return AllocateCubeMap(stream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R32G32_UINT:
case VkFormat.VK_FORMAT_R32G32_SINT:
- return this.AllocateCubeMap(stream, width, height, levelIndices);
+ return AllocateCubeMap(stream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R32G32_SFLOAT:
- return this.AllocateCubeMap(stream, width, height, levelIndices);
+ return AllocateCubeMap(stream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R32G32B32_UINT:
case VkFormat.VK_FORMAT_R32G32B32_SINT:
- return this.AllocateCubeMap(stream, width, height, levelIndices);
+ return AllocateCubeMap(stream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R32G32B32_SFLOAT:
- return this.AllocateCubeMap(stream, width, height, levelIndices);
+ return AllocateCubeMap(stream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R32G32B32A32_UINT:
case VkFormat.VK_FORMAT_R32G32B32A32_SINT:
- return this.AllocateCubeMap(stream, width, height, levelIndices);
+ return AllocateCubeMap(stream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R32G32B32A32_SFLOAT:
- return this.AllocateCubeMap(stream, width, height, levelIndices);
+ return AllocateCubeMap(stream, width, height, levelIndices);
case VkFormat.VK_FORMAT_B8G8R8_UNORM:
case VkFormat.VK_FORMAT_B8G8R8_SNORM:
case VkFormat.VK_FORMAT_B8G8R8_UINT:
case VkFormat.VK_FORMAT_B8G8R8_SINT:
case VkFormat.VK_FORMAT_B8G8R8_SRGB:
- return this.AllocateCubeMap(stream, width, height, levelIndices);
+ return AllocateCubeMap(stream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R8G8B8_UNORM:
case VkFormat.VK_FORMAT_R8G8B8_SNORM:
case VkFormat.VK_FORMAT_R8G8B8_UINT:
case VkFormat.VK_FORMAT_R8G8B8_SINT:
case VkFormat.VK_FORMAT_R8G8B8_SRGB:
- return this.AllocateCubeMap(stream, width, height, levelIndices);
+ return AllocateCubeMap(stream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R5G6B5_UNORM_PACK16:
- return this.AllocateCubeMap(stream, width, height, levelIndices);
+ return AllocateCubeMap(stream, width, height, levelIndices);
case VkFormat.VK_FORMAT_R4G4B4A4_UNORM_PACK16:
- return this.AllocateCubeMap(stream, width, height, levelIndices);
+ return AllocateCubeMap