mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Tests: Add imbuf tests for the iris image format
Pull Request: https://projects.blender.org/blender/blender/pulls/157865
This commit is contained in:
parent
f0d5ccae09
commit
c7844088e4
20 changed files with 54 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue