https://bugs.kde.org/show_bug.cgi?id=524495

Mirco Miranda <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|REPORTED                    |RESOLVED
      Latest Commit|                            |https://invent.kde.org/fram
                   |                            |eworks/kimageformats/-/comm
                   |                            |it/3b18b654b0805b35dd397fda
                   |                            |20390b745157da59

--- Comment #2 from Mirco Miranda <[email protected]> ---
Git commit 3b18b654b0805b35dd397fda20390b745157da59 by Mirco Miranda, on behalf
of Wang Zichong.
Committed on 20/10/2026 at 01:38.
Pushed by mircomir into branch 'master'.

DDS: add DX10 BC4/BC5/BC7 support

DX10 DDS files using the BC (block compression) formats were reported as
unsupported: knownDXGIFormat() only mapped the floating point DXGI
formats, so getFormat() returned FormatUnknown and ensureScanned() failed,
e.g. for a BC7_UNORM_SRGB (dxgi 99) image.

The following changes have been made:

- Added a self-contained BC7 decoder following the "BC7 Format"
  specification, supporting all 8 modes, for both the UNORM and the
  UNORM_SRGB variants (loaded as ARGB32)
- Added BC4 support (single channel, loaded as Grayscale8)
- Added BC5 support, reusing the existing ATI2/3Dc normal map decoder
- Added DX10 mappings for BC1/BC2/BC3, which were previously handled only
  as the legacy DXT1/DXT3/DXT5 fourCC formats
- Added read tests for BC4, BC5, BC7 and BC7_UNORM_SRGB, plus DX10
  variants of the existing BC1/BC2/BC3 test images

BC6H (HDR) is not supported.

The test data was generated from the existing rgba.png test image, encoded
with bc7enc_rdo and decoded with bcdec.

A  +-    --    autotests/read/dds/bc4.dds
A  +-    --    autotests/read/dds/bc4.png
A  +-    --    autotests/read/dds/bc5.dds
A  +-    --    autotests/read/dds/bc5.png
A  +-    --    autotests/read/dds/bc7.dds
A  +-    --    autotests/read/dds/bc7.png
A  +-    --    autotests/read/dds/bc7srgb.dds
A  +-    --    autotests/read/dds/bc7srgb.png
A  +-    --    autotests/read/dds/rgba_bc1dx10.dds
A  +-    --    autotests/read/dds/rgba_bc1dx10.png
A  +-    --    autotests/read/dds/rgba_bc2dx10.dds
A  +-    --    autotests/read/dds/rgba_bc2dx10.png
A  +-    --    autotests/read/dds/rgba_bc3dx10.dds
A  +-    --    autotests/read/dds/rgba_bc3dx10.png
M  +438  -2    src/imageformats/dds.cpp

https://invent.kde.org/frameworks/kimageformats/-/commit/3b18b654b0805b35dd397fda20390b745157da59

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to