Browse Source

Removed old overload and used new one (from #201) in unit test.

af/merge-core
Dirk Lemstra 9 years ago
parent
commit
eb715cfed3
  1. 25
      src/ImageSharp/Formats/Jpeg/Components/Block8x8F.cs
  2. 2
      tests/ImageSharp.Tests/Formats/Jpg/Block8x8FTests.cs

25
src/ImageSharp/Formats/Jpeg/Components/Block8x8F.cs

@ -230,31 +230,6 @@ namespace ImageSharp.Formats.Jpg
}
}
/// <summary>
/// Multiply all elements of the block.
/// </summary>
/// <param name="scaleVec">Vector to multiply by</param>
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void MultiplyAllInplace(Vector4 scaleVec)
{
this.V0L *= scaleVec;
this.V0R *= scaleVec;
this.V1L *= scaleVec;
this.V1R *= scaleVec;
this.V2L *= scaleVec;
this.V2R *= scaleVec;
this.V3L *= scaleVec;
this.V3R *= scaleVec;
this.V4L *= scaleVec;
this.V4R *= scaleVec;
this.V5L *= scaleVec;
this.V5R *= scaleVec;
this.V6L *= scaleVec;
this.V6R *= scaleVec;
this.V7L *= scaleVec;
this.V7R *= scaleVec;
}
/// <summary>
/// Multiply all elements of the block.
/// </summary>

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

@ -309,7 +309,7 @@ namespace ImageSharp.Tests
float[] data = Create8x8FloatData();
Block8x8F block = new Block8x8F();
block.LoadFrom(data);
block.MultiplyAllInplace(new Vector4(5, 5, 5, 5));
block.MultiplyAllInplace(5);
int stride = 256;
int height = 42;

Loading…
Cancel
Save