Browse Source

Change tiff namespace to SixLabors.ImageSharp.Formats.Tiff;

pull/1553/head
Brian Popow 5 years ago
parent
commit
fa6401c011
  1. 2
      src/ImageSharp/Advanced/AotCompilerTools.cs
  2. 20
      src/ImageSharp/Formats/ImageExtensions.Save.cs
  3. 20
      src/ImageSharp/Formats/ImageExtensions.Save.tt
  4. 2
      src/ImageSharp/Formats/Tiff/Compression/BitWriterUtils.cs
  5. 4
      src/ImageSharp/Formats/Tiff/Compression/Compressors/DeflateCompressor.cs
  6. 4
      src/ImageSharp/Formats/Tiff/Compression/Compressors/LzwCompressor.cs
  7. 4
      src/ImageSharp/Formats/Tiff/Compression/Compressors/NoCompressor.cs
  8. 4
      src/ImageSharp/Formats/Tiff/Compression/Compressors/PackBitsCompressor.cs
  9. 2
      src/ImageSharp/Formats/Tiff/Compression/Compressors/PackBitsWriter.cs
  10. 4
      src/ImageSharp/Formats/Tiff/Compression/Compressors/T4BitCompressor.cs
  11. 2
      src/ImageSharp/Formats/Tiff/Compression/Compressors/TiffLzwEncoder.cs
  12. 5
      src/ImageSharp/Formats/Tiff/Compression/Decompressors/DeflateTiffCompression.cs
  13. 4
      src/ImageSharp/Formats/Tiff/Compression/Decompressors/LzwString.cs
  14. 5
      src/ImageSharp/Formats/Tiff/Compression/Decompressors/LzwTiffCompression.cs
  15. 4
      src/ImageSharp/Formats/Tiff/Compression/Decompressors/ModifiedHuffmanTiffCompression.cs
  16. 2
      src/ImageSharp/Formats/Tiff/Compression/Decompressors/NoneTiffCompression.cs
  17. 2
      src/ImageSharp/Formats/Tiff/Compression/Decompressors/PackBitsTiffCompression.cs
  18. 2
      src/ImageSharp/Formats/Tiff/Compression/Decompressors/T4BitReader.cs
  19. 4
      src/ImageSharp/Formats/Tiff/Compression/Decompressors/T4TiffCompression.cs
  20. 6
      src/ImageSharp/Formats/Tiff/Compression/Decompressors/TiffLzwDecoder.cs
  21. 2
      src/ImageSharp/Formats/Tiff/Compression/FaxCompressionOptions.cs
  22. 2
      src/ImageSharp/Formats/Tiff/Compression/HorizontalPredictor.cs
  23. 4
      src/ImageSharp/Formats/Tiff/Compression/TiffBaseCompression.cs
  24. 4
      src/ImageSharp/Formats/Tiff/Compression/TiffBaseCompressor.cs
  25. 4
      src/ImageSharp/Formats/Tiff/Compression/TiffBaseDecompressor.cs
  26. 6
      src/ImageSharp/Formats/Tiff/Compression/TiffCompressorFactory.cs
  27. 2
      src/ImageSharp/Formats/Tiff/Compression/TiffDecoderCompressionType.cs
  28. 6
      src/ImageSharp/Formats/Tiff/Compression/TiffDecompressorsFactory.cs
  29. 2
      src/ImageSharp/Formats/Tiff/ConfigurationExtensions.cs
  30. 2
      src/ImageSharp/Formats/Tiff/Constants/TiffCompression.cs
  31. 2
      src/ImageSharp/Formats/Tiff/Constants/TiffConstants.cs
  32. 2
      src/ImageSharp/Formats/Tiff/Constants/TiffExtraSamples.cs
  33. 2
      src/ImageSharp/Formats/Tiff/Constants/TiffFillOrder.cs
  34. 2
      src/ImageSharp/Formats/Tiff/Constants/TiffNewSubfileType.cs
  35. 2
      src/ImageSharp/Formats/Tiff/Constants/TiffOrientation.cs
  36. 2
      src/ImageSharp/Formats/Tiff/Constants/TiffPhotometricInterpretation.cs
  37. 2
      src/ImageSharp/Formats/Tiff/Constants/TiffPlanarConfiguration.cs
  38. 2
      src/ImageSharp/Formats/Tiff/Constants/TiffPredictor.cs
  39. 2
      src/ImageSharp/Formats/Tiff/Constants/TiffSampleFormat.cs
  40. 2
      src/ImageSharp/Formats/Tiff/Constants/TiffSubfileType.cs
  41. 2
      src/ImageSharp/Formats/Tiff/Constants/TiffThresholding.cs
  42. 2
      src/ImageSharp/Formats/Tiff/ITiffDecoderOptions.cs
  43. 4
      src/ImageSharp/Formats/Tiff/ITiffEncoderOptions.cs
  44. 4
      src/ImageSharp/Formats/Tiff/Ifd/DirectoryReader.cs
  45. 4
      src/ImageSharp/Formats/Tiff/Ifd/EntryReader.cs
  46. 2
      src/ImageSharp/Formats/Tiff/MetadataExtensions.cs
  47. 2
      src/ImageSharp/Formats/Tiff/PhotometricInterpretation/BlackIsZero1TiffColor.cs
  48. 2
      src/ImageSharp/Formats/Tiff/PhotometricInterpretation/BlackIsZero4TiffColor.cs
  49. 2
      src/ImageSharp/Formats/Tiff/PhotometricInterpretation/BlackIsZero8TiffColor.cs
  50. 4
      src/ImageSharp/Formats/Tiff/PhotometricInterpretation/BlackIsZeroTiffColor.cs
  51. 4
      src/ImageSharp/Formats/Tiff/PhotometricInterpretation/PaletteTiffColor.cs
  52. 2
      src/ImageSharp/Formats/Tiff/PhotometricInterpretation/Rgb888TiffColor.cs
  53. 4
      src/ImageSharp/Formats/Tiff/PhotometricInterpretation/RgbPlanarTiffColor.cs
  54. 4
      src/ImageSharp/Formats/Tiff/PhotometricInterpretation/RgbTiffColor.cs
  55. 2
      src/ImageSharp/Formats/Tiff/PhotometricInterpretation/TiffBaseColorDecoder.cs
  56. 2
      src/ImageSharp/Formats/Tiff/PhotometricInterpretation/TiffColorDecoderFactory.cs
  57. 2
      src/ImageSharp/Formats/Tiff/PhotometricInterpretation/TiffColorType.cs
  58. 2
      src/ImageSharp/Formats/Tiff/PhotometricInterpretation/WhiteIsZero1TiffColor.cs
  59. 2
      src/ImageSharp/Formats/Tiff/PhotometricInterpretation/WhiteIsZero4TiffColor.cs
  60. 2
      src/ImageSharp/Formats/Tiff/PhotometricInterpretation/WhiteIsZero8TiffColor.cs
  61. 4
      src/ImageSharp/Formats/Tiff/PhotometricInterpretation/WhiteIsZeroTiffColor.cs
  62. 2
      src/ImageSharp/Formats/Tiff/TiffBitsPerPixel.cs
  63. 4
      src/ImageSharp/Formats/Tiff/TiffBitsPerSampleExtensions.cs
  64. 2
      src/ImageSharp/Formats/Tiff/TiffConfigurationModule.cs
  65. 4
      src/ImageSharp/Formats/Tiff/TiffDecoder.cs
  66. 9
      src/ImageSharp/Formats/Tiff/TiffDecoderCore.cs
  67. 2
      src/ImageSharp/Formats/Tiff/TiffDecoderMetadataCreator.cs
  68. 7
      src/ImageSharp/Formats/Tiff/TiffDecoderOptionsParser.cs
  69. 6
      src/ImageSharp/Formats/Tiff/TiffEncoder.cs
  70. 8
      src/ImageSharp/Formats/Tiff/TiffEncoderCore.cs
  71. 4
      src/ImageSharp/Formats/Tiff/TiffEncoderEntriesCollector.cs
  72. 2
      src/ImageSharp/Formats/Tiff/TiffEncodingMode.cs
  73. 4
      src/ImageSharp/Formats/Tiff/TiffFormat.cs
  74. 5
      src/ImageSharp/Formats/Tiff/TiffFrameMetadata.cs
  75. 2
      src/ImageSharp/Formats/Tiff/TiffImageFormatDetector.cs
  76. 4
      src/ImageSharp/Formats/Tiff/TiffMetadata.cs
  77. 2
      src/ImageSharp/Formats/Tiff/TiffThrowHelper.cs
  78. 2
      src/ImageSharp/Formats/Tiff/Utils/BitReader.cs
  79. 4
      src/ImageSharp/Formats/Tiff/Writers/TiffBaseColorWriter.cs
  80. 6
      src/ImageSharp/Formats/Tiff/Writers/TiffBiColorWriter.cs
  81. 2
      src/ImageSharp/Formats/Tiff/Writers/TiffColorWriterFactory.cs
  82. 4
      src/ImageSharp/Formats/Tiff/Writers/TiffCompositeColorWriter.cs
  83. 2
      src/ImageSharp/Formats/Tiff/Writers/TiffGrayWriter.cs
  84. 4
      src/ImageSharp/Formats/Tiff/Writers/TiffPaletteWriter.cs
  85. 2
      src/ImageSharp/Formats/Tiff/Writers/TiffRgbWriter.cs
  86. 2
      src/ImageSharp/Formats/Tiff/Writers/TiffStreamWriter.cs
  87. 2
      tests/ImageSharp.Benchmarks/Codecs/DecodeTiff.cs
  88. 4
      tests/ImageSharp.Benchmarks/Codecs/EncodeTiff.cs
  89. 4
      tests/ImageSharp.Tests/Formats/Tiff/Compression/DeflateTiffCompressionTests.cs
  90. 6
      tests/ImageSharp.Tests/Formats/Tiff/Compression/LzwTiffCompressionTests.cs
  91. 2
      tests/ImageSharp.Tests/Formats/Tiff/Compression/NoneTiffCompressionTests.cs
  92. 4
      tests/ImageSharp.Tests/Formats/Tiff/Compression/PackBitsTiffCompressionTests.cs
  93. 2
      tests/ImageSharp.Tests/Formats/Tiff/ImageExtensionsTest.cs
  94. 2
      tests/ImageSharp.Tests/Formats/Tiff/PhotometricInterpretation/BlackIsZeroTiffColorTests.cs
  95. 2
      tests/ImageSharp.Tests/Formats/Tiff/PhotometricInterpretation/PaletteTiffColorTests.cs
  96. 2
      tests/ImageSharp.Tests/Formats/Tiff/PhotometricInterpretation/RgbPlanarTiffColorTests.cs
  97. 2
      tests/ImageSharp.Tests/Formats/Tiff/PhotometricInterpretation/RgbTiffColorTests.cs
  98. 2
      tests/ImageSharp.Tests/Formats/Tiff/PhotometricInterpretation/WhiteIsZeroTiffColorTests.cs
  99. 2
      tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderTests.cs
  100. 4
      tests/ImageSharp.Tests/Formats/Tiff/TiffEncoderHeaderTests.cs

