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/12] 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 33fd057..2e3045f 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 70ced69..3647a70 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 3a133ef..f0af547 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 0000000..46d8c23
--- /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 833fc0a..310eefb 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 a042aba..353b9af 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 696c86a..068d917 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 fb1e312..ed42250 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 8782a75..08d6c73 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 b51f2d1..7e608c3 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 d4c8eef..5630c5c 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 c9bf2fd..4b39d16 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 b24a611..6b94fb1 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 da9843c..f2fb1f4 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 60c9dbc..46e6509 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 bc21e84..d6ef180 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 d20483c..3459765 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 4626dcb..14941ee 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/12] 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 ed42250..df56f86 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 08d6c73..fe46b9c 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 7e608c3..3234123 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/12] 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 05df432..1ba9cf8 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/12] 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 7f30c9a..e27e1a5 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 df56f86..528ca0c 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 fe46b9c..08d6c73 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 3234123..63eddb3 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/12] 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 eb53a6b..8fd3c01 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 2d3f4f0..ba360be 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 466efcf..05bce3f 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 0b992bc..274a022 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 254b179..da8ec12 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 db2c28b..98b8de5 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 c89db74..ed7907b 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 f8a9920..d68b472 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 aa5022a..c81d20b 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 5574fa5..0caac84 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 a4a20f7..6291bf5 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 2186248..f2349a6 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 82cf2a7..7028ce0 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 e19136a..2f92233 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 864d974..27e1271 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 dc6aff5..2549492 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 ea6ea1a..8c3d93f 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 9b7409f..76c4c46 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 e76dc30..60a51cc 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 47c4831..187359e 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 1e08505..7402f52 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 8119ac3..056fb47 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 590a80b..76dad60 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 f8a348d..37d63ea 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 3cb4ea7..abd4d7e 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 2e406eb..ae88ac0 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 017eb47..ae311d0 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 16f2837..4fc301c 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 9c343f6..dc4be9a 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 07c17b2..c34e7b1 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 200a941..40a9b0c 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 2b7381b..c1e3498 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 931bae6..a58ad86 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 ec48841..bfd5297 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 dd203c8..5457af9 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 e351315..e639dee 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 947f20e..3865e17 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 05f2eb4..bd585fe 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 b7cb17d..0597c74 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 b0bc286..c709c88 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 851d991..db93328 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 e25eb84..4864d1a 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 f9e31e6..e2b1c39 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 5fbcedf..81d2de6 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 a912e0e..4b2fd31 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 05184f5..4f7aa56 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 63fb110..8a6255b 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 17d6c89..a46ba1a 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 63c153a..0876659 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 296ad71..91f5467 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 206fd8a..88ac7f2 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 741e06a..a3e8973 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 943cde5..b534ff2 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 6490d5f..93e05c5 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 459270e..0305799 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 ea9c2c3..0442a62 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 eba5fdf..6decbef 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 78f94c5..84a6ddf 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 4d5a7ba..6b380ab 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 cf4468f..af99577 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 9522d7a..4f4923b 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 5877724..80d38f6 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 f970676..4053632 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 9f9ba88..ab63201 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 fd149b6..1336239 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 197ccb9..a36fd7e 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 fd04b76..1ff7fb9 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 e1ae4ce..8c97835 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 db63a53..35443f6 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 068d917..ba8a1bb 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 20b78b7..c0e5a51 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 47abf4a..9d51b59 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 ef44891..926e192 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 d81967b..36f78ee 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 3a42cea..9c84d65 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 ec689f2..0aceac2 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 0a1c300..8c77dff 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 0b8afd4..dc3a009 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 d7cbbf6..1f06e56 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 1ac6761..4d5b47c 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 19c9d08..7816f83 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 908129d..8adf7c4 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 7b04ada..f3d0e33 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 f09b314..012bfe4 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 769e84d..fd15a77 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 be62de3..fd8a77e 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 34e101e..c27c733 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 f63bef7..b0ed25a 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 8398c1d..ce711d9 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 eab0e6a..3114460 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 f929bcc..0cd5e2b 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 d5914b0..7af7e4b 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 045bb8c..057c58e 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 0c3e37b..b6e4c99 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 b7d74a5..ac554ab 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 980f43d..5fc6931 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 8164651..34da70b 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 07b17dd..33ad854 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 fb65ec3..6203af0 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 2b7ea4b..c3a63b1 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 aacc72b..be436df 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 02761d7..9e0e5f4 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 ce9db69..f9b3795 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 9484e76..c4f97e4 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 0dac106..b39ff3d 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 b247cad..98be4a8 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 344db71..7277cba 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 8b55a52..e650a48 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 da7992e..6b2f6ec 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 b9dafe6..6075a47 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 d6175b3..1592b8a 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 5e99a49..1280b43 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 7be85a5..fd26730 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 d02b3fe..3bc2f8b 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 2d3bf63..4a460ce 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 694d618..d2be696 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 72cbc7c..97e2fd8 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 034b88f..0c9047e 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 66e7184..6063322 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 ad6a07c..e3debea 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 88e8597..d349a91 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 1d91d2b..b3374ce 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 053b389..1d0ddbe 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 56604bc..e8d1ee2 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 436fee9..0ff9443 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 7e24ee0..a2f5e85 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 bf730be..97b6796 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 4ae23b7..a52919e 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 3ec5680..7345901 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 b30f6a9..aa72f76 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 3bddba5..d796401 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 aa52afa..7ce1acb 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 d7efc80..0b59fa3 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 89d7823..be1d1b2 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 e152d96..2e5d553 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 c81fb12..bf02c55 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 1e99884..e755cc8 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 41e855c..99edf38 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 0e5f1ad..d656dc1 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 1029ef5..8951fa6 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 1e20487..32813f6 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 a537953..e43d7d8 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 892f64c..98aa5ff 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 a73e0af..60fc792 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 53eb2ec..0b3ce4f 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 7a92776..7bceb86 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 3d3fb96..50dd10d 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 86c9749..dbee681 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 53dedaa..6701581 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 ed692c9..a9747f0 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 5284935..f3df0a7 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 06fe416..b825362 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 e00b5f9..ef5cacb 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 b4c0482..216a1b9 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 0f5ec84..2eed524 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 8d47318..905cfd8 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 2c0934a..76f4a80 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 e95016f..70de61e 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 7ddbde1..7d245e8 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 b695385..5e3557b 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 76d6a6d..0260a2f 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 47b2b3f..c1fab15 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 d5ed7c5..06bfe86 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 c89d1f6..2e2329d 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 11a95c6..af7859e 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 0fefba7..25a1c4d 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 4cf37e9..8e56023 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 f092a81..1022896 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 6006b55..ec517a8 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 c9b5e02..71612c4 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 0b9a087..e924fc3 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 50e3ae0..88e0945 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 2f6b79b..6679bb7 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 36b9f09..aee555b 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 8e92061..275e52e 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 2de5b48..e94dea0 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 33b259e..a4b3e4d 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 18afae2..53f8e83 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 cf49f51..f57970a 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 aa5861a..287b56e 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 e497088..f1e7147 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 46c0728..f342e50 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 774ccf6..759c1b7 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 4b163e6..f7ab619 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 4cbc0c5..c163405 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 1a99c3a..37b9606 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 e97b800..ad93a5f 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 ffee53e..453ae26 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 b1a83d1..fc48ce3 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 7ec98a0..2563785 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 a204bd0..81384ee 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 e2a5db9..893a9cd 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 6e2bbd0..9abaf4d 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 8c95425..f737c79 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 ce73a8b..169d4da 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 7c229f8..d550f16 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 683fb68..aed5e79 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 d79de4e..1186142 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 def1c2b..e2ad337 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 49dbf5c..0a3f897 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 f7f01de..1fbacc6 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 660f2d8..9424898 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 5630c5c..bc4c0ce 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 c2123db..d3df36c 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 245fa9d..cb024df 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 4361110..fe06bc5 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 4b39d16..3035fad 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 080ea32..f59af42 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 37f3846..38c0454 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 6b94fb1..d79105b 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 f0d6b1b..cfa9654 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 d667672..46153a6 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 f2fb1f4..b7d5659 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 46e6509..6e04d29 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 5345635..5ff70bd 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 d6ef180..3476922 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 8d80d40..769816d 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 8bc6b36..6499cf5 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 3459765..bc01a8b 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 14941ee..5218853 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 11503af..cd3e4c6 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 c3138e4..757107c 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 e95bf95..f6431e7 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 ad20951..73c8189 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 83277de..6f57d93 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/12] 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 60a51cc..73508b9 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 e639dee..afe2836 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 0876659..67ccc7c 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 6b380ab..341757f 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 4f4923b..4dbd30d 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