Paul Allen
05f754f6e5
Use imageIndex to calculate height/width and buffer offset.
2024-09-24 17:49:58 +01:00
Paul Allen
edf132b738
Move setByteOrder to DDSImageReader.readHeader
2024-09-24 11:17:03 +01:00
Paul Allen
789cbe88b6
(fix) wrong public...
2024-09-24 11:08:54 +01:00
Paul Allen
e95d403a5f
Don't need to expose classes outside the package
...
DDSHeader, DDSReader, DDSType
2024-09-24 11:02:13 +01:00
Paul Allen
a648d1a327
Convert 4byte array into %08x string format.
2024-09-24 10:58:25 +01:00
Paul Allen
bcfab45977
Format tabs -> 4 spaces
2024-09-24 10:39:12 +01:00
Paul Allen
771e486b59
Update imageio/imageio-dds/src/main/java/com/twelvemonkeys/imageio/plugins/dds/DDSHeader.java
...
Improve Magic IIOException
Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com >
2024-09-24 09:56:19 +01:00
Paul Allen
be2d6d6053
Update imageio/imageio-dds/src/main/java/com/twelvemonkeys/imageio/plugins/dds/DDSHeader.java
...
Improve IIOException "Invalid DDS header size"
Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com >
2024-09-24 09:55:27 +01:00
Paul Allen
dede5eabb5
Use Enum DDSType instead of int values.
...
Pass imageIndex into mipmap.
2024-09-19 19:03:33 +01:00
Paul Allen
7eb45b1245
Code cleanup and added exception handling.
2024-09-19 13:43:27 +01:00
Paul Allen
79aef6e14a
Remove offset and use imageInput.readFully
...
Reads next image calculating/updating width/height from mipmapLevel.
Probably will never get used as we only want the largest image returned.
2024-09-18 16:57:56 +01:00
Paul Allen
7082a5310f
Added processImageStarted and stubbed out processImageProgress and processReadAborted
...
Added all DDS format test cases to getTestData
2024-09-17 16:57:54 +01:00
Paul Allen
0cd056ac54
Push ImageInputStream into DDSReader
...
Unable to determine buffer length (so as a hack I over allocate buffer and read)
```
byte[] buffer = new byte[width * height * 4];
int len = imageInput.read(buffer);
```
Added test files for all supported formats.
2024-09-17 16:37:11 +01:00
Paul Allen
120d6eba54
Fix pixel order to ARGB
2024-09-16 17:29:35 +01:00
Paul Allen
ec7635d7d8
Read header (DDSHeader) and pass into DDSReader
...
Remove header methods using buffer offset addressing.
Switch endian for DX1-DX5 types
2024-09-16 17:28:56 +01:00
Paul Allen
82bf4851ab
Basic wrapper around DDSReader.
...
Nasty hack to get initial plugin working...
Mark and Reset the imageinput stream when reading the header. Then read the whole buffer into DDSReader and generate a fixed BufferedImage ignoring the getDestination() BufferedImage.
2024-09-13 15:51:00 +01:00
Harald Kuhr
9e989680c6
Made SubImageOutputStream class final + fixed doc
2024-08-06 15:40:51 +02:00
dependabot[bot]
72ef50b677
Bump org.hamcrest:hamcrest from 2.2 to 3.0
...
Bumps [org.hamcrest:hamcrest](https://github.com/hamcrest/JavaHamcrest ) from 2.2 to 3.0.
- [Release notes](https://github.com/hamcrest/JavaHamcrest/releases )
- [Changelog](https://github.com/hamcrest/JavaHamcrest/blob/master/CHANGES.md )
- [Commits](https://github.com/hamcrest/JavaHamcrest/compare/v2.2...v3.0 )
---
updated-dependencies:
- dependency-name: org.hamcrest:hamcrest
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-08-05 10:48:01 +02:00
Harald Kuhr
ee7d4ba724
#975 : Fix for broken decoding gray + extra samples
2024-07-05 15:42:49 +02:00
Harald Kuhr
f7d4557c57
#972 : Fix for AAIOBE in decodeDeltaBytes
2024-07-02 21:47:05 +02:00
Harald Kuhr
46eaa72a13
Typo in POM description.
2024-06-09 13:05:54 +02:00
Harald Kuhr
b3d48bdc50
[maven-release-plugin] prepare for next development iteration
2024-06-08 14:12:14 +02:00
Harald Kuhr
981d2da1e6
[maven-release-plugin] prepare release twelvemonkeys-3.11.0
2024-06-08 14:12:10 +02:00
Harald Kuhr
fa49dd93a7
#955 : PSD: Fix overflow issue found in GIMP PSD
2024-06-04 22:52:03 +02:00
Harald Kuhr
3e7ad05973
#948 : TIFF 64 bit FP support
2024-05-28 20:18:54 +02:00
dependabot[bot]
8ecf203263
Bump commons-io:commons-io from 2.16.0 to 2.16.1
...
Bumps commons-io:commons-io from 2.16.0 to 2.16.1.
---
updated-dependencies:
- dependency-name: commons-io:commons-io
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-04-09 10:54:07 +02:00
dependabot[bot]
b8e3e7825c
Bump commons-io:commons-io from 2.15.1 to 2.16.0
...
Bumps commons-io:commons-io from 2.15.1 to 2.16.0.
---
updated-dependencies:
- dependency-name: commons-io:commons-io
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2024-03-29 14:22:03 +01:00
Bertil Chapuis
3742e6ef08
Test against an array of float values
2024-01-05 15:52:22 +01:00
Bertil Chapuis
52aa582ccd
Add a random test geotiff generated with qgis to improve
2024-01-05 15:52:22 +01:00
Bertil Chapuis
adda52053b
Add a unit test
2024-01-05 15:52:22 +01:00
Bertil Chapuis
6501321fac
Wrap all invokations of normalizeColor and normalizeColorPlanar
2024-01-05 15:52:22 +01:00
Bertil Chapuis
57d9bfda59
Rename the flag and skip normalization completely
2024-01-05 15:52:22 +01:00
Bertil Chapuis
1226375ba6
Disable clamping when reading raw tiff data
2024-01-05 15:52:22 +01:00
Harald Kuhr
b91d02a562
#878 : Now detects APP14/Adobe markers with full 2 byte version
2023-12-16 17:57:49 +01:00
dependabot[bot]
7117cd1fd6
Bump commons-io:commons-io from 2.15.0 to 2.15.1
...
Bumps commons-io:commons-io from 2.15.0 to 2.15.1.
---
updated-dependencies:
- dependency-name: commons-io:commons-io
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-11-30 10:53:17 +01:00
Harald Kuhr
0378f504e7
#865 TIFF: Half decoding fix, now uses standard conversion.
2023-11-15 10:50:06 +01:00
Harald Kuhr
a95235b422
#860 : Fix regression in reading broken PackBits stream.
2023-11-07 14:04:28 +01:00
Steinar Bang
a9e4b2e262
Change maven-bundle-plugin config to correctly export ImageWriterSpi services
2023-11-02 09:48:01 +01:00
dependabot[bot]
1680fadf83
Bump commons-io:commons-io from 2.14.0 to 2.15.0
...
Bumps commons-io:commons-io from 2.14.0 to 2.15.0.
---
updated-dependencies:
- dependency-name: commons-io:commons-io
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
2023-10-26 11:04:08 +02:00
Harald Kuhr
d1df8c13ed
Remove outdated TODO
2023-10-25 22:14:54 +02:00
Harald Kuhr
031937fe99
#852 JPEG: Preserve existing metadata when writing CMYK data
2023-10-25 22:14:05 +02:00
Harald Kuhr
ad437c2470
Better comment
2023-10-20 22:12:23 +02:00
Harald Kuhr
dabc26bdb5
[maven-release-plugin] prepare for next development iteration
2023-10-20 21:25:12 +02:00
Harald Kuhr
b441298a9a
[maven-release-plugin] prepare release twelvemonkeys-3.10.0
2023-10-20 21:25:06 +02:00
Harald Kuhr
345ca0ac13
POM fixes
2023-10-20 16:53:25 +02:00
Harald Kuhr
9720a931c5
#843 : Correctly handle empty image resources section.
2023-10-20 12:27:17 +02:00
Harald Kuhr
2e0e575183
#841 : Filter out incompatible ICC profiles
2023-10-19 11:10:47 +02:00
Harald Kuhr
2c7c47b158
#837 : Now uses last app segment for color space detection.
2023-10-18 16:52:47 +02:00
Steinar Bang
a7ebd66149
Export all TwelveMonkeys imageio SPI plugins using the osgi.serviceloader capability
2023-10-05 21:52:33 +02:00
Steinar Bang
f0a032a7b9
Add Require-Capability header requiring osgi.serviceloader.registrar to all imageio OSGi bundle MANIFEST.MF files
2023-10-05 21:52:33 +02:00