2
src/ImageSharp/Advanced/AotCompilerTools.cs

@ -7,12 +7,12 @@ using System.Numerics;
using System.Runtime.CompilerServices;
using SixLabors.ImageSharp.Formats;
using SixLabors.ImageSharp.Formats.Bmp;
using SixLabors.ImageSharp.Formats.Experimental.Tiff;
using SixLabors.ImageSharp.Formats.Gif;
using SixLabors.ImageSharp.Formats.Jpeg;
using SixLabors.ImageSharp.Formats.Jpeg.Components;
using SixLabors.ImageSharp.Formats.Png;
using SixLabors.ImageSharp.Formats.Tga;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;

20
src/ImageSharp/Formats/ImageExtensions.Save.cs

@ -6,13 +6,13 @@ using System.IO;
using System.Threading;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Formats.Experimental.Tiff;
using SixLabors.ImageSharp.Formats.Bmp;
using SixLabors.ImageSharp.Formats.Gif;
using SixLabors.ImageSharp.Formats.Jpeg;
using SixLabors.ImageSharp.Formats.Png;
using SixLabors.ImageSharp.Formats.Tga;
using SixLabors.ImageSharp.Formats.Tiff;
namespace SixLabors.ImageSharp
{
@ -537,7 +537,7 @@ namespace SixLabors.ImageSharp
cancellationToken);
/// <summary>
/// EXPERIMENTAL! Saves the image to the given stream with the Tiff format.
/// Saves the image to the given stream with the Tiff format.
/// </summary>
/// <param name="source">The image this method extends.</param>
/// <param name="path">The file path to save the image to.</param>
@ -545,7 +545,7 @@ namespace SixLabors.ImageSharp
public static void SaveAsTiff(this Image source, string path) => SaveAsTiff(source, path, null);
/// <summary>
/// EXPERIMENTAL! Saves the image to the given stream with the Tiff format.
/// Saves the image to the given stream with the Tiff format.
/// </summary>
/// <param name="source">The image this method extends.</param>
/// <param name="path">The file path to save the image to.</param>
@ -554,7 +554,7 @@ namespace SixLabors.ImageSharp
public static Task SaveAsTiffAsync(this Image source, string path) => SaveAsTiffAsync(source, path, null);
/// <summary>
/// EXPERIMENTAL! Saves the image to the given stream with the Tiff format.
/// Saves the image to the given stream with the Tiff format.
/// </summary>
/// <param name="source">The image this method extends.</param>
/// <param name="path">The file path to save the image to.</param>
@ -565,7 +565,7 @@ namespace SixLabors.ImageSharp
=> SaveAsTiffAsync(source, path, null, cancellationToken);
/// <summary>
/// EXPERIMENTAL! Saves the image to the given stream with the Tiff format.
/// Saves the image to the given stream with the Tiff format.
/// </summary>
/// <param name="source">The image this method extends.</param>
/// <param name="path">The file path to save the image to.</param>
@ -577,7 +577,7 @@ namespace SixLabors.ImageSharp
encoder ?? source.GetConfiguration().ImageFormatsManager.FindEncoder(TiffFormat.Instance));
/// <summary>
/// EXPERIMENTAL! Saves the image to the given stream with the Tiff format.
/// Saves the image to the given stream with the Tiff format.
/// </summary>
/// <param name="source">The image this method extends.</param>
/// <param name="path">The file path to save the image to.</param>
@ -592,7 +592,7 @@ namespace SixLabors.ImageSharp
cancellationToken);
/// <summary>
/// EXPERIMENTAL! Saves the image to the given stream with the Tiff format.
/// Saves the image to the given stream with the Tiff format.
/// </summary>
/// <param name="source">The image this method extends.</param>
/// <param name="stream">The stream to save the image to.</param>
@ -601,7 +601,7 @@ namespace SixLabors.ImageSharp
=> SaveAsTiff(source, stream, null);
/// <summary>
/// EXPERIMENTAL! Saves the image to the given stream with the Tiff format.
/// Saves the image to the given stream with the Tiff format.
/// </summary>
/// <param name="source">The image this method extends.</param>
/// <param name="stream">The stream to save the image to.</param>
@ -612,7 +612,7 @@ namespace SixLabors.ImageSharp
=> SaveAsTiffAsync(source, stream, null, cancellationToken);
/// <summary>
/// EXPERIMENTAL! Saves the image to the given stream with the Tiff format.
/// Saves the image to the given stream with the Tiff format.
/// </summary>
/// <param name="source">The image this method extends.</param>
/// <param name="stream">The stream to save the image to.</param>
@ -625,7 +625,7 @@ namespace SixLabors.ImageSharp
encoder ?? source.GetConfiguration().ImageFormatsManager.FindEncoder(TiffFormat.Instance));
/// <summary>
/// EXPERIMENTAL! Saves the image to the given stream with the Tiff format.
/// Saves the image to the given stream with the Tiff format.
/// </summary>
/// <param name="source">The image this method extends.</param>
/// <param name="stream">The stream to save the image to.</param>

20
src/ImageSharp/Formats/ImageExtensions.Save.tt

@ -9,7 +9,6 @@ using System.IO;
using System.Threading;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Formats.Experimental.Tiff;
<#
var formats = new []{
@ -40,10 +39,9 @@ namespace SixLabors.ImageSharp
<#
foreach (string fmt in formats)
{
string experimentalString = fmt == "Tiff" || fmt == "Webp" ? @"EXPERIMENTAL! " : "";
#>
/// <summary>
/// <#= experimentalString #>Saves the image to the given stream with the <#= fmt #> format.
/// Saves the image to the given stream with the <#= fmt #> format.
/// </summary>
/// <param name="source">The image this method extends.</param>
/// <param name="path">The file path to save the image to.</param>
@ -51,7 +49,7 @@ namespace SixLabors.ImageSharp
public static void SaveAs<#= fmt #>(this Image source, string path) => SaveAs<#= fmt #>(source, path, null);
/// <summary>
/// <#= experimentalString #>Saves the image to the given stream with the <#= fmt #> format.
/// Saves the image to the given stream with the <#= fmt #> format.
/// </summary>
/// <param name="source">The image this method extends.</param>
/// <param name="path">The file path to save the image to.</param>
@ -60,7 +58,7 @@ namespace SixLabors.ImageSharp
public static Task SaveAs<#= fmt #>Async(this Image source, string path) => SaveAs<#= fmt #>Async(source, path, null);
/// <summary>
/// <#= experimentalString #>Saves the image to the given stream with the <#= fmt #> format.
/// Saves the image to the given stream with the <#= fmt #> format.
/// </summary>
/// <param name="source">The image this method extends.</param>
/// <param name="path">The file path to save the image to.</param>
@ -71,7 +69,7 @@ namespace SixLabors.ImageSharp
=> SaveAs<#= fmt #>Async(source, path, null, cancellationToken);
/// <summary>
/// <#= experimentalString #>Saves the image to the given stream with the <#= fmt #> format.
/// Saves the image to the given stream with the <#= fmt #> format.
/// </summary>
/// <param name="source">The image this method extends.</param>
/// <param name="path">The file path to save the image to.</param>
@ -83,7 +81,7 @@ namespace SixLabors.ImageSharp
encoder ?? source.GetConfiguration().ImageFormatsManager.FindEncoder(<#= fmt #>Format.Instance));
/// <summary>
/// <#= experimentalString #>Saves the image to the given stream with the <#= fmt #> format.
/// Saves the image to the given stream with the <#= fmt #> format.
/// </summary>
/// <param name="source">The image this method extends.</param>
/// <param name="path">The file path to save the image to.</param>
@ -98,7 +96,7 @@ namespace SixLabors.ImageSharp
cancellationToken);
/// <summary>
/// <#= experimentalString #>Saves the image to the given stream with the <#= fmt #> format.
/// Saves the image to the given stream with the <#= fmt #> format.
/// </summary>
/// <param name="source">The image this method extends.</param>
/// <param name="stream">The stream to save the image to.</param>
@ -107,7 +105,7 @@ namespace SixLabors.ImageSharp
=> SaveAs<#= fmt #>(source, stream, null);
/// <summary>
/// <#= experimentalString #>Saves the image to the given stream with the <#= fmt #> format.
/// Saves the image to the given stream with the <#= fmt #> format.
/// </summary>
/// <param name="source">The image this method extends.</param>
/// <param name="stream">The stream to save the image to.</param>
@ -118,7 +116,7 @@ namespace SixLabors.ImageSharp
=> SaveAs<#= fmt #>Async(source, stream, null, cancellationToken);
/// <summary>
/// <#= experimentalString #>Saves the image to the given stream with the <#= fmt #> format.
/// Saves the image to the given stream with the <#= fmt #> format.
/// </summary>
/// <param name="source">The image this method extends.</param>
/// <param name="stream">The stream to save the image to.</param>
@ -131,7 +129,7 @@ namespace SixLabors.ImageSharp
encoder ?? source.GetConfiguration().ImageFormatsManager.FindEncoder(<#= fmt #>Format.Instance));
/// <summary>
/// <#= experimentalString #>Saves the image to the given stream with the <#= fmt #> format.
/// Saves the image to the given stream with the <#= fmt #> format.
/// </summary>
/// <param name="source">The image this method extends.</param>
/// <param name="stream">The stream to save the image to.</param>

2
src/ImageSharp/Formats/Tiff/Compression/BitWriterUtils.cs

@ -3,7 +3,7 @@
using System;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression
namespace SixLabors.ImageSharp.Formats.Tiff.Compression
{
internal static class BitWriterUtils
{

4
src/ImageSharp/Formats/Tiff/Compression/Compressors/DeflateCompressor.cs

@ -4,10 +4,10 @@
using System;
using System.IO;
using SixLabors.ImageSharp.Compression.Zlib;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.Memory;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Compressors
namespace SixLabors.ImageSharp.Formats.Tiff.Compression.Compressors
{
internal class DeflateCompressor : TiffBaseCompressor
{

4
src/ImageSharp/Formats/Tiff/Compression/Compressors/LzwCompressor.cs

@ -3,10 +3,10 @@
using System;
using System.IO;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.Memory;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Compressors
namespace SixLabors.ImageSharp.Formats.Tiff.Compression.Compressors
{
internal class LzwCompressor : TiffBaseCompressor
{

4
src/ImageSharp/Formats/Tiff/Compression/Compressors/NoCompressor.cs

@ -3,10 +3,10 @@
using System;
using System.IO;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.Memory;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Compressors
namespace SixLabors.ImageSharp.Formats.Tiff.Compression.Compressors
{
internal class NoCompressor : TiffBaseCompressor
{

4
src/ImageSharp/Formats/Tiff/Compression/Compressors/PackBitsCompressor.cs

@ -3,10 +3,10 @@
using System;
using System.IO;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.Memory;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Compressors
namespace SixLabors.ImageSharp.Formats.Tiff.Compression.Compressors
{
internal class PackBitsCompressor : TiffBaseCompressor
{

2
src/ImageSharp/Formats/Tiff/Compression/Compressors/PackBitsWriter.cs

@ -3,7 +3,7 @@
using System;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Compressors
namespace SixLabors.ImageSharp.Formats.Tiff.Compression.Compressors
{
/// <summary>
/// Pack Bits compression for tiff images. See Tiff Spec v6, section 9.

4
src/ImageSharp/Formats/Tiff/Compression/Compressors/T4BitCompressor.cs

@ -5,10 +5,10 @@ using System;
using System.Buffers;
using System.Collections.Generic;
using System.IO;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.Memory;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Compressors
namespace SixLabors.ImageSharp.Formats.Tiff.Compression.Compressors
{
/// <summary>
/// Bitwriter for writing compressed CCITT T4 1D data.

2
src/ImageSharp/Formats/Tiff/Compression/Compressors/TiffLzwEncoder.cs

@ -7,7 +7,7 @@ using System.IO;
using SixLabors.ImageSharp.Formats.Gif;
using SixLabors.ImageSharp.Memory;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Compressors
namespace SixLabors.ImageSharp.Formats.Tiff.Compression.Compressors
{
/*
This implementation is a port of a java tiff encoder by Harald Kuhr: https://github.com/haraldk/TwelveMonkeys

5
src/ImageSharp/Formats/Tiff/Compression/Decompressors/DeflateTiffCompression.cs

@ -5,11 +5,12 @@ using System;
using System.IO.Compression;
using SixLabors.ImageSharp.Compression.Zlib;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Compression;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.IO;
using SixLabors.ImageSharp.Memory;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Decompressors
namespace SixLabors.ImageSharp.Formats.Tiff.Compression.Decompressors
{
/// <summary>
/// Class to handle cases where TIFF image data is compressed using Deflate compression.

4
src/ImageSharp/Formats/Tiff/Compression/Decompressors/LzwString.cs

@ -3,7 +3,7 @@
using System;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Decompressors
namespace SixLabors.ImageSharp.Formats.Tiff.Compression.Decompressors
{
/// <summary>
/// Represents a lzw string with a code word and a code length.
@ -77,7 +77,7 @@ namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Decompresso
}
LzwString e = this;
var endIdx = this.Length - 1;
int endIdx = this.Length - 1;
if (endIdx >= buffer.Length)
{
TiffThrowHelper.ThrowImageFormatException("Error reading lzw compressed stream. Either pixel buffer to write to is to small or code length is invalid!");

5
src/ImageSharp/Formats/Tiff/Compression/Decompressors/LzwTiffCompression.cs

@ -2,12 +2,11 @@
// Licensed under the Apache License, Version 2.0.
using System;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.IO;
using SixLabors.ImageSharp.Memory;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Decompressors
namespace SixLabors.ImageSharp.Formats.Tiff.Compression.Decompressors
{
/// <summary>
/// Class to handle cases where TIFF image data is compressed using LZW compression.

4
src/ImageSharp/Formats/Tiff/Compression/Decompressors/ModifiedHuffmanTiffCompression.cs

@ -3,11 +3,11 @@
using System;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.IO;
using SixLabors.ImageSharp.Memory;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Decompressors
namespace SixLabors.ImageSharp.Formats.Tiff.Compression.Decompressors
{
/// <summary>
/// Class to handle cases where TIFF image data is compressed using Modified Huffman Compression.

2
src/ImageSharp/Formats/Tiff/Compression/Decompressors/NoneTiffCompression.cs

@ -6,7 +6,7 @@ using System;
using SixLabors.ImageSharp.IO;
using SixLabors.ImageSharp.Memory;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Decompressors
namespace SixLabors.ImageSharp.Formats.Tiff.Compression.Decompressors
{
/// <summary>
/// Class to handle cases where TIFF image data is not compressed.

2
src/ImageSharp/Formats/Tiff/Compression/Decompressors/PackBitsTiffCompression.cs

@ -7,7 +7,7 @@ using System.Buffers;
using SixLabors.ImageSharp.IO;
using SixLabors.ImageSharp.Memory;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Decompressors
namespace SixLabors.ImageSharp.Formats.Tiff.Compression.Decompressors
{
/// <summary>
/// Class to handle cases where TIFF image data is compressed using PackBits compression.

2
src/ImageSharp/Formats/Tiff/Compression/Decompressors/T4BitReader.cs

@ -8,7 +8,7 @@ using System.IO;
using SixLabors.ImageSharp.Memory;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Decompressors
namespace SixLabors.ImageSharp.Formats.Tiff.Compression.Decompressors
{
/// <summary>
/// Bitreader for reading compressed CCITT T4 1D data.

4
src/ImageSharp/Formats/Tiff/Compression/Decompressors/T4TiffCompression.cs

@ -3,11 +3,11 @@
using System;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.IO;
using SixLabors.ImageSharp.Memory;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Decompressors
namespace SixLabors.ImageSharp.Formats.Tiff.Compression.Decompressors
{
/// <summary>
/// Class to handle cases where TIFF image data is compressed using CCITT T4 compression.

6
src/ImageSharp/Formats/Tiff/Compression/Decompressors/TiffLzwDecoder.cs

@ -4,7 +4,7 @@
using System;
using System.IO;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Decompressors
namespace SixLabors.ImageSharp.Formats.Tiff.Compression.Decompressors
{
/*
This implementation is based on a port of a java tiff decoder by Harald Kuhr: https://github.com/haraldk/TwelveMonkeys
@ -95,7 +95,7 @@ namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Decompresso
/// and sets the stream, where the compressed data should be read from.
/// </summary>
/// <param name="stream">The stream to read from.</param>
/// <exception cref="System.ArgumentNullException"><paramref name="stream" /> is null.</exception>
/// <exception cref="ArgumentNullException"><paramref name="stream" /> is null.</exception>
public TiffLzwDecoder(Stream stream)
{
Guard.NotNull(stream, nameof(stream));
@ -240,7 +240,7 @@ namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Decompresso
this.nextBits += 8;
}
var code = (this.nextData >> (this.nextBits - this.bitsPerCode)) & this.bitMask;
int code = (this.nextData >> (this.nextBits - this.bitsPerCode)) & this.bitMask;
this.nextBits -= this.bitsPerCode;
return code;

2
src/ImageSharp/Formats/Tiff/Compression/FaxCompressionOptions.cs

@ -3,7 +3,7 @@
using System;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression
namespace SixLabors.ImageSharp.Formats.Tiff.Compression
{
/// <summary>
/// Fax compression options, see TIFF spec page 51f (T4Options).

2
src/ImageSharp/Formats/Tiff/Compression/HorizontalPredictor.cs

@ -7,7 +7,7 @@ using System.Runtime.InteropServices;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression
namespace SixLabors.ImageSharp.Formats.Tiff.Compression
{
/// <summary>
/// Methods for undoing the horizontal prediction used in combination with deflate and LZW compressed TIFF images.

4
src/ImageSharp/Formats/Tiff/Compression/TiffBaseCompression.cs

@ -2,10 +2,10 @@
// Licensed under the Apache License, Version 2.0.
using System;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.Memory;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression
namespace SixLabors.ImageSharp.Formats.Tiff.Compression
{
internal abstract class TiffBaseCompression : IDisposable
{

4
src/ImageSharp/Formats/Tiff/Compression/TiffBaseCompressor.cs

@ -3,10 +3,10 @@
using System;
using System.IO;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.Memory;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression
namespace SixLabors.ImageSharp.Formats.Tiff.Compression
{
internal abstract class TiffBaseCompressor : TiffBaseCompression
{

4
src/ImageSharp/Formats/Tiff/Compression/TiffBaseDecompressor.cs

@ -4,11 +4,11 @@
using System;
using System.IO;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.IO;
using SixLabors.ImageSharp.Memory;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression
namespace SixLabors.ImageSharp.Formats.Tiff.Compression
{
/// <summary>
/// The base tiff decompressor class.

6
src/ImageSharp/Formats/Tiff/Compression/TiffCompressorFactory.cs

@ -3,11 +3,11 @@
using System.IO;
using SixLabors.ImageSharp.Compression.Zlib;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Compressors;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Compression.Compressors;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.Memory;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression
namespace SixLabors.ImageSharp.Formats.Tiff.Compression
{
internal static class TiffCompressorFactory
{

2
src/ImageSharp/Formats/Tiff/Compression/TiffDecoderCompressionType.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression
namespace SixLabors.ImageSharp.Formats.Tiff.Compression
{
/// <summary>
/// Provides enumeration of the various TIFF compression types the decoder can handle.

6
src/ImageSharp/Formats/Tiff/Compression/TiffDecompressorsFactory.cs

@ -1,11 +1,11 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Decompressors;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Compression.Decompressors;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.Memory;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression
namespace SixLabors.ImageSharp.Formats.Tiff.Compression
{
internal static class TiffDecompressorsFactory
{

2
src/ImageSharp/Formats/Tiff/ConfigurationExtensions.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Helper methods for the Configuration.

2
src/ImageSharp/Formats/Tiff/Constants/TiffCompression.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants
namespace SixLabors.ImageSharp.Formats.Tiff.Constants
{
/// <summary>
/// Enumeration representing the compression formats defined by the Tiff file-format.

2
src/ImageSharp/Formats/Tiff/Constants/TiffConstants.cs

@ -3,7 +3,7 @@
using System.Collections.Generic;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants
namespace SixLabors.ImageSharp.Formats.Tiff.Constants
{
/// <summary>
/// Defines constants defined in the TIFF specification.

2
src/ImageSharp/Formats/Tiff/Constants/TiffExtraSamples.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants
namespace SixLabors.ImageSharp.Formats.Tiff.Constants
{
/// <summary>
/// Enumeration representing the possible uses of extra components in TIFF format files.

2
src/ImageSharp/Formats/Tiff/Constants/TiffFillOrder.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants
namespace SixLabors.ImageSharp.Formats.Tiff.Constants
{
/// <summary>
/// Enumeration representing the fill orders defined by the Tiff file-format.

2
src/ImageSharp/Formats/Tiff/Constants/TiffNewSubfileType.cs

@ -3,7 +3,7 @@
using System;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants
namespace SixLabors.ImageSharp.Formats.Tiff.Constants
{
/// <summary>
/// Enumeration representing the sub-file types defined by the Tiff file-format.

2
src/ImageSharp/Formats/Tiff/Constants/TiffOrientation.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants
namespace SixLabors.ImageSharp.Formats.Tiff.Constants
{
/// <summary>
/// Enumeration representing the image orientations defined by the Tiff file-format.

2
src/ImageSharp/Formats/Tiff/Constants/TiffPhotometricInterpretation.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants
namespace SixLabors.ImageSharp.Formats.Tiff.Constants
{
/// <summary>
/// Enumeration representing the photometric interpretation formats defined by the Tiff file-format.

2
src/ImageSharp/Formats/Tiff/Constants/TiffPlanarConfiguration.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants
namespace SixLabors.ImageSharp.Formats.Tiff.Constants
{
/// <summary>
/// Enumeration representing how the components of each pixel are stored the Tiff file-format.

2
src/ImageSharp/Formats/Tiff/Constants/TiffPredictor.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants
namespace SixLabors.ImageSharp.Formats.Tiff.Constants
{
/// <summary>
/// A mathematical operator that is applied to the image data before an encoding scheme is applied.

2
src/ImageSharp/Formats/Tiff/Constants/TiffSampleFormat.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants
namespace SixLabors.ImageSharp.Formats.Tiff.Constants
{
/// <summary>
/// Specifies how to interpret each data sample in a pixel.

2
src/ImageSharp/Formats/Tiff/Constants/TiffSubfileType.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants
namespace SixLabors.ImageSharp.Formats.Tiff.Constants
{
/// <summary>
/// Enumeration representing the sub-file types defined by the Tiff file-format.

2
src/ImageSharp/Formats/Tiff/Constants/TiffThresholding.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants
namespace SixLabors.ImageSharp.Formats.Tiff.Constants
{
/// <summary>
/// Enumeration representing the thresholding applied to image data defined by the Tiff file-format.

2
src/ImageSharp/Formats/Tiff/ITiffDecoderOptions.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Encapsulates the options for the <see cref="TiffDecoder"/>.

4
src/ImageSharp/Formats/Tiff/ITiffEncoderOptions.cs

@ -2,10 +2,10 @@
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Compression.Zlib;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.Processing.Processors.Quantization;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Encapsulates the options for the <see cref="TiffEncoder"/>.

4
src/ImageSharp/Formats/Tiff/Ifd/DirectoryReader.cs

@ -4,10 +4,10 @@
using System;
using System.Collections.Generic;
using System.IO;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.Metadata.Profiles.Exif;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// The TIFF IFD reader class.

4
src/ImageSharp/Formats/Tiff/Ifd/EntryReader.cs

@ -5,10 +5,10 @@ using System;
using System.Collections.Generic;
using System.IO;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.Metadata.Profiles.Exif;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
internal class EntryReader : BaseExifReader
{

2
src/ImageSharp/Formats/Tiff/MetadataExtensions.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Formats.Experimental.Tiff;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.Metadata;
namespace SixLabors.ImageSharp

2
src/ImageSharp/Formats/Tiff/PhotometricInterpretation/BlackIsZero1TiffColor.cs

@ -6,7 +6,7 @@ using System;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Implements the 'BlackIsZero' photometric interpretation (optimized for bilevel images).

2
src/ImageSharp/Formats/Tiff/PhotometricInterpretation/BlackIsZero4TiffColor.cs

@ -6,7 +6,7 @@ using System;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Implements the 'BlackIsZero' photometric interpretation (optimized for 4-bit grayscale images).

2
src/ImageSharp/Formats/Tiff/PhotometricInterpretation/BlackIsZero8TiffColor.cs

@ -6,7 +6,7 @@ using System;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Implements the 'BlackIsZero' photometric interpretation (optimized for 8-bit grayscale images).

4
src/ImageSharp/Formats/Tiff/PhotometricInterpretation/BlackIsZeroTiffColor.cs

@ -3,11 +3,11 @@
using System;
using System.Numerics;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Utils;
using SixLabors.ImageSharp.Formats.Tiff.Utils;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Implements the 'BlackIsZero' photometric interpretation (for all bit depths).

4
src/ImageSharp/Formats/Tiff/PhotometricInterpretation/PaletteTiffColor.cs

@ -3,11 +3,11 @@
using System;
using System.Numerics;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Utils;
using SixLabors.ImageSharp.Formats.Tiff.Utils;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Implements the 'PaletteTiffColor' photometric interpretation (for all bit depths).

2
src/ImageSharp/Formats/Tiff/PhotometricInterpretation/Rgb888TiffColor.cs

@ -6,7 +6,7 @@ using System;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Implements the 'RGB' photometric interpretation (optimized for 8-bit full color images).

4
src/ImageSharp/Formats/Tiff/PhotometricInterpretation/RgbPlanarTiffColor.cs

@ -2,11 +2,11 @@
// Licensed under the Apache License, Version 2.0.
using System.Numerics;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Utils;
using SixLabors.ImageSharp.Formats.Tiff.Utils;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Implements the 'RGB' photometric interpretation with 'Planar' layout (for all bit depths).

4
src/ImageSharp/Formats/Tiff/PhotometricInterpretation/RgbTiffColor.cs

@ -3,11 +3,11 @@
using System;
using System.Numerics;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Utils;
using SixLabors.ImageSharp.Formats.Tiff.Utils;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Implements the 'RGB' photometric interpretation (for all bit depths).

2
src/ImageSharp/Formats/Tiff/PhotometricInterpretation/TiffBaseColorDecoder.cs

@ -5,7 +5,7 @@ using System;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// The base class for photometric interpretation decoders.

2
src/ImageSharp/Formats/Tiff/PhotometricInterpretation/TiffColorDecoderFactory.cs

@ -3,7 +3,7 @@
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
internal static class TiffColorDecoderFactory<TPixel>
where TPixel : unmanaged, IPixel<TPixel>

2
src/ImageSharp/Formats/Tiff/PhotometricInterpretation/TiffColorType.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Provides enumeration of the various TIFF photometric interpretation implementation types.

2
src/ImageSharp/Formats/Tiff/PhotometricInterpretation/WhiteIsZero1TiffColor.cs

@ -6,7 +6,7 @@ using System;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Implements the 'WhiteIsZero' photometric interpretation (optimized for bilevel images).

2
src/ImageSharp/Formats/Tiff/PhotometricInterpretation/WhiteIsZero4TiffColor.cs

@ -6,7 +6,7 @@ using System;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Implements the 'WhiteIsZero' photometric interpretation (optimized for 4-bit grayscale images).

2
src/ImageSharp/Formats/Tiff/PhotometricInterpretation/WhiteIsZero8TiffColor.cs

@ -6,7 +6,7 @@ using System;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Implements the 'WhiteIsZero' photometric interpretation (optimized for 8-bit grayscale images).

4
src/ImageSharp/Formats/Tiff/PhotometricInterpretation/WhiteIsZeroTiffColor.cs

@ -3,11 +3,11 @@
using System;
using System.Numerics;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Utils;
using SixLabors.ImageSharp.Formats.Tiff.Utils;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Implements the 'WhiteIsZero' photometric interpretation (for all bit depths).

2
src/ImageSharp/Formats/Tiff/TiffBitsPerPixel.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Enumerates the available bits per pixel for the tiff format.

4
src/ImageSharp/Formats/Tiff/TiffBitsPerSampleExtensions.cs

@ -2,8 +2,8 @@
// Licensed under the Apache License, Version 2.0.
using System;
using SixLabors.ImageSharp.Formats.Experimental.Tiff;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
namespace SixLabors.ImageSharp.Formats.Tiff
{

2
src/ImageSharp/Formats/Tiff/TiffConfigurationModule.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Registers the image encoders, decoders and mime type detectors for the TIFF format.

4
src/ImageSharp/Formats/Tiff/TiffDecoder.cs

@ -6,10 +6,10 @@ using System.Threading;
using System.Threading.Tasks;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// EXPERIMENTAL! Image decoder for generating an image out of a TIFF stream.
/// Image decoder for generating an image out of a TIFF stream.
/// </summary>
public class TiffDecoder : IImageDecoder, ITiffDecoderOptions, IImageInfoDetector
{

9
src/ImageSharp/Formats/Tiff/TiffDecoderCore.cs

@ -3,16 +3,15 @@
using System.Collections.Generic;
using System.Threading;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.Formats.Tiff.Compression;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.IO;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.Metadata;
using SixLabors.ImageSharp.Metadata.Profiles.Exif;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Performs the tiff decoding operation.
@ -300,7 +299,7 @@ namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
for (int stripIndex = 0; stripIndex < stripOffsets.Length; stripIndex++)
{
int stripHeight = stripIndex < stripOffsets.Length - 1 || frame.Height % rowsPerStrip == 0 ? rowsPerStrip : frame.Height % rowsPerStrip;
var top = rowsPerStrip * stripIndex;
int top = rowsPerStrip * stripIndex;
if (top + stripHeight > frame.Height)
{
// Make sure we ignore any strips that are not needed for the image (if too many are present)

2
src/ImageSharp/Formats/Tiff/TiffDecoderMetadataCreator.cs

@ -10,7 +10,7 @@ using SixLabors.ImageSharp.Metadata.Profiles.Exif;
using SixLabors.ImageSharp.Metadata.Profiles.Icc;
using SixLabors.ImageSharp.Metadata.Profiles.Iptc;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// The decoder metadata creator.

7
src/ImageSharp/Formats/Tiff/TiffDecoderOptionsParser.cs

@ -1,12 +1,11 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.Formats.Tiff.Compression;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.Metadata.Profiles.Exif;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// The decoder options parser.

6
src/ImageSharp/Formats/Tiff/TiffEncoder.cs

@ -7,14 +7,14 @@ using System.Threading.Tasks;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Compression.Zlib;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing.Processors.Quantization;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// EXPERIMENTAL! Encoder for writing the data image to a stream in TIFF format.
/// Encoder for writing the data image to a stream in TIFF format.
/// </summary>
public class TiffEncoder : IImageEncoder, ITiffEncoderOptions
{

8
src/ImageSharp/Formats/Tiff/TiffEncoderCore.cs

@ -8,9 +8,9 @@ using System.Threading;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Compression.Zlib;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Writers;
using SixLabors.ImageSharp.Formats.Tiff.Compression;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Writers;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.Metadata;
using SixLabors.ImageSharp.Metadata.Profiles.Exif;
@ -18,7 +18,7 @@ using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
using SixLabors.ImageSharp.Processing.Processors.Quantization;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Performs the TIFF encoding operation.

4
src/ImageSharp/Formats/Tiff/TiffEncoderEntriesCollector.cs

@ -3,12 +3,12 @@
using System.Collections.Generic;
using SixLabors.ImageSharp.Common.Helpers;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.Metadata;
using SixLabors.ImageSharp.Metadata.Profiles.Exif;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
internal class TiffEncoderEntriesCollector
{

2
src/ImageSharp/Formats/Tiff/TiffEncodingMode.cs

@ -1,7 +1,7 @@
// Copyright (c) Six Labors.
// Licensed under the Apache License, Version 2.0.
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Enum for the different tiff encoding options.

4
src/ImageSharp/Formats/Tiff/TiffFormat.cs

@ -3,9 +3,9 @@
using System.Collections.Generic;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Encapsulates the means to encode and decode Tiff images.

5
src/ImageSharp/Formats/Tiff/TiffFrameMetadata.cs

@ -4,12 +4,11 @@
using System.Collections.Generic;
using System.Linq;
using SixLabors.ImageSharp.Common.Helpers;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.Metadata;
using SixLabors.ImageSharp.Metadata.Profiles.Exif;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Provides Tiff specific metadata information for the frame.

2
src/ImageSharp/Formats/Tiff/TiffImageFormatDetector.cs

@ -3,7 +3,7 @@
using System;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Detects tiff file headers

4
src/ImageSharp/Formats/Tiff/TiffMetadata.cs

@ -2,9 +2,9 @@
// Licensed under the Apache License, Version 2.0.
using System;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Provides Tiff specific metadata information for the image.

2
src/ImageSharp/Formats/Tiff/TiffThrowHelper.cs

@ -4,7 +4,7 @@
using System;
using System.Runtime.CompilerServices;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff
namespace SixLabors.ImageSharp.Formats.Tiff
{
/// <summary>
/// Cold path optimizations for throwing tiff format based exceptions.

2
src/ImageSharp/Formats/Tiff/Utils/BitReader.cs

@ -3,7 +3,7 @@
using System;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Utils
namespace SixLabors.ImageSharp.Formats.Tiff.Utils
{
/// <summary>
/// Utility class to read a sequence of bits from an array

4
src/ImageSharp/Formats/Tiff/Writers/TiffBaseColorWriter.cs

@ -2,12 +2,12 @@
// Licensed under the Apache License, Version 2.0.
using System;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression;
using SixLabors.ImageSharp.Formats.Tiff.Compression;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.Metadata.Profiles.Exif;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Writers
namespace SixLabors.ImageSharp.Formats.Tiff.Writers
{
internal abstract class TiffBaseColorWriter<TPixel> : IDisposable
where TPixel : unmanaged, IPixel<TPixel>

6
src/ImageSharp/Formats/Tiff/Writers/TiffBiColorWriter.cs

@ -4,14 +4,14 @@
using System;
using System.Buffers;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Compression;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.Metadata;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Writers
namespace SixLabors.ImageSharp.Formats.Tiff.Writers
{
internal sealed class TiffBiColorWriter<TPixel> : TiffBaseColorWriter<TPixel>
where TPixel : unmanaged, IPixel<TPixel>

2
src/ImageSharp/Formats/Tiff/Writers/TiffColorWriterFactory.cs

@ -5,7 +5,7 @@ using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing.Processors.Quantization;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Writers
namespace SixLabors.ImageSharp.Formats.Tiff.Writers
{
internal static class TiffColorWriterFactory
{

4
src/ImageSharp/Formats/Tiff/Writers/TiffCompositeColorWriter.cs

@ -2,11 +2,11 @@
// Licensed under the Apache License, Version 2.0.
using System;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression;
using SixLabors.ImageSharp.Formats.Tiff.Compression;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Writers
namespace SixLabors.ImageSharp.Formats.Tiff.Writers
{
/// <summary>
/// The base class for composite color types: 8-bit gray, 24-bit RGB (4-bit gray, 16-bit (565/555) RGB, 32-bit RGB, CMYK, YCbCr).

2
src/ImageSharp/Formats/Tiff/Writers/TiffGrayWriter.cs

@ -5,7 +5,7 @@ using System;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Writers
namespace SixLabors.ImageSharp.Formats.Tiff.Writers
{
internal sealed class TiffGrayWriter<TPixel> : TiffCompositeColorWriter<TPixel>
where TPixel : unmanaged, IPixel<TPixel>

4
src/ImageSharp/Formats/Tiff/Writers/TiffPaletteWriter.cs

@ -6,13 +6,13 @@ using System.Buffers;
using System.Runtime.InteropServices;
using SixLabors.ImageSharp.Advanced;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression;
using SixLabors.ImageSharp.Formats.Tiff.Compression;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.Metadata.Profiles.Exif;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Processing.Processors.Quantization;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Writers
namespace SixLabors.ImageSharp.Formats.Tiff.Writers
{
internal sealed class TiffPaletteWriter<TPixel> : TiffBaseColorWriter<TPixel>
where TPixel : unmanaged, IPixel<TPixel>

2
src/ImageSharp/Formats/Tiff/Writers/TiffRgbWriter.cs

@ -5,7 +5,7 @@ using System;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Writers
namespace SixLabors.ImageSharp.Formats.Tiff.Writers
{
internal sealed class TiffRgbWriter<TPixel> : TiffCompositeColorWriter<TPixel>
where TPixel : unmanaged, IPixel<TPixel>

2
src/ImageSharp/Formats/Tiff/Writers/TiffStreamWriter.cs

@ -5,7 +5,7 @@ using System;
using System.Buffers.Binary;
using System.IO;
namespace SixLabors.ImageSharp.Formats.Experimental.Tiff.Writers
namespace SixLabors.ImageSharp.Formats.Tiff.Writers
{
/// <summary>
/// Utility class for writing TIFF data to a <see cref="Stream"/>.

2
tests/ImageSharp.Benchmarks/Codecs/DecodeTiff.cs

@ -9,7 +9,7 @@ using System.IO;
using BenchmarkDotNet.Attributes;
using SixLabors.ImageSharp.Formats.Experimental.Tiff;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Tests;

4
tests/ImageSharp.Benchmarks/Codecs/EncodeTiff.cs

@ -6,8 +6,8 @@ using System.IO;
using BenchmarkDotNet.Attributes;
using SixLabors.ImageSharp.Formats.Experimental.Tiff;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Tests;

4
tests/ImageSharp.Tests/Formats/Tiff/Compression/DeflateTiffCompressionTests.cs

@ -3,8 +3,8 @@
using System.IO;
using SixLabors.ImageSharp.Compression.Zlib;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Decompressors;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Compression.Decompressors;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.IO;
using Xunit;

6
tests/ImageSharp.Tests/Formats/Tiff/Compression/LzwTiffCompressionTests.cs

@ -2,9 +2,9 @@
// Licensed under the Apache License, Version 2.0.
using System.IO;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Compressors;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Decompressors;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Constants;
using SixLabors.ImageSharp.Formats.Tiff.Compression.Compressors;
using SixLabors.ImageSharp.Formats.Tiff.Compression.Decompressors;
using SixLabors.ImageSharp.Formats.Tiff.Constants;
using SixLabors.ImageSharp.IO;
using Xunit;

2
tests/ImageSharp.Tests/Formats/Tiff/Compression/NoneTiffCompressionTests.cs

@ -2,7 +2,7 @@
// Licensed under the Apache License, Version 2.0.
using System.IO;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Decompressors;
using SixLabors.ImageSharp.Formats.Tiff.Compression.Decompressors;
using SixLabors.ImageSharp.IO;
using Xunit;

4
tests/ImageSharp.Tests/Formats/Tiff/Compression/PackBitsTiffCompressionTests.cs

@ -3,8 +3,8 @@
using System;
using System.IO;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Compressors;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Compression.Decompressors;
using SixLabors.ImageSharp.Formats.Tiff.Compression.Compressors;
using SixLabors.ImageSharp.Formats.Tiff.Compression.Decompressors;
using SixLabors.ImageSharp.IO;
using SixLabors.ImageSharp.Memory;

2
tests/ImageSharp.Tests/Formats/Tiff/ImageExtensionsTest.cs

@ -4,7 +4,7 @@
using System.IO;
using System.Threading.Tasks;
using SixLabors.ImageSharp.Formats;
using SixLabors.ImageSharp.Formats.Experimental.Tiff;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.PixelFormats;
using Xunit;

2
tests/ImageSharp.Tests/Formats/Tiff/PhotometricInterpretation/BlackIsZeroTiffColorTests.cs

@ -3,7 +3,7 @@
using System.Collections.Generic;
using SixLabors.ImageSharp.Formats.Experimental.Tiff;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.PixelFormats;
using Xunit;

2
tests/ImageSharp.Tests/Formats/Tiff/PhotometricInterpretation/PaletteTiffColorTests.cs

@ -3,7 +3,7 @@
using System.Collections.Generic;
using SixLabors.ImageSharp.Formats.Experimental.Tiff;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.PixelFormats;
using Xunit;

2
tests/ImageSharp.Tests/Formats/Tiff/PhotometricInterpretation/RgbPlanarTiffColorTests.cs

@ -4,7 +4,7 @@
using System;
using System.Collections.Generic;
using SixLabors.ImageSharp.Formats.Experimental.Tiff;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.Memory;
using SixLabors.ImageSharp.PixelFormats;

2
tests/ImageSharp.Tests/Formats/Tiff/PhotometricInterpretation/RgbTiffColorTests.cs

@ -3,7 +3,7 @@
using System.Collections.Generic;
using SixLabors.ImageSharp.Formats.Experimental.Tiff;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.PixelFormats;
using Xunit;

2
tests/ImageSharp.Tests/Formats/Tiff/PhotometricInterpretation/WhiteIsZeroTiffColorTests.cs

@ -3,7 +3,7 @@
using System.Collections.Generic;
using SixLabors.ImageSharp.Formats.Experimental.Tiff;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.PixelFormats;
using Xunit;

2
tests/ImageSharp.Tests/Formats/Tiff/TiffDecoderTests.cs

@ -5,7 +5,7 @@
using System;
using System.IO;
using SixLabors.ImageSharp.Formats.Experimental.Tiff;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.Metadata;
using SixLabors.ImageSharp.PixelFormats;
using SixLabors.ImageSharp.Tests.TestUtilities.ImageComparison;

4
tests/ImageSharp.Tests/Formats/Tiff/TiffEncoderHeaderTests.cs

@ -3,8 +3,8 @@
using System.IO;
using SixLabors.ImageSharp.Formats.Experimental.Tiff;
using SixLabors.ImageSharp.Formats.Experimental.Tiff.Writers;
using SixLabors.ImageSharp.Formats.Tiff;
using SixLabors.ImageSharp.Formats.Tiff.Writers;
using SixLabors.ImageSharp.Memory;
using Xunit;

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save