Wei Ji
307cd8be97
Add SignedByte and SignedShort enum variants ( #234 )
2024-07-21 20:37:25 -07:00
Kurt Kühnert
da07c0f4f5
added round trip test
...
fixed ci
added colortype
2023-01-05 09:34:54 +01: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
Alan Race
802949f6e1
Removed ChunkInfo and added additional functions on decoder
2022-07-18 17:15:44 +02:00
Alan Race
5cadbffebf
Changed to use u32 for chunk_index
2022-07-11 08:56:35 +02:00
Alan Race
e1f4161e0b
Removed unused functions and make InvalidChunkIndex a UsageError
2022-07-08 11:08:30 +02:00
Alan Race
8c0c13f022
Added read_chunk_at and read_chunk_to_buffer functions
2022-07-07 15:25:01 +02:00
Alan Race
6bec36ab20
Reverted read_strip and read_tile to previous call signature
...
Added comments to ChunkInfo
2022-05-09 09:17:39 +02:00
Alan Race
e57ca1a926
Added functionality for loading selected strip
2022-05-09 09:17:27 +02:00
Philipp Oppermann
47dfa0aa3e
Merge branch 'master' into encode-bigtiff
2021-04-12 11:34:41 +02:00
Philipp Oppermann
d4c958f915
Add a test for bigtiff encoding
2021-03-23 14:29:56 +01:00
Kal Conley
d086e289dd
Implement missing tag types and signed 64-bit support
2021-03-17 01:24:32 +01:00
Robert Wassens
5346a441ae
Processed review comment
2020-12-07 11:43:09 +01:00
Robert Wassens
76173069a3
round trip test
2020-12-06 23:34:24 +01:00
Robert Wassens
7da8f01f75
make strip size configurable
2020-12-05 01:39:37 +01: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
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
Farkal
ba1daa18b2
Allow custom encoding process ( #84 )
...
Simplify encoding of tags
2020-07-27 11:29:09 +02:00
Andrew Champion
8d4bdce7aa
Add support for IEEEFP 32 and 64 bit encoding
2020-02-10 13:21:16 +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
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
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
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
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
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
Andrew Champion
334759b08d
Remove several panics in write_image
...
Closes #35 .
2019-04-25 20:03:29 +02:00
Atul Bhosale
522fbd1a69
Format code using 'cargo fmt'
2019-04-18 00:04:43 +05:30
Birk Tjelmeland
de18d446f2
Fix error in encoder tests
2019-02-27 17:23:19 +01: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
Birk Tjelmeland
fa540dbad6
Add more colortypes
2019-02-09 20:53:11 +01:00
Birk Tjelmeland
503c4d29ed
Add function to write entire image
2019-02-09 20:40:25 +01:00
Birk Tjelmeland
fb233771b5
Fix small errors and clean up
2019-02-09 20:36:40 +01:00
Birk Tjelmeland
f38c3f9c4a
Clean up api
2019-02-09 02:11:01 +01:00
Birk Tjelmeland
6ccca781c3
Create encode test
2019-01-31 21:32:14 +01:00