Skip to content

Commit c4943e4

Browse files
committed
test(openexr): test ACES container output with various modes of failure
Signed-off-by: glowies <self@oktaycomu.com>
1 parent b7d134b commit c4943e4

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

testsuite/openexr-suite/ref/out.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,3 +341,35 @@ negoverscan.exr : 64 x 64, 3 channel, half openexr
341341
screenWindowWidth: 1
342342
oiio:subimages: 1
343343
openexr:lineOrder: "increasingY"
344+
1
345+
WARNING: Image spec is not ACES Container compliant
346+
347+
WARNING: Image spec is not ACES Container compliant
348+
349+
WARNING: Image spec is not ACES Container compliant
350+
351+
Reading strict-out.exr
352+
strict-out.exr : 4 x 4, 3 channel, half openexr
353+
SHA-1: C49A9785B2243F2F080DAAD1747F119ACCECCFA5
354+
channel list: R, G, B
355+
acesImageContainerFlag: 1
356+
chromaticities: 0.7347, 0.2653, 0, 1, 0.0001, -0.077, 0.32168, 0.33767
357+
compression: "none"
358+
PixelAspectRatio: 1
359+
screenWindowCenter: 0, 0
360+
screenWindowWidth: 1
361+
oiio:ColorSpace: "lin_ap0_scene"
362+
oiio:subimages: 1
363+
openexr:lineOrder: "increasingY"
364+
WARNING: Image spec is not ACES Container compliant
365+
oiiotool ERROR: -o : Cannot output non-compliant ACES Container in 'strict' mode.
366+
Full command line was:
367+
> oiiotool --create 4x4 3 -d half --compression none --ch R,G,B -sattrib oiio:ACESContainer strict -o strict-fail.exr
368+
WARNING: Image spec is not ACES Container compliant
369+
oiiotool ERROR: -o : Cannot output non-compliant ACES Container in 'strict' mode.
370+
Full command line was:
371+
> oiiotool --create 4x4 3 -d half --compression zip --ch B,G,R -sattrib oiio:ACESContainer strict -o strict-fail.exr
372+
WARNING: Image spec is not ACES Container compliant
373+
oiiotool ERROR: -o : Cannot output non-compliant ACES Container in 'strict' mode.
374+
Full command line was:
375+
> oiiotool --create 4x4 3 -d float --compression none --ch B,G,R -sattrib oiio:ACESContainer strict -o strict-fail.exr

testsuite/openexr-suite/run.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,20 @@
5050
# Check writing overscan and negative range
5151
command += oiiotool("--create 64x64-16-16 3 -d half -o negoverscan.exr")
5252
command += info_command("negoverscan.exr", safematch=True)
53+
54+
# Check ACES Container output for relaxed mode
55+
command += oiiotool("--create 4x4 3 -d half --compression none --ch B,G,R -sattrib oiio:ACESContainer relaxed -o relaxed-out.exr")
56+
command += oiiotool("relaxed-out.exr --echo {TOP[acesImageContainerFlag]}", failureok=True) # should give 1
57+
command += oiiotool("--create 4x4 3 -d half --compression none --ch R,G,B -sattrib oiio:ACESContainer relaxed -o fail.exr")
58+
command += oiiotool("fail.exr --echo {TOP[acesImageContainerFlag]}", failureok=True) # should be empty
59+
command += oiiotool("--create 4x4 3 -d half --compression zip --ch B,G,R -sattrib oiio:ACESContainer relaxed -o fail.exr")
60+
command += oiiotool("fail.exr --echo {TOP[acesImageContainerFlag]}", failureok=True) # should be empty
61+
command += oiiotool("--create 4x4 3 -d float --compression none --ch B,G,R -sattrib oiio:ACESContainer relaxed -o fail.exr")
62+
command += oiiotool("fail.exr --echo {TOP[acesImageContainerFlag]}", failureok=True) # should be empty
63+
64+
# Check ACES Container output for strict mode
65+
command += oiiotool("--create 4x4 3 -d half --compression none --ch B,G,R -sattrib oiio:ACESContainer strict -o strict-out.exr")
66+
command += info_command("strict-out.exr", safematch=True)
67+
command += oiiotool("--create 4x4 3 -d half --compression none --ch R,G,B -sattrib oiio:ACESContainer strict -o strict-fail.exr", failureok=True)
68+
command += oiiotool("--create 4x4 3 -d half --compression zip --ch B,G,R -sattrib oiio:ACESContainer strict -o strict-fail.exr", failureok=True)
69+
command += oiiotool("--create 4x4 3 -d float --compression none --ch B,G,R -sattrib oiio:ACESContainer strict -o strict-fail.exr", failureok=True)

0 commit comments

Comments
 (0)