Anton Firszov
d1bacad43e
use 4 spaces in new code (like in the rest of the file)
8 years ago
Unknown
c2149a2c16
#557 : fix string comparison and wrong logic
1) -contains is for arrays, not for strings, so we use match (and mask the -)
2) if a module is not initialized the status contains the string ((null)) where usually the commit id is placed (the Hash in parantheses)
8 years ago
Unknown
a7725c0a44
#557 : use spaces, not tabs
8 years ago
Unknown
53ffcc9b5c
Extend run-tests.ps1 by a warning if submodules are not synced
I'm contributing to ImageSharp since around a week, and I saw 3 people (myself included) stumbling over failing tests due to the submodule for test data being out of sync.
With this commit the run-tests.ps1 test script is extended by the following behaviour:
- if something fails during the script run, the submodule status is checked.
A warning is printed if
- any submodule is not initialized or
- any submodule is not synchronized
- git could not be called to check the submodule status.
8 years ago
James Jackson-South
6b4de9780b
Merge pull request #552 from woutware/Issue-551-solidbrush-blend-performance
Issue 551 solidbrush blend performance
8 years ago
James Jackson-South
72cb50c0c7
Delete merge conflict backup file.
8 years ago
Anton Firszov
a9816fd937
use overloading in ImageFrameCollection + more tests for API-s affected by the PR
8 years ago
Anton Firszov
24f6ff98f8
minor code cleanup in FillProcessor.cs
8 years ago
Anton Firszov
d2bfaf259f
Merge branch 'master' into Issue-551-solidbrush-blend-performance
# Conflicts:
# src/ImageSharp.Drawing/Processing/Drawing/Processors/FillProcessor.cs
8 years ago
Anton Firsov
64317232d9
Merge pull request #555 from SixLabors/af/FillSolidBrushTests
better FillSolidBrushTests + bugfix in FillProcessor
8 years ago
woutware
0d81089159
Processed review comments, removed IImageFrameCollection interface, and added backgroundColor parameter to ImageFrameCollection.CreateFrame() method with default.
8 years ago
woutware
7c70a5efcf
Processed review comments, removed ImageFrame.BackgroundColor property.
8 years ago
Anton Firszov
ef9b350b27
better FillSolidBrushTests + bugfix in FillProcessor
8 years ago
woutware
7e2fd11a65
Merge branch 'master' into Issue-551-solidbrush-blend-performance
8 years ago
woutware
aa4a05719f
Processed review comments, moved Image.ClearColor to ImageFrame.BackgroundColor.
8 years ago
woutware
2943df12d7
Processed review comment, made ClearColor not nullable.
8 years ago
Scott Williams
01d04268d6
Merge pull request #553 from SixLabors/af/drawing-tests
Better test coverage for SolidBrush + blenders
8 years ago
Anton Firszov
34ed38db88
assertions for SolidFillBlendedShapesTests
8 years ago
Anton Firszov
994f5fc4a1
"BlendedShapes" -> SolidFillBlendedShapesTests
8 years ago
woutware
a38bb5a227
Merge branch 'Issue-551-solidbrush-blend-performance' of https://github.com/woutware/ImageSharp into Issue-551-solidbrush-blend-performance
8 years ago
woutware
02fc4ef43b
I think I forgot to commit this one.
8 years ago
woutware
a3a1556164
Merge branch 'master' into Issue-551-solidbrush-blend-performance
8 years ago
woutware
8995a738aa
Processed Scott's review comment.
8 years ago
woutware
58384de0c7
Add Image and ImageFrame constructors that take a clear color as parameter.
This is good for performance because this avoids first needing to clear the buffer with zeroes.
8 years ago
woutware
08b033c684
Oops, should be W instead of Z ofcourse.
8 years ago
woutware
5a1569f499
Added fast path for SolidBrush in FillProcessor.
8 years ago
James Jackson-South
87103b73bf
Merge pull request #550 from SixLabors/js/add-png-filter-options
Add the ability to choose the filter method to use when encoding a png
8 years ago
James Jackson-South
2fccea5870
Add the ability to choose the filter method to use when encoding a png
8 years ago
James Jackson-South
fcafc2e044
Merge pull request #548 from woutware/Performance-improvements-1
Performance improvements in the PNG filtering (roughly 20% gain on my machine).
8 years ago
woutware
12ec82b25f
Processed review comments and did similar refactoring to the PNG decoding.
8 years ago
woutware
3659d8690d
Merge branch 'Performance-improvements-1' of https://github.com/woutware/ImageSharp into Performance-improvements-1
8 years ago
woutware
a06600380a
Minor performance refactorings.
Moved the division out of the loop, division is expensive.
8 years ago
James Jackson-South
ab130ec127
Merge branch 'master' into Performance-improvements-1
8 years ago
Anton Firsov
995ccf28dd
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
8 years ago
woutware
555524d473
Removed some overhead in the Bgra32.ToVector4 and PackFromVector4 methods.
It's now also more inline with the Rgba32 implementation.
8 years ago
popow
8db7cd5955
added parameter metadataOnly to InitializeDerivedData: If true, memory allocation will not be done
8 years ago
woutware
5f599e6227
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.
8 years ago
popow
bab1728eea
fix for unnecessary memory allocation, if only the metadata of the image will be read
8 years ago
James Jackson-South
05f240874d
Merge pull request #539 from Jjagg/ifc-docs
Improve IImageFrameCollection doc comments
8 years ago
James Jackson-South
103fa5ca94
Merge branch 'master' into ifc-docs
8 years ago
James Jackson-South
e90548cf0d
Merge pull request #541 from carbon/cq-1
Improve CQ, Round 2
8 years ago
James Jackson-South
3c5bb3cc5f
Merge branch 'master' into cq-1
8 years ago
James Jackson-South
1deb2c59e3
Merge pull request #543 from woutware/pr/540
Pr/540 Added IPixel.PackFromBgra32 definition/implementations.
8 years ago
James Jackson-South
a351b14359
Add additional tests plus cleanup
8 years ago
James Jackson-South
d4c9a4cd46
Use expressions
8 years ago
James Jackson-South
cbbae51be7
Fix braces
8 years ago
James Jackson-South
b10bc7fefb
Merge remote-tracking branch 'upstream/master' into pr/540
8 years ago
Jason Nelson
3acc080a9c
Merge branch 'master' into cq-1
8 years ago
James Jackson-South
3f444f4637
Merge pull request #540 from woutware/issue-532
Issue-532: Added IPixel.PackFromArgb32 and ToArgb32.
8 years ago
James Jackson-South
3440a7decf
Fix System.Drawing.Bridge
8 years ago