Fixes issue 204.
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
PROJECT(nvtt)
|
||||
|
||||
ADD_SUBDIRECTORY(squish)
|
||||
#ADD_SUBDIRECTORY(bc6h)
|
||||
#ADD_SUBDIRECTORY(bc7)
|
||||
ADD_SUBDIRECTORY(bc6h)
|
||||
ADD_SUBDIRECTORY(bc7)
|
||||
|
||||
SET(NVTT_SRCS
|
||||
nvtt.h nvtt.cpp
|
||||
@ -12,7 +12,7 @@ SET(NVTT_SRCS
|
||||
BlockCompressor.h BlockCompressor.cpp
|
||||
CompressorDX9.h CompressorDX9.cpp
|
||||
CompressorDX10.h CompressorDX10.cpp
|
||||
# CompressorDX11.h CompressorDX11.cpp
|
||||
CompressorDX11.h CompressorDX11.cpp
|
||||
CompressorRGB.h CompressorRGB.cpp
|
||||
Context.h Context.cpp
|
||||
QuickCompressDXT.h QuickCompressDXT.cpp
|
||||
@ -47,7 +47,7 @@ ELSE(NVTT_SHARED)
|
||||
ADD_LIBRARY(nvtt ${NVTT_SRCS})
|
||||
ENDIF(NVTT_SHARED)
|
||||
|
||||
TARGET_LINK_LIBRARIES(nvtt ${LIBS} nvcore nvmath nvimage nvthread squish)
|
||||
TARGET_LINK_LIBRARIES(nvtt ${LIBS} nvcore nvmath nvimage nvthread squish bc6h bc7)
|
||||
|
||||
INSTALL(TARGETS nvtt
|
||||
RUNTIME DESTINATION bin
|
||||
|
@ -17,6 +17,7 @@ See the License for the specific language governing permissions and limitations
|
||||
#include "nvcore/Debug.h"
|
||||
#include "nvmath/Vector.inl"
|
||||
#include <cstring>
|
||||
#include <float.h>
|
||||
|
||||
using namespace nv;
|
||||
using namespace AVPCL;
|
||||
|
@ -24,6 +24,7 @@ See the License for the specific language governing permissions and limitations
|
||||
#include "utils.h"
|
||||
#include "endpts.h"
|
||||
#include <cstring>
|
||||
#include <float.h>
|
||||
|
||||
#include "shapes_three.h"
|
||||
|
||||
|
@ -24,6 +24,7 @@ See the License for the specific language governing permissions and limitations
|
||||
#include "utils.h"
|
||||
#include "endpts.h"
|
||||
#include <cstring>
|
||||
#include <float.h>
|
||||
|
||||
#include "shapes_two.h"
|
||||
|
||||
|
@ -24,6 +24,7 @@ See the License for the specific language governing permissions and limitations
|
||||
#include "utils.h"
|
||||
#include "endpts.h"
|
||||
#include <cstring>
|
||||
#include <float.h>
|
||||
|
||||
#include "shapes_three.h"
|
||||
|
||||
|
@ -24,6 +24,7 @@ See the License for the specific language governing permissions and limitations
|
||||
#include "utils.h"
|
||||
#include "endpts.h"
|
||||
#include <cstring>
|
||||
#include <float.h>
|
||||
|
||||
#include "shapes_two.h"
|
||||
|
||||
|
@ -24,6 +24,7 @@ See the License for the specific language governing permissions and limitations
|
||||
#include "utils.h"
|
||||
#include "endpts.h"
|
||||
#include <cstring>
|
||||
#include <float.h>
|
||||
|
||||
using namespace nv;
|
||||
using namespace AVPCL;
|
||||
|
@ -24,6 +24,7 @@ See the License for the specific language governing permissions and limitations
|
||||
#include "utils.h"
|
||||
#include "endpts.h"
|
||||
#include <cstring>
|
||||
#include <float.h>
|
||||
|
||||
using namespace nv;
|
||||
using namespace AVPCL;
|
||||
|
@ -24,7 +24,7 @@ See the License for the specific language governing permissions and limitations
|
||||
#include "utils.h"
|
||||
#include "endpts.h"
|
||||
#include <cstring>
|
||||
|
||||
#include <float.h>
|
||||
|
||||
using namespace nv;
|
||||
using namespace AVPCL;
|
||||
|
@ -24,6 +24,7 @@ See the License for the specific language governing permissions and limitations
|
||||
#include "utils.h"
|
||||
#include "endpts.h"
|
||||
#include <cstring>
|
||||
#include <float.h>
|
||||
|
||||
#include "shapes_two.h"
|
||||
|
||||
|
@ -45,7 +45,7 @@ public:
|
||||
static float metric3premult_alphain(nv::Vector3::Arg rgb0, nv::Vector3::Arg rgb1, int rotatemode);
|
||||
static float metric1premult(float rgb0, float a0, float rgb1, float a1, int rotatemode);
|
||||
|
||||
static float Utils::premult(float r, float a);
|
||||
static float premult(float r, float a);
|
||||
|
||||
// quantization and unquantization
|
||||
static int unquantize(int q, int prec);
|
||||
|
@ -1,6 +1,6 @@
|
||||
|
||||
ADD_EXECUTABLE(filtertest filtertest.cpp ../tools/cmdline.h)
|
||||
TARGET_LINK_LIBRARIES(filtertest nvcore nvmath nvimage)
|
||||
TARGET_LINK_LIBRARIES(filtertest nvcore nvmath nvimage nvtt)
|
||||
|
||||
ADD_EXECUTABLE(nvtestsuite testsuite.cpp)
|
||||
TARGET_LINK_LIBRARIES(nvtestsuite nvcore nvmath nvimage nvtt)
|
||||
@ -13,7 +13,7 @@ ADD_TEST(NVTT.TestSuite.Epic.nocuda nvtestsuite -path ${NV_SOURCE_DIR}/data/test
|
||||
|
||||
IF (CUDA_FOUND)
|
||||
ADD_EXECUTABLE(driverapitest driverapi.cpp)
|
||||
TARGET_LINK_LIBRARIES(driverapitest nvcore nvmath nvimage)
|
||||
TARGET_LINK_LIBRARIES(driverapitest nvcore nvmath nvimage nvtt)
|
||||
ENDIF (CUDA_FOUND)
|
||||
|
||||
ADD_EXECUTABLE(imperativeapi imperativeapi.cpp)
|
||||
|
@ -3,19 +3,19 @@ ADD_EXECUTABLE(nvcompress compress.cpp cmdline.h)
|
||||
TARGET_LINK_LIBRARIES(nvcompress nvcore nvmath nvimage nvtt)
|
||||
|
||||
ADD_EXECUTABLE(nvdecompress decompress.cpp cmdline.h)
|
||||
TARGET_LINK_LIBRARIES(nvdecompress nvcore nvmath nvimage)
|
||||
TARGET_LINK_LIBRARIES(nvdecompress nvcore nvmath nvimage nvtt)
|
||||
|
||||
ADD_EXECUTABLE(nvddsinfo ddsinfo.cpp cmdline.h)
|
||||
TARGET_LINK_LIBRARIES(nvddsinfo nvcore nvmath nvimage)
|
||||
TARGET_LINK_LIBRARIES(nvddsinfo nvcore nvmath nvimage nvtt)
|
||||
|
||||
ADD_EXECUTABLE(nvimgdiff imgdiff.cpp cmdline.h)
|
||||
TARGET_LINK_LIBRARIES(nvimgdiff nvcore nvmath nvimage)
|
||||
TARGET_LINK_LIBRARIES(nvimgdiff nvcore nvmath nvimage nvtt)
|
||||
|
||||
ADD_EXECUTABLE(nvassemble assemble.cpp cmdline.h)
|
||||
TARGET_LINK_LIBRARIES(nvassemble nvcore nvmath nvimage)
|
||||
TARGET_LINK_LIBRARIES(nvassemble nvcore nvmath nvimage nvtt)
|
||||
|
||||
ADD_EXECUTABLE(nvzoom resize.cpp cmdline.h)
|
||||
TARGET_LINK_LIBRARIES(nvzoom nvcore nvmath nvimage)
|
||||
TARGET_LINK_LIBRARIES(nvzoom nvcore nvmath nvimage nvtt)
|
||||
|
||||
SET(TOOLS nvcompress nvdecompress nvddsinfo nvassemble nvzoom)
|
||||
|
||||
@ -28,7 +28,7 @@ ENDIF(GLEW_FOUND AND GLUT_FOUND AND OPENGL_FOUND)
|
||||
|
||||
|
||||
ADD_EXECUTABLE(nv-gnome-thumbnailer thumbnailer.cpp cmdline.h)
|
||||
TARGET_LINK_LIBRARIES(nv-gnome-thumbnailer nvcore nvmath nvimage)
|
||||
TARGET_LINK_LIBRARIES(nv-gnome-thumbnailer nvcore nvmath nvimage nvtt)
|
||||
|
||||
SET(TOOLS ${TOOLS} nv-gnome-thumbnailer)
|
||||
|
||||
|
Reference in New Issue
Block a user