|
JOGL v2.6.0-rc-20250706
JOGL, High-Performance Graphics Binding for Java (public API).
|
This test uses the DDSImage class to read a dds image from file, extract the data, and use the class to create a new DDSImage from the extracted data
Bug Reference: https://jogamp.org/bugzilla/show_bug.cgi?id=362
The bug pertains to incorrect size calculation for checking validity of data.
More...
Public Member Functions | |
| void | setup () throws Throwable |
| void | teardown () |
| void | test00_DDSImage_CreateFromData_Uncompressed_RGB () throws IOException |
| void | test01_DDSImage_CreateFromData_DXT1_RGB () throws IOException |
| void | test02_DDSImage_CreateFromData_DXT5_RGB () throws IOException |
Static Public Member Functions | |
| static void | main (final String[] args) |
This test uses the DDSImage class to read a dds image from file, extract the data, and use the class to create a new DDSImage from the extracted data
Bug Reference: https://jogamp.org/bugzilla/show_bug.cgi?id=362
The bug pertains to incorrect size calculation for checking validity of data.
Compressed DXT1 has min of 8 bytes, DXT5 has min of 16 bytes. It exists in DDSImage#createFromData(int, int, int, ByteBuffer[]) where an IllegalArgumentException is thrown for Mipmap level size mismatch.
following cases are tested: Uncompressed 64x32 RGB DDS Image with all mipmap levels (64x32 --> 1x1) DXT1 compressed 64x32 RGB DDS Image with all mipmap levels (64x32 --> 1x1) DXT5 compressed 64x32 RGB DDS Image with all mipmap levels (64x32 --> 1x1)
Definition at line 38 of file TestBug362DDSImageCreateFromData.java.
|
static |
Definition at line 95 of file TestBug362DDSImageCreateFromData.java.
| void com.jogamp.opengl.test.junit.jogl.util.texture.TestBug362DDSImageCreateFromData.setup | ( | ) | throws Throwable |
Definition at line 45 of file TestBug362DDSImageCreateFromData.java.
| void com.jogamp.opengl.test.junit.jogl.util.texture.TestBug362DDSImageCreateFromData.teardown | ( | ) |
Definition at line 52 of file TestBug362DDSImageCreateFromData.java.
| void com.jogamp.opengl.test.junit.jogl.util.texture.TestBug362DDSImageCreateFromData.test00_DDSImage_CreateFromData_Uncompressed_RGB | ( | ) | throws IOException |
Definition at line 81 of file TestBug362DDSImageCreateFromData.java.
| void com.jogamp.opengl.test.junit.jogl.util.texture.TestBug362DDSImageCreateFromData.test01_DDSImage_CreateFromData_DXT1_RGB | ( | ) | throws IOException |
Definition at line 86 of file TestBug362DDSImageCreateFromData.java.
| void com.jogamp.opengl.test.junit.jogl.util.texture.TestBug362DDSImageCreateFromData.test02_DDSImage_CreateFromData_DXT5_RGB | ( | ) | throws IOException |
Definition at line 91 of file TestBug362DDSImageCreateFromData.java.