Stefan Nikolei
67a94113e4
Migrate tests from xUnit v2 to xUnit.v3 3.2.2
Breaking changes addressed:
- Update xunit.v3 to 3.2.2 and xunit.runner.visualstudio to 3.1.5
- Remove Microsoft.DotNet.XUnitExtensions (conflicts with xunit.v3 via xunit.core v2)
- Replace ConditionalFact/ConditionalTheory with Fact/Theory SkipUnless/SkipWhen/SkipType
- Remove 'using Xunit.Abstractions' (ITestOutputHelper now in Xunit namespace globally)
- Fix TestFrameworkAttribute: string args → typeof(T) form
- Fix XunitTestFramework ctor: no longer takes IMessageSink
- Fix BeforeAfterTestAttribute Before/After: added IXunitTest parameter, use Xunit.v3 ns
- Fix DataAttribute: new GetData signature (DisposalTracker), add SupportsDiscoveryEnumeration()
- Fix IXunitSerializable/IXunitSerializationInfo: add 'using Xunit.Sdk' to all consumers
- Fix BasicSerializer: implement new IXunitSerializationInfo.GetValue(string) returning object?
Store type info in dump format (key:TypeAQN:value) to enable typed reconstruction
- Fix TheoryData<T> CS0121 ambiguity on C# 12/net8.0: add explicit casts (T)value
Affects ExifValuesTests, PixelOperationsTests, QuantizerTests, DitherTests,
TestImageProviderTests, RotateTests, L8Tests, La16Tests
- Fix PngEncoderTests: TheoryData<T> now yields TheoryDataRow<T>, not object[]
2 months ago
James Jackson-South
2577046429
Fix #3000
8 months ago
Stefan Nikolei
18b8b662e9
Use Target Type new only when apparent
1 year ago
Stefan Nikolei
57f5966fe7
use Explicit Types and Target Type new
1 year ago
James Jackson-South
e1555fd4ba
Fix transform bounds calculations
2 years ago
James Jackson-South
ac5ace789c
Update tests
2 years ago
James Jackson-South
0103d81d96
Fix off-by-one error when centering a transform.
2 years ago
James Jackson-South
dfd983f17c
Update library to use new pixel API
3 years ago
James Jackson-South
96a22c40ad
Remove IImageInfo, IImage and use inheritance.
4 years ago
James Jackson-South
0e9a066195
FS Namespaces and Implicit Global Usings
4 years ago
James Jackson-South
97baeaf438
Update all files
4 years ago
James Jackson-South
05e8d16b3b
Update tests
5 years ago
James Jackson-South
b97ac35d5b
Apply fix and tests
5 years ago
Anton Firszov
e1f15bc626
TryGetSinglePixelSpan -> DangerousTryGetSinglePixelMemory
5 years ago
Brian Popow
e06481c92b
Add additional test categories
5 years ago
James Jackson-South
dc0982f186
Faster Linear Transforms ( #1591 )
* Attempt to use same weight generation algorithm as resize.
* tests pass
* Identical output
* Update LinearTransformKernelFactory{TResampler}.cs
* Use new low allocation iterator
* Migrate projective transforms.
* Optimizations
* Smaller kernel
* Fix sampling accuracy
* Finalize and update refs
* Revert unnecessary changes
* Remove enumerator
* Actually save output for debugging.
* Use custom test png encoder for reduced memory environments
* Convolution should use scaled vectors
* Update TestEnvironmentTests.cs
* Try using doubles
* Moar double precision
* Fix radius calculation
* Test if issue is SIMD related.
* Detect runtime to determine pipeline.
* Fix stack overflow
* fix condition
* Try simplified scalar run
* Simplify unpremultiply scalar
* Update Numerics.cs
* Fix runtime environment
* Update ImageSharp.csproj
* Duplicate the caller with scalar versions
* Update method name, exclude from coverage.
* Don't save output during coverage tests for perf.
* Update src/ImageSharp/Common/Helpers/RuntimeEnvironment.cs
Co-authored-by: Anton Firszov <antonfir@gmail.com>
Co-authored-by: Anton Firszov <antonfir@gmail.com>
5 years ago
James Jackson-South
874115bd0a
Update license
6 years ago
James Jackson-South
6183dd8c13
Update source license info.
6 years ago
James Jackson-South
a61baf27e9
Improve accessability of Span<T> methods. Fixes #1164
6 years ago
Sergio Pedri
94c4660d10
Switched pixel format type constraint to unmanaged
6 years ago
Anton Firszov
0e91efeb09
test common processors for disco buffers
6 years ago
James Jackson-South
8cd722cfc5
Revert `using` declaration changes for until we establish guidelines.
7 years ago
Brian Popow
51230a776f
Change WithTestPatternImageAttribute to WithTestPatternImagesAttribute
7 years ago
Brian Popow
f60bc937de
Use using declarations to reduce nesting
7 years ago
Brian Popow
7b052c8076
Fix stylecop warnings in the test project
7 years ago
James Jackson-South
c24b364be1
Merge namespaces
7 years ago
Anton Firszov
fb6c407026
Rotation around custom center point. Rename PrependCenteredRotationRadians back to PrependRotationRadians
8 years ago
Anton Firszov
e43e09999d
Make AffineTransformProcessor and AffineTransformBuilder API more flexible
8 years ago
Anton Firszov
9d71fd381d
extend ProjectiveTransformBuilder
8 years ago
Anton Firszov
9183956813
rename methods + extend API
8 years ago
James Jackson-South
8e91b7a06b
Update tests/ImageSharp.Tests/Processing/Transforms/AffineTransformTests.cs
8 years ago
James Jackson-South
e61b272d22
Change tolerance for 32bit framework builds.
8 years ago
James Jackson-South
d786c6e53e
Introduce ProjectiveTransformBuilder
8 years ago
James Jackson-South
1089a32351
Introduce AffineTransformBuilder
8 years ago
Anton Firszov
daf38f9e6d
drop all PixelExtensions usages in product code,
keep in test code for now.
8 years ago
James Jackson-South
d49d74aafc
Update and normalise pixel format + disable out of date tests
8 years ago
Jason Nelson
d773ba37af
Replace == null with is null
8 years ago
James Jackson-South
0d2214923f
Update ImageSharp Namespaces.
8 years ago
Scott Williams
6ff3aed4fb
remove `SavePixelData()` apis in favour of `GetPixelSpan()`
8 years ago
James Jackson-South
ae66072668
Use Rgba64 for image comparison.
8 years ago
Anton Firszov
d2e74e1145
use FormattableString for .DebugSave(...) and .CompareToReferenceOutput(...) whenever possible
8 years ago
James Jackson-South
d023ebc379
Begin adding tests.
8 years ago
Jason Nelson
55d0e8c62a
Format tests
8 years ago
Anton Firszov
454c5a1b48
trying to fine-tune tolerance values
8 years ago
Anton Firszov
70dfd52f6a
smarter tolerance values
8 years ago
Anton Firszov
90a06c2198
reducing tolerance
8 years ago
Anton Firszov
cc77c818d7
adding more tolerance
8 years ago
James Jackson-South
9f078c818c
Establish naming convention + move missed primitives
- `KnownXXX`. Any open-ended collection of algorithms e.g. `KnownQuantizers`, `KnownResamplers`
- `XXXMode`. Any closed operation enumeration e.g `AnchorPositionMode`, `FlipMode`
- `XXXType`. Any enumeration of a data type e.g `ExifDataType`.
8 years ago
James Jackson-South
8bda02579f
Refactor Image, ImageFrame + IImage
8 years ago
James Jackson-South
aca8636bfd
Normalize predefined group naming.
8 years ago