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

@ -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