Browse Source

Fix build errors

pull/1799/head
Brian Popow 4 years ago
parent
commit
86f4903c82
  1. 6
      src/ImageSharp/Formats/Webp/Lossless/PredictorEncoder.cs
  2. 6
      src/ImageSharp/Formats/Webp/Lossless/Vp8LEncoder.cs

6
src/ImageSharp/Formats/Webp/Lossless/PredictorEncoder.cs

@ -17,9 +17,6 @@ namespace SixLabors.ImageSharp.Formats.Webp.Lossless
/// </summary>
internal static unsafe class PredictorEncoder
{
// This uses C#'s compiler optimization to refer to assembly's static data directly.
private static ReadOnlySpan<sbyte> DeltaLut => new sbyte[] { 16, 16, 8, 4, 2, 2, 2 };
private static readonly sbyte[][] Offset =
{
new sbyte[] { 0, -1 }, new sbyte[] { 0, 1 }, new sbyte[] { -1, 0 }, new sbyte[] { 1, 0 }, new sbyte[] { -1, -1 }, new sbyte[] { -1, 1 }, new sbyte[] { 1, -1 }, new sbyte[] { 1, 1 }
@ -53,6 +50,9 @@ namespace SixLabors.ImageSharp.Formats.Webp.Lossless
private static readonly Vector128<byte> CollectColorBlueTransformsShuffleHighMask = Vector128.Create(255, 255, 255, 255, 255, 255, 255, 255, 255, 2, 255, 6, 255, 10, 255, 14);
#endif
// This uses C#'s compiler optimization to refer to assembly's static data directly.
private static ReadOnlySpan<sbyte> DeltaLut => new sbyte[] { 16, 16, 8, 4, 2, 2, 2 };
/// <summary>
/// Finds the best predictor for each tile, and converts the image to residuals
/// with respect to predictions. If nearLosslessQuality &lt; 100, applies

6
src/ImageSharp/Formats/Webp/Lossless/Vp8LEncoder.cs

@ -85,9 +85,6 @@ namespace SixLabors.ImageSharp.Formats.Webp.Lossless
private const int PaletteInvSize = 1 << PaletteInvSizeBits;
// This uses C#'s compiler optimization to refer to assembly's static data directly.
private static ReadOnlySpan<byte> Order => new byte[] { 1, 2, 0, 3 };
/// <summary>
/// Initializes a new instance of the <see cref="Vp8LEncoder"/> class.
/// </summary>
@ -140,6 +137,9 @@ namespace SixLabors.ImageSharp.Formats.Webp.Lossless
}
}
// This uses C#'s compiler optimization to refer to assembly's static data directly.
private static ReadOnlySpan<byte> Order => new byte[] { 1, 2, 0, 3 };
/// <summary>
/// Gets the memory for the image data as packed bgra values.
/// </summary>

Loading…
Cancel
Save