Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge SixLabors.Core sources into ImageSharp #1087

Merged
merged 170 commits into from
Jan 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
170 commits
Select commit Hold shift + click to select a range
68e35b9
[SL.Core] Initial commit
tocsoft Jun 2, 2017
979573d
[SL.Core] initial primitive
tocsoft Jun 2, 2017
8290200
[SL.Core] update api key
tocsoft Jun 2, 2017
9c910db
[SL.Core] update sln
tocsoft Jun 2, 2017
f4626c1
[SL.Core] add matrix tests & fix GetHashCode
tocsoft Jun 3, 2017
d5495aa
[SL.Core] Remove matrix in favour of Matrix3x2
tocsoft Jun 7, 2017
345ac1b
[SL.Core] Fix naming
JimBobSquarePants Jun 8, 2017
15d0258
[SL.Core] Drop unneeded types plus added Size operators.
tocsoft Jun 8, 2017
214215b
[SL.Core] Merge branch 'master' of https://github.com/SixLabors/Primi…
tocsoft Jun 8, 2017
29ca419
[SL.Core] remove opencover
tocsoft Jun 8, 2017
1dac8db
[SL.Core] rename project from Primitives to Core
tocsoft Jun 8, 2017
d563233
[SL.Core] add center property to rectangle
tocsoft Jun 9, 2017
90dff77
[SL.Core] add multiplication and divide operators to Point
tocsoft Jun 9, 2017
cf9f645
[SL.Core] Revert "add center property to rectangle"
tocsoft Jun 9, 2017
39aafb1
[SL.Core] drop zero in favor of empty
tocsoft Jun 10, 2017
7e377e6
[SL.Core] remove IsEmpty based ToString() branches
tocsoft Jun 10, 2017
a2349bf
[SL.Core] Moved files in the Shared folder.
Jun 25, 2017
9b632f3
[SL.Core] Whitespace
Jun 25, 2017
1e43e50
[SL.Core] Fixed version numbers
Jun 25, 2017
b89b4cf
[SL.Core] Renamed ruleset file.
Jun 25, 2017
55a1615
[SL.Core] Enabled stylecop.
Jun 25, 2017
f58afef
[SL.Core] Fixed all stylecop warnings.
Jun 25, 2017
0910b0b
[SL.Core] Changed copyright header.
Jun 25, 2017
3863e7e
[SL.Core] Moved HashHelpers to a folder.
Jun 25, 2017
d99554b
[SL.Core] Fixed value in attribute.
Jun 25, 2017
4b940f1
[SL.Core] Added guards from the ImageSharp project and added Internal…
Jun 25, 2017
4f06b51
[SL.Core] Switch to ReadOnlySpan.
Jun 25, 2017
d53a5ca
[SL.Core] Added SixLabors.ImageSharp.Drawing to the InternalsVisibleTo.
Jun 25, 2017
9822ab4
[SL.Core] Merge pull request SixLabors/Core#1 from SixLabors/feature/…
tocsoft Jun 25, 2017
cba462a
[SL.Core] push develop branch to an unstable feed for now
tocsoft Jun 25, 2017
403a1bd
[SL.Core] woops added duplicate section
tocsoft Jun 25, 2017
80e6911
[SL.Core] Move ruleset into src folder.
Jun 25, 2017
5ac709d
[SL.Core] Added stylecop to the test project.
Jun 25, 2017
a353233
[SL.Core] Added CodeCoverage.cmd to the solution.
Jun 25, 2017
4b5485f
[SL.Core] Use release build for code coverage.
Jun 25, 2017
9c71c0f
[SL.Core] Removed old test.
Jun 25, 2017
5b38dc1
[SL.Core] Added yml files to the solution.
Jun 25, 2017
3b6d794
[SL.Core] Changed codecov to use the develop branch.
Jun 25, 2017
9b9306e
[SL.Core] Added unit tests for the Guard class.
Jun 25, 2017
008d185
[SL.Core] Added some of the badges to the README.
Jun 25, 2017
2df68dc
[SL.Core] Added build status badge.
Jun 25, 2017
d540785
[SL.Core] Add test for DebugGuard
tocsoft Jun 26, 2017
43fe6ea
[SL.Core] fix order of paramaters
tocsoft Jun 26, 2017
05a9332
[SL.Core] Fix test names + additional overloads
tocsoft Jun 27, 2017
a43dd3f
[SL.Core] add reason
tocsoft Jun 27, 2017
2af8edc
[SL.Core] Merge pull request SixLabors/Core#6 from SixLabors/develop
tocsoft Sep 13, 2017
3dadce9
[SL.Core] Remove System.Memory from core
tocsoft Sep 13, 2017
a68b76f
[SL.Core] Use MathF for Core 2.0
JimBobSquarePants Sep 14, 2017
548c0f5
[SL.Core] prevent stylecop.json form being included in package
tocsoft Sep 16, 2017
491b683
[SL.Core] fix gitversion rules to match IS
tocsoft Sep 16, 2017
570deb1
[SL.Core] fix appveyor.yml to user correct version of gitversion
tocsoft Sep 16, 2017
6250793
[SL.Core] Merge pull request SixLabors/Core#8 from SixLabors/remove-j…
tocsoft Sep 16, 2017
4596853
[SL.Core] Use type forwarding as per example
JimBobSquarePants Oct 5, 2017
96c3012
[SL.Core] Remove incorrect include
JimBobSquarePants Oct 5, 2017
b232106
[SL.Core] Merge branch 'master' into MathF
JimBobSquarePants Oct 5, 2017
f63535f
[SL.Core] Fix test path in build command
JimBobSquarePants Nov 17, 2017
34078f7
[SL.Core] Merge pull request SixLabors/Core#7 from SixLabors/MathF
JimBobSquarePants Nov 17, 2017
9d4acb0
[SL.Core] Replace skew and rotate with single transform
JimBobSquarePants Nov 24, 2017
a993b77
[SL.Core] Add missing library internal
JimBobSquarePants Nov 20, 2017
ceb18ee
[SL.Core] Remove Vector2 overload
JimBobSquarePants Nov 24, 2017
a0a03fd
[SL.Core] Merge branch 'master' into Transforms
tocsoft Nov 25, 2017
935a945
[SL.Core] Merge pull request SixLabors/Core#11 from SixLabors/Transforms
JimBobSquarePants Nov 25, 2017
9ff9daf
[SL.Core] Update logo and readme.
JimBobSquarePants Mar 22, 2018
f37a066
[SL.Core] Merge pull request SixLabors/Core#13 from SixLabors/branding
JimBobSquarePants Mar 22, 2018
a5bfedd
[SL.Core] Make Guard.NotNull() and DebugGuard.NotNull() generic
antonfirsov Jul 25, 2018
9f51d65
[SL.Core] Add MemoryAllocator-s with tests
antonfirsov Jul 25, 2018
fb58b5f
[SL.Core] move internals into a nested namespace
antonfirsov Jul 25, 2018
3450a4c
[SL.Core] remove unused indexer
antonfirsov Jul 26, 2018
f9f9247
[SL.Core] Merge pull request SixLabors/Core#14 from SixLabors/af/publ…
JimBobSquarePants Jul 27, 2018
890d49d
[SL.Core] fix build version number generation
tocsoft Aug 1, 2018
b8227a2
[SL.Core] Merge pull request SixLabors/Core#15 from SixLabors/sw/fix-…
tocsoft Aug 1, 2018
87c124e
[SL.Core] Cross target .NETCOREAPP2.1
iamcarbon Aug 24, 2018
480b35a
[SL.Core] Use pattern matching
iamcarbon Aug 24, 2018
d4ac432
[SL.Core] Remove unused Gaurd overloads
iamcarbon Aug 24, 2018
14780a7
[SL.Core] Seal ManagedByteBuffer
iamcarbon Aug 24, 2018
9f2ae5e
[SL.Core] Extend HashHelper.Combine to accept 2, 3, or 4 args
iamcarbon Aug 24, 2018
1c29c7f
[SL.Core] Update Moq & xunit
iamcarbon Aug 24, 2018
7b54e56
[SL.Core] Update System.Numerics.Vectors
iamcarbon Aug 24, 2018
187d0a1
[SL.Core] Remove unused Gaurd.IsTrue and Gaurd.IsFalse
iamcarbon Aug 24, 2018
1729bd6
[SL.Core] Remove private implementations of GetHashCode (and it's cal…
iamcarbon Aug 24, 2018
43693a9
[SL.Core] Use expressions
iamcarbon Aug 24, 2018
177e1e2
[SL.Core] Update tests to target netcoreapp2.1
iamcarbon Aug 24, 2018
a543ce6
[SL.Core] Remove additional unused Guard methods
iamcarbon Aug 24, 2018
ea9c9e9
[SL.Core] Remove unused DebugGuard methods
iamcarbon Aug 24, 2018
fb46544
[SL.Core] Remove whitespace
iamcarbon Aug 24, 2018
9b97df5
[SL.Core] Remove unused DebugGaurd tests
iamcarbon Aug 24, 2018
2f61caf
[SL.Core] Cleanup AssemblyInfo add SUPPORT_MATHF symbol
iamcarbon Aug 27, 2018
d073bf8
[SL.Core] Add HashHelpersTests
iamcarbon Aug 27, 2018
e154df4
[SL.Core] Add test to ensure PointF has the same layout as Vector2
iamcarbon Aug 27, 2018
383bd7b
[SL.Core] Format Rectangle
iamcarbon Aug 27, 2018
302bb88
[SL.Core] Remove whitespace
iamcarbon Aug 27, 2018
6c35029
[SL.Core] Remove aggressive inlining hint from trival accessors
iamcarbon Aug 31, 2018
81e2185
[SL.Core] Format Point
iamcarbon Aug 31, 2018
d32149a
[SL.Core] Format HashHelpers
iamcarbon Aug 31, 2018
c31eb7e
[SL.Core] Use Assert.Contains when checking for substrings
iamcarbon Aug 31, 2018
aada342
[SL.Core] Remove AggressiveInlining hint from trival accessors
iamcarbon Aug 31, 2018
3589057
[SL.Core] Format Size
iamcarbon Aug 31, 2018
8c101f0
[SL.Core] Replace == with Equals
iamcarbon Aug 31, 2018
be099d3
[SL.Core] Format long statement onto multiple lines
iamcarbon Aug 31, 2018
0b75c89
[SL.Core] Merge pull request SixLabors/Core#16 from carbon/master
JimBobSquarePants Aug 31, 2018
876ec6d
[SL.Core] Cross target netstandard2.0
iamcarbon Sep 4, 2018
d545e24
[SL.Core] Merge pull request SixLabors/Core#18 from carbon/master
JimBobSquarePants Sep 6, 2018
2c8f620
[SL.Core] Update descriptions on the ArrayPoolMemoryAllocator class
Sep 24, 2018
ff6bf58
[SL.Core] Increase minimium netstandard support to v1.3
iamcarbon Oct 15, 2018
b38f063
[SL.Core] Merge pull request SixLabors/Core#20 from carbon/master
JimBobSquarePants Oct 15, 2018
344802c
[SL.Core] Merge branch 'master' into master
JimBobSquarePants Oct 15, 2018
9ed50e7
[SL.Core] Merge pull request SixLabors/Core#19 from DaniaalNadir/master
JimBobSquarePants Oct 15, 2018
bc0e521
[SL.Core] Make deg - rad conversion public
JimBobSquarePants Nov 26, 2018
de6caf4
[SL.Core] Merge pull request SixLabors/Core#22 from SixLabors/js/publ…
JimBobSquarePants Nov 26, 2018
5121210
[SL.Core] Add and use HashCode polyfill
iamcarbon Dec 8, 2018
00eafc9
[SL.Core] Obsolete HashHelpers
iamcarbon Dec 8, 2018
78ca048
[SL.Core] Update supressions
iamcarbon Dec 9, 2018
1c6a07f
[SL.Core] Fix mistake. :(
iamcarbon Dec 9, 2018
fcffe06
[SL.Core] Merge pull request SixLabors/Core#23 from carbon/master
JimBobSquarePants Dec 12, 2018
5334e39
[SL.Core] Downgrade System.Buffers to 4.4.0
iamcarbon Dec 12, 2018
8100c04
[SL.Core] Remove HashHelpers
iamcarbon Dec 12, 2018
c78f400
[SL.Core] Merge remote-tracking branch 'upstream/master'
iamcarbon Dec 12, 2018
6746ab1
[SL.Core] Merge pull request SixLabors/Core#24 from carbon/master
JimBobSquarePants Dec 14, 2018
4671658
[SL.Core] Throw better exceptions from MemoryAllocators
antonfirsov Apr 20, 2019
18b9f18
[SL.Core] drop meaningless upper limit check
antonfirsov Apr 20, 2019
be92b76
[SL.Core] Merge pull request SixLabors/Core#25 from SixLabors/af/allo…
JimBobSquarePants Apr 22, 2019
fb38a57
[SL.Core] Added deconstructors
synercoder May 1, 2019
6c6baa4
[SL.Core] Added small tests for deconstructors
synercoder May 1, 2019
e55f1b1
[SL.Core] Changed double InlineData from MinValue to MaxValue
synercoder May 2, 2019
597c49d
[SL.Core] Added .github folder based upon ImageSharp .github folder.
synercoder May 2, 2019
2cd599f
[SL.Core] Merge pull request SixLabors/Core#28 from synercoder/fixed-…
JimBobSquarePants May 2, 2019
69ec0af
[SL.Core] Merge branch 'master' into deconstructors
JimBobSquarePants May 2, 2019
e859248
[SL.Core] Merge branch 'master' into add-github-files
synercoder May 2, 2019
0b961ae
[SL.Core] Merge pull request SixLabors/Core#29 from synercoder/add-gi…
JimBobSquarePants May 3, 2019
c3e4c2d
[SL.Core] Merge branch 'master' into deconstructors
JimBobSquarePants May 3, 2019
b3f3e86
[SL.Core] Merge pull request SixLabors/Core#26 from synercoder/decons…
JimBobSquarePants May 8, 2019
3cdd259
[SL.Core] Remove typo in NuGet package description
Mertsch Jun 28, 2019
289b1cb
[SL.Core] Merge pull request SixLabors/Core#1 from Mertsch/Mertsch-pa…
Mertsch Jun 28, 2019
9af8343
[SL.Core] Upgraded StyleCop.
dlemstra Aug 8, 2019
901929b
[SL.Core] Fixed new StyleCop issues.
dlemstra Aug 8, 2019
124d34d
[SL.Core] Ignore StyleCop rules that demand a certain order.
dlemstra Aug 8, 2019
55e8063
[SL.Core] Correct the Assert.Equals order.
dlemstra Aug 8, 2019
930f357
[SL.Core] Use Assert.Contains instead.
dlemstra Aug 8, 2019
5b32cb9
[SL.Core] Fixed StyleCop issues.
dlemstra Aug 8, 2019
3b84a04
[SL.Core] Silence warning.
dlemstra Aug 8, 2019
38cfae8
[SL.Core] Added LangVersion to the unit test project.
dlemstra Aug 8, 2019
ffa74c1
[SL.Core] Merge pull request SixLabors/Core#30 from Mertsch/master
dlemstra Aug 8, 2019
f78aa31
[SL.Core] Merge branch 'master' into upgrade-stylecop
JimBobSquarePants Aug 9, 2019
4293eda
[SL.Core] Merge pull request SixLabors/Core#31 from SixLabors/upgrade…
JimBobSquarePants Aug 11, 2019
20aef1b
[SL.Core] Extend Guard and DebugGuard
antonfirsov Aug 18, 2019
ff972de
[SL.Core] harmonize Guard + DebugGuard code and tests
antonfirsov Aug 18, 2019
e4beee6
[SL.Core] import standards submodule
antonfirsov Aug 18, 2019
b169e92
[SL.Core] temporarily redirect "standards" to af/shared-guard branch
antonfirsov Aug 18, 2019
eb40549
[SL.Core] use shared guards from standards
antonfirsov Aug 18, 2019
56277c4
[SL.Core] do not share internals across SixLabors projects
antonfirsov Aug 18, 2019
4de4e5b
[SL.Core] hope we can drop travis soon
antonfirsov Aug 18, 2019
bfbda98
[SL.Core] update submodule
antonfirsov Aug 18, 2019
c97def9
[SL.Core] update submodule
antonfirsov Aug 18, 2019
2904653
[SL.Core] Standards -> SharedInfrastructure
antonfirsov Aug 29, 2019
278a79e
[SL.Core] use shared .editorconfig and stylecop.json
antonfirsov Aug 29, 2019
68dca4f
[SL.Core] Update submodule and fix warnings.
JimBobSquarePants Aug 31, 2019
4fc16e1
[SL.Core] Merge pull request SixLabors/Core#33 from SixLabors/af/shar…
JimBobSquarePants Aug 31, 2019
25daf98
[SL.Core] Use shared source MathF and HashCode
JimBobSquarePants Sep 1, 2019
f8f4c3a
[SL.Core] Merge pull request SixLabors/Core#34 from SixLabors/js/math…
JimBobSquarePants Sep 1, 2019
46ba502
Keep only necessary stuff from SL.Core
antonfirsov Jan 19, 2020
0a93560
Merge branch 'core' into af/merge-core-2
antonfirsov Jan 19, 2020
812b4e5
move product sources
antonfirsov Jan 19, 2020
27e59ab
update ImageSharp.csproj
antonfirsov Jan 19, 2020
f1d7c5f
move test code & delete shared code tests
antonfirsov Jan 19, 2020
82a40f7
skip memory-intensive allocator tests
antonfirsov Jan 19, 2020
aa09911
move Core primitives to a subfolder for now
antonfirsov Jan 20, 2020
3d5cd5c
cherry pick CI improvements from @JimBobSquarePants
antonfirsov Jan 20, 2020
a83eb3a
fix PointFTests robustness issue
antonfirsov Jan 20, 2020
6384f44
Merge namespaces
JimBobSquarePants Jan 20, 2020
815aeb1
Remove duplicate Constants
JimBobSquarePants Jan 20, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 4 additions & 2 deletions Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,12 @@
<PackageReference Update="StyleCop.Analyzers" PrivateAssets="All" Version="1.1.118" />

<!--Src Dependencies-->
<PackageReference Update="SixLabors.Core" Version="1.0.0-beta0008" />
<PackageReference Update="System.Buffers" Version="4.5.0" />
<PackageReference Update="System.IO.Compression" Version="4.3.0" />
<PackageReference Update="System.IO.UnmanagedMemoryStream" Version="4.3.0" />
<PackageReference Update="System.Runtime.CompilerServices.Unsafe" Version="4.5.1" />
<PackageReference Update="System.Numerics.Vectors" Version="4.5.0" />
<PackageReference Update="System.Memory" Version="4.5.3" />
<PackageReference Update="System.Runtime.CompilerServices.Unsafe" Version="4.7" />
<PackageReference Update="System.Threading.Tasks.Parallel" Version="4.3.0" />
<PackageReference Update="System.ValueTuple" Version="4.5.0" />

Expand Down
1 change: 1 addition & 0 deletions GitVersion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ continuous-delivery-fallback-tag: ci
branches:
master:
tag: unstable
mode: ContinuousDeployment
pull-request:
tag: pr
6 changes: 1 addition & 5 deletions ci-test.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,4 @@ elseif ($platform -eq '-x86' -and $targetFramework -match $netFxRegex) {
else {

dotnet test --no-build -c Release -f $targetFramework
}

# Explicitly exit with 0 to ignore errors caused by coverlet attempting to read
# project files that dotnet test is set to ignore.
exit 0
}
2 changes: 1 addition & 1 deletion src/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@

<!-- Empty target so that `dotnet test` will work on the solution -->
<!-- https://github.com/Microsoft/vstest/issues/411 -->
<Target Name="VSTest" />
<Target Name="VSTest" Condition="'$(IsTestProject)' == 'true'"/>

</Project>
1 change: 0 additions & 1 deletion src/ImageSharp/Advanced/AdvancedImageExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Memory;

namespace SixLabors.ImageSharp.Advanced
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System;
using System.Threading.Tasks;

using SixLabors.Memory;
using SixLabors.ImageSharp.Memory;

namespace SixLabors.ImageSharp.Advanced.ParallelUtils
{
Expand Down
2 changes: 0 additions & 2 deletions src/ImageSharp/Advanced/ParallelUtils/ParallelHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
using System.Threading.Tasks;

using SixLabors.ImageSharp.Memory;
using SixLabors.Memory;
using SixLabors.Primitives;

namespace SixLabors.ImageSharp.Advanced.ParallelUtils
{
Expand Down
1 change: 0 additions & 1 deletion src/ImageSharp/Common/Extensions/StreamExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using System.Buffers;
using System.IO;
using SixLabors.ImageSharp.Memory;
using SixLabors.Memory;

namespace SixLabors.ImageSharp
{
Expand Down
1 change: 0 additions & 1 deletion src/ImageSharp/Common/Helpers/Buffer2DUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Primitives;

namespace SixLabors.ImageSharp
{
Expand Down
1 change: 0 additions & 1 deletion src/ImageSharp/Common/Helpers/DenseMatrixUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Primitives;

namespace SixLabors.ImageSharp
{
Expand Down
1 change: 0 additions & 1 deletion src/ImageSharp/Common/Helpers/ImageMaths.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Runtime.CompilerServices;

using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

namespace SixLabors.ImageSharp
{
Expand Down
1 change: 0 additions & 1 deletion src/ImageSharp/Common/Helpers/Vector4Utils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using SixLabors.ImageSharp.Primitives;

namespace SixLabors.ImageSharp
{
Expand Down
2 changes: 1 addition & 1 deletion src/ImageSharp/Configuration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
using SixLabors.ImageSharp.Formats.Png;
using SixLabors.ImageSharp.Formats.Tga;
using SixLabors.ImageSharp.IO;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.Processing;
using SixLabors.Memory;

namespace SixLabors.ImageSharp
{
Expand Down
1 change: 0 additions & 1 deletion src/ImageSharp/Formats/Bmp/BmpDecoderCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.Metadata;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Memory;

namespace SixLabors.ImageSharp.Formats.Bmp
{
Expand Down
1 change: 0 additions & 1 deletion src/ImageSharp/Formats/Bmp/BmpEncoderCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
using SixLabors.ImageSharp.Metadata;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing.Processors.Quantization;
using SixLabors.Memory;

namespace SixLabors.ImageSharp.Formats.Bmp
{
Expand Down
2 changes: 0 additions & 2 deletions src/ImageSharp/Formats/Gif/GifDecoderCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.Metadata;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Memory;
using SixLabors.Primitives;

namespace SixLabors.ImageSharp.Formats.Gif
{
Expand Down
1 change: 0 additions & 1 deletion src/ImageSharp/Formats/Gif/GifEncoderCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
using SixLabors.ImageSharp.Metadata;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing.Processors.Quantization;
using SixLabors.Memory;

namespace SixLabors.ImageSharp.Formats.Gif
{
Expand Down
1 change: 0 additions & 1 deletion src/ImageSharp/Formats/Gif/LzwDecoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using System.Runtime.InteropServices;

using SixLabors.ImageSharp.Memory;
using SixLabors.Memory;

namespace SixLabors.ImageSharp.Formats.Gif
{
Expand Down
1 change: 0 additions & 1 deletion src/ImageSharp/Formats/Gif/LzwEncoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using System.Runtime.InteropServices;

using SixLabors.ImageSharp.Memory;
using SixLabors.Memory;

namespace SixLabors.ImageSharp.Formats.Gif
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the Apache License, Version 2.0.

using SixLabors.ImageSharp.Memory;
using SixLabors.Primitives;

namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

using System;

using SixLabors.Primitives;

namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder
{
/// <inheritdoc />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using System;
using System.Runtime.InteropServices;
using SixLabors.ImageSharp.Memory;
using SixLabors.Primitives;

namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
using System;

using SixLabors.ImageSharp.Memory;
using SixLabors.Memory;
using SixLabors.Primitives;

namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
using System.Runtime.InteropServices;

using SixLabors.ImageSharp.Memory;
using SixLabors.Memory;
using SixLabors.Primitives;

namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Memory;
using SixLabors.Primitives;
using JpegColorConverter = SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder.ColorConverters.JpegColorConverter;

namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder
Expand Down
2 changes: 0 additions & 2 deletions src/ImageSharp/Formats/Jpeg/Components/SizeExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
using System;
using System.Numerics;

using SixLabors.Primitives;

namespace SixLabors.ImageSharp.Formats.Jpeg.Components
{
/// <summary>
Expand Down
3 changes: 0 additions & 3 deletions src/ImageSharp/Formats/Jpeg/JpegDecoderCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@
using SixLabors.ImageSharp.Metadata.Profiles.Exif;
using SixLabors.ImageSharp.Metadata.Profiles.Icc;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Primitives;
using SixLabors.Memory;
using SixLabors.Primitives;

namespace SixLabors.ImageSharp.Formats.Jpeg
{
Expand Down
2 changes: 1 addition & 1 deletion src/ImageSharp/Formats/Png/PngChunk.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.

using SixLabors.Memory;
using SixLabors.ImageSharp.Memory;

namespace SixLabors.ImageSharp.Formats.Png
{
Expand Down
1 change: 0 additions & 1 deletion src/ImageSharp/Formats/Png/PngDecoderCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
using SixLabors.ImageSharp.Metadata;
using SixLabors.ImageSharp.Metadata.Profiles.Exif;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Memory;

namespace SixLabors.ImageSharp.Formats.Png
{
Expand Down
1 change: 0 additions & 1 deletion src/ImageSharp/Formats/Png/PngEncoderCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
using SixLabors.ImageSharp.Metadata;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing.Processors.Quantization;
using SixLabors.Memory;

namespace SixLabors.ImageSharp.Formats.Png
{
Expand Down
1 change: 0 additions & 1 deletion src/ImageSharp/Formats/Png/PngThrowHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// Licensed under the Apache License, Version 2.0.

using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.CompilerServices;

namespace SixLabors.ImageSharp.Formats.Png
Expand Down
2 changes: 1 addition & 1 deletion src/ImageSharp/Formats/Png/Zlib/Deflater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System;
using System.Runtime.CompilerServices;
using SixLabors.Memory;
using SixLabors.ImageSharp.Memory;

namespace SixLabors.ImageSharp.Formats.Png.Zlib
{
Expand Down
2 changes: 1 addition & 1 deletion src/ImageSharp/Formats/Png/Zlib/DeflaterEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System;
using System.Buffers;
using System.Runtime.CompilerServices;
using SixLabors.Memory;
using SixLabors.ImageSharp.Memory;

namespace SixLabors.ImageSharp.Formats.Png.Zlib
{
Expand Down
2 changes: 1 addition & 1 deletion src/ImageSharp/Formats/Png/Zlib/DeflaterHuffman.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Buffers;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using SixLabors.Memory;
using SixLabors.ImageSharp.Memory;

namespace SixLabors.ImageSharp.Formats.Png.Zlib
{
Expand Down
2 changes: 1 addition & 1 deletion src/ImageSharp/Formats/Png/Zlib/DeflaterOutputStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System;
using System.IO;
using SixLabors.Memory;
using SixLabors.ImageSharp.Memory;

namespace SixLabors.ImageSharp.Formats.Png.Zlib
{
Expand Down
2 changes: 1 addition & 1 deletion src/ImageSharp/Formats/Png/Zlib/DeflaterPendingBuffer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using System;
using System.Buffers;
using System.Runtime.CompilerServices;
using SixLabors.Memory;
using SixLabors.ImageSharp.Memory;

namespace SixLabors.ImageSharp.Formats.Png.Zlib
{
Expand Down
2 changes: 1 addition & 1 deletion src/ImageSharp/Formats/Png/Zlib/ZlibDeflateStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

using System;
using System.IO;
using SixLabors.Memory;
using SixLabors.ImageSharp.Memory;

namespace SixLabors.ImageSharp.Formats.Png.Zlib
{
Expand Down
1 change: 0 additions & 1 deletion src/ImageSharp/Formats/Tga/TgaDecoderCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.Metadata;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Memory;

namespace SixLabors.ImageSharp.Formats.Tga
{
Expand Down
2 changes: 0 additions & 2 deletions src/ImageSharp/Formats/Tga/TgaEncoderCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@
using System;
using System.Buffers.Binary;
using System.IO;
using System.Numerics;
using System.Runtime.CompilerServices;

using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.Metadata;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Memory;

namespace SixLabors.ImageSharp.Formats.Tga
{
Expand Down
34 changes: 34 additions & 0 deletions src/ImageSharp/GeometryUtilities.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.

using System;
using System.Runtime.CompilerServices;

namespace SixLabors
{
/// <summary>
/// Utility class for common geometric functions.
/// </summary>
public static class GeometryUtilities
{
/// <summary>
/// Converts a degree (360-periodic) angle to a radian (2*Pi-periodic) angle.
/// </summary>
/// <param name="degree">The angle in degrees.</param>
/// <returns>
/// The <see cref="float"/> representing the degree as radians.
/// </returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static float DegreeToRadian(float degree) => degree * (MathF.PI / 180F);

/// <summary>
/// Converts a radian (2*Pi-periodic) angle to a degree (360-periodic) angle.
/// </summary>
/// <param name="radian">The angle in radians.</param>
/// <returns>
/// The <see cref="float"/> representing the degree as radians.
/// </returns>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public static float RadianToDegree(float radian) => radian / (MathF.PI / 180F);
}
}
2 changes: 1 addition & 1 deletion src/ImageSharp/IO/DoubleBufferedStreamReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.IO;
using System.Runtime.CompilerServices;

using SixLabors.Memory;
using SixLabors.ImageSharp.Memory;

namespace SixLabors.ImageSharp.IO
{
Expand Down
1 change: 0 additions & 1 deletion src/ImageSharp/Image.Decode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.Metadata;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Memory;

namespace SixLabors.ImageSharp
{
Expand Down
Loading