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
Onno Kammeraad
686e9b2648
added a missing offset increase while adding padding
2019-11-11 16:15:01 +01:00
Andreas Molzer
517638a38f
Prefer explicit conversion over as
...
The discriminant of some enum types can be retrieved with the `as`
operator and in C style enums it is also possible to set a specific
discriminant. However, that may silently change—breaking the value
written to the file. It is better to use that technique mostly for ffi
purposes.
2019-11-10 23:20:19 +01:00
Andreas Molzer
a6696ab02f
fixup! Move everything to the tags macro
2019-11-10 19:24:22 +01:00
Andreas Molzer
258edf4a46
Remove the num-derive dependency
2019-11-10 18:02:43 +01:00
Andreas Molzer
f88c9f00c3
Move everything to the tags macro
2019-11-10 18:02:42 +01:00
Andreas Molzer
f80f4a06d5
Make the Unknown field optional
...
Several other uses that currently rely on num-traits for conversion have
no Unknown representation. Thus, the converter now outputs only known
variants or an error and the exposing function then can put the error
value into an Unknown variant instead.
2019-11-10 18:02:08 +01:00
Onno Kammeraad
cbae42ea94
fixed support for multipage images, the IDF offset is added during the new and also at the end of the internal_finish. This should only be done once
2019-11-06 14:04:18 +01:00
Onno Kammeraad
80b8ec5cdb
Somehow the current offset was invalid when using multipage images. Now using the seek function to get the current offset
2019-11-06 13:58:29 +01:00
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
HeroicKatora
770262cb02
Merge pull request #25 from birktj/new_tests
...
Test decoder output
2019-10-15 04:35:06 +02:00
HeroicKatora
1f957029af
Merge pull request #55 from trolleyman/master
...
Make Limits struct fields publicly accessible
2019-10-14 21:07:11 +02: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
HeroicKatora
c8f384d6a6
Merge pull request #58 from paolobarbolini/update-num-derive
...
update num-derive to 0.3, bump rustc to 1.34.2
2019-10-01 21:01:21 +02:00
Paolo Barbolini
ce1d4cb289
update num-derive to 0.3 change minimal rustc to 1.34.2
2019-10-01 20:31:43 +02:00
HeroicKatora
b95e5b8f95
Merge pull request #56 from trolleyman/invalid_test_names
...
Renamed test files
2019-09-22 23:43:51 +02:00
Callum Tolley
bc05e0b7c6
Renamed files
2019-09-22 22:25:29 +01:00
Callum Tolley
3868f78067
Make Limits struct fields publicly accessible
2019-09-22 22:11:24 +01:00
HeroicKatora
f6a91065d9
Merge pull request #53 from JohnTitor/remove-try-macros
...
Remove `try!` macros
2019-08-29 21:40:27 +02:00
Yuki Okushi
ea19f0f686
Remove try! macros
2019-08-29 19:10:27 +09:00
HeroicKatora
3b85b68ae9
Merge pull request #51 from 51systems/tiff6-signed
...
Signed value support
2019-08-16 16:52:27 +02: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
HeroicKatora
1c2e57a22a
Merge pull request #45 from image-rs/release-0.3.1
...
Bump version to 0.3.1
v0.3.1
2019-05-26 03:23:55 +02:00
Andreas Molzer
2c7f329115
Bump version to 0.3.1
...
There are no function changes from 0.3 but the compiler requirements
have been lowered. This avoids having to make a decision on `image`
right now, which would delay valuable bug fixes and improvements.
2019-05-26 02:01:12 +02:00
HeroicKatora
c9675360cf
Merge pull request #44 from birktj/rustc-version
...
Change minimal rustc version to 1.24.1
2019-05-26 01:35:47 +02:00
Birk Tjelmeland
514b7cddaa
Change minimal rustc version to 1.24.1
2019-05-03 23:12:29 +02:00
HeroicKatora
fa900be945
Merge pull request #43 from birktj/update_version
...
Release version 0.3
v0.3.0
2019-04-25 23:10:56 +02:00
Birk Tjelmeland
d8d689d859
Exclude test images from cargo package
2019-04-25 23:05:41 +02:00
Birk Tjelmeland
cf921583cd
Release version 0.3
2019-04-25 22:38:55 +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
HeroicKatora
10065c5eb0
Merge pull request #42 from image-rs/organization-move
...
Update readme with organization data
2019-04-25 20:11:27 +02:00
HeroicKatora
6999179419
Merge pull request #36 from aschampion/fewer-write-image-panics
...
Remove several panics in write_image
2019-04-25 20:10:47 +02:00
Andrew Champion
496a2f31cf
Convert panic to error for writing wrong size strip
2019-04-25 20:03:30 +02:00
Andrew Champion
334759b08d
Remove several panics in write_image
...
Closes #35 .
2019-04-25 20:03:29 +02:00
Andreas Molzer
ed94b35487
Update the repository url in Cargo.toml
2019-04-25 18:25:45 +02:00
Andreas Molzer
326ebd8514
Update readme with organization data
...
Inserts some other badges that are typically present in the other
repositories.
2019-04-25 18:23:19 +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
Birk Tjelmeland
f7850ad5bd
Merge pull request #39 from Atul9/cargo-fmt
...
Format code using 'cargo fmt'
2019-04-25 14:40:18 +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
HeroicKatora
fc743cfd27
Merge pull request #32 from birktj/fix-bugs
...
Fix bugs, compiler warnings and add tests
2019-03-28 21:45:26 +01: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