Browse Source

GolangPort namespaces following folder structure

pull/298/head
Anton Firszov 9 years ago
parent
commit
b6d4f352d9
  1. 2
      src/ImageSharp/Formats/Jpeg/Common/Block8x8F.cs
  2. 4
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/BlockQuad.cs
  3. 4
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/DCT.cs
  4. 2
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/Bits.cs
  5. 2
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/Bytes.cs
  6. 2
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/Component.cs
  7. 2
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/ComponentScan.cs
  8. 4
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/DecodedBlock.cs
  9. 2
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/DecoderErrorCode.cs
  10. 2
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/DecoderThrowHelper.cs
  11. 2
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/EOFException.cs
  12. 2
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/HuffmanTree.cs
  13. 2
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/InputProcessor.cs
  14. 4
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/JpegBlockProcessor.cs
  15. 4
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/JpegPixelArea.cs
  16. 4
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/JpegScanDecoder.ComputationData.cs
  17. 4
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/JpegScanDecoder.DataPointers.cs
  18. 4
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/JpegScanDecoder.cs
  19. 2
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/MissingFF00Exception.cs
  20. 4
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/YCbCrImage.cs
  21. 3
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/YCbCrToRgbTables.cs
  22. 2
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Encoder/HuffIndex.cs
  23. 2
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Encoder/HuffmanLut.cs
  24. 2
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Encoder/HuffmanSpec.cs
  25. 2
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Encoder/QuantIndex.cs
  26. 2
      src/ImageSharp/Formats/Jpeg/GolangPort/Components/Encoder/RgbToYCbCrTables.cs
  27. 2
      src/ImageSharp/Formats/Jpeg/GolangPort/JpegConstants.cs
  28. 4
      src/ImageSharp/Formats/Jpeg/GolangPort/JpegDecoderCore.cs
  29. 9
      src/ImageSharp/Formats/Jpeg/GolangPort/JpegEncoderCore.cs
  30. 3
      src/ImageSharp/Formats/Jpeg/GolangPort/Utils/JpegUtils.cs
  31. 2
      src/ImageSharp/Formats/Jpeg/GolangPort/Utils/MutableSpan.cs
  32. 2
      src/ImageSharp/Formats/Jpeg/GolangPort/Utils/MutableSpanExtensions.cs
  33. 1
      src/ImageSharp/Formats/Jpeg/JpegEncoder.cs
  34. 2
      src/ImageSharp/Formats/Jpeg/JpegFormat.cs
  35. 1
      tests/ImageSharp.Benchmarks/Image/DecodeJpegMultiple.cs
  36. 2
      tests/ImageSharp.Tests/Formats/Jpg/Block8x8FTests.cs
  37. 2
      tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.cs
  38. 1
      tests/ImageSharp.Tests/Formats/Jpg/JpegUtilityTestFixture.cs
  39. 1
      tests/ImageSharp.Tests/Formats/Jpg/JpegUtilsTests.cs
  40. 1
      tests/ImageSharp.Tests/Formats/Jpg/ReferenceImplementations.cs
  41. 1
      tests/ImageSharp.Tests/Formats/Jpg/ReferenceImplementationsTests.cs
  42. 1
      tests/ImageSharp.Tests/Formats/Jpg/YCbCrImageTests.cs

2
src/ImageSharp/Formats/Jpeg/Common/Block8x8F.cs

@ -11,6 +11,8 @@ namespace ImageSharp.Formats.Jpg
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using ImageSharp.Formats.Jpeg.GolangPort.Utils;
/// <summary>
/// DCT code Ported from https://github.com/norishigefukushima/dct_simd
/// </summary>

4
src/ImageSharp/Formats/Jpeg/GolangPort/Components/BlockQuad.cs

