Browse Source

remove Unsafe from namespace

pull/299/head
Scott Williams 9 years ago
parent
commit
5adcfdb653
  1. 2
      src/ImageSharp.Drawing/Brushes/ImageBrush{TPixel}.cs
  2. 2
      src/ImageSharp.Drawing/Brushes/PatternBrush{TPixel}.cs
  3. 2
      src/ImageSharp.Drawing/Brushes/Processors/BrushApplicator.cs
  4. 2
      src/ImageSharp.Drawing/Brushes/RecolorBrush{TPixel}.cs
  5. 2
      src/ImageSharp.Drawing/Brushes/SolidBrush{TPixel}.cs
  6. 2
      src/ImageSharp/Advanced/IPixelSource{TPixel}.cs
  7. 2
      src/ImageSharp/Advanced/ImageExtensions.cs
  8. 2
      src/ImageSharp/Dithering/ErrorDiffusion/ErrorDiffuserBase.cs
  9. 2
      src/ImageSharp/Formats/Gif/GifDecoderCore.cs
  10. 2
      src/ImageSharp/Formats/Jpeg/Common/Decoder/JpegImagePostProcessor.cs
  11. 2
      src/ImageSharp/Formats/Jpeg/PdfJsPort/PdfJsJpegDecoderCore.cs
  12. 2
      src/ImageSharp/Formats/Png/PngDecoderCore.cs
  13. 2
      src/ImageSharp/Formats/Png/PngEncoderCore.cs
  14. 2
      src/ImageSharp/Image/Image.LoadPixelData.cs
  15. 2
      src/ImageSharp/Image/ImageBase{TPixel}.cs
  16. 2
      src/ImageSharp/Image/ImageExtensions.cs
  17. 2
      src/ImageSharp/Processing/Processors/Binarization/BinaryThresholdProcessor.cs
  18. 2
      src/ImageSharp/Processing/Processors/Binarization/ErrorDiffusionDitherProcessor.cs
  19. 2
      src/ImageSharp/Processing/Processors/Binarization/OrderedDitherProcessor.cs
  20. 2
      src/ImageSharp/Processing/Processors/ColorMatrix/ColorMatrixProcessor.cs
  21. 2
      src/ImageSharp/Processing/Processors/Convolution/Convolution2DProcessor.cs
  22. 2
      src/ImageSharp/Processing/Processors/Convolution/ConvolutionProcessor.cs
  23. 2
      src/ImageSharp/Processing/Processors/Effects/AlphaProcessor.cs
  24. 2
      src/ImageSharp/Processing/Processors/Effects/BackgroundColorProcessor.cs
  25. 2
      src/ImageSharp/Processing/Processors/Effects/BrightnessProcessor.cs
  26. 2
      src/ImageSharp/Processing/Processors/Effects/ContrastProcessor.cs
  27. 2
      src/ImageSharp/Processing/Processors/Effects/InvertProcessor.cs
  28. 2
      src/ImageSharp/Processing/Processors/Effects/OilPaintingProcessor.cs
  29. 2
      src/ImageSharp/Processing/Processors/Effects/PixelateProcessor.cs
  30. 2
      src/ImageSharp/Processing/Processors/Overlays/GlowProcessor.cs
  31. 2
      src/ImageSharp/Processing/Processors/Overlays/VignetteProcessor.cs
  32. 2
      src/ImageSharp/Processing/Processors/Transforms/CropProcessor.cs
  33. 2
      src/ImageSharp/Processing/Processors/Transforms/FlipProcessor.cs
  34. 2
      src/ImageSharp/Processing/Processors/Transforms/ResizeProcessor.cs
  35. 2
      src/ImageSharp/Processing/Processors/Transforms/RotateProcessor.cs
  36. 2
      src/ImageSharp/Quantizers/OctreeQuantizer{TPixel}.cs
  37. 2
      src/ImageSharp/Quantizers/PaletteQuantizer{TPixel}.cs
  38. 2
      src/ImageSharp/Quantizers/QuantizerBase{TPixel}.cs
  39. 2
      src/ImageSharp/Quantizers/WuQuantizer{TPixel}.cs
  40. 2
      tests/ImageSharp.Benchmarks/Image/CopyPixels.cs
  41. 2
      tests/ImageSharp.Tests/Image/ImageLoadTests.cs
  42. 2
      tests/ImageSharp.Tests/Processing/Processors/ColorMatrix/GrayscaleTest.cs
  43. 2
      tests/ImageSharp.Tests/TestUtilities/ImageComparison/ExactImageComparer.cs
  44. 2
      tests/ImageSharp.Tests/TestUtilities/ImageComparison/TolerantImageComparer.cs
  45. 2
      tests/ImageSharp.Tests/TestUtilities/ReferenceCodecs/SystemDrawingBridge.cs
  46. 2
      tests/ImageSharp.Tests/TestUtilities/TestImageExtensions.cs

