Skip to content

Commit

Permalink
Update failing examples to use TIFF instead of EXR.
Browse files Browse the repository at this point in the history
  • Loading branch information
buddly27 committed Nov 5, 2023
1 parent 05bc7ab commit 7a14d0d
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 21 deletions.
8 changes: 4 additions & 4 deletions testsuite/docs-examples-cpp/ref/out.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ reorient.exr : 256 x 256, 4 channel, half openexr
SHA-1: 46C803894186457376A0C590768C9DB4877737BB
cshift.exr : 256 x 256, 4 channel, half openexr
SHA-1: 000F95FDC44D4DBDA8B4041C2506149C7AE28ACA
rotate-45.exr : 256 x 256, 4 channel, half openexr
SHA-1: 1D29EDC970AE6C6518D05B72D294B1168FEFD279
rotate-45.tif : 512 x 384, 3 channel, uint8 tiff
SHA-1: 39165D99E92649A6474B3EB52A1E601E45C8E8B1
resize.exr : 640 x 480, 4 channel, half openexr
SHA-1: 79331C1ECCB76D26E6286955D9447A03EC0FD0A6
resample.exr : 320 x 240, 4 channel, half openexr
SHA-1: 5C0CC0A293FCD30B2AE44A0BED7D27DB9B8C8E50
fit.exr : 640 x 480, 4 channel, half openexr
SHA-1: 7A758E26E4470375582078F6D4E1D3AC24B46F6A
fit.tif : 640 x 480, 3 channel, uint8 tiff
SHA-1: B3E73BBFDFE2B43F02CE3A429591EC956EC192BA
warp.exr : 256 x 256, 4 channel, half openexr
SHA-1: EEB460766F07B47C647D630B568F25FFEEBF5A62
texture.exr : 256 x 256, 3 channel, half openexr (+mipmap)
Expand Down
6 changes: 3 additions & 3 deletions testsuite/docs-examples-cpp/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@
"transpose.exr",
"reorient.exr",
"cshift.exr",
"rotate-45.exr",
"rotate-45.tif",
"resize.exr",
"resample.exr",
"fit.exr",
"fit.tif",
"warp.exr",
"texture.exr"
]
for file in hashes:
for file in hashes :
command += info_command(file, verbose=False)

# outputs should contain all the images that need to be checked directly
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,11 +380,11 @@ void example_circular_shift()
void example_rotate()
{
// BEGIN-imagebufalgo-rotate-angle
ImageBuf Src ("grid.exr");
ImageBuf Src ("tahoe.tif");
ImageBuf Dst = ImageBufAlgo::rotate (Src, 45.0);
// END-imagebufalgo-rotate-angle

Dst.write("rotate-45.exr");
Dst.write("rotate-45.tif");
}

void example_resize()
Expand Down Expand Up @@ -415,12 +415,12 @@ void example_fit()
{
// BEGIN-imagebufalgo-fit
// Resize to fit into a max of 640x480, preserving the aspect ratio
ImageBuf Src ("grid.exr");
ImageBuf Src ("tahoe.tif");
ROI roi (0, 640, 0, 480, 0, 1, /*chans:*/ 0, Src.nchannels());
ImageBuf Dst = ImageBufAlgo::fit (Src, "", 0, true, roi);
// END-imagebufalgo-fit

Dst.write("fit.exr");
Dst.write("fit.tif");
}

void example_warp()
Expand Down
8 changes: 4 additions & 4 deletions testsuite/docs-examples-python/ref/out.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ reorient.exr : 256 x 256, 4 channel, half openexr
SHA-1: 46C803894186457376A0C590768C9DB4877737BB
cshift.exr : 256 x 256, 4 channel, half openexr
SHA-1: 000F95FDC44D4DBDA8B4041C2506149C7AE28ACA
rotate-45.exr : 256 x 256, 4 channel, half openexr
SHA-1: 1D29EDC970AE6C6518D05B72D294B1168FEFD279
rotate-45.tif : 512 x 384, 3 channel, uint8 tiff
SHA-1: 39165D99E92649A6474B3EB52A1E601E45C8E8B1
resize.exr : 640 x 480, 4 channel, half openexr
SHA-1: 79331C1ECCB76D26E6286955D9447A03EC0FD0A6
resample.exr : 320 x 240, 4 channel, half openexr
SHA-1: 5C0CC0A293FCD30B2AE44A0BED7D27DB9B8C8E50
fit.exr : 640 x 480, 4 channel, half openexr
SHA-1: 7A758E26E4470375582078F6D4E1D3AC24B46F6A
fit.tif : 640 x 480, 3 channel, uint8 tiff
SHA-1: B3E73BBFDFE2B43F02CE3A429591EC956EC192BA
warp.exr : 256 x 256, 4 channel, half openexr
SHA-1: EEB460766F07B47C647D630B568F25FFEEBF5A62
texture.exr : 256 x 256, 3 channel, half openexr (+mipmap)
Expand Down
4 changes: 2 additions & 2 deletions testsuite/docs-examples-python/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@
"transpose.exr",
"reorient.exr",
"cshift.exr",
"rotate-45.exr",
"rotate-45.tif",
"resize.exr",
"resample.exr",
"fit.exr",
"fit.tif",
"warp.exr",
"texture.exr"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,10 @@ def example_circular_shift():

def example_rotate():
# BEGIN-imagebufalgo-rotate-angle
Src = ImageBuf("grid.exr")
Src = ImageBuf("tahoe.tif")
Dst = ImageBufAlgo.rotate(Src, 45.0)
# END-imagebufalgo-rotate-angle
Dst.write("rotate-45.exr")
Dst.write("rotate-45.tif")


def example_resize():
Expand Down Expand Up @@ -392,12 +392,12 @@ def example_resample():
def example_fit():
# BEGIN-imagebufalgo-fit
# Resize to fit into a max of 640x480, preserving the aspect ratio
Src = ImageBuf("grid.exr")
Src = ImageBuf("tahoe.tif")
roi = ROI(0, 640, 0, 480, 0, 1, 0, Src.nchannels)
Dst = ImageBufAlgo.fit(Src, "", 0, True, roi)
# END-imagebufalgo-fit

Dst.write("fit.exr")
Dst.write("fit.tif")


def example_warp():
Expand Down

0 comments on commit 7a14d0d

Please sign in to comment.