Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use NO_COMPRESSION in OpenEXRTest/testBackwardCompatibility #916

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.