On Thu Jun 12 13:55:17 2025 +0000, Matteo Bruni wrote:
I think it's probably better to rework `d3dx_pixels_decompress()` to make use of the bcdec API more naturally, instead of essentially introducing an adapter for bcdec offering the old txc_dxtn interface. I haven't thought it through by any means but I imagine we could iterate block by block, decompressing directly into `uncompressed_mem` if it fits, or into a temporary buffer if we only need a part (and then copy the subset we want).
Yes, it's possible to do this, I was just trying to keep things simple :) The code gets a bit messier because of the need to classify whether a particular block should be fully decoded, partially decoded, or skipped all together. It should be more performant though.