Andreas Molzer
ffdeb62b9f
Rework the tag macro to make it reusable
...
Factor out parts that are unique to instantiations such as the name, the
documentation, the underlying type, the public conversion methods.
Also adds the ability to document individual items and remodels the
syntax to more closely resemble ordinary enum definitions.
2019-11-01 01:35:18 +01:00
HeroicKatora
6aea7b33c1
Merge pull request #49 from Masterchef365/deflate
...
Old-style DEFLATE compression support
2019-11-01 00:42:18 +01:00
Masterchef365
f8d4b57120
Change implementation details for InflateError, add uncompressed cap
2019-10-04 18:52:39 -07:00
Masterchef365
6f9f2adfbf
Improved error messages for inflate decompression
2019-10-02 21:06:11 -07:00
Masterchef365
205626bd62
Switch to miniz_oxide crate for DEFLATE decompression
2019-10-02 18:51:47 -07:00
Masterchef365
ce73d39d57
Add old-style DEFLATE support
2019-10-02 18:51:07 -07:00
Masterchef365
b79128d766
Add Deflate and OldDeflate compression type recognition
2019-10-02 18:51:07 -07:00
Callum Tolley
3868f78067
Make Limits struct fields publicly accessible
2019-09-22 22:11:24 +01:00
Yuki Okushi
ea19f0f686
Remove try! macros
2019-08-29 19:10:27 +09: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
4609425be9
Merge pull request #37 from jimrybarski/master
...
Allow Decoder::next_image() to be called multiple times to allow paging through a multi-page TIFF
2019-04-25 18:23:06 +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
Jim Rybarski
d314a032de
Merge branch 'master' of github.com:PistonDevelopers/image-tiff
2019-03-29 09:47:35 -05:00
Jim Rybarski
198f3ff3dc
Allow Decoder::next_image() to be called multiple times to allow paging through a multi-page TIFF
2019-03-28 15:14:44 -05:00
Birk Tjelmeland
5e86931dff
Fix possibly overflowing multiplications
2019-03-12 11:07:57 +01:00
Birk Tjelmeland
5c3f50f800
Fix compiler and clippy warnings
2019-02-28 07:58:07 +01:00
Birk Tjelmeland
2ff0934354
Fix infinite loop bug
2019-02-28 07:51:28 +01:00
Birk Tjelmeland
bd0d66c09f
Fix potential out of bounds array access
2019-02-27 19:45:59 +01:00
Birk Tjelmeland
d637e1f7f6
Fix memory exhaustion bug
2019-02-27 16:15:57 +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
6aa5f3add5
Made DecodingBuffer public
...
Marked `DecodingBuffer` and `read_strip_to_buffer`
as public to reduce copies in eventual `TiffReader`.
2019-02-08 21:05:25 +01:00
Birk Tjelmeland
6884558687
Incremental decoding implemented
2019-02-01 11:08:13 +01:00
Birk Tjelmeland
fb30648c12
Implemented basic tiff encoding
2019-01-31 21:20:49 +01:00
Jonathan Behrens
fab6734275
Remove unsafe code
2019-01-11 15:03:40 -05:00
Jonathan Behrens
60f5a8f450
Fix calculation of uncompressed_strip_size
2018-09-23 01:12:39 -04:00
Sven Nilsen
c3aaadaa4e
Fix missing errors
2018-09-19 18:12:19 +02:00
Sven Nilsen
0228fc3204
Merge branch 'master' into 16bit-performance
2018-09-19 17:54:56 +02:00
Sven Nilsen
742784ddc7
Merge branch 'master' into master
2018-09-19 15:25:24 +02:00
Felix Schütt
0089e93b49
Migrate from String to properly typed TiffUnsupportedError
2018-09-13 13:44:16 +02:00
Felix Schütt
2c6ca5459a
Migrate from String to properly typed TiffFormatError
2018-09-13 13:20:50 +02:00
zroug
345aff0629
Greatly improved performance for 16 bit images
2018-08-27 23:05:16 +02:00
zroug
724e5e8c80
Fixed: Decoder::expand_strip might not read the full strip
2018-08-27 23:05:16 +02:00
zroug
583b241cef
Replaced unsafe code in Decoder::read_image
2018-08-27 23:05:16 +02:00
Jim Rybarski
ff1d31533b
Add support for ASCII tags
2018-08-17 11:43:51 -05:00
Sven Nilsen
daf23f34a0
Merge pull request #8 from zroug/rational-tags
...
Added support for rational tags
2018-07-12 13:27:51 +02:00
zroug
1712b2fc7b
Added support for rational tags
2018-07-10 17:21:13 +02:00
zroug
e3f89490c6
Expose ability to read tags to crate users
2018-07-10 17:21:06 +02:00
335g
6f0496b10a
Support CMYK
2018-07-01 19:49:41 +09:00
R.Chavignat
9c098c4bee
Integrate upstream changes
2018-06-17 16:44:51 +02:00
R.Chavignat
112492261f
Cleanups, visibility fixes, add authors
2018-06-17 15:45:00 +02:00
R.Chavignat
a4d7d1a4fc
Clippy run
2018-03-13 00:07:06 +01:00
R.Chavignat
76a787455a
Import missing methods from image crate
2018-03-13 00:07:06 +01:00
R.Chavignat
0c623bc3a3
Refactor a bit
...
Rename the Image* types to Tiff*
Extract the "common" types to the top level.
2018-03-13 00:07:06 +01:00
R.Chavignat
8210a81672
Paste code from image until it builds
2018-03-13 00:06:56 +01:00
R.Chavignat
a92205909a
Import tiff module from image repo
2018-03-12 18:26:44 +01:00