Browse Source
Flatten namespace.
Signed-off-by: 舰队的偶像-岛风酱! <frg2089@outlook.com>
pull/2579/head
舰队的偶像-岛风酱!
2 years ago
No known key found for this signature in database
GPG Key ID: 71F5B3A2B181950C
19 changed files with
30 additions and
26 deletions
-
src/ImageSharp/Configuration.cs
-
src/ImageSharp/Formats/Cur/CurConfigurationModule.cs
-
src/ImageSharp/Formats/Cur/CurConstants.cs
-
src/ImageSharp/Formats/Cur/CurDecoder.cs
-
src/ImageSharp/Formats/Cur/CurDecoderCore.cs
-
src/ImageSharp/Formats/Cur/CurFormat.cs
-
src/ImageSharp/Formats/Cur/CurFrameMetadata.cs
-
src/ImageSharp/Formats/Cur/CurMetadata.cs
-
src/ImageSharp/Formats/Cur/MetadataExtensions.cs
-
src/ImageSharp/Formats/Ico/IcoConfigurationModule.cs
-
src/ImageSharp/Formats/Ico/IcoConstants.cs
-
src/ImageSharp/Formats/Ico/IcoDecoder.cs
-
src/ImageSharp/Formats/Ico/IcoDecoderCore.cs
-
src/ImageSharp/Formats/Ico/IcoFormat.cs
-
src/ImageSharp/Formats/Ico/IcoFrameMetadata.cs
-
src/ImageSharp/Formats/Ico/IcoMetadata.cs
-
src/ImageSharp/Formats/Ico/MetadataExtensions.cs
-
tests/ImageSharp.Tests/Formats/Icon/Cur/CurDecoderTests.cs
-
tests/ImageSharp.Tests/Formats/Icon/Ico/IcoDecoderTests.cs
|
|
|
@ -4,9 +4,9 @@ |
|
|
|
using System.Collections.Concurrent; |
|
|
|
using SixLabors.ImageSharp.Formats; |
|
|
|
using SixLabors.ImageSharp.Formats.Bmp; |
|
|
|
using SixLabors.ImageSharp.Formats.Cur; |
|
|
|
using SixLabors.ImageSharp.Formats.Gif; |
|
|
|
using SixLabors.ImageSharp.Formats.Icon.Cur; |
|
|
|
using SixLabors.ImageSharp.Formats.Icon.Ico; |
|
|
|
using SixLabors.ImageSharp.Formats.Ico; |
|
|
|
using SixLabors.ImageSharp.Formats.Jpeg; |
|
|
|
using SixLabors.ImageSharp.Formats.Pbm; |
|
|
|
using SixLabors.ImageSharp.Formats.Png; |
|
|
|
|
|
|
|
@ -1,7 +1,9 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Icon.Cur; |
|
|
|
using SixLabors.ImageSharp.Formats.Icon; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Cur; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Registers the image encoders, decoders and mime type detectors for the Ico format.
|
|
|
|
@ -1,7 +1,7 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Icon.Cur; |
|
|
|
namespace SixLabors.ImageSharp.Formats.Cur; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Defines constants relating to ICOs
|
|
|
|
@ -3,7 +3,7 @@ |
|
|
|
|
|
|
|
using SixLabors.ImageSharp.PixelFormats; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Icon.Cur; |
|
|
|
namespace SixLabors.ImageSharp.Formats.Cur; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Decoder for generating an image out of a ico encoded stream.
|
|
|
|
@ -1,11 +1,10 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
|
|
|
|
using SixLabors.ImageSharp.Formats.Icon; |
|
|
|
using SixLabors.ImageSharp.Metadata; |
|
|
|
|
|
|
|
// TODO: flatten namespace.
|
|
|
|
// namespace SixLabors.ImageSharp.Formats.Cur;
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Icon.Cur; |
|
|
|
namespace SixLabors.ImageSharp.Formats.Cur; |
|
|
|
|
|
|
|
internal sealed class CurDecoderCore : IconDecoderCore |
|
|
|
{ |
|
|
|
@ -1,7 +1,7 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Icon.Cur; |
|
|
|
namespace SixLabors.ImageSharp.Formats.Cur; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Registers the image encoders, decoders and mime type detectors for the ICO format.
|
|
|
|
@ -1,7 +1,9 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Icon.Cur; |
|
|
|
using SixLabors.ImageSharp.Formats.Icon; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Cur; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// IcoFrameMetadata.
|
|
|
|
@ -1,7 +1,7 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Icon.Cur; |
|
|
|
namespace SixLabors.ImageSharp.Formats.Cur; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Provides Ico specific metadata information for the image.
|
|
|
|
@ -4,7 +4,7 @@ |
|
|
|
using System.Diagnostics.CodeAnalysis; |
|
|
|
using SixLabors.ImageSharp.Metadata; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Icon.Cur; |
|
|
|
namespace SixLabors.ImageSharp.Formats.Cur; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Extension methods for the <see cref="ImageMetadata"/> type.
|
|
|
|
@ -1,7 +1,9 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Icon.Ico; |
|
|
|
using SixLabors.ImageSharp.Formats.Icon; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Ico; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Registers the image encoders, decoders and mime type detectors for the Ico format.
|
|
|
|
@ -1,7 +1,7 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Icon.Ico; |
|
|
|
namespace SixLabors.ImageSharp.Formats.Ico; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Defines constants relating to ICOs
|
|
|
|
@ -3,7 +3,7 @@ |
|
|
|
|
|
|
|
using SixLabors.ImageSharp.PixelFormats; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Icon.Ico; |
|
|
|
namespace SixLabors.ImageSharp.Formats.Ico; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Decoder for generating an image out of a ico encoded stream.
|
|
|
|
@ -1,11 +1,10 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
|
|
|
|
using SixLabors.ImageSharp.Formats.Icon; |
|
|
|
using SixLabors.ImageSharp.Metadata; |
|
|
|
|
|
|
|
// TODO: flatten namespace.
|
|
|
|
// namespace SixLabors.ImageSharp.Formats.Ico;
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Icon.Ico; |
|
|
|
namespace SixLabors.ImageSharp.Formats.Ico; |
|
|
|
|
|
|
|
internal sealed class IcoDecoderCore : IconDecoderCore |
|
|
|
{ |
|
|
|
@ -1,7 +1,7 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Icon.Ico; |
|
|
|
namespace SixLabors.ImageSharp.Formats.Ico; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Registers the image encoders, decoders and mime type detectors for the ICO format.
|
|
|
|
@ -1,7 +1,9 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Icon.Ico; |
|
|
|
using SixLabors.ImageSharp.Formats.Icon; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Ico; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// IcoFrameMetadata. TODO: Remove base class and merge into this class.
|
|
|
|
@ -1,7 +1,7 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Icon.Ico; |
|
|
|
namespace SixLabors.ImageSharp.Formats.Ico; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Provides Ico specific metadata information for the image.
|
|
|
|
@ -4,7 +4,7 @@ |
|
|
|
using System.Diagnostics.CodeAnalysis; |
|
|
|
using SixLabors.ImageSharp.Metadata; |
|
|
|
|
|
|
|
namespace SixLabors.ImageSharp.Formats.Icon.Ico; |
|
|
|
namespace SixLabors.ImageSharp.Formats.Ico; |
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// Extension methods for the <see cref="ImageMetadata"/> type.
|
|
|
|
@ -1,7 +1,7 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
|
|
|
|
using SixLabors.ImageSharp.Formats.Icon.Cur; |
|
|
|
using SixLabors.ImageSharp.Formats.Cur; |
|
|
|
using SixLabors.ImageSharp.PixelFormats; |
|
|
|
using static SixLabors.ImageSharp.Tests.TestImages.Cur; |
|
|
|
|
|
|
|
@ -19,8 +19,6 @@ public class CurDecoderTests |
|
|
|
|
|
|
|
image.DebugSaveMultiFrame(provider, extension: "png"); |
|
|
|
|
|
|
|
image.DebugSaveMultiFrame(provider, extension: "png"); |
|
|
|
|
|
|
|
// TODO: Assert metadata, frame count, etc
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -1,7 +1,7 @@ |
|
|
|
// Copyright (c) Six Labors.
|
|
|
|
// Licensed under the Six Labors Split License.
|
|
|
|
|
|
|
|
using SixLabors.ImageSharp.Formats.Icon.Ico; |
|
|
|
using SixLabors.ImageSharp.Formats.Ico; |
|
|
|
using SixLabors.ImageSharp.PixelFormats; |
|
|
|
using static SixLabors.ImageSharp.Tests.TestImages.Ico; |
|
|
|
|
|
|
|
|