Skip to content

Load DDS files in DevIlImageLoader without decompression #27

Open
@mosra

Description

@mosra

I thought this would be just a few lines changed, but apparently not and the more I'm trying to search anything about this in the incredibly sparse docs the more miserable I get.

What I found out so far:

  • I thought that IL_IMAGE_FORMAT would be set to something DXT-related for *.dds, but it's set to RGBA for a DXT5 file.
  • So I thought that this is in IL_IMAGE_TYPE. That returns 0x1401 for all images and that value is not in the header. What's that?!
  • The IL header has some defines for DXT like IL_DXTC_FORMAT, IL_KEEP_DXTC_DATA or IL_DXT5, but I failed miserably at searching for their use when loading images.

So far it seems that there is no way to load the DDS files without decompression and that would be very bad, because what's the point of doing that? A plain JPEG would match such use case much better.

Cc: @alicemargatroid

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    TODO

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions