Jonathan Behrens
90ae5b8e54
Fix warnings ( #225 )
2024-03-23 13:51:28 -07:00
Jonathan Behrens
9b06e3726d
Sample format should not be a Vec ( #226 )
2024-03-23 13:51:19 -07:00
Jonathan Behrens
895c70a1ad
Test minimal versions in CI ( #223 )
2024-02-11 12:40:11 -08:00
Jonathan Behrens
b0ba4a6788
Release 0.9.1 ( #220 )
2024-01-13 12:01:04 -08:00
Jonathan Behrens
4a2e76858b
Allow arbitrary number of samples as long as all have the same bit depth ( #215 )
2023-10-04 09:45:03 -07:00
Jonathan Behrens
a67f50568c
Update edition and CI script, and add Cargo.lock.msrv ( #212 )
...
* Add Cargo.lock.msrv, update edition, and CI script
* Also run clippy and verify msrv
* Fix string mismatch
* Have clippy only check for serious errors
2023-08-20 13:44:35 -07:00
Jonathan Behrens
d6f6b8a01e
Merge pull request #213 from fintelia/fix-clippy
...
A bunch of clippy fixes
2023-08-20 13:39:27 -07:00
Jonathan Behrens
8ec91b64f6
Cargo fmt
2023-08-20 13:33:35 -07:00
Jonathan Behrens
60f866c119
A bunch of clippy fixes
2023-08-20 13:32:08 -07:00
Jonathan Behrens
daa0e3eabf
Merge pull request #206 from fintelia/simplify-jpeg
...
Simplify and avoid allocation in jpeg decompression
2023-06-14 14:04:01 -07:00
Jonathan Behrens
24d203c7c3
Simplify and avoid allocation in jpeg decompression
2023-06-11 12:54:30 -07:00
Jonathan Behrens
473868a7bb
Merge pull request #199 from pka/planar-config
...
Basic support for planar configuration
2023-06-10 12:46:20 -07:00
Jonathan Behrens
0da9770916
Merge pull request #190 from kurtkuehnert/YCbCr_support
...
Added support for the YCbCr PhotometricInterpretation
2023-01-06 23:54:16 -08:00
Jonathan Behrens
289fab2fcd
Merge pull request #197 from pka/fix-padding
...
Fix padding when image size is multiple of chunk size
2022-12-16 15:49:58 -08:00
Jonathan Behrens
1416af1018
Remove deprecated methods on Decoder
2022-11-05 10:15:31 -07:00
Jonathan Behrens
3bce92781c
Merge pull request #176 from fintelia/zero-size
...
Return an error for zero-size images
2022-09-05 13:10:30 -07:00
Jonathan Behrens
907bbee576
cargo fmt
2022-09-05 12:54:21 -07:00
Jonathan Behrens
fc0dafcde2
Change error kind
2022-09-05 12:45:22 -07:00
Jonathan Behrens
945a02d1e1
Format
2022-09-05 12:44:42 -07:00
Jonathan Behrens
ef3294d1fe
Return an error for zero-size images
2022-09-05 12:44:42 -07:00
Jonathan Behrens
361578df00
Fix some warnings
2022-09-04 12:35:15 -07:00
Jonathan Behrens
bd23428f52
Validate that images contain the proper number of strips ( #174 )
2022-09-04 12:00:34 -07:00
Jonathan Behrens
2ec1ab7489
Add changelog and metadata for 0.7.3 ( #167 )
2022-07-24 10:31:37 -07:00
Jonathan Behrens
80e7c46151
Merge pull request #163 from AlanRace/access-tile
...
Add ability to select image directory and tile using index
2022-07-23 15:44:45 -07:00
Jonathan Behrens
5003803c97
cargo fmt
2022-07-23 15:27:02 -07:00
Jonathan Behrens
7c4a6fae08
Update src/decoder/mod.rs
2022-07-18 19:36:35 -07:00
Jonathan Behrens
723ef6431a
Update src/decoder/mod.rs
2022-07-18 19:36:28 -07:00
Jonathan Behrens
3c42a6e1f4
Merge pull request #165 from fintelia/improve-predictor
...
Floating point predictor
2022-06-27 07:36:45 -07:00
Jonathan Behrens
5e7702a874
Suggested edits
2022-06-26 20:45:21 -07:00
Jonathan Behrens
8e5c5b44c5
Support floating point predictor (predictor 3)
...
Based on work by @TomasKralCZ in #135
2022-06-22 20:14:25 -07:00
Jonathan Behrens
8a6e93f66e
Merge fix_endianness and rev_hpredict methods
2022-06-22 20:13:55 -07:00
Jonathan Behrens
697d2877a1
Cargo fmt
2022-05-02 20:37:37 -07:00
Jonathan Behrens
805a1e5cef
Rename chunk_byte_range method
2022-05-02 19:47:41 -07:00
Jonathan Behrens
dc8311fb99
Merge read_tiled_image and read_stripped_image
2022-05-02 19:46:28 -07:00
Jonathan Behrens
f25530adec
Unify expand_strip and expand_tile
2022-05-02 19:37:00 -07:00
Jonathan Behrens
d437c2708b
Merge pull request #162 from AlanRace/tiled-jpeg
...
Added ability to decompress tiled jpeg files
2022-05-01 22:31:14 -07:00
Jonathan Behrens
4f46bacfda
Fixes to PackBitsReader
2022-04-16 16:10:09 -04:00
Jonathan Behrens
b286457337
Remove dbg! print
2022-04-16 15:52:09 -04:00
Jonathan Behrens
7881291032
Make PackBitsReader incrementally decompress output
2022-04-15 12:25:24 -04:00
Jonathan Behrens
ff33343372
Fix formatting
2022-04-15 11:28:56 -04:00
Jonathan Behrens
4097bf37b1
Rename test oom_2 -> fuzzer_testcase4
2022-04-15 10:04:05 -04:00
Jonathan Behrens
c910ef8534
Remove redundant limit on LZWReader output length
2022-04-15 10:02:33 -04:00
Jonathan Behrens
1063d6dd27
Have LZWReader internally use a BufReader<Take<R>>
2022-04-15 09:49:18 -04:00
Jonathan Behrens
e4eac36c1c
Remove now unneeded limit check
2022-04-14 21:40:19 -04:00
Jonathan Behrens
9394f6d043
Make LZWReader incrementally decompress input
2022-04-14 21:00:36 -04:00
Jonathan Behrens
7cdfd154ba
Merge pull request #155 from Aaron1011/update/jpeg-decoder
...
Update jpeg-decoder to 0.2.1
2022-02-09 00:44:56 -05:00
Jonathan Behrens
a780da0b34
Merge pull request #154 from fintelia/decoder-refactor
...
Decoder refactor
2022-01-15 17:04:11 -05:00
Jonathan Behrens
ca56836a79
Add back fuzzer generated testcases
2022-01-15 15:11:54 -05:00
Jonathan Behrens
2c7c8891f4
Remove use half-open range pattern which is unstable on rustc 1.48
2022-01-12 20:46:17 -05:00
Jonathan Behrens
01df985ef8
Fix formatting
2022-01-12 20:13:23 -05:00
Jonathan Behrens
593479e5e3
Avoid reading tags in read_jpeg
2022-01-12 19:56:08 -05:00
Jonathan Behrens
bc2055243a
Add consistency check between StripOffsets and StripByteCounts
2022-01-12 19:56:08 -05:00
Jonathan Behrens
7a7d4f0305
Avoid unused warning
2022-01-12 19:56:08 -05:00
Jonathan Behrens
720e6586b9
Make read_ifd and read_entry stateless
2022-01-12 19:56:08 -05:00
Jonathan Behrens
47080293db
Move image loading to Image::from_reader
2022-01-12 19:56:02 -05:00
Jonathan Behrens
b385a6e752
Move some decoder fields into a new Image struct
2022-01-12 19:50:06 -05:00
Jonathan Behrens
6ba5553d20
Compute tile attributes on demand
2022-01-12 19:50:06 -05:00
Jonathan Behrens
a36cd6bd90
chunk_{offsets,bytes} to replace {tile,strip}_{offsets,bytes}
2022-01-12 19:50:06 -05:00
Jonathan Behrens
63e6ef8bba
Add current_chunk to replace strip_index and current_tile
2022-01-12 19:50:06 -05:00
Jonathan Behrens
2d10cff97e
Reading fields shouldn't need the entire Decoder
2022-01-12 19:50:06 -05:00
Jonathan Behrens
23fe194ad9
Remove read_ifd_offset_nonrepeating
2022-01-12 19:50:06 -05:00
Jonathan Behrens
2d572c0370
Remove Decoder::byte_order
2022-01-12 19:50:06 -05:00
Jonathan Behrens
4c942ca690
Read JPEGTables ahead of time
2022-01-12 19:50:06 -05:00
Jonathan Behrens
a19d35233a
Read predictor ahead of time
2022-01-12 19:50:06 -05:00
Jonathan Behrens
dc95ce10ac
Remove some extremely brittle tests
2022-01-12 19:49:55 -05:00
Jonathan Behrens
31da6737b9
More refactoring
2022-01-12 19:45:41 -05:00
Jonathan Behrens
e9aa39d895
Initialize Decoder in new instead of init
2022-01-12 19:45:41 -05:00
Jonathan Behrens
fb4c119b88
Merge pull request #152 from fintelia/refactor-decode
...
Refactor strip/tile decoding
2022-01-05 21:48:14 -05:00
Jonathan Behrens
3242d328d1
Reformat
2021-12-22 12:06:12 -05:00
Jonathan Behrens
d6c42dd60a
Some refactoring of strip/tile decoding
2021-12-22 12:05:38 -05:00
Jonathan Behrens
b318481c55
Merge pull request #143 from Christopher22/reset_tag_values
...
Do not carry tag values from previous images
2021-08-15 11:43:44 -04:00
Jonathan Behrens
f2fec92283
Merge pull request #146 from fintelia/encode-signed-int
...
Support encoding signed integer formats
2021-06-20 18:39:08 -04:00
Jonathan Behrens
be0619d6a1
Support encoding signed integer formats
2021-06-20 14:33:13 -04:00
Jonathan Behrens
9fe9b2e0a0
Merge pull request #134 from RReverser/remove-inflate-error
...
Remove InflateError
2021-05-15 16:50:36 -04:00
Jonathan Behrens
e70121efbb
Merge pull request #132 from RReverser/deflate-improvements
...
Improve deflate support
2021-05-14 17:58:11 -04:00
Jonathan Behrens
1eb9c4fab7
fix borrow check issue on rustc 1.34.2
2021-04-10 21:45:04 -04:00
Jonathan Behrens
201b95f749
Improve expand_strip and remove read_{u16, u32, ...}_into
2021-04-10 21:34:57 -04:00
Jonathan Behrens
7641dcbd3f
Refactoring to simplify expand_strip function
2021-04-10 15:02:16 -04:00
Jonathan Behrens
60c6e0cd90
Simplify de-compression logic
2021-04-10 14:49:04 -04:00
Jonathan Behrens
2cba04dfe7
Merge pull request #118 from satarsa/master
...
Open tif files containing i32 arrays
2021-02-24 09:44:37 -05:00
Jonathan Behrens
fc80c5e3dd
Merge pull request #111 from tnl-rwa/large_sttrip_size
...
Large strip size
2020-12-07 20:50:17 -05:00
Jonathan Behrens
67105fe4ec
Refactor Entry::val function
2020-12-04 18:59:51 -05:00
Jonathan Behrens
ff26217534
Merge pull request #26 from birktj/incremental
...
Incremental decoding implemented
2019-02-26 20:07:29 -05:00
Jonathan Behrens
4e3b36598d
Merge pull request #20 from fintelia/master
...
Remove unsafe code
2019-01-13 23:25:41 -05: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