Browse Source

Update dependencies + fix stylecop (#816)

af/merge-core
James Jackson-South 7 years ago
committed by GitHub
parent
commit
2bf060f40b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      .gitmodules
  2. 5
      ImageSharp.sln
  3. 97
      src/ImageSharp.Drawing/ImageSharp.Drawing.csproj
  4. 5
      src/ImageSharp/Common/Helpers/SimdUtils.ExtendedIntrinsics.cs
  5. 2
      src/ImageSharp/Common/Helpers/TestHelpers.cs
  6. 2
      src/ImageSharp/Common/ParallelUtils/ParallelExecutionSettings.cs
  7. 2
      src/ImageSharp/Common/ParallelUtils/ParallelHelper.cs
  8. 5
      src/ImageSharp/Common/Tuples/Octet.cs
  9. 5
      src/ImageSharp/Common/Tuples/Vector4Pair.cs
  10. 5
      src/ImageSharp/Formats/Bmp/BmpInfoHeaderType.cs
  11. 5
      src/ImageSharp/Formats/Bmp/BmpThrowHelper.cs
  12. 5
      src/ImageSharp/Formats/Gif/Sections/IGifExtension.cs
  13. 3
      src/ImageSharp/Formats/Jpeg/Components/Decoder/ScanDecoder.cs
  14. 5
      src/ImageSharp/Formats/Jpeg/Components/Encoder/YCbCrForwardConverter{TPixel}.cs
  15. 37
      src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs
  16. 5
      src/ImageSharp/Formats/Png/Chunks/PhysicalChunkData.cs
  17. 3
      src/ImageSharp/Formats/Png/Filters/UpFilter.cs
  18. 3
      src/ImageSharp/Formats/Png/PngConstants.cs
  19. 21
      src/ImageSharp/ImageSharp.csproj
  20. 2
      src/ImageSharp/Memory/RowInterval.cs
  21. 6
      src/ImageSharp/MetaData/Profiles/Exif/ExifConstants.cs
  22. 2
      src/ImageSharp/MetaData/Profiles/Exif/ExifTags.cs
  23. 7
      src/ImageSharp/MetaData/Profiles/ICC/TagDataEntries/IccLut16TagDataEntry.cs
  24. 7
      src/ImageSharp/MetaData/Profiles/ICC/TagDataEntries/IccLut8TagDataEntry.cs
  25. 5
      src/ImageSharp/PixelFormats/Utils/Vector4Converters.Default.cs
  26. 5
      src/ImageSharp/PixelFormats/Utils/Vector4Converters.RgbaCompatible.cs
  27. 1
      standards

3
.gitmodules

@ -2,3 +2,6 @@
path = tests/Images/External path = tests/Images/External
url = https://github.com/SixLabors/Imagesharp.Tests.Images.git url = https://github.com/SixLabors/Imagesharp.Tests.Images.git
branch = master branch = master
[submodule "standards"]
path = standards
url = https://github.com/SixLabors/Standards

5
ImageSharp.sln

@ -5,7 +5,7 @@ VisualStudioVersion = 15.0.26730.12
MinimumVisualStudioVersion = 10.0.40219.1 MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionItems", "SolutionItems", "{C317F1B1-D75E-4C6D-83EB-80367343E0D7}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionItems", "SolutionItems", "{C317F1B1-D75E-4C6D-83EB-80367343E0D7}"
ProjectSection(SolutionItems) = preProject ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig standards\.editorconfig = standards\.editorconfig
.travis.yml = .travis.yml .travis.yml = .travis.yml
appveyor.yml = appveyor.yml appveyor.yml = appveyor.yml
.github\ISSUE_TEMPLATE\ask-question.md = .github\ISSUE_TEMPLATE\ask-question.md .github\ISSUE_TEMPLATE\ask-question.md = .github\ISSUE_TEMPLATE\ask-question.md
@ -15,12 +15,13 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionItems", "SolutionIt
.github\CONTRIBUTING.md = .github\CONTRIBUTING.md .github\CONTRIBUTING.md = .github\CONTRIBUTING.md
.github\ISSUE_TEMPLATE\feature-request.md = .github\ISSUE_TEMPLATE\feature-request.md .github\ISSUE_TEMPLATE\feature-request.md = .github\ISSUE_TEMPLATE\feature-request.md
features.md = features.md features.md = features.md
ImageSharp.ruleset = ImageSharp.ruleset
ImageSharp.sln.DotSettings = ImageSharp.sln.DotSettings ImageSharp.sln.DotSettings = ImageSharp.sln.DotSettings
NuGet.config = NuGet.config NuGet.config = NuGet.config
.github\PULL_REQUEST_TEMPLATE.md = .github\PULL_REQUEST_TEMPLATE.md .github\PULL_REQUEST_TEMPLATE.md = .github\PULL_REQUEST_TEMPLATE.md
README.md = README.md README.md = README.md
run-tests.ps1 = run-tests.ps1 run-tests.ps1 = run-tests.ps1
standards\SixLabors.ruleset = standards\SixLabors.ruleset
standards\stylecop.json = standards\stylecop.json
EndProjectSection EndProjectSection
EndProject EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Source", "Source", "{815C0625-CD3D-440F-9F80-2D83856AB7AE}" Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Source", "Source", "{815C0625-CD3D-440F-9F80-2D83856AB7AE}"

97
src/ImageSharp.Drawing/ImageSharp.Drawing.csproj

@ -1,50 +1,53 @@
<Project Sdk="Microsoft.NET.Sdk"> <Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <PropertyGroup>
<AssemblyTitle>SixLabors.ImageSharp.Drawing</AssemblyTitle> <AssemblyTitle>SixLabors.ImageSharp.Drawing</AssemblyTitle>
<Authors>SixLabors and contributors</Authors> <Authors>SixLabors and contributors</Authors>
<Company>Six Labors</Company> <Company>Six Labors</Company>
<Copyright>Copyright (c) Six Labors and contributors.</Copyright> <Copyright>Copyright (c) Six Labors and contributors.</Copyright>
<Product>SixLabors.ImageSharp</Product> <Product>SixLabors.ImageSharp</Product>
<Description>An extension to ImageSharp that allows the drawing of images, paths, and text.</Description> <Description>An extension to ImageSharp that allows the drawing of images, paths, and text.</Description>
<NeutralLanguage>en</NeutralLanguage> <NeutralLanguage>en</NeutralLanguage>
<VersionPrefix Condition="$(packageversion) != ''">$(packageversion)</VersionPrefix> <VersionPrefix Condition="$(packageversion) != ''">$(packageversion)</VersionPrefix>
<VersionPrefix Condition="$(packageversion) == ''">0.0.1</VersionPrefix> <VersionPrefix Condition="$(packageversion) == ''">0.0.1</VersionPrefix>
<TargetFrameworks>netstandard1.3;netstandard2.0</TargetFrameworks> <TargetFrameworks>netstandard1.3;netstandard2.0</TargetFrameworks>
<LangVersion>7.3</LangVersion> <LangVersion>7.3</LangVersion>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateDocumentationFile>true</GenerateDocumentationFile> <GenerateDocumentationFile>true</GenerateDocumentationFile>
<AssemblyName>SixLabors.ImageSharp.Drawing</AssemblyName> <AssemblyName>SixLabors.ImageSharp.Drawing</AssemblyName>
<PackageId>SixLabors.ImageSharp.Drawing</PackageId> <PackageId>SixLabors.ImageSharp.Drawing</PackageId>
<PackageTags>Image Draw Shape Path Font</PackageTags> <PackageTags>Image Draw Shape Path Font</PackageTags>
<PackageIconUrl>https://raw.githubusercontent.com/SixLabors/Branding/master/icons/imagesharp/sixlabors.imagesharp.128.png</PackageIconUrl> <PackageIconUrl>https://raw.githubusercontent.com/SixLabors/Branding/master/icons/imagesharp/sixlabors.imagesharp.128.png</PackageIconUrl>
<PackageProjectUrl>https://github.com/SixLabors/ImageSharp</PackageProjectUrl> <PackageProjectUrl>https://github.com/SixLabors/ImageSharp</PackageProjectUrl>
<PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl> <PackageLicenseUrl>http://www.apache.org/licenses/LICENSE-2.0</PackageLicenseUrl>
<RepositoryType>git</RepositoryType> <RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/SixLabors/ImageSharp</RepositoryUrl> <RepositoryUrl>https://github.com/SixLabors/ImageSharp</RepositoryUrl>
<DebugType Condition="$(codecov) != ''">full</DebugType> <DebugType Condition="$(codecov) != ''">full</DebugType>
<DebugType Condition="$(codecov) == ''">portable</DebugType> <DebugType Condition="$(codecov) == ''">portable</DebugType>
<DebugSymbols>True</DebugSymbols> <DebugSymbols>True</DebugSymbols>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<Compile Include="..\Shared\*.cs" Exclude="bin\**;obj\**;**\*.xproj;packages\**" /> <ItemGroup>
</ItemGroup> <Compile Include="..\Shared\*.cs" Exclude="bin\**;obj\**;**\*.xproj;packages\**" />
<ItemGroup> </ItemGroup>
<ProjectReference Include="..\ImageSharp\ImageSharp.csproj" />
</ItemGroup> <ItemGroup>
<ItemGroup> <ProjectReference Include="..\ImageSharp\ImageSharp.csproj" />
<AdditionalFiles Include="..\..\stylecop.json" /> </ItemGroup>
<PackageReference Include="SixLabors.Fonts" Version="1.0.0-dev000119" />
<PackageReference Include="SixLabors.Shapes" Version="1.0.0-dev000102" /> <ItemGroup>
<PackageReference Include="StyleCop.Analyzers" Version="1.1.0-beta007"> <AdditionalFiles Include="..\..\standards\stylecop.json" />
<PrivateAssets>All</PrivateAssets> <PackageReference Include="SixLabors.Fonts" Version="1.0.0-beta0008" />
</PackageReference> <PackageReference Include="SixLabors.Shapes" Version="1.0.0-beta0008" />
</ItemGroup> <PackageReference Include="StyleCop.Analyzers" Version="1.1.1-beta.61" PrivateAssets="All" />
<PropertyGroup> </ItemGroup>
<CodeAnalysisRuleSet>..\..\ImageSharp.ruleset</CodeAnalysisRuleSet>
<RootNamespace>SixLabors.ImageSharp</RootNamespace> <PropertyGroup>
</PropertyGroup> <CodeAnalysisRuleSet>..\..\standards\SixLabors.ruleset</CodeAnalysisRuleSet>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> <RootNamespace>SixLabors.ImageSharp</RootNamespace>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> </PropertyGroup>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
</Project> </Project>

5
src/ImageSharp/Common/Helpers/SimdUtils.ExtendedIntrinsics.cs

@ -1,4 +1,7 @@
using System; // Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using System;
using System.Numerics; using System.Numerics;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;

2
src/ImageSharp/Common/Helpers/TestHelpers.cs

@ -1,4 +1,4 @@
// Copyright(c) Six Labors and contributors. // Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Common.Helpers namespace SixLabors.ImageSharp.Common.Helpers

2
src/ImageSharp/Common/ParallelUtils/ParallelExecutionSettings.cs

@ -1,4 +1,4 @@
// Copyright(c) Six Labors and contributors. // Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
using System.Threading.Tasks; using System.Threading.Tasks;

2
src/ImageSharp/Common/ParallelUtils/ParallelHelper.cs

@ -1,4 +1,4 @@
// Copyright(c) Six Labors and contributors. // Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
using System; using System;

5
src/ImageSharp/Common/Tuples/Octet.cs

@ -1,4 +1,7 @@
using System.Runtime.CompilerServices; // Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
namespace SixLabors.ImageSharp.Tuples namespace SixLabors.ImageSharp.Tuples

5
src/ImageSharp/Common/Tuples/Vector4Pair.cs

@ -1,4 +1,7 @@
using System.Numerics; // Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using System.Numerics;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;

5
src/ImageSharp/Formats/Bmp/BmpInfoHeaderType.cs

@ -1,4 +1,7 @@
namespace SixLabors.ImageSharp.Formats.Bmp // Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats.Bmp
{ {
/// <summary> /// <summary>
/// Enum value for the different bitmap info header types. The enum value is the number of bytes for the specific bitmap header. /// Enum value for the different bitmap info header types. The enum value is the number of bytes for the specific bitmap header.

5
src/ImageSharp/Formats/Bmp/BmpThrowHelper.cs

@ -1,4 +1,7 @@
using System; // Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using System;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
namespace SixLabors.ImageSharp.Formats.Bmp namespace SixLabors.ImageSharp.Formats.Bmp

5
src/ImageSharp/Formats/Gif/Sections/IGifExtension.cs

@ -1,4 +1,7 @@
using System; // Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using System;
namespace SixLabors.ImageSharp.Formats.Gif namespace SixLabors.ImageSharp.Formats.Gif
{ {

3
src/ImageSharp/Formats/Jpeg/Components/Decoder/ScanDecoder.cs

@ -474,7 +474,8 @@ namespace SixLabors.ImageSharp.Formats.Jpeg.Components.Decoder
Unsafe.Add(ref blockDataRef, zig) = (short)this.ExtendReceive(s); Unsafe.Add(ref blockDataRef, zig) = (short)this.ExtendReceive(s);
} }
} }
} while (k < 64); }
while (k < 64);
} }
private void DecodeBlockProgressiveDC( private void DecodeBlockProgressiveDC(

5
src/ImageSharp/Formats/Jpeg/Components/Encoder/YCbCrForwardConverter{TPixel}.cs

@ -1,4 +1,7 @@
using System; // Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using System;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.Advanced; using SixLabors.ImageSharp.Advanced;

37
src/ImageSharp/Formats/Jpeg/JpegEncoderCore.cs

@ -547,7 +547,13 @@ namespace SixLabors.ImageSharp.Formats.Jpeg
private void WriteDefineHuffmanTables(int componentCount) private void WriteDefineHuffmanTables(int componentCount)
{ {
// Table identifiers. // Table identifiers.
Span<byte> headers = stackalloc byte[] { 0x00, 0x10, 0x01, 0x11 }; Span<byte> headers = stackalloc byte[]
{
0x00,
0x10,
0x01,
0x11
};
int markerlen = 2; int markerlen = 2;
HuffmanSpec[] specs = HuffmanSpec.TheHuffmanSpecs; HuffmanSpec[] specs = HuffmanSpec.TheHuffmanSpecs;
@ -786,16 +792,37 @@ namespace SixLabors.ImageSharp.Formats.Jpeg
private void WriteStartOfFrame(int width, int height, int componentCount) private void WriteStartOfFrame(int width, int height, int componentCount)
{ {
// "default" to 4:2:0 // "default" to 4:2:0
Span<byte> subsamples = stackalloc byte[] { 0x22, 0x11, 0x11 }; Span<byte> subsamples = stackalloc byte[]
Span<byte> chroma = stackalloc byte[] { 0x00, 0x01, 0x01 }; {
0x22,
0x11,
0x11
};
Span<byte> chroma = stackalloc byte[]
{
0x00,
0x01,
0x01
};
switch (this.subsample) switch (this.subsample)
{ {
case JpegSubsample.Ratio444: case JpegSubsample.Ratio444:
subsamples = stackalloc byte[] { 0x11, 0x11, 0x11 }; subsamples = stackalloc byte[]
{
0x11,
0x11,
0x11
};
break; break;
case JpegSubsample.Ratio420: case JpegSubsample.Ratio420:
subsamples = stackalloc byte[] { 0x22, 0x11, 0x11 }; subsamples = stackalloc byte[]
{
0x22,
0x11,
0x11
};
break; break;
} }

5
src/ImageSharp/Formats/Png/Chunks/PhysicalChunkData.cs

@ -1,4 +1,7 @@
using System; // Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using System;
using System.Buffers.Binary; using System.Buffers.Binary;
using SixLabors.ImageSharp.Common.Helpers; using SixLabors.ImageSharp.Common.Helpers;
using SixLabors.ImageSharp.MetaData; using SixLabors.ImageSharp.MetaData;

3
src/ImageSharp/Formats/Png/Filters/UpFilter.cs

@ -57,7 +57,8 @@ namespace SixLabors.ImageSharp.Formats.Png.Filters
// Up(x) = Raw(x) - Prior(x) // Up(x) = Raw(x) - Prior(x)
resultBaseRef = 2; resultBaseRef = 2;
for (int x = 0; x < scanline.Length; /* Note: ++x happens in the body to avoid one add operation */) { for (int x = 0; x < scanline.Length; /* Note: ++x happens in the body to avoid one add operation */)
{
byte scan = Unsafe.Add(ref scanBaseRef, x); byte scan = Unsafe.Add(ref scanBaseRef, x);
byte above = Unsafe.Add(ref prevBaseRef, x); byte above = Unsafe.Add(ref prevBaseRef, x);
++x; ++x;

3
src/ImageSharp/Formats/Png/PngConstants.cs

@ -26,7 +26,8 @@ namespace SixLabors.ImageSharp.Formats.Png
/// </summary> /// </summary>
public static readonly IEnumerable<string> FileExtensions = new[] { "png" }; public static readonly IEnumerable<string> FileExtensions = new[] { "png" };
public static readonly byte[] HeaderBytes = { public static readonly byte[] HeaderBytes =
{
0x89, // Set the high bit. 0x89, // Set the high bit.
0x50, // P 0x50, // P
0x4E, // N 0x4E, // N

21
src/ImageSharp/ImageSharp.csproj

@ -31,20 +31,17 @@
<PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1' OR '$(TargetFramework)' == 'net472' "> <PropertyGroup Condition=" '$(TargetFramework)' == 'netcoreapp2.1' OR '$(TargetFramework)' == 'net472' ">
<DefineConstants>$(DefineConstants);SUPPORTS_EXTENDED_INTRINSICS</DefineConstants> <DefineConstants>$(DefineConstants);SUPPORTS_EXTENDED_INTRINSICS</DefineConstants>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Compile Include="..\Shared\*.cs" Exclude="bin\**;obj\**;**\*.xproj;packages\**" /> <Compile Include="..\Shared\*.cs" Exclude="bin\**;obj\**;**\*.xproj;packages\**" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<AdditionalFiles Include="..\..\standards\stylecop.json" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.1-beta.61" PrivateAssets="All" />
<PackageReference Include="SixLabors.Core" Version="1.0.0-beta0007" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.5.1" /> <PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.5.1" />
<PackageReference Include="SixLabors.Core" Version="1.0.0-dev000094" />
<AdditionalFiles Include="..\..\stylecop.json" />
<PackageReference Include="StyleCop.Analyzers" Version="1.1.0-beta007">
<PrivateAssets>All</PrivateAssets>
</PackageReference>
</ItemGroup> </ItemGroup>
<ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3'"> <ItemGroup Condition=" '$(TargetFramework)' == 'netstandard1.3'">
<PackageReference Include="System.IO.UnmanagedMemoryStream" Version="4.3.0" /> <PackageReference Include="System.IO.UnmanagedMemoryStream" Version="4.3.0" />
@ -52,14 +49,16 @@
<PackageReference Include="System.Threading.Tasks.Parallel" Version="4.3.0" /> <PackageReference Include="System.Threading.Tasks.Parallel" Version="4.3.0" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" /> <PackageReference Include="System.ValueTuple" Version="4.5.0" />
</ItemGroup> </ItemGroup>
<PropertyGroup> <PropertyGroup>
<CodeAnalysisRuleSet>..\..\ImageSharp.ruleset</CodeAnalysisRuleSet> <CodeAnalysisRuleSet>..\..\standards\SixLabors.ruleset</CodeAnalysisRuleSet>
<RootNamespace>SixLabors.ImageSharp</RootNamespace> <RootNamespace>SixLabors.ImageSharp</RootNamespace>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<None Update="Formats\Jpeg\Components\Block8x8F.Generated.tt"> <None Update="Formats\Jpeg\Components\Block8x8F.Generated.tt">
<Generator>TextTemplatingFileGenerator</Generator> <Generator>TextTemplatingFileGenerator</Generator>
@ -122,6 +121,7 @@
<Generator>TextTemplatingFileGenerator</Generator> <Generator>TextTemplatingFileGenerator</Generator>
</None> </None>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Update="Formats\Jpeg\Components\Block8x8F.Generated.cs"> <Compile Update="Formats\Jpeg\Components\Block8x8F.Generated.cs">
<DesignTime>True</DesignTime> <DesignTime>True</DesignTime>
@ -199,6 +199,7 @@
<DependentUpon>PorterDuffFunctions.Generated.tt</DependentUpon> <DependentUpon>PorterDuffFunctions.Generated.tt</DependentUpon>
</Compile> </Compile>
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" /> <Service Include="{508349b6-6b84-4df5-91f0-309beebad82d}" />
</ItemGroup> </ItemGroup>

2
src/ImageSharp/Memory/RowInterval.cs

@ -1,4 +1,4 @@
// Copyright(c) Six Labors and contributors. // Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0. // Licensed under the Apache License, Version 2.0.
using SixLabors.Primitives; using SixLabors.Primitives;

6
src/ImageSharp/MetaData/Profiles/Exif/ExifConstants.cs

@ -5,14 +5,16 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Exif
{ {
internal static class ExifConstants internal static class ExifConstants
{ {
public static readonly byte[] LittleEndianByteOrderMarker = { public static readonly byte[] LittleEndianByteOrderMarker =
{
(byte)'I', (byte)'I',
(byte)'I', (byte)'I',
0x2A, 0x2A,
0x00, 0x00,
}; };
public static readonly byte[] BigEndianByteOrderMarker = { public static readonly byte[] BigEndianByteOrderMarker =
{
(byte)'M', (byte)'M',
(byte)'M', (byte)'M',
0x00, 0x00,

2
src/ImageSharp/MetaData/Profiles/Exif/ExifTags.cs

@ -238,7 +238,7 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Exif
LensMake, LensMake,
LensModel, LensModel,
LensSerialNumber LensSerialNumber
}; };
/// <summary> /// <summary>
/// The collection of GPS tags /// The collection of GPS tags

7
src/ImageSharp/MetaData/Profiles/ICC/TagDataEntries/IccLut16TagDataEntry.cs

@ -13,7 +13,12 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc
/// </summary> /// </summary>
internal sealed class IccLut16TagDataEntry : IccTagDataEntry, IEquatable<IccLut16TagDataEntry> internal sealed class IccLut16TagDataEntry : IccTagDataEntry, IEquatable<IccLut16TagDataEntry>
{ {
private static readonly float[,] IdentityMatrix = { { 1, 0, 0 }, { 0, 1, 0 }, { 0, 0, 1 } }; private static readonly float[,] IdentityMatrix =
{
{ 1, 0, 0 },
{ 0, 1, 0 },
{ 0, 0, 1 }
};
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="IccLut16TagDataEntry"/> class. /// Initializes a new instance of the <see cref="IccLut16TagDataEntry"/> class.

7
src/ImageSharp/MetaData/Profiles/ICC/TagDataEntries/IccLut8TagDataEntry.cs

@ -13,7 +13,12 @@ namespace SixLabors.ImageSharp.MetaData.Profiles.Icc
/// </summary> /// </summary>
internal sealed class IccLut8TagDataEntry : IccTagDataEntry, IEquatable<IccLut8TagDataEntry> internal sealed class IccLut8TagDataEntry : IccTagDataEntry, IEquatable<IccLut8TagDataEntry>
{ {
private static readonly float[,] IdentityMatrix = { { 1, 0, 0 }, { 0, 1, 0 }, { 0, 0, 1 } }; private static readonly float[,] IdentityMatrix =
{
{ 1, 0, 0 },
{ 0, 1, 0 },
{ 0, 0, 1 }
};
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="IccLut8TagDataEntry"/> class. /// Initializes a new instance of the <see cref="IccLut8TagDataEntry"/> class.

5
src/ImageSharp/PixelFormats/Utils/Vector4Converters.Default.cs

@ -1,4 +1,7 @@
using System; // Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using System;
using System.Numerics; using System.Numerics;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;

5
src/ImageSharp/PixelFormats/Utils/Vector4Converters.RgbaCompatible.cs

@ -1,4 +1,7 @@
using System; // Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using System;
using System.Buffers; using System.Buffers;
using System.Numerics; using System.Numerics;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;

1
standards

@ -0,0 +1 @@
Subproject commit dd83f649638c6333984a757c01be6ec294e6b63c
Loading…
Cancel
Save