Skip to content

Commit

Permalink
fix testB44ExpLogTable and testDwaLookups, and Makefile.am
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Hillman <peterh@wetafx.co.nz>
  • Loading branch information
peterhillman authored and cary-ilm committed Jan 24, 2020
1 parent bd6ab91 commit 9750a1d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion OpenEXR/IlmImfTest/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ IlmImfTest_SOURCES = main.cpp tmpDir.h testAttributes.cpp testChannels.cpp \
testRle.cpp testRle.h \
testB44ExpLogTable.cpp testB44ExpLogTable.h \
testDwaLookups.cpp testDwaLookups.h \
bswap_32.h
bswap_32.h random.cpp

AM_CPPFLAGS = -DILM_IMF_TEST_IMAGEDIR=\"$(srcdir)/\"

Expand Down
3 changes: 1 addition & 2 deletions OpenEXR/IlmImfTest/testB44ExpLogTable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ using namespace std;

OPENEXR_IMF_INTERNAL_NAMESPACE_SOURCE_ENTER

extern const unsigned short expTable[];
extern const unsigned short logTable[];
#include "b44ExpLogTable.h"

OPENEXR_IMF_INTERNAL_NAMESPACE_SOURCE_EXIT

Expand Down
9 changes: 3 additions & 6 deletions OpenEXR/IlmImfTest/testDwaLookups.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
#include <IlmThreadSemaphore.h>
#include <ImfIO.h>
#include <ImfXdr.h>
#include "dwaLookups.h"
#include "ImfNamespace.h"

//
Expand All @@ -38,11 +39,7 @@ using namespace OPENEXR_IMF_NAMESPACE;

OPENEXR_IMF_INTERNAL_NAMESPACE_SOURCE_ENTER

extern const unsigned short dwaCompressorNoOp[];
extern const unsigned short dwaCompressorToLinear[];
extern const unsigned short dwaCompressorToNonlinear[];
extern const unsigned short closestData[];
extern const unsigned int closestDataOffset[];
#include "dwaLookups.h"

OPENEXR_IMF_INTERNAL_NAMESPACE_SOURCE_EXIT

Expand Down Expand Up @@ -373,7 +370,7 @@ testToNonlinear()

printf("test dwaCompressorToNonlinear[]\n");
for (int i=0; i<65536; ++i)
assert (toNonLinear[i] == OPENEXR_IMF_INTERNAL_NAMESPACE::dwaCompressorToNonLinear[i]);
assert (toNonlinear[i] == OPENEXR_IMF_INTERNAL_NAMESPACE::dwaCompressorToNonlinear[i]);
}

//
Expand Down

0 comments on commit 9750a1d

Please sign in to comment.