Tests: Add imbuf tests for the iris image format

Pull Request: https://projects.blender.org/blender/blender/pulls/157865
This commit is contained in:
Jesse Yurkovich 2026-04-26 14:14:39 -07:00 • committed by Gitea
parent f0d5ccae09
commit c7844088e4
20 changed files with 54 additions and 0 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

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:fa7dc100c0143d982b2e45460d29fa363ed9cd42ea50252b215c75da77e68eca
size 41478

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:3304c779788bebc1c2bfcd4fc1b9932486312183eb1fe0b2a3478c818c4fea69
size 68591

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:4d1a937cc0b7e71299eeb9f568c82a491bdb6531b9a1df38b9a14fdfd9bc5659
size 82121

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:15cb6023bbc819554658f96d86ddcc1759675ff293553b432da79c669be43c0a
size 92629

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:0c2d4baaad2ce23c1c3b1ece999d270b8b3255c112b0618e9183dac71aef4e17
size 105896

View file

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

View file

@ -165,6 +165,9 @@ class ImBufLoadTest(ImBufTest):
def test_load_psd(self):
self.check("*.psd")
def test_load_iris(self):
self.check("*.rgb")
class ImBufBrokenTest(AbstractImBufTest):
@classmethod

View file

@ -277,6 +277,15 @@ class ImBufSaveTest(ImBufTest):
self.check(src="rgba32", ext="avif", settings={"file_format": "AVIF", "color_mode": "RGBA", "color_depth": "8", "quality": 70})
self.check(src="rgba32", ext="avif", settings={"file_format": "AVIF", "color_mode": "RGB", "color_depth": "10", "quality": 70})
self.check(src="rgba32", ext="avif", settings={"file_format": "AVIF", "color_mode": "RGB", "color_depth": "12", "quality": 70})
def test_save_iris(self):
self.check(src="rgba08", ext="rgb", settings={"file_format": "IRIS", "color_mode": "BW"})
self.check(src="rgba08", ext="rgb", settings={"file_format": "IRIS", "color_mode": "RGB"})
self.check(src="rgba08", ext="rgb", settings={"file_format": "IRIS", "color_mode": "RGBA"})
self.check(src="rgba32", ext="rgb", settings={"file_format": "IRIS", "color_mode": "BW"})
self.check(src="rgba32", ext="rgb", settings={"file_format": "IRIS", "color_mode": "RGB"})
self.check(src="rgba32", ext="rgb", settings={"file_format": "IRIS", "color_mode": "RGBA"})
# autopep8: on