Backout Rev 18389. String returns correctly with KDU 7.1

meow-7.2.2
Cinders 2012-12-23 11:20:08 -07:00
parent 16d619ab2d
commit 0fddd0f4de
3 changed files with 1 additions and 15 deletions

View File

@ -22,5 +22,4 @@ if (USE_KDU)
endif (STANDALONE)
set(LLKDU_INCLUDE_DIRS ${LIBS_OPEN_DIR}/llkdu)
set(LLKDU_LIBRARIES llkdu)
add_definitions( -DUSE_KDU )
endif (USE_KDU)

View File

@ -63,10 +63,6 @@ target_link_libraries(llimage
${ZLIB_LIBRARIES}
)
if (USE_KDU)
add_definitions( -DUSE_KDU )
endif (USE_KDU)
# Add tests
if (LL_TESTS)
SET(llimage_TEST_SOURCE_FILES

View File

@ -50,16 +50,7 @@ const std::string sTesterName("ImageCompressionTester");
//static
std::string LLImageJ2C::getEngineInfo()
{
//return fallbackEngineInfoLLImageJ2CImpl(); # AO, returns corrupted string, needs investigation. Workaround below.
std::string J2CEngineStr;
llinfos << "Raw engine string was '" << fallbackEngineInfoLLImageJ2CImpl() << "'" << llendl;
#ifdef USE_KDU
J2CEngineStr = "KDU";
#else
J2CEngineStr = "OpenJPEG";
J2CEngineStr = fallbackEngineInfoLLImageJ2CImpl();
#endif
return J2CEngineStr;
return fallbackEngineInfoLLImageJ2CImpl();
}
LLImageJ2C::LLImageJ2C() : LLImageFormatted(IMG_CODEC_J2C),