James Jackson-South
8d4aa411a2
Merge branch 'master' into GradientBrush
9 years ago
James Jackson-South
209ccfdf8f
Merge pull request #548 from woutware/Performance-improvements-1
Performance improvements in the PNG filtering (roughly 20% gain on my machine).
9 years ago
woutware
88fd0674b9
Processed review comments and did similar refactoring to the PNG decoding.
9 years ago
woutware
9c1aa97d9d
Merge branch 'Performance-improvements-1' of https://github.com/woutware/ImageSharp into Performance-improvements-1
9 years ago
woutware
8fc424a38a
Minor performance refactorings.
Moved the division out of the loop, division is expensive.
9 years ago
James Jackson-South
a33ce2198e
Merge branch 'master' into Performance-improvements-1
9 years ago
Anton Firsov
c219ca5a2c
Merge pull request #547 from brianpopow/feature/indentify-memallocation-fix
fix for unnecessary memory allocation, if Identify is used to retrieve the metadata of an image only
9 years ago
woutware
7278f5b223
Removed some overhead in the Bgra32.ToVector4 and PackFromVector4 methods.
It's now also more inline with the Rgba32 implementation.
9 years ago
popow
041aea9fcb
added parameter metadataOnly to InitializeDerivedData: If true, memory allocation will not be done
9 years ago
woutware
c7e6d19cc1
Performance improvements.
Ditched the use of modulo (%). Modulo is slow, and if you use it to just get the lower 8 bits (1 byte), you can just directly cast to byte.
Also moved one if < out of the loop for speed. The less branching the better.
Similarly replaced an if < 128 by cast to sbyte and taking its abs value.
Performance gain in writing to PNG file seems to be roughly 20% (release mode, 1000x1000 bitmap).
In ImageFramesCollectionTests I've set the culture to en-US to ensure getting english exception texts.
9 years ago
Unknown
c9cf0a0fff
Merge branch 'master' into GradientBrush
9 years ago
Unknown
e58e643a87
remove not implemented Polygon Brush from documentation for now.
9 years ago
Unknown
6bca0b2a6c
implement GradientRepetitionModes
9 years ago
Unknown
29c6d32eca
improve performance on distance calculation
9 years ago
Unknown
02a0b6d9c5
optimization of EllipticGradientBrush
- precalculate anything that's independent of the pixel coordinate
9 years ago
Unknown
d7414294ab
first implementation of an elliptical gradient brush
9 years ago
popow
338c91215a
fix for unnecessary memory allocation, if only the metadata of the image will be read
9 years ago
James Jackson-South
3425c203f2
Merge pull request #539 from Jjagg/ifc-docs
Improve IImageFrameCollection doc comments
9 years ago
James Jackson-South
a9bc664097
Merge branch 'master' into ifc-docs
9 years ago
James Jackson-South
ee1f7474a3
Merge pull request #541 from carbon/cq-1
Improve CQ, Round 2
9 years ago
James Jackson-South
7b60a8a3bb
Merge branch 'master' into cq-1
9 years ago
James Jackson-South
adce5a1106
Merge pull request #543 from woutware/pr/540
Pr/540 Added IPixel.PackFromBgra32 definition/implementations.
9 years ago
Unknown
7548653547
implement radial gradient brush.
9 years ago
Unknown
6a371908d6
#542 : refactor to prepare for other gradients
- move to GradientBrushes namespace
- add abstract base class for Gradient Brushes, that implements the GetGradientSegment implementtion and the color picking.
9 years ago
Unknown
d2c6d79ff0
fix documentation typo
9 years ago
Unknown
55d3f70fd3
#542 : rename file to match other files in the solution (include generic)
9 years ago
Unknown
04b9f92f6a
#542 : fix rounding issues in tests
9 years ago
Unknown
d2cd19fda6
#542 : use bigger files for the tests to "hide" rounding issues:
The current implementation lacks accurrancy and prefers to be fast.
For usual color gradients that shouldn't matter: They're quite smooth, for the black-white gradient on very small length's it's easy to spot these rounding errors as they affect whole pixels one can count manually.
9 years ago
Unknown
529594d148
fix whitespacing
9 years ago
Unknown
48f7a3daba
#542 : define debuggerDisplay of ColorStop,
9 years ago
Unknown
724499ca79
#542 : add test creating black-white patterns by gradients
9 years ago
Unknown
5a45f588b0
cleanup whitespace
9 years ago
Unknown
7cae3c1d19
#542 : add tests for multi-color gradients
somehow these don't look correct yet, containing hard edges sometimes.
9 years ago
Unknown
249b1189cc
#542 : fix implementation of non-axial gradients and add tests
the theory lacks color checks yet that should be added, but it produces output images for visual control
9 years ago
Unknown
c276b8b0cd
#542 : add test for vertical gradient
9 years ago
Unknown
44b2af6844
#542 : reduce test output image sizes
test images don't have to be that big for axial gradients.
It's sufficient to show they're constant across the axis and correct along the axis.
9 years ago
Peter Amrehn
bf17832847
fix code styling issues
9 years ago
James Jackson-South
db87a41079
Add additional tests plus cleanup
9 years ago
James Jackson-South
d1b39a5b8a
Use expressions
9 years ago
James Jackson-South
1e401159b9
Fix braces
9 years ago
James Jackson-South
a786916fa4
Merge remote-tracking branch 'upstream/master' into pr/540
9 years ago
Jason Nelson
60a921576b
Merge branch 'master' into cq-1
9 years ago
James Jackson-South
0aa99d897d
Merge pull request #540 from woutware/issue-532
Issue-532: Added IPixel.PackFromArgb32 and ToArgb32.
9 years ago
Unknown
99ed4586ad
#542 : use struct for ColorStops
as proposed by @antonfirsov : improving readability and memory locality.
9 years ago
James Jackson-South
40ac7476fe
Fix System.Drawing.Bridge
9 years ago
Unknown
4b92801e33
#542 : fix test: indices are 0-based, so bottom left pixel is one smaller
9 years ago
Unknown
fdfef1617a
FIX bug in BrushApplicator when applying BlendPercentage
thanks @tocsoft for investigation and finding the bug.
He proposed to just replace < by <= in line 78, but that would only shift the problem to values > 1.
Those values should not be used from a semantic point, but it's not forbidden in a float value.
My fix here keeps the <, but adds an else path that uses the original value from scanline[i]. This adds an else to the code (which technically adds a jump after the then-part), but omits the multiplication.
The simple solution @tocsoft proposed might be faster, but should be preferred if and only if BlendPercentage can be guaranteed to be <=1.
9 years ago
Jason Nelson
f600c33421
Format SimdUtilsTests, part 2
9 years ago
Jason Nelson
7175bcf901
Format SimdUtilTests
9 years ago
Jason Nelson
55d0e8c62a
Format tests
9 years ago