James Jackson-South
83ced124c4
Split Vp8LHistogram and clean up
2 years ago
Anton Firszov
d76fe6f6ae
PBM decoder robustness improvements and BufferedReadStream observability ( #2551 )
* handle premature EOF in the PBM decoder
* BufferedReadStreamExtensions: remove the 'Try' prefix
* count EOF hits in BufferedReadStream
* use EofHitCounter in pbm tests
* Naming convention tweaks
---------
Co-authored-by: James Jackson-South <james_south@hotmail.com>
2 years ago
James Jackson-South
b8e8b8613d
Tiff decoding robustness improvements ( #2550 )
* Faster Handling of circular offsets
* Handle early EOF during ZLib inflate
* more checks
---------
Co-authored-by: antonfirsov <antonfir@gmail.com>
2 years ago
Brian Popow
c5eed0e537
Add webp decoder option to handle the background color in ANIM chunk ( #2547 )
* Add webp decoder option BackgroundColorHandling to decide howto handle the background color in the ANIM chunk
* Add test for Issue 2528
* Update src/ImageSharp/Formats/Webp/BackgroundColorHandling.cs
Co-authored-by: James Jackson-South <james_south@hotmail.com>
* Fix path to test file
* Another attempt fixing the file path: path should be lower case
* Revert fa4febf7
---------
Co-authored-by: James Jackson-South <james_south@hotmail.com>
2 years ago
antonfirsov
bea65987a0
use pinned buffers in Vp8LHistogram
2 years ago
James Jackson-South
3fabb76ab6
Pool Vp8LHistogram memory.
2 years ago
James Jackson-South
31b591a940
Update PngEncoderTests.cs
2 years ago
Jeffrey Parker
bf261f0d5e
Stylecop extra blank line issue fixed. Refactored code to extract common logic.
2 years ago
Jeffrey Parker
1e53adf85e
Fix for issue 2504 - ensuring image and individual frame metadata are written out correctly
2 years ago
James Jackson-South
ed3860cfda
Handle EOF in Jpeg bit reader when data is bad to prevent DOS attack. ( #2516 )
* Handle EOF in bit reader when data is bad.
* Allow parallel processing of multi-megapixel image
* Stream seek can exceed the length of a stream
* Try triggering on release branches
* Update JpegBitReader.cs
* Skin on Win .NET 6
* All Win OS is an issue
* Address feedback
* add validation to CanIterateWithoutIntOverflow
---------
Co-authored-by: antonfirsov <antonfir@gmail.com>
2 years ago
James Jackson-South
f73cdb0520
Expose non-nullable configuration to remove null check
3 years ago
James Jackson-South
4ef363df5d
Only compare a subset of frames.
3 years ago
James Jackson-South
ef5fe795d0
Prevent crafted DOS attack.
3 years ago
James Jackson-South
98ed0f1070
Refactor and fix gif encoder
3 years ago
LuisAlfredo92
ef78f98eb3
Adding Channels and ColorSpace validations to De-/Encoder
I'm not sure the encoder is right
3 years ago
LuisAlfredo92
6245666d61
Fixing most of things of review
Also I fixed a little bug with PreviouslySeenPixels array
It's weird, but I don't see any problems with encoding and the tests are ok, I wrote the memory stream to files and they look the same, but the hashes and bytes aren't the same
This is very weird
3 years ago
LuisAlfredo92
aed9acd6bf
Fixing StyleCop
3 years ago
LuisAlfredo92
c92a4ecb59
Adding extensions was easier than I though
3 years ago
LuisAlfredo92
07e65973a3
Finishing qoi encoder
-Also adding Decode method without TPixel value
-Adding stream end check to decoder (we must discuss if it's necesarry or not)
-formating general code
3 years ago
James Jackson-South
037d6ea582
Allow preservation of png color palette
3 years ago
LuisAlfredo92
bca998d91d
Implementing qoi decoder
I need to check https://github.com/phoboslab/qoi/issues/258 because there's a bug with the decoder
3 years ago
James Jackson-South
492507fa2d
Allow JFXX as an App0 marker header
3 years ago
Ynse Hoornenborg
c60cae82ac
Tests
3 years ago
LuisAlfredo92
a1342bf30a
Fixing Qoi detector
-I had several errors about header size comparison and comparing byte arrays, but I've fixed them and tested the Identify function and it works perfect!
3 years ago
LuisAlfredo92
24e5ce6964
Making changes from #2446 review
-Adding validation for size, channels and colorspace
-Refactoring to throw general exceptions
-Creating tests
-Using other better data types
3 years ago
James Jackson-South
ae3900df7a
Use more accurate bit for alpha lookup. Fix #2469
3 years ago
James Jackson-South
53510f0220
Add explicit tests for #2450
3 years ago
Gerard Gunnewijk
b4ad3c3009
Added test that shows the issue
3 years ago
James Jackson-South
fc7219d1fa
Add quantizer property tests
3 years ago
Brian Popow
f558e6f574
Add test for issue 2456
3 years ago
James Jackson-South
43aaad1d49
Make color tables mutable
3 years ago
James Jackson-South
12da625cbb
Preserve color palettes and deduplicate frame pixels.
3 years ago
Brian Popow
78ef6de9b7
Add scalar version of PngDecoder_Decode_Resize test
3 years ago
Brian Popow
3541a4e08b
Use less tolerant comparer when Fma.IsSupported for resize tests
3 years ago
Brian Popow
461224485d
Use BinaryWriter/BinaryReader to serialize Vp8Residual
3 years ago
Brian Popow
39f8c776de
Using Binary serialization for Vp8Residual
3 years ago
Brian Popow
93790ba9a6
Add test for #2435
3 years ago
Brian Popow
ed71d7e1dd
Add additional constructors for json serialization and add JsonConstructor attributes
3 years ago
Brian Popow
4dcf8569a7
Add Vp8CostArray Serialization test, add stub for Vp8CostArray JsonConverter
3 years ago
Brian Popow
ba7b1df562
Fix path to test data
3 years ago
Brian Popow
4432937bd8
Skip serialization tests when SSE2 is not available
3 years ago
Brian Popow
79bc8ebef6
Add test for calculating residual costs
3 years ago
Brian Popow
0d6e50f29f
Add Vp8Residual Serialization test
3 years ago
Brian Popow
73e1306973
Add SubtractGreen Scalar test
3 years ago
Brian Popow
b0d9cb8b4b
Add BundleColorMap tests
3 years ago
Brian Popow
404342916e
Add test case for: Fixed wrong division hack #2413
3 years ago
Stefan Nikolei
b2dc1e5704
Update tests/ImageSharp.Tests/Formats/Jpg/JpegColorConverterTests.cs
Co-authored-by: Anton Firszov <antonfir@gmail.com>
3 years ago
Stefan Nikolei
996f7675b9
Change test, only expect it for ARM64
3 years ago
Stefan Nikolei
7b13ae21ad
Adapt testchanges
3 years ago
Brian Popow
52861d87d0
Another case for arm where YccKVector should be expected
3 years ago