James Jackson-South
a69eb5bbed
Lazily derive the huffman tables. Fix #839 ( #841 )
* Lazily derive the huffman tables. Fix #839
* Lazy invoke fast table
* Add performance tweaks to scan decoder.
* Remove unneccessary classes.
7 years ago
James Jackson-South
1054f84253
Jpeg Fuzz Fixes ( #836 )
* Nomalize jpeg exceptions. Fix #821
* Fix #822
* Fix #823
* Check for correct QT index. Touch #824
* Check DHT props. Touch #824
* Limit sampling factors to 1 & 2. Touch #824
* Add already fixed image 4. Touch #824
* Check for excessive code lengths. Touch #824
* Add already fixed image 6. Touch #824
* Lint progressive scan details. Touch #824
* Add already fixed image 8. Fix #824
* Remove duplicate per-block checks
* Add already fixed image 1. Touch #825
* Don't throw on bad JFIF density units.
* Add already fixed image 3. Touch #825
* Add already fixed image 4. Fix #825
* Check SOFn marker length. Touch #826
* Add already fixed image 2. Touch #826
* Add already fixed image 3. Fix #826
* Add fixed already fixed image. Fix #827
* Revert unneeded bounds check introduced in #804
7 years ago
James Jackson-South
19270664b0
Remove hardcoded subsampling. Fix #817 ( #834 )
7 years ago
Brian Popow
a2c4b2d5d8
Add support for Decoding BI_ALPHABITFIELDS ( #832 )
* Adds support for BI_ALPHABITFIELDS
* Fix for decoding bitmaps with a less than full sized palette
7 years ago
Brian Popow
66f77952f7
Fix Decoding interlaced grayscale ( #831 )
7 years ago
Brian Popow
07aa4f9316
Respecting fileHeader Offset, skipping bytes if necessary ( #819 )
7 years ago
Brian Popow
fb9e23020b
Fix Decoding 8-Bit grayscale png's with alpha ( #830 )
7 years ago
Brian Popow
2c62112017
Adds support for OS/2 version 2 bitmaps ( #813 )
* Added support for OS/2 version 2 bitmaps
* throw NotSupportedException, if the file header type is not BM
* renamed Os2v2 to Os2v2Size
* Added BmpThrowHelper similar to the JpegThrowHelper
7 years ago
Brian Popow
0d68e6d09d
Added support for RLE4 encoded bitmaps ( #812 )
7 years ago
Brian Popow
84ba4bbf0d
Decoding Bitmaps with BITFIELDS masks ( #796 )
* decoding bitmaps with Bitfields masks
* added testcases for Bitfields bitmaps
* added parsing of the complete bitmap V4 header to get the color masks infos for the BITFIELDS compression
* writing now explicitly a Bitamp v3 header (40 bytes)
* added test image for issue #735
* fixed rescaling 5-bit / 6-bit to 0 - 255 range
* BitmapEncoder now writes BMP v4 header
* using MemoryMarshal.Cast to simplify parsing v4 header
* added testcases for bitmap v3, v4, v5
* Bitmap encoder writes again V3 header instead of V4. Additional fields for V4 are zero anyway.
* added parsing of special case for 56 bytes headers
* using the alpha mask in ReadRgb32BitFields() when its present
* added support for bitmasks greater then 8 bits per channel
* using MagickReferenceDecoder reference decoder for the test with 10 bits pixel masks
* changed bitmap constants to hex
* added enum for the bitmap info header type
* added support for 52 bytes header (same as 56 bytes without the alpha mask)
* clarified comment with difference between imagesharp and magick decoder for Rgba321010102
* BmpEncoder now writes a V4 info header and uses BITFIELDS compression
* workaround for issue that the decoder does not decode the alpha channel correctly: For V3 bitmaps, the alpha channel will be ignored during encoding
* Fix #732
7 years ago
James Jackson-South
78f0a41f03
Use bounds checks in Huffman ctr. Fix #798
7 years ago
Peter Amrehn
880be0a5aa
#797 throw ImageFormatException when no StartOfFrame marker is found on a jpg image.
7 years ago
popow
c4d80dbbf4
updated unit test to be in line with the other tests
7 years ago
popow
a6919d4b15
added Test for decoding windows BMPv2 and one for a bitmap which has 4 bytes per color palette
7 years ago
Stephan Vedder
51ed7c7191
Start work on jpeg 12 bit support
7 years ago
James Jackson-South
3235ce41b8
Fix trns preservation and add tests
7 years ago
Anton Firszov
0c32fe7d19
fix Block8x8FTests.Copy1x1Scale, reorganize TestImages.Jpeg.BenchmarkSuite as a static class
7 years ago
Anton Firszov
3ceb7423ec
simplify benchmark suite
7 years ago
Anton Firszov
5404eb6bb1
improved benchmarks + more benchmark results
7 years ago
James Jackson-South
b4689fd6f6
Add issue reference images
7 years ago
James Jackson-South
01ee560c08
Use scaled luminance trns comparison.
7 years ago
James Jackson-South
6f9875d946
Decode components in correct order + cleanup + optimizations.
7 years ago
James Jackson-South
77f6c1738f
Fix #721
7 years ago
James Jackson-South
551c03f16a
Preserve BmpBitsPerPixel
8 years ago
James Jackson-South
bd4d5ba32d
Fix EXIF overflow and Jpeg decoding
8 years ago
James Jackson-South
eec21fd89e
Add derived format info types and allow persistance of palette lengths
8 years ago
James Jackson-South
f7cf568a30
Add image blending tests to match the SVG spec examples
8 years ago
James Jackson-South
76c967c353
Fix 1 bit bmp decoding and add extra test images.
8 years ago
James Jackson-South
9c1bd97589
Add bmp and jpeg tests
8 years ago
James Jackson-South
ea9ce31931
Add png tests
8 years ago
James Jackson-South
1941108d6c
Add gif tests
8 years ago
Anton Firszov
5a9b9b3939
add regression test for #624
8 years ago
James Jackson-South
6036a48bfa
More tests
8 years ago
James Jackson-South
094e290a83
Better tRNS coverage
8 years ago
James Jackson-South
397490997f
Add 16bit decoder tests.
8 years ago
Dirk Lemstra
e62786a6a0
Added unit test.
8 years ago
Anton Firszov
153978dbc2
refactor jpeg tests + add another test image for #159
8 years ago
James Jackson-South
f794742b1b
Add false positive tests for #517 #518
8 years ago
James Jackson-South
99225bc589
Add basic comparision tests
8 years ago
James Jackson-South
37d8c47923
Can now read padded RSTn markers. Fix #481
8 years ago
Anton Firszov
78368a785c
removing the "Issue" label from #464-s test image + ExifUndefType.jpg is actually progressive!
8 years ago
Anton Firszov
3c788ebf7f
added failing tests for #464
8 years ago
James Jackson-South
8b8a9c2cb0
Add kaboom image for future testing
8 years ago
James Jackson-South
124b349500
Fix #403
8 years ago
James Jackson-South
e884bc3490
Fix #405
8 years ago
James Jackson-South
68b402971f
Fix #390
8 years ago
Anton Firszov
bcd3371da0
add test for #394 + #395
8 years ago
Anton Firszov
cd71a63113
fix #385 + add test
8 years ago
James Jackson-South
f3f2e41001
Fix 16bit decode and add tests
8 years ago
James Jackson-South
aa3ee34e70
Add RLE inverted test image
8 years ago