Skip to content

Commit

Permalink
use NO_COMPRESSION in OpenEXTest/testBackwardCompatibility (#916)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
  • Loading branch information
peterhillman committed Feb 6, 2021
1 parent 5b4337f commit 25a11d9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/test/OpenEXRTest/testBackwardCompatibility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ generateScanlinePlanarImage (const char * fn)
header.channels().insert("R", Channel(IMF::HALF));
header.channels().insert("G", Channel(IMF::HALF));
header.channels().insert("B", Channel(IMF::HALF));
header.compression()=NO_COMPRESSION;
addUserAttributesToHeader (header);

FrameBuffer fb;
Expand Down Expand Up @@ -243,7 +244,7 @@ generateScanlinePlanarImage (const char * fn)

OutputFile file (fn, header);
file.setFrameBuffer (fb);
file.writePixels (H-40);
file.writePixels (dod.max.y-dod.min.y+1);
}

struct RZ
Expand Down Expand Up @@ -271,6 +272,7 @@ generateScanlineInterleavedImage (const char * fn)
OPENEXR_IMF_NAMESPACE::Header header = Header (W, H, dod);
header.channels().insert("Z", Channel(IMF::FLOAT));
header.channels().insert("R", Channel(IMF::HALF));
header.compression() = NO_COMPRESSION;
addUserAttributesToHeader (header);

FrameBuffer fb;
Expand All @@ -289,7 +291,7 @@ generateScanlineInterleavedImage (const char * fn)

OutputFile file (fn, header);
file.setFrameBuffer (fb);
file.writePixels (H-40);
file.writePixels (dod.max.y-dod.min.y+1);
}

void
Expand Down Expand Up @@ -325,6 +327,7 @@ generateTiledImage (const char * fn)
Header header (W, H);
header.channels().insert ("G", Channel (IMF::HALF));
header.channels().insert ("Z", Channel (IMF::FLOAT));
header.compression() = NO_COMPRESSION;

int tileW = 12;
int tileH = 24;
Expand Down
Binary file modified src/test/OpenEXRTest/v1.7.test.interleaved.exr
Binary file not shown.
Binary file modified src/test/OpenEXRTest/v1.7.test.planar.exr
Binary file not shown.
Binary file modified src/test/OpenEXRTest/v1.7.test.tiled.exr
Binary file not shown.

0 comments on commit 25a11d9

Please sign in to comment.