JOGL v2.6.0-rc-20250712
JOGL, High-Performance Graphics Binding for Java™ (public API).
com.jogamp.opengl.test.junit.jogl.util.texture.TestBug362DDSImageCreateFromData Class Reference

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...

Collaboration diagram for com.jogamp.opengl.test.junit.jogl.util.texture.TestBug362DDSImageCreateFromData:

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)
 

Detailed Description

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)

Author
Michael Esemplare

Definition at line 38 of file TestBug362DDSImageCreateFromData.java.

Member Function Documentation

◆ main()

static void com.jogamp.opengl.test.junit.jogl.util.texture.TestBug362DDSImageCreateFromData.main ( final String[]  args)
static

Definition at line 95 of file TestBug362DDSImageCreateFromData.java.

◆ setup()

void com.jogamp.opengl.test.junit.jogl.util.texture.TestBug362DDSImageCreateFromData.setup ( ) throws Throwable

Definition at line 45 of file TestBug362DDSImageCreateFromData.java.

◆ teardown()

void com.jogamp.opengl.test.junit.jogl.util.texture.TestBug362DDSImageCreateFromData.teardown ( )

Definition at line 52 of file TestBug362DDSImageCreateFromData.java.

◆ test00_DDSImage_CreateFromData_Uncompressed_RGB()

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.

◆ test01_DDSImage_CreateFromData_DXT1_RGB()

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.

◆ test02_DDSImage_CreateFromData_DXT5_RGB()

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.


The documentation for this class was generated from the following file: