ruffson
b455bd9f2b
Fix test
2020-09-25 19:47:35 +02:00
ruffson
a510b03e1c
Apply auto-format to modified files
2020-09-25 19:47:33 +02:00
Andreas Molzer
bf24b3f935
Do a clippy pass
2020-09-12 01:15:08 +02:00
Andreas Molzer
2b12c1b162
Rewrite tests to be less repetitive
2020-09-12 01:13:09 +02:00
Andreas Molzer
e48691ca32
Add decoding benchmarks
2020-09-05 21:57:51 +02:00
Andreas Molzer
44c75a66ab
Merge remote-tracking branch 'origin/master' into features/32-bit-float-samples
2020-08-31 20:50:16 +02:00
Etienne Prothon
5f48444fa0
Merge branch 'master' of github.com:Farkal/image-tiff into features/32-bit-float-samples
2020-08-04 16:43:01 +02:00
Etienne Prothon
b2da2f2333
Merge branch 'master' of github.com:Farkal/image-tiff into big-tiff
2020-07-27 12:01:55 +02:00
Farkal
ba1daa18b2
Allow custom encoding process ( #84 )
...
Simplify encoding of tags
2020-07-27 11:29:09 +02:00
Etienne Prothon
dacc2864e8
feat: better compatibility with old api
2020-07-24 01:22:33 +02:00
Etienne Prothon
797e3dca07
fix: Big tiff decoding and add tests
2020-07-24 00:47:14 +02:00
Etienne Prothon
23751bd8c5
feat: Support decoding big tiff
2020-07-23 01:33:41 +02:00
Andrew Champion
8d4bdce7aa
Add support for IEEEFP 32 and 64 bit encoding
2020-02-10 13:21:16 +00:00
Andrew Champion
c2084835fa
Add support for IEEEFP Gray/RGB/RGBA/CMYK(64) decoding
2020-02-10 13:21:16 +00:00
Andrew Champion
97c888f166
Add support for IEEEFP RGB/RGBA/CMYK(32) decoding
2020-02-10 13:21:13 +00:00
Andrew Champion
24d347ecf5
Tests: add regression test for issue 69
2020-02-09 18:37:16 +00:00
Andrew Champion
bbc49291e4
Add support for IEEEFP Gray(32) decoding
2020-02-06 18:40:41 +00:00
Andrew Champion
42c94ac3d9
Add support for CMYK(16|32|64) encoding
2019-12-21 15:57:24 +00:00
Andrew Champion
eadec8f0b9
Remove most unchecked size/index casts
...
Convert most unchecked size/index `as` casts to checked casts with
`TryFrom`, included another top-level error variant.
This has several motivations:
- Making the library as robust as possible, including to platform
differences.
- Unchecked casts are susceptible to breakage during refactorings.
- Preparing for BigTIFF support, which will require the introduction of
generics and associated types for some parts of the de/encoders.
Unchecked primitive casts cannot be bound, while TryFrom can, and
overflowing conversions become more likely.
- Remaining u16 casts may be prone in failure in existing practice and
not just in theory during future changes.
2019-12-21 15:57:24 +00:00
Andrew Champion
462697e373
Add support for CMYK(16|32|64) decoding
2019-12-21 15:57:24 +00:00
Andrew Champion
c537f5cc64
Add decode test for CMYK(8)
2019-12-21 15:57:24 +00:00
Andrew Champion
f92be13f6c
Factor tags into own module
...
Tag representations are not decoder- or encoder-specific, so should live
in their own module accessible to both for reuse. The decoder::ifd
module remains since this module is mainly dedicated to decoding the
IFD.
2019-12-21 15:57:24 +00:00
Andrew Champion
959254aee9
Deduplicate encoding tests
...
Also removes dev dependency on tempfile.
2019-12-21 15:12:25 +00:00
Andrew Champion
3f14098060
Deduplicate decoding tests
2019-12-21 15:11:47 +00:00
Andrew Champion
c72a8d364d
Add tests for exotic 12-bit sample images
...
These images should correctly report their color depths, but fail to
decode as they are unsupported.
2019-12-16 18:53:44 +00:00
Andrew Champion
8c4cea5d97
Support 64-bit encoding
...
Note that this adds the LONG8 data type from BigTIFF because of bounds
requiring TiffValue. However, this datatype should not actually be
written to tags.
2019-12-10 20:18:53 +00:00
Andrew Champion
0c53e1066a
Support 64-bit rgb and rgba decoding
2019-12-10 20:18:53 +00:00
Andrew Champion
f4e985e0bd
Support 64-bit grayscale decoding
2019-12-10 20:18:53 +00:00
Andrew Champion
af010edcfd
Support 32-bit encoding
2019-12-10 20:18:53 +00:00
Andrew Champion
f32b3b9d10
Fix warnings in encoding test
2019-12-10 20:18:53 +00:00
Andrew Champion
1f92c562bc
Support 32-bit rgb and rgba decoding
2019-12-10 20:18:51 +00:00
Andrew Champion
fca4e1f88a
Support 32-bit grayscale decoding
2019-12-10 20:18:23 +00:00
Onno Kammeraad
fd789dc420
Cursor::new(Vec::new()) requires a &mut instead of just &
2019-11-12 13:09:09 +01:00
Onno and HeroicKatora
f70447325e
Update tests/encode_images.rs
...
Co-Authored-By: HeroicKatora <HeroicKatora@users.noreply.github.com >
2019-11-12 10:40:19 +01:00
Onno Kammeraad
b2eb480c44
add multipage testcase, to validate the multipage image handling
2019-11-12 09:44:27 +01:00
HeroicKatora
770262cb02
Merge pull request #25 from birktj/new_tests
...
Test decoder output
2019-10-15 04:35:06 +02:00
Callum Tolley
bc05e0b7c6
Renamed files
2019-09-22 22:25:29 +01:00
Dustin Thomson
30eb8487a6
Signed value support
...
Add support for SBYTE, SSHORT, SLONG, SRATIONAL as per the Tiff 6.0 spec
Add support for multiple BYTE
2019-08-14 21:22:56 -06:00
Birk Tjelmeland
514b7cddaa
Change minimal rustc version to 1.24.1
2019-05-03 23:12:29 +02:00
Birk Tjelmeland
48f16f5206
Merge pull request #41 from birktj/fix-bugs
...
Fix divide by zero bug
2019-04-25 22:30:31 +02:00
Birk Tjelmeland
a2f7aa9500
Fix tests so that they remove warning properly
2019-04-25 20:48:48 +02:00
Andrew Champion
334759b08d
Remove several panics in write_image
...
Closes #35 .
2019-04-25 20:03:29 +02:00
Birk Tjelmeland
dbf532b0a9
Fix divide by zero bug
...
This fixes #33
2019-04-25 14:58:08 +02:00
Atul Bhosale
522fbd1a69
Format code using 'cargo fmt'
2019-04-18 00:04:43 +05:30
Birk Tjelmeland
5c3f50f800
Fix compiler and clippy warnings
2019-02-28 07:58:07 +01:00
Birk Tjelmeland
95b153cdeb
Add tests from fuzzing
...
Add test from fuzzing samples in #28 , #29 and #31
2019-02-27 19:53:48 +01:00
Birk Tjelmeland
de18d446f2
Fix error in encoder tests
2019-02-27 17:23:19 +01:00
Jonathan Behrens
ff26217534
Merge pull request #26 from birktj/incremental
...
Incremental decoding implemented
2019-02-26 20:07:29 -05:00
Birk Tjelmeland
b0d7ac9cbf
Add documentation and reorganize
2019-02-09 21:53:11 +01:00
Birk Tjelmeland
9ca445a5eb
Add roundtrip tests
2019-02-09 20:58:28 +01:00