mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
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:
parent
da5dbc553b
commit
a593ee9f47
16 changed files with 38 additions and 0 deletions
3
tests/files/imbuf_io/reference/dds_bc1_mips.dds
Normal file
3
tests/files/imbuf_io/reference/dds_bc1_mips.dds
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ca5ee575e0256430778fa2ae5be56ab55d000bc21dc5c96c8f0fcc28a210656a
|
||||
size 5608
|
||||
3
tests/files/imbuf_io/reference/dds_bc3_mips.dds
Normal file
3
tests/files/imbuf_io/reference/dds_bc3_mips.dds
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:0680b2abd9c81f5718d6017d3da05d974f2252e3e5be9f5ffb7dd92b7ea05ecf
|
||||
size 11088
|
||||
3
tests/files/imbuf_io/reference/dds_bc4_mips.dds
Normal file
3
tests/files/imbuf_io/reference/dds_bc4_mips.dds
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c50db35fe091f2463f233586839535e8bd627e86e38be30c638fa1e4db81866e
|
||||
size 5628
|
||||
3
tests/files/imbuf_io/reference/dds_bc5_mips.dds
Normal file
3
tests/files/imbuf_io/reference/dds_bc5_mips.dds
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ff83c01b9aed42a0ed9a7f4dc796ffaaed477e805218de201163e9bd6c8a6f24
|
||||
size 11108
|
||||
3
tests/files/imbuf_io/reference/dds_bc7_mips.dds
Normal file
3
tests/files/imbuf_io/reference/dds_bc7_mips.dds
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:d06c6939eb95fac1c07b848e729b5ed793c24163555c8d747847c6e6fd372ab7
|
||||
size 11108
|
||||
3
tests/files/imbuf_io/reference_load/dds_bc1_mips.exr
Normal file
3
tests/files/imbuf_io/reference_load/dds_bc1_mips.exr
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7cca73f79635d8762357e8a9f25455b7807843bca0611f86f068e40b83750d4e
|
||||
size 29936
|
||||
1
tests/files/imbuf_io/reference_load/dds_bc1_mips.txt
Normal file
1
tests/files/imbuf_io/reference_load/dds_bc1_mips.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
channels=4 is_float=False colorspace='sRGB' alpha_mode='STRAIGHT'
|
||||
3
tests/files/imbuf_io/reference_load/dds_bc3_mips.exr
Normal file
3
tests/files/imbuf_io/reference_load/dds_bc3_mips.exr
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7cca73f79635d8762357e8a9f25455b7807843bca0611f86f068e40b83750d4e
|
||||
size 29936
|
||||
1
tests/files/imbuf_io/reference_load/dds_bc3_mips.txt
Normal file
1
tests/files/imbuf_io/reference_load/dds_bc3_mips.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
channels=4 is_float=False colorspace='sRGB' alpha_mode='STRAIGHT'
|
||||
3
tests/files/imbuf_io/reference_load/dds_bc4_mips.exr
Normal file
3
tests/files/imbuf_io/reference_load/dds_bc4_mips.exr
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a8cb234ce03d9212aba1ffebf5f7c84c2d66ae422f1e2da5a2f4c625d2dc107d
|
||||
size 23989
|
||||
1
tests/files/imbuf_io/reference_load/dds_bc4_mips.txt
Normal file
1
tests/files/imbuf_io/reference_load/dds_bc4_mips.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
channels=4 is_float=False colorspace='sRGB' alpha_mode='STRAIGHT'
|
||||
3
tests/files/imbuf_io/reference_load/dds_bc5_mips.exr
Normal file
3
tests/files/imbuf_io/reference_load/dds_bc5_mips.exr
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4583f4ba37894d33d6f508ee31d04ab8bbaf26e896c541fe6458672e6d4cfbbd
|
||||
size 36962
|
||||
1
tests/files/imbuf_io/reference_load/dds_bc5_mips.txt
Normal file
1
tests/files/imbuf_io/reference_load/dds_bc5_mips.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
channels=4 is_float=False colorspace='sRGB' alpha_mode='STRAIGHT'
|
||||
3
tests/files/imbuf_io/reference_load/dds_bc7_mips.exr
Normal file
3
tests/files/imbuf_io/reference_load/dds_bc7_mips.exr
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:53e6f1e20a19a12ec564ce5815f3cacb2252dde42b222d55d007c37324de6890
|
||||
size 32963
|
||||
1
tests/files/imbuf_io/reference_load/dds_bc7_mips.txt
Normal file
1
tests/files/imbuf_io/reference_load/dds_bc7_mips.txt
Normal file
|
|
@ -0,0 +1 @@
|
|||
channels=4 is_float=False colorspace='sRGB' alpha_mode='STRAIGHT'
|
||||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue