mirror of
https://github.com/haraldk/TwelveMonkeys.git
synced 2026-03-20 00:00:03 -04:00
* 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.
* Read header (DDSHeader) and pass into DDSReader
Remove header methods using buffer offset addressing.
Switch endian for DX1-DX5 types
* Fix pixel order to ARGB
* 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.
* Added processImageStarted and stubbed out processImageProgress and processReadAborted
Added all DDS format test cases to getTestData
* 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.
* Code cleanup and added exception handling.
* Use Enum DDSType instead of int values.
Pass imageIndex into mipmap.
* 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>
* 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>
* Delete .run directory
* Format tabs -> 4 spaces
* Convert 4byte array into %08x string format.
* Don't need to expose classes outside the package
DDSHeader, DDSReader, DDSType
* (fix) wrong public...
* Move setByteOrder to DDSImageReader.readHeader
* Use imageIndex to calculate height/width and buffer offset.
* Delete .gitignore
* Revert "Delete .gitignore"
This reverts commit 71a4e73ca6.
* Undelete/Restore .gitignore
* Simplify String.format into one.
* Override failing tests and ignore.
* Revert formatting on PNGImageReaderTest.java
---------
Co-authored-by: Harald Kuhr <harald.kuhr@gmail.com>
191 lines
6.5 KiB
XML
191 lines
6.5 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
<parent>
|
|
<groupId>com.twelvemonkeys</groupId>
|
|
<artifactId>twelvemonkeys</artifactId>
|
|
<version>3.11.1-SNAPSHOT</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<groupId>com.twelvemonkeys.imageio</groupId>
|
|
<artifactId>imageio</artifactId>
|
|
<packaging>pom</packaging>
|
|
<name>TwelveMonkeys :: ImageIO</name>
|
|
<url>https://github.com/haraldk/TwelveMonkeys/tree/master/imageio</url>
|
|
|
|
<contributors>
|
|
<contributor>
|
|
<name>Harald Kuhr</name>
|
|
<email>harald.kuhr@gmail.com</email>
|
|
<roles>
|
|
<role>owner</role>
|
|
<role>developer</role>
|
|
</roles>
|
|
</contributor>
|
|
</contributors>
|
|
|
|
<modules>
|
|
<!-- Support -->
|
|
<module>imageio-core</module>
|
|
<module>imageio-metadata</module>
|
|
<!--<module>imageio-stream</module>-->
|
|
<module>imageio-clippath</module>
|
|
|
|
<!-- Stand-alone readers/writers -->
|
|
<module>imageio-bmp</module>
|
|
<module>imageio-hdr</module>
|
|
<module>imageio-dds</module>
|
|
<module>imageio-icns</module>
|
|
<module>imageio-iff</module>
|
|
<module>imageio-jpeg</module>
|
|
<module>imageio-pcx</module>
|
|
<module>imageio-pdf</module>
|
|
<module>imageio-pict</module>
|
|
<module>imageio-pnm</module>
|
|
<module>imageio-psd</module>
|
|
<module>imageio-sgi</module>
|
|
<module>imageio-tga</module>
|
|
<module>imageio-thumbsdb</module>
|
|
<module>imageio-tiff</module>
|
|
<module>imageio-webp</module>
|
|
<module>imageio-xwd</module>
|
|
|
|
<!-- Wrappers for 3rd party libs -->
|
|
<module>imageio-batik</module>
|
|
|
|
<!-- Test cases for the JRE provided ImageIO plugins -->
|
|
<module>imageio-reference</module>
|
|
<module>imageio-jpeg-jep262-interop</module>
|
|
<module>imageio-jpeg-jai-interop</module>
|
|
<module>imageio-tiff-jai-interop</module>
|
|
<module>imageio-tiff-jdk-interop</module>
|
|
</modules>
|
|
|
|
<properties>
|
|
<core.version>3.1-SNAPSHOT</core.version>
|
|
<imageio.core.version>3.1-SNAPSHOT</imageio.core.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.twelvemonkeys.common</groupId>
|
|
<artifactId>common-lang</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.twelvemonkeys.common</groupId>
|
|
<artifactId>common-io</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.twelvemonkeys.common</groupId>
|
|
<artifactId>common-image</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.twelvemonkeys.common</groupId>
|
|
<artifactId>common-lang</artifactId>
|
|
<version>${project.version}</version>
|
|
<type>test-jar</type>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.twelvemonkeys.common</groupId>
|
|
<artifactId>common-io</artifactId>
|
|
<version>${project.version}</version>
|
|
<type>test-jar</type>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>junit</groupId>
|
|
<artifactId>junit</artifactId>
|
|
<version>4.13.2</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.mockito</groupId>
|
|
<artifactId>mockito-core</artifactId>
|
|
<version>4.11.0</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.hamcrest</groupId>
|
|
<artifactId>hamcrest</artifactId>
|
|
<version>3.0</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<dependencyManagement>
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>com.twelvemonkeys.common</groupId>
|
|
<artifactId>common-lang</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.twelvemonkeys.common</groupId>
|
|
<artifactId>common-io</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.twelvemonkeys.common</groupId>
|
|
<artifactId>common-image</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>imageio-core</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>imageio-metadata</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>imageio-jpeg</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>imageio-tiff</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>${project.groupId}</groupId>
|
|
<artifactId>imageio-core</artifactId>
|
|
<version>${project.version}</version>
|
|
<type>test-jar</type>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
</dependencyManagement>
|
|
|
|
<build>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.felix</groupId>
|
|
<artifactId>maven-bundle-plugin</artifactId>
|
|
<configuration>
|
|
<instructions>
|
|
<Require-Capability>osgi.extender; filter:="(osgi.extender=osgi.serviceloader.registrar)"</Require-Capability>
|
|
</instructions>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
</build>
|
|
</project>
|