@ -2,8 +2,10 @@
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg.Components
namespace ImageSharp.Formats.Jpeg.GolangPort.Components
{
using ImageSharp.Formats.Jpg;
/// <summary>
/// Poor man's stackalloc: Contains a value-type <see cref="float"/> buffer sized for 4 <see cref="Block8x8F"/> instances.
/// Useful for decoder/encoder operations allocating a block for each Jpeg component.

4
src/ImageSharp/Formats/Jpeg/GolangPort/Components/DCT.cs

@ -4,11 +4,13 @@
// </copyright>
// ReSharper disable InconsistentNaming
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components
{
using System.Numerics;
using System.Runtime.CompilerServices;
using ImageSharp.Formats.Jpg;
/// <summary>
/// Contains forward and inverse DCT implementations
/// </summary>

2
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/Bits.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder
{
using System.Runtime.CompilerServices;

2
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/Bytes.cs

@ -2,7 +2,7 @@
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder
{
using System;
using System.Buffers;

2
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/Component.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder
{
/// <summary>
/// Represents a single color component

2
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/ComponentScan.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder
{
using System.Runtime.InteropServices;

4
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/DecodedBlock.cs

@ -3,9 +3,9 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder
{
using System;
using ImageSharp.Formats.Jpg;
/// <summary>
/// A structure to store unprocessed <see cref="Block8x8F"/> instances and their coordinates while scanning the image.

2
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/DecoderErrorCode.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder
{
/// <summary>
/// Represents "recoverable" decoder errors.

2
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/DecoderThrowHelper.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder
{
using System;
using System.Runtime.CompilerServices;

2
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/EOFException.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder
{
using System;

2
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/HuffmanTree.cs

@ -2,7 +2,7 @@
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder
{
using System;
using System.Buffers;

2
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/InputProcessor.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder
{
using System;
using System.IO;

4
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/JpegBlockProcessor.cs

@ -3,11 +3,11 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder
{
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using ImageSharp.Formats.Jpg;
using ImageSharp.Memory;
/// <summary>

4
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/JpegPixelArea.cs

@ -2,10 +2,12 @@
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder
{
using System.Runtime.CompilerServices;
using ImageSharp.Formats.Jpeg.GolangPort.Utils;
using ImageSharp.Formats.Jpg;
using ImageSharp.Memory;
/// <summary>

4
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/JpegScanDecoder.ComputationData.cs

@ -3,10 +3,12 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder
{
using System.Runtime.InteropServices;
using ImageSharp.Formats.Jpg;
/// <content>
/// Conains the definition of <see cref="ComputationData"/>
/// </content>

4
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/JpegScanDecoder.DataPointers.cs

@ -3,8 +3,10 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder
{
using ImageSharp.Formats.Jpg;
/// <content>
/// Conains the definition of <see cref="DataPointers"/>
/// </content>

4
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/JpegScanDecoder.cs

@ -3,12 +3,12 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
// ReSharper disable InconsistentNaming
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using ImageSharp.Formats.Jpg;
using ImageSharp.Memory;
/// <summary>

2
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/MissingFF00Exception.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder
{
using System;

4
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/YCbCrImage.cs

@ -2,12 +2,12 @@
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder
{
using System;
using System.Buffers;
using ImageSharp.Memory;
using SixLabors.Primitives;
/// <summary>

3
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Decoder/YCbCrToRgbTables.cs

@ -3,9 +3,10 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder
{
using System.Runtime.CompilerServices;
using ImageSharp.PixelFormats;
/// <summary>

2
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Encoder/HuffIndex.cs

@ -2,7 +2,7 @@
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Encoder
{
/// <summary>
/// Enumerates the Huffman tables

2
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Encoder/HuffmanLut.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Encoder
{
/// <summary>
/// A compiled look-up table representation of a huffmanSpec.

2
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Encoder/HuffmanSpec.cs

@ -2,7 +2,7 @@
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Encoder
{
/// <summary>
/// The Huffman encoding specifications.

2
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Encoder/QuantIndex.cs

@ -2,7 +2,7 @@
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Encoder
{
/// <summary>
/// Enumerates the quantization tables

2
src/ImageSharp/Formats/Jpeg/GolangPort/Components/Encoder/RgbToYCbCrTables.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Components.Encoder
{
using System.Runtime.CompilerServices;

2
src/ImageSharp/Formats/Jpeg/GolangPort/JpegConstants.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats
namespace ImageSharp.Formats.Jpeg.GolangPort
{
using System.Collections.Generic;

4
src/ImageSharp/Formats/Jpeg/GolangPort/JpegDecoderCore.cs

@ -3,14 +3,14 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats
namespace ImageSharp.Formats.Jpeg.GolangPort
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
using ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder;
using ImageSharp.Formats.Jpg;
using ImageSharp.Memory;
using ImageSharp.PixelFormats;

9
src/ImageSharp/Formats/Jpeg/GolangPort/JpegEncoderCore.cs

@ -3,15 +3,16 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats
namespace ImageSharp.Formats.Jpeg.GolangPort
{
using System.Buffers;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.CompilerServices;
using ImageSharp.Formats.Jpeg.GolangPort.Components;
using ImageSharp.Formats.Jpeg.GolangPort.Components.Encoder;
using ImageSharp.Formats.Jpeg.GolangPort.Utils;
using ImageSharp.Formats.Jpg;
using ImageSharp.Formats.Jpg.Components;
using ImageSharp.PixelFormats;
/// <summary>

3
src/ImageSharp/Formats/Jpeg/GolangPort/Utils/JpegUtils.cs

@ -2,9 +2,8 @@
// Copyright (c) James Jackson-South and contributors.
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Utils
{
using System;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

2
src/ImageSharp/Formats/Jpeg/GolangPort/Utils/MutableSpan.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Utils
{
using System.Runtime.CompilerServices;

2
src/ImageSharp/Formats/Jpeg/GolangPort/Utils/MutableSpanExtensions.cs

@ -3,7 +3,7 @@
// Licensed under the Apache License, Version 2.0.
// </copyright>
namespace ImageSharp.Formats.Jpg
namespace ImageSharp.Formats.Jpeg.GolangPort.Utils
{
using System.Numerics;
using System.Runtime.CompilerServices;

1
src/ImageSharp/Formats/Jpeg/JpegEncoder.cs

@ -9,6 +9,7 @@ namespace ImageSharp.Formats
using System.Collections.Generic;
using System.IO;
using ImageSharp.Formats.Jpeg.GolangPort;
using ImageSharp.PixelFormats;
/// <summary>

2
src/ImageSharp/Formats/Jpeg/JpegFormat.cs

@ -7,6 +7,8 @@ namespace ImageSharp.Formats
{
using System.Collections.Generic;
using ImageSharp.Formats.Jpeg.GolangPort;
/// <summary>
/// Registers the image encoders, decoders and mime type detectors for the jpeg format.
/// </summary>

1
tests/ImageSharp.Benchmarks/Image/DecodeJpegMultiple.cs

@ -11,6 +11,7 @@ namespace ImageSharp.Benchmarks.Image
using BenchmarkDotNet.Attributes;
using ImageSharp.Formats;
using ImageSharp.Formats.Jpeg.GolangPort;
using ImageSharp.PixelFormats;
using CoreImage = ImageSharp.Image;

2
tests/ImageSharp.Tests/Formats/Jpg/Block8x8FTests.cs

@ -14,6 +14,8 @@ namespace ImageSharp.Tests
using System.Numerics;
using ImageSharp.Formats;
using ImageSharp.Formats.Jpeg.GolangPort.Components;
using ImageSharp.Formats.Jpeg.GolangPort.Utils;
using ImageSharp.Formats.Jpg;
using Xunit;

2
tests/ImageSharp.Tests/Formats/Jpg/JpegDecoderTests.cs

@ -11,7 +11,7 @@ namespace ImageSharp.Tests
using System.Linq;
using ImageSharp.Formats;
using ImageSharp.Formats.Jpeg.GolangPort;
using ImageSharp.PixelFormats;
using ImageSharp.Tests.TestUtilities.ImageComparison;

1
tests/ImageSharp.Tests/Formats/Jpg/JpegUtilityTestFixture.cs

@ -13,6 +13,7 @@ namespace ImageSharp.Tests
using System;
using System.Diagnostics;
using ImageSharp.Formats.Jpeg.GolangPort.Utils;
using ImageSharp.Formats.Jpg;
public class JpegUtilityTestFixture : MeasureFixture

1
tests/ImageSharp.Tests/Formats/Jpg/JpegUtilsTests.cs

@ -9,6 +9,7 @@ namespace ImageSharp.Tests
using System;
using System.Numerics;
using ImageSharp.Formats.Jpeg.GolangPort.Utils;
using ImageSharp.Formats.Jpg;
using ImageSharp.PixelFormats;

1
tests/ImageSharp.Tests/Formats/Jpg/ReferenceImplementations.cs

@ -12,6 +12,7 @@ namespace ImageSharp.Tests
using System.Runtime.CompilerServices;
using ImageSharp.Formats;
using ImageSharp.Formats.Jpeg.GolangPort.Utils;
using ImageSharp.Formats.Jpg;
/// <summary>

1
tests/ImageSharp.Tests/Formats/Jpg/ReferenceImplementationsTests.cs

@ -6,6 +6,7 @@
// ReSharper disable InconsistentNaming
namespace ImageSharp.Tests.Formats.Jpg
{
using ImageSharp.Formats.Jpeg.GolangPort.Utils;
using ImageSharp.Formats.Jpg;
using Xunit;

1
tests/ImageSharp.Tests/Formats/Jpg/YCbCrImageTests.cs

@ -5,6 +5,7 @@
namespace ImageSharp.Tests
{
using ImageSharp.Formats.Jpeg.GolangPort.Components.Decoder;
using ImageSharp.Formats.Jpg;
using SixLabors.Primitives;
using Xunit;

Loading…
Cancel
Save