Tests: Add imbuf tests for the DDS image format

Add coverage for loading in BC1, BC3, BC4, BC5, and BC7 variants.
Note: BC2 (DXT3) is still missing.

Pull Request: https://projects.blender.org/blender/blender/pulls/157938
This commit is contained in:
Jesse Yurkovich 2026-04-29 20:21:51 +02:00 • committed by Jesse Yurkovich
parent da5dbc553b
commit a593ee9f47
16 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ca5ee575e0256430778fa2ae5be56ab55d000bc21dc5c96c8f0fcc28a210656a
size 5608

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0680b2abd9c81f5718d6017d3da05d974f2252e3e5be9f5ffb7dd92b7ea05ecf
size 11088

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c50db35fe091f2463f233586839535e8bd627e86e38be30c638fa1e4db81866e
size 5628

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ff83c01b9aed42a0ed9a7f4dc796ffaaed477e805218de201163e9bd6c8a6f24
size 11108

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d06c6939eb95fac1c07b848e729b5ed793c24163555c8d747847c6e6fd372ab7
size 11108

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7cca73f79635d8762357e8a9f25455b7807843bca0611f86f068e40b83750d4e
size 29936

View file

@ -0,0 +1 @@
channels=4 is_float=False colorspace='sRGB' alpha_mode='STRAIGHT'

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7cca73f79635d8762357e8a9f25455b7807843bca0611f86f068e40b83750d4e
size 29936

View file

@ -0,0 +1 @@
channels=4 is_float=False colorspace='sRGB' alpha_mode='STRAIGHT'

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a8cb234ce03d9212aba1ffebf5f7c84c2d66ae422f1e2da5a2f4c625d2dc107d
size 23989

View file

@ -0,0 +1 @@
channels=4 is_float=False colorspace='sRGB' alpha_mode='STRAIGHT'

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4583f4ba37894d33d6f508ee31d04ab8bbaf26e896c541fe6458672e6d4cfbbd
size 36962

View file

@ -0,0 +1 @@
channels=4 is_float=False colorspace='sRGB' alpha_mode='STRAIGHT'

View file

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:53e6f1e20a19a12ec564ce5815f3cacb2252dde42b222d55d007c37324de6890
size 32963

View file

@ -0,0 +1 @@
channels=4 is_float=False colorspace='sRGB' alpha_mode='STRAIGHT'

View file

@ -168,6 +168,9 @@ class ImBufLoadTest(ImBufTest):
def test_load_iris(self):
self.check("*.rgb")
def test_load_dds(self):
self.check("*.dds")
class ImBufBrokenTest(AbstractImBufTest):
@classmethod