image icon indicating copy to clipboard operation
image copied to clipboard

Expose dxt decoder

Open clouds56 opened this issue 11 months ago • 1 comments

I would like to be able decode image buffer with DXT1/DXT3/DXT5 format

My specific use case for this functionality is to be used in crn format which embeds dxt blocks, see https://github.com/clouds56/crnlib/blob/01da6060a51b30229d6f5a1969a83cfea9e6aa20/src/lib.rs#L384

More about crn format see here https://github.com/BinomialLLC/crunch

clouds56 avatar Jan 23 '25 06:01 clouds56

The DXT codec used to be public, but was deprecated and removed in favor of recommending the (much better) texpresso crate instead.

fintelia avatar Jan 23 '25 19:01 fintelia

I think this issue can be closed now since it's no longer relevant. DDS support will be moved to image-extras (https://github.com/image-rs/image/issues/2565) soon™, and buffers of raw DXTn data can be decoded by the dds crate with its decode function.

RunDevelopment avatar Nov 26 '25 22:11 RunDevelopment