Alan Race
|
9e6f9771d3
|
Updated create_reader to only require &mut SmartReader and not &mut Self
|
2022-04-28 08:54:32 +02:00 |
|
Alan Race
|
b196d19238
|
Now using the list of offsets to know how many IFDs we have seen
|
2022-04-27 17:50:34 +02:00 |
|
Alan Race
|
436cfaf69f
|
Added ability to select which image (IFD) to load
|
2022-04-27 17:38:44 +02:00 |
|
Alan Race
|
8fcf49deac
|
Added ability to select which tile to load (based on index)
Also reduced repeated code when calculating padding etc.
|
2022-04-27 16:46:48 +02:00 |
|
Alan Race
|
2cf33d634d
|
Clean up read_image
|
2022-04-27 15:00:22 +02:00 |
|
Alan Race
|
eeb79ee07a
|
Reduce number of clones when processing jpeg data
|
2022-04-27 14:46:52 +02:00 |
|
Alan Race
|
592405268e
|
Added ability to decompress tiled jpeg files
|
2022-04-27 14:05:41 +02: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
|
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
|
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
|
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
|
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 |
|
5225225
|
885d762def
|
Implement cycle checking in IFD offsets
|
2021-09-08 18:08:10 +01:00 |
|
5225225
|
2c9e02d347
|
Merge remote-tracking branch 'origin/master' into oom
|
2021-09-06 17:53:16 +01: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 |
|
5225225
|
1774b362d3
|
x
|
2021-07-15 18:08:40 +01:00 |
|
Tomáš Král
|
e92cf219a9
|
Fix the mandrill.tiff regression (#145)
* fix mandrill.tiff regression from upstream
* use contains_key(), added StripTileTagConflict error
* updated test_div_zero, added test_no_rows_per_strip
|
2021-06-17 09:22:07 -04:00 |
|
Christopher Gundler
|
3e5f977460
|
Do not carry tag values from previous images
|
2021-06-14 20:21:51 +02:00 |
|
5225225
|
f0666aebbf
|
Fix overflow when calculating strip height for multiple images
|
2021-05-29 22:52:42 +01:00 |
|
5225225
|
65a1fbe8ae
|
Test for short JPEG tag
|
2021-05-29 22:12:35 +01:00 |
|
5225225
|
03b6ed413b
|
Fix out of bounds subtraction with invalid JPEG table
|
2021-05-29 22:12:35 +01:00 |
|
5225225
|
5b7814c994
|
Check for OOM when creating LZWReader
|
2021-05-29 22:12:35 +01:00 |
|
5225225
|
a15d619471
|
Fix OOM in Jpeg decoding buffer allocation
|
2021-05-29 22:12:35 +01:00 |
|
HeroicKatora
|
153ed48ee7
|
Merge pull request #136 from TomasKralCZ/padding_skip
remove padding_buffer
|
2021-05-29 15:13:20 +02:00 |
|
5225225
|
2bb37a4ecd
|
Do checked multiplication for samples per strip
|
2021-05-29 12:37:15 +01:00 |
|
5225225
|
b41ac105ab
|
Use checked multiplication when calculating buffer size
|
2021-05-29 12:36:59 +01:00 |
|
5225225
|
1e10b9803b
|
Add check for an invalid strip count
|
2021-05-29 12:36:50 +01:00 |
|