ScanMountGoat / image_dds

Convert images to and from compressed DDS formats
MIT License
7 stars 2 forks source link

Add support for signed BC4 and BC5 #18

Open RunDevelopment opened 3 weeks ago

RunDevelopment commented 3 weeks ago

BC4 and BC5 have signed versions (BC4_SNORM and BC5S) that aren't supported right now. Please add support for them. While the signed formats are less common, they are used nonetheless, so they should be supported.

I have already implemented a BC4_SNORM decoder, so feel free to use my code.

ScanMountGoat commented 3 weeks ago

Is there a specific file you're trying to decode that doesn't work properly?

ScanMountGoat commented 3 weeks ago

The snorm variants should still work with image_dds. You may need to remap the value range of the output to convert from unsigned to signed.

RunDevelopment commented 3 weeks ago

I'm sorry for not being specific enough. I meant request for signed BC4/5 to be added to bcdec_rs.