2
src/ImageSharp.Drawing/Brushes/ImageBrush{TPixel}.cs

@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0.
using System;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Drawing.Brushes.Processors;
using SixLabors.ImageSharp.Drawing.Processors;
using SixLabors.ImageSharp.Memory;

2
src/ImageSharp.Drawing/Brushes/PatternBrush{TPixel}.cs

@ -3,7 +3,7 @@
using System;
using System.Numerics;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Drawing.Brushes.Processors;
using SixLabors.ImageSharp.Drawing.Processors;
using SixLabors.ImageSharp.Memory;

2
src/ImageSharp.Drawing/Brushes/Processors/BrushApplicator.cs

@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0.
using System;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;

2
src/ImageSharp.Drawing/Brushes/RecolorBrush{TPixel}.cs

@ -3,7 +3,7 @@
using System;
using System.Numerics;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Drawing.Brushes.Processors;
using SixLabors.ImageSharp.Drawing.Processors;
using SixLabors.ImageSharp.Memory;

2
src/ImageSharp.Drawing/Brushes/SolidBrush{TPixel}.cs

@ -3,7 +3,7 @@
using System;
using System.Numerics;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Drawing.Brushes.Processors;
using SixLabors.ImageSharp.Drawing.Processors;
using SixLabors.ImageSharp.Memory;

2
src/ImageSharp/Advanced/Unsafe/IPixelSource{TPixel}.cs → src/ImageSharp/Advanced/IPixelSource{TPixel}.cs

@ -4,7 +4,7 @@
using System;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Advanced.Unsafe
namespace SixLabors.ImageSharp.Advanced
{
/// <summary>
/// Allows access to the pixels as an area of contiguous memory in the given pixel format.

2
src/ImageSharp/Advanced/Unsafe/ImageExtensions.cs → src/ImageSharp/Advanced/ImageExtensions.cs

@ -9,7 +9,7 @@ using SixLabors.ImageSharp.Formats;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;
namespace SixLabors.ImageSharp.Advanced.Unsafe
namespace SixLabors.ImageSharp.Advanced
{
/// <summary>
/// Extension methods over Image{TPixel}

2
src/ImageSharp/Dithering/ErrorDiffusion/ErrorDiffuserBase.cs

@ -4,7 +4,7 @@
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;

2
src/ImageSharp/Formats/Gif/GifDecoderCore.cs

@ -6,7 +6,7 @@ using System.Buffers;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.MetaData;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
src/ImageSharp/Formats/Jpeg/Common/Decoder/JpegImagePostProcessor.cs

@ -1,7 +1,7 @@
using System;
using System.Linq;
using System.Numerics;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
src/ImageSharp/Formats/Jpeg/PdfJsPort/PdfJsJpegDecoderCore.cs

@ -4,7 +4,7 @@
using System;
using System.IO;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Formats.Jpeg.PdfJsPort.Components;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.MetaData;

2
src/ImageSharp/Formats/Png/PngDecoderCore.cs

@ -8,7 +8,7 @@ using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using System.Text;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Formats.Png.Filters;
using SixLabors.ImageSharp.Formats.Png.Zlib;
using SixLabors.ImageSharp.Memory;

2
src/ImageSharp/Formats/Png/PngEncoderCore.cs

@ -6,7 +6,7 @@ using System.Buffers;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Formats.Png.Filters;
using SixLabors.ImageSharp.Formats.Png.Zlib;
using SixLabors.ImageSharp.Memory;

2
src/ImageSharp/Image/Image.LoadPixelData.cs

@ -5,7 +5,7 @@ using System;
using System.IO;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Formats;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;

2
src/ImageSharp/Image/ImageBase{TPixel}.cs

@ -4,7 +4,7 @@
using System;
using System.Diagnostics;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;

2
src/ImageSharp/Image/ImageExtensions.cs

@ -6,7 +6,7 @@ using System.Collections.Generic;
using System.IO;
using System.Runtime.CompilerServices;
using System.Text;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Formats;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
src/ImageSharp/Processing/Processors/Binarization/BinaryThresholdProcessor.cs

@ -3,7 +3,7 @@
using System;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
src/ImageSharp/Processing/Processors/Binarization/ErrorDiffusionDitherProcessor.cs

@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0.
using System;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Dithering;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
src/ImageSharp/Processing/Processors/Binarization/OrderedDitherProcessor.cs

@ -3,7 +3,7 @@
using System;
using System.Buffers;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Dithering;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
src/ImageSharp/Processing/Processors/ColorMatrix/ColorMatrixProcessor.cs

@ -4,7 +4,7 @@
using System;
using System.Numerics;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
src/ImageSharp/Processing/Processors/Convolution/Convolution2DProcessor.cs

@ -4,7 +4,7 @@
using System;
using System.Numerics;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
src/ImageSharp/Processing/Processors/Convolution/ConvolutionProcessor.cs

@ -4,7 +4,7 @@
using System;
using System.Numerics;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
src/ImageSharp/Processing/Processors/Effects/AlphaProcessor.cs

@ -4,7 +4,7 @@
using System;
using System.Numerics;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
src/ImageSharp/Processing/Processors/Effects/BackgroundColorProcessor.cs

@ -3,7 +3,7 @@
using System;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
src/ImageSharp/Processing/Processors/Effects/BrightnessProcessor.cs

@ -4,7 +4,7 @@
using System;
using System.Numerics;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
src/ImageSharp/Processing/Processors/Effects/ContrastProcessor.cs

@ -4,7 +4,7 @@
using System;
using System.Numerics;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
src/ImageSharp/Processing/Processors/Effects/InvertProcessor.cs

@ -4,7 +4,7 @@
using System;
using System.Numerics;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
src/ImageSharp/Processing/Processors/Effects/OilPaintingProcessor.cs

@ -4,7 +4,7 @@
using System;
using System.Numerics;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
src/ImageSharp/Processing/Processors/Effects/PixelateProcessor.cs

@ -4,7 +4,7 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Common;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
src/ImageSharp/Processing/Processors/Overlays/GlowProcessor.cs

@ -4,7 +4,7 @@
using System;
using System.Numerics;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
src/ImageSharp/Processing/Processors/Overlays/VignetteProcessor.cs

@ -4,7 +4,7 @@
using System;
using System.Numerics;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
src/ImageSharp/Processing/Processors/Transforms/CropProcessor.cs

@ -3,7 +3,7 @@
using System;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
src/ImageSharp/Processing/Processors/Transforms/FlipProcessor.cs

@ -3,7 +3,7 @@
using System;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
src/ImageSharp/Processing/Processors/Transforms/ResizeProcessor.cs

@ -4,7 +4,7 @@
using System;
using System.Numerics;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
src/ImageSharp/Processing/Processors/Transforms/RotateProcessor.cs

@ -4,7 +4,7 @@
using System;
using System.Numerics;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
src/ImageSharp/Quantizers/OctreeQuantizer{TPixel}.cs

@ -4,7 +4,7 @@
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Quantizers.Base;

2
src/ImageSharp/Quantizers/PaletteQuantizer{TPixel}.cs

@ -4,7 +4,7 @@
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Quantizers.Base;

2
src/ImageSharp/Quantizers/QuantizerBase{TPixel}.cs

@ -5,7 +5,7 @@ using System;
using System.Collections.Generic;
using System.Numerics;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Dithering;
using SixLabors.ImageSharp.PixelFormats;

2
src/ImageSharp/Quantizers/WuQuantizer{TPixel}.cs

@ -6,7 +6,7 @@ using System.Buffers;
using System.Collections.Generic;
using System.Numerics;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Quantizers.Base;

2
tests/ImageSharp.Benchmarks/Image/CopyPixels.cs

@ -9,7 +9,7 @@ namespace SixLabors.ImageSharp.Benchmarks.Image
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory;
public class CopyPixels : BenchmarkBase

2
tests/ImageSharp.Tests/Image/ImageLoadTests.cs

@ -7,7 +7,7 @@ using SixLabors.ImageSharp.Formats;
using SixLabors.ImageSharp.IO;
using Moq;
using Xunit;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
namespace SixLabors.ImageSharp.Tests
{

2
tests/ImageSharp.Tests/Processing/Processors/ColorMatrix/GrayscaleTest.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors and contributors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison;

2
tests/ImageSharp.Tests/TestUtilities/ImageComparison/ExactImageComparer.cs

@ -2,7 +2,7 @@ namespace SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison
{
using System;
using System.Collections.Generic;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
tests/ImageSharp.Tests/TestUtilities/ImageComparison/TolerantImageComparer.cs

@ -4,7 +4,7 @@
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.Primitives;

2
tests/ImageSharp.Tests/TestUtilities/ReferenceCodecs/SystemDrawingBridge.cs

@ -4,7 +4,7 @@
using System;
using System.Drawing.Imaging;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;

2
tests/ImageSharp.Tests/TestUtilities/TestImageExtensions.cs

@ -14,7 +14,7 @@ using SixLabors.ImageSharp.Tests.TestUtilities.ReferenceCodecs;
namespace SixLabors.ImageSharp.Tests
{
using System.Numerics;
using SixLabors.ImageSharp.Advanced.Unsafe;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Memory;
public static class TestImageExtensions

Loading…
Cancel
Save