Compare commits

...

913 Commits
2.0 ... master

Author SHA1 Message Date
Ignacio aeddd65f81
Update README.md 3 years ago
Ignacio 4eafedd848
Update README.md 3 years ago
Ignacio 756e1da914
Update README.md 3 years ago
Ignacio e2508fbb80
Update README.md 3 years ago
Ignacio e393b6db04
Update README.md 3 years ago
Ignacio 2fdd22c2da
Update README.md 3 years ago
Ignacio c209cb1bb9
Update README.md 3 years ago
Ignacio 70f2618dfb
Update README.md 3 years ago
Ignacio 248f84ca46
Merge pull request #331 from voyageur/tests_path
Fix data testsuite path
4 years ago
Bernard Cafarelli 4c95dc8716
Fix data testsuite path
Add separator between base path and set path if base path is set

Fixes #299
4 years ago
Ignacio 249d678b25
Merge pull request #330 from MaddTheSane/arm64
Better AARCH64/Arm64 support.
4 years ago
C.W. Betts b700982b1f Have NV_CPU_ARM and NV_CPU_AARCH64 reference the same code on Darwin. 4 years ago
Ignacio Castano b1a90f3601 Update version number. 4 years ago
Ignacio Castano 72dd3db723 Update changelog. 4 years ago
Ignacio Castano 4754e526ce Target AVX2 in all projects and configurations. 4 years ago
Ignacio Castano f7e037d1c1 Fix build error. 4 years ago
Ignacio Castano b4da3c68f0 Update version number. 4 years ago
Ignacio Castano 46d1179b17 Fix version number. 4 years ago
Ignacio Castano e5cf10de0e Remove specialized fast compressor. 4 years ago
Ignacio 13121bf32e
Update README.md
Add badges.
4 years ago
Ignacio 9870cfbf90
Merge pull request #329 from MaddTheSane/patch-1
Update Half.cpp
4 years ago
Ignacio Castano e4301b3df7 Merge branch 'master' of https://github.com/castano/nvidia-texture-tools 4 years ago
Ignacio Castano 831c8e6667 Upgrade ICBC to 1.05 4 years ago
C.W. Betts 3a8e89d6f6 Better AARCH64 support. 4 years ago
C.W. Betts be5a305081
Update Half.cpp
Replace old(?) usage of NV_CC_GCC with NV_CC_GNUC
4 years ago
Ignacio 5932492d8a Add release build. 4 years ago
Ignacio 09164a5fd3 Cleanup configuration. 4 years ago
Ignacio 2ab73d8cd5 Fix release instructions. 4 years ago
Ignacio a4712cff20 Remove unused code.
Remove jai-specific workaround.
Various cleanups.
4 years ago
Ignacio 93146ffc73 Update svn:ignore properties. 4 years ago
Ignacio dd6b750942 Update release instructions. 4 years ago
Ignacio b06d5aba59 Remove support for some external compressors. 4 years ago
Ignacio 9d93fccb37 Cleanup. 4 years ago
Ignacio 2b3ffac418 Add sublime and vscode projects. 4 years ago
Ignacio 7525d356a0 Update buildpkg script 4 years ago
Ignacio cb21ee18a1 Remove unused dependencies. 4 years ago
Ignacio e5be4a615f Remove unused scripts. 4 years ago
Ignacio c4aefe530c Remove unused scripts. 4 years ago
Ignacio a77953a306 Update copyright. 4 years ago
Ignacio 6b9a6abccb Fix github action 4 years ago
Ignacio 8dc9df25d7
Create build.yml 4 years ago
Ignacio 614a7a4b82
Update README.md
Update build instructions.
4 years ago
Ignacio 61935ffa08
Update README.md
Provide links for source path.
4 years ago
Ignacio 6f3d02deab
Merge pull request #328 from akb825/linux-fix-2
Linux build fixes.
4 years ago
Aaron Barany cfa3fc528e Linux build fixes.
* Avoid hacks to get an empty VA list, which doesn't work with all
  compilers.
* Fix for isnan() on some versions of GCC.
4 years ago
Ignacio b4cf9bc3f6
Merge pull request #324 from tepGithub/master
Add some support for uncompressed textures for ktx
4 years ago
sindra 967278d579 Fix tab/whitespace 2 4 years ago
sindra aa8514e65d Fix tab/whitespace 4 years ago
sindra b4eb9c5972 Added some support for uncompressed texture for ktx 4 years ago
Ignacio eb34681ce8
Merge pull request #308 from voroskoi/musl
Musl build fixes
4 years ago
Ignacio aeb84b5ffa
Merge pull request #322 from leper/fix_va_list_vcpp
Fix build on VC++. Refs #309.
4 years ago
leper d73335fb82 Fix build on VC++. Refs #309.
This was broken by 831d8e1a91.
4 years ago
Ignacio 1aa1b038e8
Merge pull request #309 from leper/aarch64
Fix build on AArch64. Fixes #298.
4 years ago
Ignacio Castano 26a56414c5 Do not include etcpack & rgetc in the build. 4 years ago
Ignacio Castano 8baac9b111 Fix mac build error. 4 years ago
Ignacio Castano 2bd1ed1ba7 Use AVX2 by default. 4 years ago
Ignacio Castano 8fb22e951e Fix error reported by #312. 4 years ago
Ignacio Castano ea53e0b1ee Update vs2017 project files. 4 years ago
Ignacio Castano 721cc85da7 Remove old projects. 4 years ago
Ignacio Castano 446e4b4611 Remove unused dependencies. 4 years ago
Ignacio Castano 0be40976a2 Remove unused external dependencies. 4 years ago
Ignacio Castano bf4799c9ac Fix build errors. 4 years ago
Ignacio Castano bfd1a38a86 Updates for new icbc interface. 4 years ago
Ignacio Castano ba3dbe32df KTX output fixes. 4 years ago
Ignacio Castano 7aebf0c251 ETC compression experiments. 4 years ago
Ignacio Castano c87706f2a4 Remove unused files. 4 years ago
Ignacio Castano e5b93bbfe8 Upgrade icbc 4 years ago
Ignacio Castano d09dd24ce9 Remove unused files. 4 years ago
Ignacio Castano 7894e9e6f8 Upgrade rgbcx. 4 years ago
Ignacio Castano 07d9ab7860 Add goofy_tc. 4 years ago
Ignacio Castano 4ff7af50ca Upgrade CMP Core. 4 years ago
Ignacio 1e06539012
Create FUNDING.yml 4 years ago
Ignacio fdfbfb2552 Update to latest icbc version. 4 years ago
Ignacio 0f98a936f8 Fix rgbe conversion routines thanks to Charles Bloom. http://cbloomrants.blogspot.com/2020/06/widespread-error-in-radiance-hdr-rgbe.html 4 years ago
Ignacio 3e034d2de1
Merge pull request #314 from r-a-sattarov/master
Added compiler check for support of C++11 standard
4 years ago
r-a-sattarov 0297a00ebc Added compiler check for support of C ++ 11 standard 4 years ago
Ignacio 8e64503338 Update vc projects.
Disable RGETC for now.
4 years ago
Ignacio a671567596 Update nvtt to use icbc library. 4 years ago
Ignacio daff42781d Work toward packaging dxt1 compressor as a single header library. 4 years ago
Ignacio 1a6e70c9a0 Cleanup. Assume static linking. 4 years ago
Ignacio 860b639492 Remove unused code. 4 years ago
Ignacio 52e065d66a Update benchmark with rgbcx. 4 years ago
Ignacio 0b15c58692 Fix more build errors. 4 years ago
Ignacio 504ecc8e10 Fix build errors. 4 years ago
Ignacio f68d894b8b Tweak endpoint refinement. 4 years ago
Ignacio 5eac5a4859 Experiment with endpoint refinement. Add Rich's encoder, not functional yet. 4 years ago
Ignacio ca3871a28c More cleanups! 4 years ago
Ignacio adce1a00da More cleanups. Assume static linking. 4 years ago
Ignacio 7f9c87713a Minor cleanups in nvmath. 4 years ago
Ignacio 4f0ecc4506 Add defer helper. 4 years ago
Ignacio e5740ccb32 Add Rich's improved tie breaking change. 4 years ago
Ignacio 9a16bebf8f Add external libs for comparisons and benchmarks. 4 years ago
Ignacio 4a33d1ac75 Add baboon image to waterloo image set. 4 years ago
Ignacio 9009962054 Minor cleanups and some experiments. 4 years ago
Ignacio 97723db794 Rename internal squish library to nvsquish to avoid conflicts. 4 years ago
Ignacio 4d47c0d2fc Comment out debug code. 4 years ago
Ignacio 5d7a761d6b Handle more DDS formats in Surface::load(). 4 years ago
Ignacio a3ae50b50f Update stb_image. 4 years ago
Ignacio 6dd3687be1 Minor cleanup. 4 years ago
Ignacio 3a99af11d7 Fix initialization of PVR texture header. 4 years ago
Ignacio e5b763b075 Minor fixes. 4 years ago
Ignacio c8a6e2c6cc Update SDK version. 4 years ago
Ignacio 9e36d6747b Update stb libraries. 4 years ago
leper 831d8e1a91 Fix build on AArch64. Fixes #298. 4 years ago
VÖRÖSKŐI András 99bcaf719c Use isnan() instead of isnanf() on linux
isnanf() is deprecated since C99
4 years ago
leper 6474f25934 Don't include sys/sysctl.h on Linux.
Not only is sysctl() not used on this platform, but musl libc does not have the header.
4 years ago
Ignacio b45560cfc4
Merge pull request #292 from leper/clang_linking
Fix linking with Clang and clean up some linking directive
5 years ago
Ignacio d14b4df347
Merge pull request #304 from r-a-sattarov/master
Added support for MCST Elbrus 2000 (e2k) architecture
5 years ago
r-a-sattarov c621de8d2b E2K: added initial support for MCST Elbrus 2000 5 years ago
r-a-sattarov b764700527 poshlib: added support for MCST Elbrus 2000 (e2k) 5 years ago
Ignacio a131e4c6b0
Merge pull request #301 from Starnick/master
Updated C-API to expose some functionality present in the C++ API
5 years ago
Nicholas.Woodfield 187fa60492 Updated C-API to expose some functionality present in the C++ API. Added the following functions and enums:
nvttSetOutputOptionsContainer [and NvttContainer, KTX/DDS10 formats can now be set as the output container]
nvttSetOutputOptionsSrgbFlag
nvttSetOutputOptionsErrorHandler [rearranged NvttError enum to match layout of nvtt::error]
nvttEnableCudaAcceleration
nvttIsCudaAccelerationEnabled
5 years ago
Ignacio e872fc2850
Merge pull request #300 from edowson/master
Enable CUDA support.
5 years ago
Elvis Dowson d57ca44902 Enable CUDA support.
This commit also reintroduces nvcore Library.h and Library.cpp files
required by nvtt/cuda/CudaUtils.cpp

Ref:
https://github.com/castano/nvidia-texture-tools/issues/230
81336cc3e9

Signed-off-by: Elvis Dowson <elvis.dowson@gmail.com>
5 years ago
Ignacio 662d223626
Merge pull request #295 from mitko0003/master
Minor fix to ATOC normalization.
5 years ago
Димитър Трендафилов d891d044e7
Minor fix to ATOC normalization. 5 years ago
Ignacio 84595a62f2 Add helper methods for jai bindings. 5 years ago
Ignacio 29493d365e Add Visual Studio 2017 projects. 5 years ago
Ignacio c591c5f8b4 Compute spherical harmonics from cube maps. Work in progress. 5 years ago
leper 2ac75fc932 Remove duplicate link instruction. 5 years ago
leper 542711f862 Link with -fPIC when using Clang.
Remove the need for a few workarounds by handling this in just one place.
5 years ago
Ignacio 7c68e09d77 Fix ATOC overflow error on large textures. Merge fix from The Witness. 6 years ago
Ignacio a9a6f6968e Fix minor warnings.
Add output directories to ignore list.
6 years ago
Ignacio 8a076c8e8d
Merge pull request #289 from Starnick/master
Updated C-API
6 years ago
Starnick 40f395ef19 spaces->tabs consistency 6 years ago
Starnick 0f65d60602 Updated C-API to support 2D array textures + added missing enum values from nvtt.h 6 years ago
Ignacio d2b514a3c1 Comment out hack. 6 years ago
Ignacio a1c54bc7f7 Add fast sRGB conversion. 6 years ago
Ignacio bc60e8c154 Use our own parallel for by default to avoid dependencies. 6 years ago
Ignacio 1722b00802 FloatImage does not need a virtual dtor. 6 years ago
Ignacio 95f1f60490 Enable stb libraries for image loading. This was disabled by error. 6 years ago
Ignacio 5c70ffef0b
Merge pull request #287 from madscientist159/master
Fix build on OpenPOWER (ppc64le) platforms
6 years ago
Ignacio 005b2518c9 Install nvtt_wrapper.h. Fix issue #288. 6 years ago
Timothy Pearson 95454e9024 Fix build on OpenPOWER (ppc64le) platforms 6 years ago
Ignacio 95bd6193cc Fix bug 281. 6 years ago
Ignacio 6ea078f196
Merge pull request #280 from MonoGame/ignore
Added gitignore to hide stuff that shouldn't be checked in.
6 years ago
Ignacio e52a2f1a02
Merge pull request #279 from MonoGame/vc12
Fixed some missing files in the vc12 project.
6 years ago
Tom Spilman 6cb1821bf1 Added gitignore to hide stuff that shouldn't be checked in. 6 years ago
Tom Spilman 1a78eae8f6 Fixed some missing files in the vc12 project. 6 years ago
Ignacio 2c276f64d7
Merge pull request #276 from StefanBruens/fix_memalign_linux
Fix compilation on Linux - missing include, semicolon
6 years ago
Stefan Brüns ff3bd55892 Fix compilation on Linux - missing include, semicolon
According to http://man7.org/linux/man-pages/man3/memalign.3.html ,
memalign() is defined in malloc.h.
Also, the line should be terminated with a semicolon.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
6 years ago
Ignacio 9489aed825 Merge changes from The Witness. 6 years ago
Ignacio 2075d740c9
Merge pull request #274 from StefanBruens/fix_build_errors
Fix some build errors
6 years ago
Stefan Brüns 00d7e249e2 Add nvimgdiff to TOOLS target, so it is installed by default
Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
6 years ago
Stefan Brüns 389f7582e5 Fix linking of bc7, needs symbols from nvmath
If nvtt is build with -Wl,--as-needed, the linker will not resolve bc7
symbols from any library listed earlier, make sure it (also) appears
after libbc7.a
6 years ago
Stefan Brüns 7b4b7bb42e Build intermediate EtcLib always as STATIC
Depending on the BUILD_SHARED_LIBS variable EtcLib may be built as SHARED
if not set explicitly, like done for the other libraries in extern.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
6 years ago
Ignacio 8e8b3b82e1
Merge pull request #273 from wsmind/master
Fix .hdr images being loaded as LDR before compression
6 years ago
Remi Papillie b03d5178fc Fix .hdr images being loaded as LDR before compression 6 years ago
Ignacio befe79d103 Merge changes from thekla-atlas. 6 years ago
Ignacio 182a326e1c
Merge pull request #271 from Chainsawkitten/patch-1
Update file paths in readme
7 years ago
Albin Bernhardsson 133b84d536
Update file paths in readme
There is no src/nvimage/nvtt folder.
7 years ago
Ignacio 6816128f80 Add dataset from lightmap compression article. 7 years ago
Ignacio e442d6d390 Remove incorrect assert. Fixes issue #261. 7 years ago
Ignacio ed735ac2cb Fix alpha coverage subsampling. Fixes issue #266. 7 years ago
Ignacio 5f6424778e Update changelog 7 years ago
Ignacio 132cf14623 Bump version number 7 years ago
Ignacio 8d333f2a4f Merge pull request #264 from justinmeiners/master
added noalpha option to assemble and fixed RGB write
7 years ago
Justin Meiners d47de35893 added noalpha option to assemble and fixed RGB write 7 years ago
Ignacio 4fb0070b7e Do not use undeclared format. 7 years ago
Ignacio fa03dfc291 Add option to control prefered swizzle. 7 years ago
Ignacio 923b57db45 Merge pull request #255 from AMDmi3/patch-3
Use libexecinfo on FreeBSD as well
7 years ago
Ignacio ef30f69c9d Merge pull request #256 from AMDmi3/patch-4
Use HW_NCPU on FreeBSD as well
7 years ago
Ignacio 7849ee9e71 Merge pull request #260 from leper/master
Add virtual destructor to TaskDispatcher.
7 years ago
Ignacio 0608489ec4 Merge pull request #262 from kencooke/master
Fast implementations of toLinear() and toGamma() for default gamma=2.2
7 years ago
Ken Cooke 01597842fe Update CMakeLists.txt and vc8/9/10 projects 7 years ago
Ken Cooke 96b73af196 Fast implementations of toLinear() and toGamma() for default gamma=2.2 7 years ago
leper 78054e977b Add virtual destructor to TaskDispatcher.
This removes a GCC warning about that missing while virtual functions exist.
7 years ago
Dmitry Marakasov a64cc24169 Use HW_NCPU on FreeBSD as well 7 years ago
Dmitry Marakasov 6b24b1f45c Use libexecinfo on FreeBSD as well 7 years ago
Ignacio e85d851cd9 Do not compile etcpack. Only used for reference. 7 years ago
Ignacio 91fe4d37d6 Enable c++1x the official way. 7 years ago
Ignacio 1762334a9f Fix buildpkg for osx. 7 years ago
Ignacio d7612a3b67 Add some external dependencies. 7 years ago
Ignacio 1004d5d5b5 Merge pull request #252 from lunkhound/fix-normal-maps
fix a bug where created normal maps were not packed prior to compression
7 years ago
Lunkhound 0535ab3414 fix a bug where created normal maps were not packed prior to compression 7 years ago
Ignacio cec8e7159a Merge pull request #247 from Lectem/patch-2
Fix compression for non multiple of 4 texture size
8 years ago
Lectem 24e63456c6 Fix compression for non multiple of 4 texture size
If the width or the height was not a multiple of 4, we would read data outside of the bitmap array
8 years ago
Ignacio 6fb57d3478 Fix order of kaiser parameters. 8 years ago
Ignacio fa6ebda53f Cleanups for 2.1.0 release. 8 years ago
Ignacio 383331bb42 Fix issue #240. 8 years ago
Ignacio 1a75484520 Minor fixes. 8 years ago
Ignacio a11a6739c2 Fix comments. Minor fixes. 8 years ago
Ignacio 94e0ba9ec7 Merge pull request #245 from Lectem/patch-1
Fix build on VC2015 (missing typedefs)
8 years ago
Lectem 1770ad7280 Fix build on VC2015
On VC2015 the project wouldn't build because of the missing typedefs.
This was tested on both 2013 and 2015.
8 years ago
Ignacio d41c7ac33a Merge pull request #243 from fshp/master
Fix CMakeLists after rename license and readme files
8 years ago
Maxim Moseychuk 396b6153af
Fix CMakeLists after rename license and readme files
Additions to 831ebec475
8 years ago
Ignacio 831ebec475 Update readme files. 8 years ago
Ignacio b0afc82d7d Minor osx fixes.
Remove FindCUDA and use cmake version instead.
8 years ago
Ignacio 8659d3fb4a Merge pull request #241 from krytarowski/netbsd-1
Add basic NetBSD support
8 years ago
Kamil Rytarowski 3c4ccd41fa Add basic NetBSD support 8 years ago
Ignacio 475c66d2cc Merge pull request #239 from madscientist159/master
Fix remaining issues on PPC64EL
8 years ago
Timothy Pearson f8790a536a Fix remaining issues on PPC64EL
One AltiVec-related build issue remained
Self tests now pass on LE POWER platforms

Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
8 years ago
Ignacio b549e862b0 Merge pull request #238 from madscientist159/master
Fix PPC64LE builds
8 years ago
Timothy Pearson 203eda1d47 Fix build on PPC64LE
Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
8 years ago
Timothy Pearson 47b06d3255 Fix build failure due to PPM save incorrect data types
Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
8 years ago
Ignacio e965a668a3 Merge pull request #237 from sanderd17/patch-1
Fix compilation on GCC 6
8 years ago
sanderd17 65b3dfa4a6 Fix compilation on GCC 6
GCC 6 apparently doesn't want to cast booleans to pointers anymore. So this fixes it for us. See also our changeset: http://trac.wildfiregames.com/changeset/18364
8 years ago
Ignacio 875a78a124 Merge pull request #236 from mpersano/master
Add support for compressing texture arrays.
8 years ago
mpersano 46e5c6a8ee Fix nvassemble command-line options parsing. 8 years ago
mpersano 2bd367a4dc Add support for compressing texture arrays.
Also add support for reading/writing DX10 uncompressed (RGB/lumi) textures, so
now it's possible to compress a texture array assembled with nvcompress.
8 years ago
Ignacio 49677da371 Remove executable property. 8 years ago
Ignacio 3850b22f7f Merge pull request #235 from mpersano/master
Support assembling texture arrays.
8 years ago
mpersano db8fc561c3 Support assembling texture arrays. 8 years ago
Ignacio 9b79638f79 Disable test code from nvdecompress. Update vc12 projects and fix vc12 build. Fixes bug #232. 9 years ago
Ignacio 7596650a2d Be more clear that Qt4 is not used. From cfcohen. 9 years ago
Ignacio 308050923b Integrate changes from cfcohen. 9 years ago
Ignacio 9d6c7d6a69 Integrate more changes from cfcohen. 9 years ago
Ignacio a20044bccc Integrate changes from cfcohen to supress warning. 9 years ago
Ignacio 268e6abd65 Integrate cfcohen changes to fix linker problems with gcc. 9 years ago
Ignacio 87ca69bd14 Do not output messages for disabled libraries. 9 years ago
Ignacio 63d29a508e Fix compiler warning. 9 years ago
Ignacio e9a8630a3f Increase array size to supress compiler warning. 9 years ago
Ignacio c0ad0f4d31 Merge changes from The Witness. 9 years ago
Ignacio Castaño a382ea5b21 Fix compiler warning. 9 years ago
Ignacio Castaño 26723de502 Fix memory leak reported by Sylvain Rochette in issue #229. 9 years ago
Ignacio 58617584d4 Apply patch provided in issue #224. Add support for ARM64. 9 years ago
Ignacio 4ef408b591 Remove debug code. 9 years ago
Ignacio 592c8b8b0a Merge pull request #225 from Skylark13/master
Fix compilation on VS2013 (non-CUDA)
9 years ago
Jean-S�bastien Guay b254961b22 - Removed Library.cpp and Library.h from nvcore VS2013 project
- Also added project references to nvtt in nvdecompress and nvimgdiff projects, lack of which prevented them from compiling
- Change to nvtt.sln is an auto-modification from VS, pretty sure it makes no difference
9 years ago
Ignacio d32f0e0173 Merge pull request #223 from cmdrf/no-include-library-h
Do not include Library.h
9 years ago
Ignacio 701f8224dc Merge pull request #222 from cmdrf/gccforeach
Update NV_FOREACH for C++11
9 years ago
cmdrf 7b031aa4bf Do not include removed Library.h 9 years ago
cmdrf d01d72f8e7 Update NV_FOREACH for C++11 9 years ago
Ignacio 0d205015ae Merge pull request #221 from cmdrf/snprintf-vs2015
Do not redefine snprintf on VS2015
9 years ago
Ignacio 7aa0390f32 Merge pull request #220 from cmdrf/cmakecuda
Fix CMake CUDA introspection
9 years ago
Ignacio 68e6cbdd40 Merge pull request #219 from cmdrf/gcclinkorder
Fix Link Order for GCC in CMake
9 years ago
cmdrf fa062aa298 Do not redefine snprintf on VS2015 9 years ago
cmdrf 205f492e2e Fix CMake CUDA introspection 9 years ago
cmdrf 899a99a106 Fix link order for Linux 9 years ago
cmdrf 766edcb1a6 Fix more link order for Linux 9 years ago
Ignacio b37ca4498d Merge pull request #217 from pzychotic/master
Fixed compiler flag being set on wrong target.
9 years ago
Thomas Roß 9ad63e7f3a Fixed compiler flag being set on wrong target. 9 years ago
Ignacio 81336cc3e9 Remove unnecessary files. 9 years ago
Ignacio e9d44813d2 Merge pull request #216 from esok/master
Added support for gcc and c++11 features.
9 years ago
Ignacio d4fbfd0ff4 Add project notes. 9 years ago
Ignacio 4c7ff58885 Update vc12 projects 9 years ago
Ignacio a083337473 Merge changes from The Witness. 9 years ago
esok 6bc3224fe7 Added support for gcc and c++11 features. 9 years ago
castano 7e2a9d1adb osx fixes. Fix issue 211. 10 years ago
castano 2d6fc0e304 DXT1 compressor tweaks. 10 years ago
castano d019cd7080 Merge changes from the witness. 10 years ago
castano@gmail.com 4cb60cc5ba Fix vc12 build. 10 years ago
castano@gmail.com 9722101114 Cleanup vc12 project. 10 years ago
castano@gmail.com 3f0bffaadf Add vc12 solution. 10 years ago
castano 6e69560969 Tag dll and binaries with 32/64 suffix. 10 years ago
castano 8f4ebf1d93 Remove missing project. 10 years ago
castano 132443013a Minor updates to C# bindings. Work in progress. 10 years ago
castano ac87eefa6d Apply patch to update C# wraper. Fixes issue 184. 10 years ago
castano f705b2eaa1 Fixes issue 93. 10 years ago
castano 6ade0e27b7 Fixes issue 202. 10 years ago
castano 7e74261f92 Fixes issue 204. 10 years ago
castano 57298c71c8 Fix issue 194. 10 years ago
castano b06a6f46a5 Fixes issue 207. 10 years ago
castano 63d6036e3a Fix issue 206. 10 years ago
nathaniel.reed@gmail.com ab316deeaa Add BC7 support. It's incredibly slow - ~60 seconds to compress a 512x512 image, on a Core i7 - but it works.
- Added AVPCL compressor to projects and got it building with VC9 and VC10.
- Removed unused command line interface & file read/write code from AVPCL.
- Convert AVPCL to use NV vector math lib, asserts, etc.
- Convert AVPCL to use double instead of float.
- Added 4x4 symmetric eigensolver, for AVPCL; it's based on the existing 3x3 one, but I had to rewrite the Householder reduction stage.  As with ZOH, using the eigensolver (instead of SVD) gives a ~25% speedup without significantly affecting RMSE.
- Encapsulate ZOH and AVPCL stuff into their own namespaces to keep everything separate.
- Added some missing vector operators to the nvmath lib.
11 years ago
nathaniel.reed@gmail.com f2fa0517b5 Ported over James Arvo's SVD code from ZOH. It's a good deal slower than the eigensolver, and no better in RMSE - so didn't use it, but left the code in place for future reference.
Also replaced doubles with floats in the eigensolver code.  Speeds up BC6 another 5%.  No change to RMSE in test suite.
11 years ago
nathaniel.reed@gmail.com 474239c784 Add BC6 support to nvtt lib and utils.
- Use 3x3 eigensolver for initial fit in ZOH.  Slightly better perf and RMSE than power method.
- Remove use of double precision in ZOH - speeds up by 12%.
- Fixed RGBM encoding that was broken for HDR images.
- Use gamma-2.0 space for RGBM for HDR images (improves precision in darks).
- Use UNORM instead of TYPELESS formats when saving a DX10 .dds file.  The TYPELESS formats break most viewers.
- Cleaned up warnings in ZOH code.
- Command-line utils will warn if you give them an unrecognized parameter.
- Added VS2010 profiling results.
11 years ago
nathaniel.reed@gmail.com 77188a42ac Fix VC10 project files. Fix code to build with CUDA 5.5 (the cudaMemcpyToSymbol overload that takes the symbol name as a string was removed). 11 years ago
castano@gmail.com 57b99a1595 Apply CubeSurface fold/unfold patch. Fixes issue 199. 11 years ago
castano@gmail.com b2b367ef5f Fix xyzToCieLab bug and add CIE Lab DeltaE 1994 color differencing.
Fixes issue 197.
Fixes issue 198.
11 years ago
castano@gmail.com 022944e49b Apply patch to fix issue 192. 11 years ago
castano@gmail.com 27024253ce Handle 3d textures in nvcompress. 11 years ago
castano 22bc0b949d Fix assert. Fixes issue 190. 11 years ago
castano ac0759efc8 Update cmake file. Fixes issue 189. 11 years ago
castano@gmail.com 94d0635285 Merge changes from the Witness. 11 years ago
castano 634229a842 Fix issue 182. 11 years ago
castano eb5556548d Fix issue 186. Confirmed it works on gcc and clang. 11 years ago
castano 14faa8e564 Fix linux/osx compiler errors. Fixes issue 168. 11 years ago
castano 2f12bfdb41 Fix issue 158. 11 years ago
castano 358bd0296e Fix issue 181. 11 years ago
castano aa6cd0d2e5 Fix alpha detection code. Fixes issue 183. Thanks rocatis! 11 years ago
castano 83bdcb541c OpenBSD fixes. Fixes issue 176. 12 years ago
castano 1d8d067caf Fix build under OSX with clang. Fixes issue 180. 12 years ago
castano 15f5e19d40 Add missing semicolon. Fixes issue 179. 12 years ago
castano 63897b3ecc Integrate 3D texture fixes from Ben Goldstein @ Nihilistic. 12 years ago
castano ac3f2d1794 Misc changes. 12 years ago
castano bff3dab505 Fix errors. 12 years ago
castano 04bdc76749 Merge changes from The Witness. 12 years ago
castano 3b4fcd0369 Merge changes from The Witness. 12 years ago
castano fea97461c5 Merge changes from The Witness. 12 years ago
castano 897cc78397 Port fix from 2.0 to trunk. Problem discovered thanks to Jern-Kuan. 12 years ago
castano 0eb7c3eb71 Integrate skylight model. Work in progress. 12 years ago
castano 20c5078e93 Fix tabs. 12 years ago
castano c784e03be5 Try to increase robustness of thread pool. 12 years ago
castano 803301ea89 Add luma test. 12 years ago
castano fa4ba97f6d Merge changes from the witness.
Fix parallel cluster fit compressor.
Luma compression experiment.
12 years ago
castano b130487c2a Merge changes from the witness. 12 years ago
castano 8ff802dac1 Merge changes from the witness. 12 years ago
castano 69e8641db5 Merge changes from the witness. 12 years ago
castano d5a3c1d3a7 Minor cleanups to testsuite output. 12 years ago
castano 79360e6501 Fix msvc build. 12 years ago
castano 547c59e52f Update project file. 12 years ago
castano 5473a89132 Updated vc10 projects thanks to Jern-Kuan Leong @ nvidia. 12 years ago
castano dca493b6c4 clang/osx lion fix. 12 years ago
castano b6b47ff254 Fix pedantic warning. 12 years ago
castano 095737d863 Linux build fix from Matthaus. 12 years ago
castano 9609d1e2fd Darwin/Lion fixes.
Integrate Linux and Unicode fixes from Matthaus.
12 years ago
castano d36f68fd66 Update vc10 projects. 12 years ago
castano d252888850 Add vc10 project. 12 years ago
castano 21af952fec osx fixes. Update cmake files. 12 years ago
castano 778bdec4ba Update project files. 12 years ago
castano f1c943cd57 Merge changes from The Witness. 12 years ago
castano 1248743859 Merge changes from The Witness. 12 years ago
castano fa468b04ab Merge changes from The Witness. 12 years ago
castano 06c170b41b Merge changes from The Witness. 12 years ago
castano cb6c18efa4 Add info about Valve's texture format. 12 years ago
castano d44a65c7b7 Fix unicode builds. 12 years ago
castano d08c9e61e3 Fix merge error. 12 years ago
castano 8922ab86d6 Fix msvc build. Fixes issue 171.
Improve sse perf.
Fix rmse computation in nvimgdiff.
12 years ago
castano 6d843c78cf HDR encoding tests. 13 years ago
castano e46f48f0a3 Better stack trace parser for OSX. 13 years ago
castano f2d90ee844 Fix errors in new cluster fit compressor. 13 years ago
castano@gmail.com 23bfc1b514 Fix errors and enable new cluster fit compressor. 13 years ago
castano 035997bc2e Fix cube map processing bug reported by Cedric Perthuis. 13 years ago
castano 086bf0343c Minor opt. 13 years ago
castano 97f17dc6d8 Update posh. 13 years ago
castano 50a5d5967b Update project. 13 years ago
castano 78d48e62a9 Merge changes from The Witness. 13 years ago
castano 2e9afac689 Add tone mapping operators. 13 years ago
castano@gmail.com fa0800a24a Some bug fixes. 13 years ago
castano 0b3959e1a1 Linux fixes. Thanks to Rico Tzschichholz. 13 years ago
castano e98d795d2b More header optimizations. 13 years ago
castano d11d7a5f38 seamless cubemap filtering. 13 years ago
castano 2ec37026be Merge changes from the witness. 13 years ago
castano 94401919b8 Add some inline files to reduce amount of code parsed. 13 years ago
castano cbf4b2e3bf Some debugging. 13 years ago
castano d8aec20022 Add cubemap tests. 13 years ago
castano e462e3ef58 build nvthread properly 13 years ago
castano 9e7651e2d5 Work in progress. 13 years ago
castano 78fa1e785d Fixes and optimizations. 13 years ago
castano 149a50a26f Filtering optimizations. 13 years ago
castano 18b3f8025e Add test. 13 years ago
castano eb10483faf Fix bugs. In progress cube map loading. 13 years ago
castano dc13d9e9d2 Add support for float10 and float11 formats. Not tested. 13 years ago
castano 676a0b2908 work in progress. 13 years ago
castano 9de43e7757 Fix build errors/warnings. 13 years ago
castano f0d9497e1f Add missing changes. 13 years ago
castano d87b7edd5f RGBE conversion fixes. 13 years ago
castano e15aa7a9bf Remove RGBE compressor. Implement as a color transform. 13 years ago
castano 2e96567459 Fix project. 13 years ago
castano 8e586ca693 Rename files. 13 years ago
castano 03c3fa42a8 Cosine power filter. A bit of renaming. 13 years ago
castano dbdf9b6398 Update project. 13 years ago
castano fcd296cd81 Merge changes from the witness. 13 years ago
castano 95811dfdff Cleanups. 13 years ago
castano 91e6bbe5c3 Add convolution method to TexImage. Fixes issue 166. 13 years ago
castano 8c65e4c62d Do not depend on external int limits. 13 years ago
castano 2364f539eb Porting parallel stuff to unix. 13 years ago
castano 5081360073 Add missing file. 13 years ago
castano 3c0ab2d3f3 Merge changes from the witness. 13 years ago
castano 9c0658edca Fixes. 13 years ago
castano 86b43e55c1 cubemap support, work in progress. 13 years ago
castano 0b05255f90 Add missing files to project. 13 years ago
castano 17e01ed240 Fix errors, warnings. 13 years ago
castano af9ba8ae90 Add support for 3D texture. Integrate patch provided in issue 28 plus some additional changes. 13 years ago
castano 4906642ac3 Revert Library.*, needed for CUDA stuff. 13 years ago
castano b68d428492 Accumulate filter sums using doubles to avoid unsymmetries. Fixes issue 167. 13 years ago
castano 02709e1699 Set DDPF_FOURCC flag when using DX10 container. Fixes issue 165. 13 years ago
castano fe108af32e Pitch is specified in bytes and always byte aligned. Fixes issue 168. 13 years ago
castano 8b096b4186 Remove unused code. 13 years ago
castano 5d19ff392a Some pitch alignment fixes. Fixes issue 168. 13 years ago
castano 2952480d30 Fix tabs. Fix leak. 13 years ago
castano 66d02325d8 Swap red and blue channels when using stb_image. Fixes issue 164. 13 years ago
castano 69ff14a54c Apply changes suggested in issue 161. 13 years ago
castano 71d53e0d4e Fix leak. 13 years ago
castano 2643a62d4a Undo buffer class. Use plain array for easier debugging. 13 years ago
castano 144a8d6d4b Fix errors in meta data api. 13 years ago
castano 11d04287c9 Fix errors. 13 years ago
castano 76a7adf83e Apply patch suggested in issue 161. 13 years ago
castano 8a837981b6 Merge changes from The Witness. 13 years ago
castano 9ebcff93de More tweaks. 13 years ago
castano ce8647c51d Tweaks. 13 years ago
castano 43b16d85f4 Use STB image by default.
Add buffer object, try to reduce binary size.
13 years ago
castano ad7a618222 Start adding ktx file support. 13 years ago
castano 765a0e394a Add more error estimation methods. 13 years ago
castano 1aac4215ff Add stb image. 13 years ago
castano dfcf8ecf37 Unify project settings. 13 years ago
castano 92d7ebded3 Add dual paraboloid transform. 13 years ago
castano 9302ee2cb0 Add normal encoding test. 13 years ago
castano 28592e73a8 Add normal transforms and reconstruction. 13 years ago
castano 609db2639e Move foreach to its own header. 13 years ago
castano b74cd8ec97 Add target decoder compression option. 13 years ago
castano cd6f798b85 tabs to spaces 13 years ago
castano 2338eeb4c0 Add bc6 project. 13 years ago
castano b72a69f25c Supress msvc warning.
Replace tabs with spaces.
13 years ago
castano 71b88deb2a Add testsuite project. 13 years ago
castano 0a290a64cc Add support for D3D9 and D3D10 decoders. Fixes issue 157. 13 years ago
castano 94dce3b623 Fix vc warnings. 13 years ago
castano 659b684bf2 Update vc9 projects. Hide output directories. 13 years ago
castano 92db15b8d9 Do not compile old quantization code anymore. 13 years ago
castano 12bf7f9346 Implement quantization. 13 years ago
castano 95b5e1decd Cleanup clusterfit. 13 years ago
castano 4f098c4ff9 Workaround GCC error. 13 years ago
castano 4fc1952539 Fix tabs. 13 years ago
castano 5324156cc4 Fix kernel offset. Fixes issue 158. 13 years ago
castano 5f8cd22cdb Merge changes from the-witness. 14 years ago
castano 993e853a5f Set OpenMP compiler flags. 14 years ago
castano a2f0e566c7 Use task dispatcher provided by user. 14 years ago
castano 66c9729097 Enable openmp. 14 years ago
castano a607aadf32 Reenable openmp task dispatcher. 14 years ago
castano 8d99f2c6c4 Add tbb code. 14 years ago
castano f4cf5dd32c Experiments with microsoft concurrency runtime. 14 years ago
castano f99761c813 Disable new experimental compressor. 14 years ago
castano 34d2631502 Remove duplicate line. 14 years ago
castano 3265c36e14 Reallocate float image data properly. Fixes issue 155. 14 years ago
castano 3ee2c39be4 Generate mipmaps until both extents are 1. Fixes issue 156. 14 years ago
castano b2f59ea0d7 Fix memory overrun. 14 years ago
castano 260097151d Link against pthreads library on systems that do not include it automatically. Fixes issue 149. 14 years ago
castano c21fa98ba5 Fix Linux build. 14 years ago
castano eea2fce447 Workaround powerpc processor detection. 14 years ago
castano 96b757130d Fix build on powerpc/mac. 14 years ago
castano c51f25f38d concurrency experiments. 14 years ago
castano 0bb3011f7f Add cluster fit implementation based on squish. 14 years ago
castano af5595c845 Add lightmap tests. 14 years ago
castano 23b140416a Work in progress. Experiment with lightmap compression. 14 years ago
castano 4cbf43165c Undo changes. 14 years ago
castano d6f6c1f1d4 Undo changes. 14 years ago
castano 1484c667a0 Add missing files. 14 years ago
castano 1f1afe0c33 Add SCIE-Lab error metric. Work in progress. 14 years ago
castano 5cf219a22e Add perceptual color distance function. 14 years ago
castano 26283c8c25 Minor fixes. 14 years ago
castano 49482d1441 Work in progress.
Merging squish into nvtt. 
Using squish only to find endpoints, do discrete refinement afterwards.
14 years ago
castano c532ffb34e Add lightmap and normal maps. 14 years ago
castano 86ee333c02 Reorganize testsuite files 14 years ago
castano 199fc19277 Replace bmps with pngs. 14 years ago
castano 1d4a2ea710 Testsuite outputs graphs using google api. 14 years ago
castano 5f845513ee Fix msvc warnings and errors.
Test TexImage stuff more througly.
Test YCoCg and RGBM.
14 years ago
castano c1204bfb66 Fix errors in new implementation of InputOptions.
Output cube map faces in DDS order. Fixes issue 147.
14 years ago
castano 5225f4810f Add stubs for quantization methods. 14 years ago
castano 1e2567e4a3 More work toward 2.1: Implement InputOptions using TexImage. 14 years ago
castano 8838b5220a user file does not appear to be portable. Deleting. 14 years ago
castano bdf60f16a4 Add qtcreator project file. 14 years ago
castano 5d408c0aa4 Use uname -m to detect processor name. Fixes issue 140. 14 years ago
castano ea42b83573 Fix linux build errors. 14 years ago
castano 5ae77ae037 Fix warnings. 14 years ago
castano 1c588e3311 Fix some warnings. 14 years ago
castano 4bbf62855c osx/iphone fixes. 14 years ago
castano 188d5043d8 Use tabs. 14 years ago
castano 09e46ead48 Fix some messages. Add support for range scaling in TexImage. 14 years ago
castano 47df8ff7d6 Fix readBlock. Fixes issue 145. 14 years ago
castano a4356caefe Merge changes from The-Witness. 14 years ago
castano f0bcbdca5c Fix seek bug. Fixes issue 144. 14 years ago
castano bd74a9ffc6 Merge changes from the-witness. 14 years ago
castano 5d498d6824 Fix cuda compressor. Start work on new UI. 14 years ago
castano 5d80fb8219 Fix TGA loading using FreeImage. Fixes issue 141. 14 years ago
castano 2bd7db4244 Fix error after changes in Memory.h 14 years ago
castano 25507428c2 Prefer the GLEW static library. 14 years ago
castano df13c904b2 Stop using custom memory allocators.
Fix aliasing errors. Fixes issue 139 in trunk.
Fix build errors under OSX.
14 years ago
castano 06bf4ea960 Fix typo, fixes issue 137. 14 years ago
castano 765a89951d tabs -> spaces 14 years ago
castano 19f872161e Use posh typedefs.
Enable stacktraces on OS X.
14 years ago
castano 276c608f26 Fix alignment assumptions in DDS loading code. Fixes issue 132.
Merge misc changes from the-witness.
14 years ago
castano 2c969b70a5 Fix mirror sampling in trunk. Fixes issue 135. 14 years ago
castano e8dc679874 Merge recent changes from the witness. 14 years ago
castano 47e8f23e9f Merge fix for issue 134 into trunk. 14 years ago
castano 83e249a1a0 Use INCLUDE_DIR instead of INCLUDE_PATH. Fixes issue 102. 14 years ago
castano 9e881f28d1 Merge changes from the-witness.
Fix DXT5n compressor.
14 years ago
castano ac7c017c35 DXT1a single color compressor. Fixes issue 131.
Init single color tables at startup.
14 years ago
castano da548fd03a Use noinline. 14 years ago
castano 9094756997 Merge changes from the witness. 14 years ago
castano 30b9545d75 Add glew for real this time... 14 years ago
castano 1db253b243 Add glew. 14 years ago
castano 50d80e3b81 Add simple dds file viewer. 14 years ago
castano e5736fcf92 Add explicit load methods to DirectDrawSurface. 14 years ago
castano 1e0dea0738 Fix build. Minor cleanups. 14 years ago
castano cfdc731634 Write BC6/BC7 headers in TexImage path. 14 years ago
castano 528b93ab14 Replace tabs with spaces. 14 years ago
castano 39c291e2a6 Fix build. 14 years ago
castano 5c60989043 BC6/7 progress. Work in progress. 14 years ago
castano f2c581dec1 Remove unused methods. Add float color block. 14 years ago
castano f9753b649a Fix mingw warning. 14 years ago
castano 11411bae2b Do not compile ui. 14 years ago
castano 42a641f0a5 Fix errors when cuda is not enabled. 14 years ago
castano b19cd63558 Fix mingw error. 14 years ago
castano 5bb6a54f61 Fix mingw errors/warnings. 14 years ago
castano 82da6ea0a0 Do not enable CUDA under mingw. 14 years ago
castano 7b65595fe2 Add mingw library for FreeImage. 14 years ago
castano 357b91a9b2 Update FindCUDA. 14 years ago
castano 322dcd72c1 Some bug fixes and more progress toward BC6-7 support. 14 years ago
castano 68cbe543b0 Add missing files for previous change.
Some cleanup.
14 years ago
castano f08e2c4f64 Add alpha map processor. 14 years ago
castano e5ffd618f7 Replace tabs with spaces. 14 years ago
castano f233188963 Fix format. 14 years ago
castano c3bc24b165 Merge changes from 2.0. 14 years ago
castano caff2c9006 Fix assert when reading paletted TGA images. Fixes issue 125. 14 years ago
castano da503d2b3e Imperative api is sort of working now. Fixed various bugs. 14 years ago
castano adbb0c3338 Update vc9 project. 14 years ago
castano cf62ecc199 Upgrade freeimage. 14 years ago
castano 4b08c20b0e More cleanup. 14 years ago
castano c8bf853ba4 More cleanup. 14 years ago
castano 9ae9ec1975 Fix power method initial estimate as in squish. 14 years ago
castano 8e074b2e28 Remove executable properties. Add cmake file. 14 years ago
castano 757e372726 Integrate bc6 compressor into nvtt. 14 years ago
castano cf2b20dd43 Fix build error on OSX. 14 years ago
castano fd6b8449bf Add bc6 and bc7 compressors from nvidia. 14 years ago
castano 035231a928 Minor changes. 14 years ago
castano 1454cbac14 Fix build. 14 years ago
castano 3956d8a0c2 Merge private changes. 14 years ago
castano 18ad53aa24 Merge private changes. 14 years ago
castano c09067e477 Merge private branch. 14 years ago
castano 51a4fe7e2d Merge private branch. 14 years ago
castano e7f2d1e2bc Merge private branch. 14 years ago
castano 56401d5f7d fix polyphase filter 14 years ago
castano 8cbd2c9ec6 Add mipmap scaling according to alphatest coverage. 14 years ago
castano 77bfabca3b Remove experimental callback mechanism. 14 years ago
castano 27f84c5caa Start work on a simple dds viewer. 14 years ago
castano a32d780347 Experiment with output callbacks instead of handlers. 14 years ago
castano d38b89edc7 fix comment. 14 years ago
castano 0322f1b54a Add comment. 14 years ago
castano f6a39d6eab Remove duplicate code. 14 years ago
castano 4fa93f8676 Update vc9 project. 14 years ago
castano 639f11d0b9 Use the same defaults as nvtt 2.0 14 years ago
castano 6e32d1e010 Update latest stb_dxt. 14 years ago
castano 85db14f213 Add vertical flip. 14 years ago
castano ac5f849e91 Better estimation of principle component. Fixes issue 120. 14 years ago
castano 4783d5621e Add missing files to cmake build as reported by amorilia. 14 years ago
castano 85b9c2b0c5 Fix FindOpenEXR cmake script. Fixes issue 97. 14 years ago
castano 447634d263 Fix cmake build in msvc. Fixes issue 111. 14 years ago
castano f436a71479 Add support for RGBE. 14 years ago
castano e848645e88 Add a few utils. Start converting tabs to spaces. 14 years ago
castano 78b55e1e37 Finish pixel format converter. 14 years ago
castano 3b0e0c3402 Fix errors after merge. Update cmake files. 14 years ago
castano a19e25228f reorg. 14 years ago
castano d8ed531e4c minor optimization. 14 years ago
castano 73851ab86f misc 14 years ago
castano 0cabfb6cfa misc. 14 years ago
castano 1fafffd8af Detect OpenMP properly. 14 years ago
castano 96f22f8cd4 Fix isColorNoAlpha, but leave it commented out. 14 years ago
castano 558f7970b1 Fix issue 112. 14 years ago
castano d2fbcc5259 Add external libs. 15 years ago
castano 0e5a1877a8 Some progress on the CUDA compressors. 15 years ago
castano 8e436b1d30 Add post build commands to 64 bit targets. 15 years ago
castano 2f0fe5149f Patch posh to support freebsd. 15 years ago
castano f744e700ae Add doc folder. 15 years ago
castano 48f5dd4603 Update cmake scripts. 15 years ago
castano 78bb864c14 cmake build system update. 15 years ago
castano 7bc1eb6a29 Add ignore lists. 15 years ago
castano f63abb3ef6 Add properties. 15 years ago
castano e8500dead4 Add ignore list. 15 years ago
castano 2e1d1e70ae Add ignore properties. 15 years ago
castano bc3299b78b Add ignore properties. 15 years ago
castano d01bdaf370 Add ignore properties. 15 years ago
castano d90b3d927b Update ignore file. 15 years ago
castano 3e5c47d9fb Add ignore properties. 15 years ago
castano 6a667fff50 Do not use external dependencies. 15 years ago
castano dfe081d32a Update messages. 15 years ago
castano acc02abaf1 Fix messages. 15 years ago
castano 8871fefe89 Update project uuid. 15 years ago
castano 2543f4c9ed rename stress->testsuite 15 years ago
castano ac46c40b3e Rename stress->testsuite 15 years ago
castano bcf0df2b49 use default pixel format, add comment to indicate where to change default 15 years ago
castano 8c7f54056c Add more todo items.
Delete images more efficiently?
15 years ago
castano 34cd266d8c Add todo item to perform color transforms before compression. 15 years ago
castano 9a9366cf4c Who knows what msvc decided to change. 15 years ago
castano 8820c43175 Large refactoring of compressor codes:
- Define compressor interface.
- Implement compressor interface for different compressors.
- Add parallel compressor using OpenMP. Experimental.
- Add generic GPU compressor, so far only DXT1 enabled.
15 years ago
castano 18a3abf794 Enable alpha dithering when using DXT3.
Update timing message.
15 years ago
castano 384f74ba39 Use minimal set by default. 15 years ago
castano 7d75840398 Add todo messages.
Use DXT3 nvidia decoder if requested.
15 years ago
castano 8ea52efbf4 Add DXT3 nvidia decoder. 15 years ago
castano d86a89742e Update info message. 15 years ago
castano fd11f5e7ef Implement generic swizzle, remove specialized ones. 15 years ago
castano dcfdabaee3 Fix timer. 15 years ago
castano 2d97ee9c03 Update project files. Many minor changes. Enable OpenMP. 15 years ago
castano 14f49b6003 Define new macro to point to extern dir. 15 years ago
castano ea7dabc6b1 Add comment. 15 years ago
castano 0878c0e967 Add expand and pack normal methods.
Set normal map flag.
15 years ago
castano a088ae5789 Implement normal map generation for floating point images. 15 years ago
castano a52d3b7cdc Tweak implementation of scaleBias. 15 years ago
castano 307c418acc Update FindCUDA script to latest. 15 years ago
castano d0218cb18b Merge changes from 2.0 15 years ago
castano c1f9c4df42 Create default output handle on setFileName to avoid modifying const argument.
Fix ref counting errors in TexImage.
Format TODO messages.
15 years ago
castano 78d65e8368 When compiling with gcc, define NV_FILE_LINE using gcc convention. 15 years ago
castano 18474cdb33 Some more progress towards 2.1:
- Add raw input methods in context.
- Implement some of the TexImage input methods in context.
- Add output header context method for TexImage.
15 years ago
castano b7fbd1fc9b Fix error in Snow Leopard. 15 years ago
castano 9de3298d6b Fix cmake build. 15 years ago
castano 568f34d838 Fix color weighted compression for single color blocks. Fixes issue 96. 15 years ago
castano e38e584db2 Rename texture to teximage. 15 years ago
castano 8655259379 Fix comment. 15 years ago
castano 7d65633f63 Add files to repro bugs/request. 15 years ago
castano cb62c3c461 Add support for R16 in DDS headers.
Cleanup DDS header output code.
Temporary testing code added to nvcompress.
15 years ago
castano 573cc1b371 Add support for UINT16 images when using freetype. 15 years ago
castano 9c6f6e143e Use tabs not spaces. 15 years ago
castano 126816ef72 Experimental quality improvements and speed optimizations. 15 years ago
castano 2ca6e4a1bd Add support function for stb compressor. 15 years ago
castano b839b873e1 Remove commented out code. 15 years ago
castano ab473f4ec5 Add DXT5 tests.
Use timer class.
15 years ago
castano f1ebbd4da6 Add more third-party compressors. 15 years ago
castano ac79935c88 Init default values. 15 years ago
castano 2aca4673ab Some progress implementing new api. 15 years ago
castano 43893d5d0f Add NV5x DXT5 decompressor. 15 years ago
castano 009eaf2aa6 Fix msvc warnings. 15 years ago
castano fd2492670e Add a QPF timer. 15 years ago
castano 7d88f4fa32 Merge changes from 2.0 branch. 15 years ago
castano 60022acaa7 Add dxt5 tests to testsuite. 15 years ago
castano a5faf51738 Add simd power solver. 15 years ago
castano 8365df0adf Add example textures with alpha. 15 years ago
castano 2d38f4fb2c Update cmake scripts to use new FindCUDA package. 15 years ago
castano 3adf00b4b9 Use official FindCUDA cmake script. 15 years ago
castano 63897f3fe6 Mark threads as required. 15 years ago
castano 71f29a27f3 Fix error in zero padding. 15 years ago
castano 720be412fa Return correct error codes. Fix issue 92. 15 years ago
castano 8d361eee22 Use memory allocator correctly. 15 years ago
castano 8d54d22cb2 Update vc9 project files. 15 years ago
castano 782a127071 Add alpha flag to DXT1a files. 15 years ago
castano 154e117e13 Update nvmath project file. 15 years ago
castano 603d8ad1a2 Update vc9 project. 15 years ago
castano bed4d78f6b Remove static member that was not thread safe! 15 years ago
castano d7f8fba7a7 Add comment about thread safety. 15 years ago
javiuniversidad@gmail.com e0a7e103c1 Add include to all configurations. 15 years ago
javiuniversidad@gmail.com 319ed6bac0 Required include added 15 years ago
castano 9e959d0191 Update wrapper, disable error handler temporarily. 15 years ago
castano 53265596a3 Update nvtt wrapper. 15 years ago
castano ae24cb163d Remove msvc warnings. 15 years ago
castano fb75d6065d Update projects. 15 years ago
castano ae744f88e6 Add constructor that takes a stream. 15 years ago
castano 5ac76b68c9 Add option to select decompression algorithm to test suite. 15 years ago
castano f2090df7a5 Add support for FreeBSD. Patch by AMDmi3. 15 years ago
castano 0a8de141a6 Fix errors on win32. Define function pointers properly. 15 years ago
castano 9aaee3ae16 Add proper todo message. 15 years ago
castano 820eb374d5 Add single color table generation code. 15 years ago
castano 974cacda5f Update single color compression tables. 15 years ago
castano 953a63d7b5 Add farbrausch images to testsuite. 15 years ago
castano 19477d60c0 Fix errors in the pixel format conversion code. 15 years ago
castano 8a48250bcb Fix win32 errors and errors in the png saving code. 15 years ago
castano 18d95584cc Add farbrausch textures. 15 years ago
castano 9b3075030e Add data to repro bug reports. 15 years ago
castano dd98ce6eab Add one more exclude rule to pkg builder script. 15 years ago
castano 35ff0e5aa6 Remove verbose error checking. 15 years ago
castano 8529dcf755 Fix memory leaks.
Shutdown CUDA properly when nvtt context is destroyed.
Fixes issue 83.
15 years ago
castano 56543e1a92 Merge changes from 2.0 15 years ago
castano 72543c9307 Add todo message. 15 years ago
castano 872c61e1d1 Add image saving code. 15 years ago
castano 7f3cee4db9 Remove commented out code. 15 years ago
castano 3f036a11a6 Avoid msvc8 warnings. 15 years ago
castano 3df9aff396 rename gnuwin back to gnuwin32 15 years ago
castano be12367910 fix blend, add setborder and fill methods. 15 years ago
castano c59a2e0a4b Implement alpha premultiplication and color blending. 15 years ago
castano 0abec17ab4 Implement toGreyScale.
Skip undefined images.
15 years ago
castano 6b67f4a0d7 More progress with imperative api.
Rename Texture to TexImage.
Implement image initialization.
Add stubs for all methods.
15 years ago
castano 6e2565d1a4 Install doc files in doc folder. 15 years ago
castano 3e3c8a4d18 Generate debs on linux only. 15 years ago
castano 8e836591ee Fix warning. 15 years ago
castano 50b8b67185 Hide file format especific savers. Add generic image saver.
Misc fixes under OSX.
15 years ago
castano 36850f6241 Include readme in the installer. 15 years ago
castano ed58bd90ff Update readme. 15 years ago
castano ab73c790e1 Testsuite cleanups and improvements.
Add ctest support.
Add FileSystem::changeDirectory method.
15 years ago
castano 4a34c673a4 Add testsuite images. 15 years ago
castano 0ce578668f Compile libraries as dynamic libs.
Excluse qtproject folder in source packages.
Add support for package generation using cpack.
15 years ago
castano 53e6c4c911 Update project files with recently added files. 15 years ago
castano d99cf11e2e Update version checking code. 15 years ago
castano d9832ed22c Eliminate some warnings with MSVC. 15 years ago
castano a02649faa9 Fallback to CPU compressor only on smaller images. 15 years ago
castano a28ebb4ccf Some more progress in the imperative API. 15 years ago
castano 0f5a5e5d24 Some more progress in the imperative API. 15 years ago
castano 8f0b129a52 Add RefCounted base class back to the reposotory. 15 years ago
castano 098bc2f905 Fix some endiannes errors. 15 years ago
castano 5943e8f42f Fix errors on ibook G4. 15 years ago
castano ba72ebafcb Delete win64 dlls, not very useful without the corresponding lib files. 15 years ago
castano a89735994c Update vc9 project files. 15 years ago
castano e7fd290af6 Update changelog. 15 years ago
castano 35b97e7a13 Add property file. 15 years ago
castano 472c2d691f Update vc8 project files. 15 years ago
castano e48f56a15e Includer project headers first. 15 years ago
castano 25e32c8ff2 Fix msvc warnings. 15 years ago
castano db63ba7fa4 Fix build in win64. 15 years ago
castano 3df66be089 Do not use CUDA to compress small mipmaps. 15 years ago
castano 3a52923697 Add alpha command line option. 15 years ago
castano 9953883d26 Cleanup cmake files. 15 years ago
castano 5ed9090012 Move poshlib to extern. 15 years ago
castano 93e2fb46a9 Update changelog and buildpkg script. 15 years ago
castano 03c9ec0f62 More cleanup. Remove files that are not strictly required. 15 years ago
castano 88fc5ca18e Merge changes from private tree.
Eliminate files that are not needed for NVTT.
15 years ago
castano 6fb29816a2 Gnome thumbnailer. Fixes issue 82. 15 years ago
castano c67edca820 Update changelog. 15 years ago
castano 9d5242594b Add gnome thumbnailer by Frank Richter. Fixes issue 82. 15 years ago
castano 69c74d7a5e Add support for comments. 15 years ago
castano b7ea7a255b Fix const-correctness. 15 years ago
castano 17790a34df Add support for PNG in nvdecompress. Patch by Frank Richter. Fixes issue 80. 15 years ago
castano 7741a99b90 Add support for saving PNG files. Patch by Frank Richter. Fixes issue 79. 15 years ago
castano 36dd7fb76b Merge changes from p4. 15 years ago
castano 8fa870bf0c Fix typo. Fixes issue 82. 15 years ago
castano 1afdf2da8a Fix alpha-weighted filtering. 15 years ago
castano 242aa4254e Use alpha-aware resize when alpha is used for transparency and it's not premultiplied. 15 years ago
castano 4f576d5539 Add support for alpha weighting to float image. 15 years ago
castano 2411f3f5db Fix generation of blended sobel filter. Fixes issue 77. 15 years ago
castano 1c6b65ad52 Do not use custom FindGLUT cmake script. 15 years ago
castano f92a2191f2 Print message when cuda acceleration enabled. 16 years ago
castano 7f9b10329b Add squish.h to project. 16 years ago
castano 49409e9d92 Cleanup color rounding and expansion. 16 years ago
castano f753cc9702 Implement FileSystem::exists correctly on win32. 16 years ago
castano 07a4daed7b Add FileSystem.{h,cpp} to project. 16 years ago
castano 2ad15489bb Try to optimize color rounding and expansion.
Detect CUDA 2.1 properly.
16 years ago
castano fa53ddcecd Add NV5x/G8x DXT decompression code.
Clean things up a bit, remove old code.
16 years ago
castano 7a8b3aecc9 Fix name of libpng dll. 16 years ago
castano 94357626f7 Merge fixes from 2.0 branch. 16 years ago
castano 19342d8adf Use timer class instead of clock.
Check that file exists before opening.
16 years ago
castano 2ed4fee447 Fix error sin string builder and path. 16 years ago
castano f03d702d84 Implement exists with access instead of stat. 16 years ago
castano 10de10b9c2 Implement FileSystem::exists(). 16 years ago
castano 508f9fbdc2 Start implementing experimental interface. 16 years ago
castano e965b0e4a9 Include correct headers. 16 years ago
castano 1f4d313d0f Merge changes from internal branch. Whitespace changes only. 16 years ago
castano dc0b78ad14 Do not enable testing. 16 years ago
castano b8eb12afc1 Merge changes from internal branch.
- Better support for win64.
16 years ago
castano 1975883bed Update after changes in nvcore. 16 years ago
castano 9bda107603 Add pull push filter with bilinear filtering. 16 years ago
castano b4f17b968a Merge changes from internal branch.
- Add frustum class and bezier evaluation functions.
- Add component accessors to vector.
- Add matrix constructors.
- Fix errors in sparse solvers.
- Better robust orthogonalization.
- Fix montecarlo distribution.
16 years ago
castano e5ae0c0e20 Merge internal branch.
- Remove old/unused code.
- Remove format string constructors.
- Better win64 support (vsscanf, prefetch, etc).
- Fix radix sort to sort -0 correctly.
- Add misc utilities (constraints, timer, cpuinfo, introsort).
16 years ago
castano a03411e451 Check version properly. 16 years ago
castano 931580edc5 Include cuda runtime properly. 16 years ago
castano fd2f5465f8 Do not use kahansum, that was stupid.
Include cuda runtime properly.
16 years ago
castano 127052f404 Use KahanSum to compute RMSE.
Fix typos.
16 years ago
castano a30490ab9b Preserve cluster location for empty partitions. 16 years ago
castano 1ec115c7ec Cleanup 4 means compressor. 16 years ago
castano a4f56b65b8 Add support for alpha modes in the CPU compressors. Fixes issue 30. 16 years ago
castano bb69acec6c Add FileSystem to build. 16 years ago
castano 4bbf5e96f4 Add squish external compressor.
Rename our squish version to nvsquish.
16 years ago
castano 4a85f8e48d Remove executable flag. 16 years ago
castano f34b7ce84f Merge optimizations from squish. 16 years ago
castano 010905edd3 Fix tabs. 16 years ago
castano 7bb2d55d35 Create output directory. 16 years ago
castano e3a7cc19dd Add file system helper. 16 years ago
castano 379605d30a Use metric to measure distance to clusters. 16 years ago
castano c05c4e155b Merge optimizations from official squish release. 16 years ago
castano fd73484bfc Merge optimizations from official squish relese. 16 years ago
castano f29d7dd938 Try using 4 means clustering. 16 years ago
castano 3a5dc4783a Add support for regressions. 16 years ago
castano d4a713451e Fix 4 means clustering. 16 years ago
castano a302475fa6 Add fitting implementation to project. 16 years ago
castano 6e988ea4c8 Add stream to the vc8 project. 16 years ago
castano 7731181900 Update changelog. 16 years ago
castano 41f6e0ba73 Try 4-means. 16 years ago
castano 11073171a1 Rename stress to testsuite. Install target. 16 years ago
castano 0805832b44 Remove squish build and project files. 16 years ago
castano a4dcd414ca Fix errors. 16 years ago
castano 4ff8a83f90 Add fitting code to build. 16 years ago
castano 48da357385 Add PCA, and 4-means implementation. 16 years ago
castano e1916d43c8 Do not mix tabs and spaces. 16 years ago
castano 321f320bfb Do not print stupid messages. 16 years ago
castano df32fedc7c Add command line options.
Reformat output for easier parsing.
16 years ago
castano a7396b70ba Fix segfault on linux. Merged from 2.0 branch. 16 years ago
castano d9ca49cc5e Fix bug in dxt decompression.
Output files as TGA.
16 years ago
castano 56849b78ad Output compressed files. 16 years ago
castano a769831fb5 Add const keyword to const arguments. 16 years ago
castano 7486201a7e Fix bug in testsuite. 16 years ago
castano 1813624992 Modify stress test to compress a list of real images. 16 years ago
castano 5fa27adfcd Add custom error code and message for the case when container format does not support a certain output format. 16 years ago
castano 6d1891a7e9 Remove gcc-4.3 warning. 16 years ago
castano 8fb1d70d0b Fix bug detected by gcc-4.3. 16 years ago
castano c26c52d59c Fix gcc-4.3 warnings. 16 years ago
castano c3329d4675 Fix gcc-4.3 warning. 16 years ago
castano 1cefc366f8 Remove unused function. 16 years ago
castano 7df0885c4f Fix CUDA detection code on linux. 16 years ago
castano 1c5da0e341 Do not use cuda API when CUDA not found.
Fix end of lines.
16 years ago
castano 36ba75b598 Select fastest device. 16 years ago
castano 1628831878 Fix comment. 16 years ago
castano 12e774ea74 Fix cmake file. 16 years ago
castano 66b18f2dbd Fix build under VC7 16 years ago
castano 9ea1934097 Update vc8 projects. 16 years ago
castano 9771e72702 Update vc9 projects. 16 years ago
castano 7776bd5c17 Win32 fixes. 16 years ago
castano 6d8a75462a Build nvtt as a shared library. 16 years ago
castano cf18077eda Prevent missmatches between incompatible versions of the CUDA runtime and the CUDA driver. 16 years ago
castano aa37e7a868 Add library loading helpers. 16 years ago
castano d01a5c1661 Workaround bug in CUDA runtime. When using CUDA 2.0, it's required to use a driver that supports CUDA 2.0. 16 years ago
castano 36ed6bebda Update changelog with branch 2.0 fixes. 16 years ago
castano 5234060618 Integrate branch 2.0 to trunk. 16 years ago
castano f402f28643 Use unsigned ints for stream sizes and positions. 16 years ago
castano f047043eb2 Fix compiler errors under gcc-4.3 16 years ago
castano 7eac4195c4 Fix compiler errors under gcc-4.3 16 years ago
castano 0f5692d1ea Compile CUDA files as C++. 16 years ago
castano b2d6122769 Fix linux build. 16 years ago
castano cd59058fc2 Fix linux includes. 16 years ago
castano db14e048e1 Fix errors in Green and Alpha optimal compressors. 16 years ago
castano 0c36fcf626 Update changelog. 16 years ago
castano 68be24bf00 Set correct DXT5n swizzle code.
Select swizzle codes in nvtt instead of nvimage.
16 years ago
castano b284669993 Try some optimizations. 16 years ago
castano 2f6e885ced Add DXT1 compressor that uses texture to avoid CPU swizzling.
Fix errors under emulation.
Experiment with DXT5 compressor.
16 years ago
castano 1957120c26 Reference gnuwin32 libs and include paths correctly. 16 years ago
castano d7ddcb9263 Set optimal options for release vc9 projects.
Fixes issue 62.
16 years ago
castano f5f6e88585 Do not use freeimage yet. 16 years ago
castano 13e2d2e447 Fix float support. 16 years ago
castano 0b13b6d0d9 Update version number. 16 years ago
castano ad85b0fcbe Include gnuwin32 directory properly. 16 years ago
castano 0515d9a0a0 Add Half.{h,cpp} to project. 16 years ago
castano 16adf94635 Add support for floating point output formats.
Images are currently output in linear space, some color transforms not applied.
16 years ago
castano e9002a7d86 Adding support for floating point input/output. Work in progress. 16 years ago
castano 3161fca9d9 Decompress DDS10 files. Only BC# supported so far. 16 years ago
castano bb5b02df0e Adding support for floating point images as input. 16 years ago
castano 1941e27148 Fix DDS10 header initialization.
Fix depth initialization.
16 years ago
castano 02c3abb394 Fix color transforms. 16 years ago
castano 86ef67bbfa Fix error in input image transformation. 16 years ago
castano 79529f994f Fix compilation error. 16 years ago
castano c2508d9eeb Add option to use dds10 headers. 16 years ago
castano b1cd916105 Change parameters in declaration to match definition. 16 years ago
castano 96655b3e7c Work in progress:
- better support for DDS10 file format.
- support for RGBA pixel formats with more than 32 bits.
- support for pixel types other than UNORM.
16 years ago
castano 529c0075e1 do not compile mpeg tests. 16 years ago
castano c70e5d6121 Reorg header files. 16 years ago
castano 7394644719 Move ui to separate folder. 16 years ago
castano d5055300e2 Require cmake 2.6.0 16 years ago
castano b2e7d717c2 Fix compilation error under gcc/linux. 16 years ago
castano 756f12c994 Fix errors in color transforms.
Add support for color offsets.
Add support for special swizzles that select default const values.
16 years ago
castano 206bfcf0f3 reorg included files 16 years ago
castano 15cfd1c06b fix path to gnulibs 16 years ago
castano 8b26ecc865 fix path to gnulibs 16 years ago
castano 488f3c8f42 fix path to gnu libs. 16 years ago
castano 458b8814a7 fix path to gnulibs. 16 years ago
castano c08acc8a71 Add single color compressor to optimal green compressor.
Improve quality of DXT1 green compressor increasing search range.
16 years ago
castano 45f7244f20 Check in proposed fix for issue 44. 16 years ago
castano f412ec8efb Fix assertion. 16 years ago
castano a1a34f546f Do not compile nvmpegenc. 16 years ago
castano 7ef88c6f7e Fix build on OSX 10.5. Solves issue 44. 16 years ago
castano 3368f9039b Fix embarrasing typo. 16 years ago
castano 870a3fe438 Add references. 16 years ago
castano 82bed4ac9a Eliminate warning. 16 years ago
castano b8a9395117 Fix end of lines. 16 years ago
castano 65f769160d Fix solution. 16 years ago
castano 524ebbec8c Add PhotoshopExporter template project to solution. 16 years ago
castano ce85eaff3e Add photoshop exporter template. 16 years ago
castano 6befe3505c Enable Qt ui with win32/msvc. 16 years ago
castano ff6f7f0506 Add quick and dirty single frame mpeg encoder based on ffmpeg. 16 years ago
castano 55e7d3dec4 Delete outdated comment. 16 years ago
castano b5e373b734 Compile NVTT under G5/leopard 16 years ago
castano 6ce542b5c0 Fix error in cmake file. 16 years ago
castano 58e5f6534f Print version number in copyright statement. 16 years ago
castano eda4786ca6 Update version number. 16 years ago
castano 29a720bf82 Do not print text. 16 years ago
castano 1120f83f7d Fix errors. 16 years ago
castano c38c3dc584 Fix win32 buid errors and warnings due to FreeImage. 16 years ago
castano 7d3d0ede9d Update projects to use FreeImage. 16 years ago
castano bc66a7ad74 Update cmake files. 16 years ago
castano ca8d17abf5 Reorganize external libs. 16 years ago
castano 10e79dac9d Update changelog. 16 years ago
castano e068964423 Fix EXR loading code. Issue 45. Fix provided by alastairpatrick. 16 years ago
castano ea340443d9 Add -mipfilter command line option, per request of Noel Llopis. 16 years ago
castano fb2b0cb38c Fix bug reported by Noel Llopis.
Make sure FreeImage declarations are not used when FreeImage is not available.
16 years ago
castano c01566cd2f Add support for FreeImage in nvimage.
Add support for floating point input images in nvtt.
16 years ago
castano 47bdab8e27 Define FREEIMAGE_LIBRARIES. 16 years ago
castano 70267fda15 Add support for input floating point images. Patch provided by Jim Tilander. See issue 27. 16 years ago
castano aebcea412c Search for freeimage. 16 years ago
castano bccdcd49da Use standard gram schmidt 16 years ago
castano 68e9f05794 Add freeimage cmake file. 16 years ago
castano 0f186e688f Remove 'virtual' from non virtual methods. 16 years ago
castano 38e9652d64 Remove executable flag. 16 years ago
castano f08114c1b5 Whops, check fix for vc9. 16 years ago
castano 7b9f891f92 Update vc9 projects. 16 years ago
castano 787c9bb8fb Add vc9 projects. 16 years ago
castano 42220b981e Add vc9 folder 16 years ago
castano 70331a37fd Refactor compression functions, group them into class methods. 16 years ago
castano 2ffc4cd7ad Ups, checked in the file before saving it. 16 years ago
castano 4ba8e87a38 Ups, checked in file before saving it. 16 years ago
castano d440d68aa8 Update ChangeLog. 16 years ago
castano 48f61dbfc0 Add support for linear and swizzle transforms. Fixes issue 4. 16 years ago
castano 94c3fa75a8 Add comments indicating where to perform linear color transforms. 16 years ago
castano c562af6d9b Integrate YCoCg color space conversion by Jim Tilander. 16 years ago
castano a889f2fda6 Add support for alpha modes in the CUDA compressors. 16 years ago
castano d855d0461b Add single color checks to CUDA compressors.
Use optimized bitmap table for CTX compressor.
16 years ago
castano 246f2a409a Add cpp file to project so that a library is built. 16 years ago
castano 6a6b3edce1 factorial optimization suggested by pponywong. 16 years ago
castano 52b3bc9437 Update project files. Remove fast compressor, add optimal compressor. 16 years ago
castano f6ab357b09 Add missing files to project. 16 years ago
castano ce3a65c03e Fix operator= in String class. 16 years ago
castano 8d9bf5c0b3 Fix after refactoring CPU compressors. Changes were not tested with CUDA enabled. 16 years ago
castano ab5265e642 Remove declaration of method that was removed. 16 years ago
castano fd1d5e41c7 Add missing files! 16 years ago
castano 3980d5dc21 Update changelog. 16 years ago
castano 15e7125b4b Check for single color blocks in all compressors. 16 years ago
castano 921ee354c0 Remove legacy compressors.
Add iteration count parameter to iterative alpha compressor.
Add optimal compressors.
16 years ago
castano e3f7e303e4 Use FLT_MAX instead of INFINITE. The latter not supported in msvc. 16 years ago
castano 1df69495fc Precompute fast cluster fit factors, and store as static const.
nvtt is completely reentrant now. Fixes issue 37.
cleanup interface of cuda compressors.
16 years ago
castano 91eb30667f Add TLS class wrapper.
Fix AutoPtr operator=.
Fix typo.
16 years ago
castano 6db5cffca6 Fix changelog. 16 years ago
castano 34ae5bcb6f Merge 2.0 branch fixes. 16 years ago
castano fe130a9906 Add DXT1a single color compressor. 16 years ago
castano bade8e5e09 Merge private branch. 16 years ago
castano 141a05edf4 Merge private branch. 16 years ago
castano 7d3facd81a Merge private branch. 16 years ago
castano 17a4f765fb Merge private branch. 16 years ago
castano cb91740591 Merge private branch. 16 years ago
castano d10295fbf6 Use DXT1a single color compressor. 16 years ago
castano fa5e1f5a07 Add single color DXT1a compressor. 16 years ago
castano 9d47e100f1 Add better support for the DX10 DDS formats. 16 years ago
castano db1b30ee4b Update changelog. 16 years ago
castano 4c759f999c Integrate decompressor tool improvements submitted by Amorilia. 16 years ago
castano 299ad176fc Add experimental image based interface. 16 years ago
castano 5070cc98d3 Do not use constructor that initializes POD types. 16 years ago
castano 133ebfb282 Remove unused parameter warnings.
Do not compile tokenizer; it's not being used, and does not work on win64 yet.
16 years ago
castano ebe8054728 Cache HAVE_* variables so that they can be edited through the cmake gui. 16 years ago
castano aa14653d96 Do not cache CUDA_FOUND variable. 16 years ago
castano 389adb5368 Update change log, merge 2.0 changes, add attributions. 16 years ago
castano bd3314f4af Add inputOptions argument to compressors, so that they can access alpha mode. 16 years ago
castano 065c5f0689 Cleanup simple compressors. Move code from FastCompress to QuickCompress. 16 years ago
castano cc8656f12b Update project files. 16 years ago
castano d2384cf47f Remove unused methods. 16 years ago
castano aff59c22b8 remove unused compressors 16 years ago
castano 59be16d40a Remove unused fitting code. 16 years ago
castano b7a724448b Remove unnecesary dependency. 16 years ago
castano 259e7c58fd Merge Viktor Linder patch into 2.0 and trunk.
Fixes RGB modes with less than 32 bpp.
16 years ago
castano 307c8b99ee Add support for premultiplied alpha. Patch by Charles Nicholson. 16 years ago
castano 6b933c4f62 Fix post-build command. Copy headers to include/nvtt/. 16 years ago
castano fd1ac3c61f Add quotes around post build command arguments. Reported by Richard Sim. 16 years ago
castano 65aa7e1eaa Add interface for swizzle color xform. 16 years ago
castano f5ae4c1a9a Fix indexMirror error reported by Chris Lambert. 16 years ago
castano 75c09220c8 Fix Image copy ctor bug reported by Richard Sim. 16 years ago
castano 9f4b4bd532 Update comments about hole filling algorithms. 16 years ago
castano bce983f39e Add post build command to copy header files. 16 years ago
castano ff93ad41cb Fix end of lines. 16 years ago
castano 56c7771100 Fix end of lines. 16 years ago
castano ccced843e3 Use smaller allocations to prevent errors.
Check for allocation errors.
16 years ago
castano dafe2b8841 Hide copy ctor and operator to prevent compiler warnings.
Wrap pimpl using NVTT_DECLARE_PIMPL macro.
16 years ago
castano e3e7fcb226 Check cuda errors to find out whether the cuda context initialization succeeded. 16 years ago
castano 970395fba8 Fix osx build. 16 years ago
castano 8a24a93e2f Disable CUDA when memory allocations fail. 16 years ago

@ -0,0 +1,3 @@
# These are supported funding model platforms
github: castano

@ -0,0 +1,33 @@
name: build
on: [push, pull_request]
jobs:
vs2017:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: microsoft/setup-msbuild@v1.0.0
- name: Build Debug/x64
run: msbuild .\project\vc2017\nvtt.sln /property:Configuration=Debug /property:Platform=x64
- name: Build Debug/Win32
run: msbuild .\project\vc2017\nvtt.sln /property:Configuration=Debug /property:Platform=Win32
- name: Build Release/x64
run: msbuild .\project\vc2017\nvtt.sln /property:Configuration=Release /property:Platform=x64
- name: Build Release/Win32
run: msbuild .\project\vc2017\nvtt.sln /property:Configuration=Release /property:Platform=Win32
unix:
strategy:
matrix:
os: [ubuntu, macos]
name: ${{matrix.os}}
runs-on: ${{matrix.os}}-latest
steps:
- uses: actions/checkout@v2
- name: make
run: |
./configure --debug
make
./configure --release
make

17
.gitignore vendored

@ -0,0 +1,17 @@
**/bin/
**/obj/
**/Debug/
**/Release/
**/Debug.x64/
**/Release.x64/
**/Debug.Win32/
**/Release.Win32/
**/Debug-CUDA/
**/Release-CUDA/
*.vcxproj.user
*.opensdf
*.sdf
*.suo
build
.vs
project/nvtt.sublime-workspace

@ -1,23 +1,63 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.0)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0)
PROJECT(NV)
ENABLE_TESTING()
SET(NV_CMAKE_DIR "${NV_SOURCE_DIR}/cmake")
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${NV_CMAKE_DIR}")
IF(WIN32)
SET(GNUWIN32 "${NV_SOURCE_DIR}/gnuwin32")
SET(CMAKE_INCLUDE_PATH "${GNUWIN32}/include")
SET(CMAKE_LIBRARY_PATH "${GNUWIN32}/lib")
ENDIF(WIN32)
# Compiler check (needs -std:c++11 flag)
include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
if(COMPILER_SUPPORTS_CXX11)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
else()
message(FATAL_ERROR "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
endif()
INCLUDE(${NV_CMAKE_DIR}/OptimalOptions.cmake)
MESSAGE(STATUS "Setting optimal options")
MESSAGE(STATUS " Processor: ${NV_SYSTEM_PROCESSOR}")
MESSAGE(STATUS " Compiler Flags: ${CMAKE_CXX_FLAGS}")
IF(CMAKE_BUILD_TYPE MATCHES "debug")
SET(CMAKE_DEBUG_POSTFIX "_d" CACHE STRING "Postfix for debug build libraries.")
ADD_DEFINITIONS(-D_DEBUG=1)
ENDIF()
ADD_SUBDIRECTORY(extern)
ADD_SUBDIRECTORY(src)
# These files should only be installed when creating packages.
INSTALL(FILES
LICENSE
README.md
DESTINATION share/doc/nvtt)
# Add packaging support
INCLUDE(InstallRequiredSystemLibraries)
IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
SET(CPACK_GENERATOR "TGZ;DEB")
ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
SET(CPACK_PACKAGE_NAME "nvidia-texture-tools")
SET(CPACK_PACKAGE_VERSION_MAJOR "2")
SET(CPACK_PACKAGE_VERSION_MINOR "1")
SET(CPACK_PACKAGE_VERSION_PATCH "2")
SET(CPACK_PACKAGE_VERSION "2.1.2")
SET(CPACK_PACKAGE_CONTACT "Ignacio Castaño <castano@gmail.com>")
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "Texture processing tools with support for Direct3D 10 and 11 formats.")
SET(CPACK_PACKAGE_DESCRIPTION_FILE "${NV_SOURCE_DIR}/README.md")
SET(CPACK_RESOURCE_FILE_LICENSE "${NV_SOURCE_DIR}/LICENSE")
# NSIS options:
IF(WIN32)
ADD_SUBDIRECTORY(gnuwin32)
SET(CPACK_NSIS_DISPLAY_NAME "${CPACK_PACKAGE_VENDOR}\\\\NVIDIA Texture Tools 2.1")
SET(CPACK_PACKAGE_INSTALL_DIRECTORY "${CPACK_PACKAGE_VENDOR}\\\\NVIDIA Texture Tools 2.1")
SET(CPACK_PACKAGE_ICON "${NV_SOURCE_DIR}\\\\project\\\\vc2017\\\\nvcompress\\\\nvidia.ico")
ENDIF(WIN32)
INCLUDE(CPack)

@ -1,11 +1,78 @@
NVIDIA Texture Tools version 2.1.2
* Use ICBC as the main BC1 compressor.
* Various fixes.
NVIDIA Texture Tools version 2.1.1
* Various fixes.
NVIDIA Texture Tools version 2.1.0
* Too many changes to list here.
* CTX1 CUDA compressor.
* DXT1n CUDA compressor.
* Support alpha premultiplication by Charles Nicholson. See issue 30.
* Improved decompressor tool submitted by Amorilia. See issue 41.
* Add support for YCoCg color transform. Fixes issue 18.
* Add support for linear and swizzle transforms. Fixes issue 4.
* Fix loading of EXR files using OpenEXR.
* Use FreeImage as primary image loading library. Fixes issue 31. Reverted.
* Output swizzle codes like AMD's tools.
* Added support for saving PNGs by Frank Richter. Fixes issue 79 and 80.
* Added gnome thumbnailer by Frank Richter. Fixes issue 82.
* Cleanup sources removing files that are not strictly required.
NVIDIA Texture Tools version 2.0.7
* Output correct exit codes. Fixes issue 92.
* Fix thread-safety errors. Fixes issue 90.
* Add SIMD power method. Fixes issue 94.
NVIDIA Texture Tools version 2.0.6
* Fix dll version checking.
* Detect CUDA 2.1 and future CUDA versions correctly.
* Print CUDA detection message in nvcompress.
* Select the fastest CUDA device.
* Compile squish with -fPIC. Fixes issue 74.
* Fix warnings under gcc 4.3.2.
* Fix nvzoom option typo by Frank Richter. Fixes issue 81.
* Do not use CUDA to compress small mipmaps. Fixes issue 76.
* Compute mipmaps of semi-transparent images correctly.
* Shutdown CUDA properly. Fixes issue 83.
* Fix pixel format converions. Fixes issue 87.
* Update single color compression tables. Fixes issue 85.
NVIDIA Texture Tools version 2.0.5
* Fix error in single color compressor. Fixes issue 66.
* Detect mismatch between CUDA runtime and driver, and disable CUDA in that case.
* Fix cmake files when compiling NVTT as a shared library.
* When linking nvtt dynamically on unix, link all libraries dynamically.
* Select fastest CUDA device.
NVIDIA Texture Tools version 2.0.4
* Fix error in RGB format output; reported by jonsoh. See issue 49.
* Added support RGB format dithering by jonsoh. Fixes issue 50 and 51.
* Prevent infinite loop in indexMirror when width equal 1. Fixes issue 65.
* Implement general scale filter, including upsampling.
NVIDIA Texture Tools version 2.0.3
* More accurate DXT3 compressor. Fixes issue 38.
* Remove legacy compressors. Fix issue 34.
* Check for single color in all compressors. Fixes issue 43.
* Fix error in fast downsample filter, reported by Noel Llopis.
NVIDIA Texture Tools version 2.0.2
* Fix copy ctor error reported by Richard Sim.
* Fix indexMirror error reported by Chris Lambert.
* Fix vc8 post build command, reported by Richard Sim.
* Fix RGBA modes with less than 32 bpp by Viktor Linder.
* Fix alpha decompression by Amorilia. See issue 40.
* Avoid default-initialized constructors for POD types, reported by Jim Tilander.
* Add single color compresor for DXT1a.
* Set swizzle code to ATI2 files. See issue 41.
NVIDIA Texture Tools version 2.0.1
* Fix memory leaks.
* Pre-allocate device memory for CUDA compressor.
* Add single color compressor.
* Add single color compressor. Thanks to Amir Ebrahimi.
* Better CUDA error checking.
NVIDIA Texture Tools version 2.0.0
* Fixed PSNR formula in nvimgdiff.

@ -1,6 +1,7 @@
NVIDIA Texture Tools 2.0 is licensed under the MIT license.
NVIDIA Texture Tools is licensed under the MIT license.
Copyright (c) 2007 NVIDIA Corporation
Copyright (c) 2009-2020 Ignacio Castaño
Copyright (c) 2007-2009 NVIDIA Corporation
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation

@ -1,167 +0,0 @@
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
NVIDIA Texture Tools
README.txt
Version 2.1
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
TABLE OF CONTENTS
--------------------------------------------------------------------------------
I. Instructions
II. Contents
III. Compilation Instructions
IV. Using NVIDIA Texture Tools in your own applications
V. Known Issues
VI. Frequently Asked Questions
--------------------------------------------------------------------------------
I. Introduction
--------------------------------------------------------------------------------
This is our first alpha release of our new Texture Tools. The main highlights of
this release are support for all DX10 texture formats, higher speed and improved
compression quality.
In addition to that it also comes with a hardware accelerated compressor that
uses CUDA to compress blocks in parallel on the GPU and runs around 10 times
faster than the CPU counterpart.
You can obtain CUDA from our developer site at:
http://developer.nvidia.com/object/cuda.html
The source code of the Texture Tools is being released under the terms of
the MIT license.
II. Contents
--------------------------------------------------------------------------------
This release contains only the source code of the texture compression library
and an example commandline application that shows its use.
III. Compilation Instructions
--------------------------------------------------------------------------------
The compression library and the example can be compiled with Visual Studio 8 on
Windows using the following solution file:
project\vc8\nvtt.sln
On most other platforms you can also use cmake. For more information about
cmake, visit:
http://www.cmake.org/
On unix systems you can use the standard build procedure (assuming cmake is
installed on your system):
$ ./configure
$ make
$ sudo make install
IV. Using NVIDIA Texture Tools
--------------------------------------------------------------------------------
To use the NVIDIA Texture Tools in your own applications you just have to
include the following header file:
src/nvimage/nvtt/nvtt.h
And include the nvtt library in your projects.
The following file contains a simple example that shows how to use the library:
src/nvimage/nvtt/compress.cpp
The usage of the commandline tool is the following:
$ nvcompress [options] infile [outfile]
where 'infile' is and TGA, PNG, PSD, DDS or JPG file, 'outfile' is a DDS file
and 'options' is one or more of the following:
Input options:
-color The input image is a color map (default).
-normal The input image is a normal map.
-tonormal Convert input to normal map.
-clamp Clamp wrapping mode (default).
-repeat Repeat wrapping mode.
-nomips Disable mipmap generation.
Compression options:
-fast Fast compression.
-nocuda Do not use cuda compressor.
-rgb RGBA format
-bc1 BC1 format (DXT1)
-bc2 BC2 format (DXT3)
-bc3 BC3 format (DXT5)
-bc3n BC3 normal map format (DXT5n/RXGB)
-bc4 BC4 format (ATI1)
-bc5 BC5 format (3Dc/ATI2)
In order to run the compiled example on a PC that doesn't have Microsoft Visual
Studio 2003 installed, you will have to install the Microsoft Visual Studio 2003
redistributable package that you can download at:
http://go.microsoft.com/fwlink/?linkid=65127&clcid=0x409
V. Known Issues
--------------------------------------------------------------------------------
None so far. Please send suggestions and bug reports to:
TextureTools@nvidia.com
or report them at:
http://code.google.com/p/nvidia-texture-tools/issues/list
VI. Frequently Asked Questions
--------------------------------------------------------------------------------
- Do the NVIDIA Texture Tools work on OSX?
It currently compiles and runs properly, but it has not been tested extensively.
In particular there may be endiannes errors in the code.
- Do the NVIDIA Texture Tools work on Linux?
Yes.
- Do the NVIDIA Texture Tools work on Vista?
Yes, but note that CUDA is not supported on Vista yet, so the tool is not hardware
accelerated.
- Is CUDA required?
No. The Visual Studio solution file contains a configuration that allows you
to compile the texture tools without CUDA support. The cmake scripts automatically
detect the CUDA installation and use it only when available.
- Where can I get CUDA?
http://developer.nvidia.com/object/cuda.html
- Why is feature XYZ not supported?
In order to keep the code small and reduce maintenance costs we have limited the
features available in our new texture tools. We also have open sourced the code, so
that people can modify it and add their own favourite features.
- Can I use the NVIDIA Texture Tools in my commercial application?
Yes, the NVIDIA Texture Tools are licensed under the MIT license.
- Can I use the NVIDIA Texture Tools in my GPL application?
Yes, the MIT license is compatible with the GPL and LGPL licenses.

@ -0,0 +1,83 @@
# NVTT is discontinued
After more than 14 years maintaining and updating this library on my spare time, I've decided to officially discontinue it and focus my energy on other projects.
When I released NVTT there was very little public information about compression for GPU texture formats. Existing codecs were closed-source, encumbered by patents, and not particularly efficient or high quality. A lot has changed since then. NVTT doesn't support the latest formats anymore, some of its codecs are outdated, and it's source code has aged. Today most IHVs maintain their own open source codecs and several companies develop high quality commercial products around texture compression.
If you are looking for alternative texture compression tools and processing algorithms I recommend you check these out:
## Open Source Encoders
* I still maintain [A High Quality SIMD BC1 Encoder](https://github.com/castano/icbc).
* [rgbcx](https://github.com/richgel999/bc7enc/blob/master/rgbcx.h) is another high-performance (but scalar) BC1-5 encoder.
* [stb_dxt](https://github.com/nothings/stb/blob/master/stb_dxt.h) is a single header library that provides low quality, but fast BC1-5 encoders.
* [Binomial](https://www.binomial.info/) is an image and texture compression company that develops [Basis a universal texture codec](https://github.com/BinomialLLC/basis_universal) and also has [other open source codecs](https://github.com/BinomialLLC).
* [Intel ISPC Texture Compressor](https://github.com/GameTechDev/ISPCTextureCompressor) is a set of set of open source SIMD texture encoders that are very fast, but low quality.
* [AMD Compressonator](https://gpuopen.com/compressonator/) offers various open source encoders that also run on the GPU.
* [Betsy](https://github.com/darksylinc/betsy/) is a compressor for various GPU formats using compute shaders.
* For ETC encoders see Google's [Etc2Comp](https://github.com/google/etc2comp), Bartosz Taudul's [etcpak](https://github.com/wolfpld/etcpak) and Rich Geldreich's [rg-etc1](https://github.com/richgel999/rg-etc1).
* [ARM ASTC Encoder](https://github.com/ARM-software/astc-encoder) is an excellent ASTC encoder.
* This is [a good overview of the state of texture encoders in 2020](https://aras-p.info/blog/2020/12/08/Texture-Compression-in-2020/).
## Image Processing and IO
* [stb_image_resize](https://github.com/nothings/stb/blob/master/stb_image_resize.h) provides polyphase image resize filters that are similar to what NVTT supports.
* [Dario Manesku's cube map filtering tool](https://github.com/dariomanesku/cmft) seems like a good alternative for the cube map filtering functions in NVTT.
* [CubeMapGen](https://gpuopen.com/archived/cubemapgen/) is another source of information for cubemap filtering algorithms, but is now unsupported as well.
* Deano Calver supports [three tiny libraries](https://deanoc.com/2019/09/tiny) that provide support for DDS and KTX file formats, and pixel format conversion.
* [stb_image](https://github.com/nothings/stb/blob/master/stb_image.h) and [stb_image_write](https://github.com/nothings/stb/blob/master/stb_image_write.h) are two handy single header libraries to read and write images in various formats.
* https://github.com/syoyo/tinyexr
* https://lodev.org/lodepng/
* [texturec](https://bkaradzic.github.io/bgfx/tools.html#texture-compiler-texturec) is a handy command line tool similar to `nvcompress`, built on top of [bimg](https://github.com/bkaradzic/bimg).
* The venerable [ImageMagick](https://imagemagick.org/) still provides many valuable tools and utilities.
## Commercial Libraries
* [Oodle Texture](http://www.radgametools.com/oodletexture.htm) is a suite of commercial RDO texture codecs.
* [NVIDIA Texture Tools exporter](https://developer.nvidia.com/nvidia-texture-tools-exporter) is based on a private fork of this project and offers additional GPU accelerated codecs, but it's not open source.
-------------------------------
# NVIDIA Texture Tools [![Actions Status](https://github.com/castano/nvidia-texture-tools/workflows/build/badge.svg)](https://github.com/castano/nvidia-texture-tools/actions) ![MIT](https://img.shields.io/badge/license-MIT-blue.svg) [![GitHub](https://img.shields.io/badge/repo-github-green.svg)](https://github.com/castano/nvidia-texture-tools)
The NVIDIA Texture Tools is a collection of image processing and texture
manipulation tools, designed to be integrated in game tools and asset
processing pipelines.
The primary features of the library are mipmap and normal map generation, format
conversion, and DXT compression.
### How to build (Windows)
Use the provided Visual Studio 2017 solution `project/vc2017/thekla.sln`.
### How to build (Linux/OSX)
Use [cmake](http://www.cmake.org/) and the provided configure script:
```bash
$ ./configure
$ make
$ sudo make install
```
### Using NVIDIA Texture Tools
To use the NVIDIA Texture Tools in your own applications you just have to
include the following header file:
[src/nvtt/nvtt.h](https://github.com/castano/nvidia-texture-tools/blob/master/src/nvtt/nvtt.h)
And include the nvtt library in your projects.
The following file contains a simple example that shows how to use the library:
[src/nvtt/tools/compress.cpp](https://github.com/castano/nvidia-texture-tools/blob/master/src/nvtt/tools/compress.cpp)
Detailed documentation of the API can be found at:
https://github.com/castano/nvidia-texture-tools/wiki/ApiDocumentation

@ -1 +1 @@
2.1.0
2.1.2

@ -1,7 +0,0 @@
#!/bin/sh
tar zcvf nvidia-texture-tools-`cat VERSION`.tar.gz \
--exclude '.*' --exclude debian --exclude '*~' --exclude buildpkg \
--exclude build --exclude data --exclude tags --exclude Makefile \
--exclude 'nvidia-texture-tools-*.tar.gz' \
--transform 's,^,nvidia-texture-tools/,' *

@ -1,28 +0,0 @@
# Assume i586 by default.
SET(NV_SYSTEM_PROCESSOR "i586")
IF(UNIX)
FIND_PROGRAM(CMAKE_UNAME uname /bin /usr/bin /usr/local/bin )
IF(CMAKE_UNAME)
EXEC_PROGRAM(uname ARGS -p OUTPUT_VARIABLE NV_SYSTEM_PROCESSOR RETURN_VALUE val)
IF("${val}" GREATER 0 OR NV_SYSTEM_PROCESSOR STREQUAL "unknown")
EXEC_PROGRAM(uname ARGS -m OUTPUT_VARIABLE NV_SYSTEM_PROCESSOR RETURN_VALUE val)
ENDIF("${val}" GREATER 0 OR NV_SYSTEM_PROCESSOR STREQUAL "unknown")
# processor may have double quote in the name, and that needs to be removed
STRING(REGEX REPLACE "\"" "" NV_SYSTEM_PROCESSOR "${NV_SYSTEM_PROCESSOR}")
STRING(REGEX REPLACE "/" "_" NV_SYSTEM_PROCESSOR "${NV_SYSTEM_PROCESSOR}")
ENDIF(CMAKE_UNAME)
# Get extended processor information with:
# `cat /proc/cpuinfo`
ELSE(UNIX)
IF(WIN32)
SET (NV_SYSTEM_PROCESSOR "$ENV{PROCESSOR_ARCHITECTURE}")
ENDIF(WIN32)
ENDIF(UNIX)

@ -1,142 +0,0 @@
#
# Try to find CUDA compiler, runtime libraries, and include path.
# Once done this will define
#
# CUDA_FOUND
# CUDA_INCLUDE_PATH
# CUDA_RUNTIME_LIBRARY
# CUDA_COMPILER
#
# It will also define the following macro:
#
# WRAP_CUDA
#
IF (WIN32)
FIND_PROGRAM (CUDA_COMPILER nvcc.exe
$ENV{CUDA_BIN_PATH}
DOC "The CUDA Compiler")
ELSE(WIN32)
FIND_PROGRAM (CUDA_COMPILER nvcc
$ENV{CUDA_BIN_PATH}
/usr/local/cuda/bin
DOC "The CUDA Compiler")
ENDIF(WIN32)
IF (CUDA_COMPILER)
GET_FILENAME_COMPONENT (CUDA_COMPILER_DIR ${CUDA_COMPILER} PATH)
GET_FILENAME_COMPONENT (CUDA_COMPILER_SUPER_DIR ${CUDA_COMPILER_DIR} PATH)
ELSE (CUDA_COMPILER)
SET (CUDA_COMPILER_DIR .)
SET (CUDA_COMPILER_SUPER_DIR ..)
ENDIF (CUDA_COMPILER)
FIND_PATH (CUDA_INCLUDE_PATH cuda_runtime.h
$ENV{CUDA_INC_PATH}
${CUDA_COMPILER_SUPER_DIR}/include
${CUDA_COMPILER_DIR}
DOC "The directory where CUDA headers reside")
FIND_LIBRARY (CUDA_RUNTIME_LIBRARY
NAMES cudart
PATHS
$ENV{CUDA_LIB_PATH}
${CUDA_COMPILER_SUPER_DIR}/lib
${CUDA_COMPILER_DIR}
DOC "The CUDA runtime library")
IF (CUDA_INCLUDE_PATH AND CUDA_RUNTIME_LIBRARY)
SET (CUDA_FOUND 1 CACHE STRING "Set to 1 if CUDA is found, 0 otherwise")
ELSE (CUDA_INCLUDE_PATH AND CUDA_RUNTIME_LIBRARY)
SET (CUDA_FOUND 0 CACHE STRING "Set to 1 if CUDA is found, 0 otherwise")
ENDIF (CUDA_INCLUDE_PATH AND CUDA_RUNTIME_LIBRARY)
SET (CUDA_LIBRARIES ${CUDA_RUNTIME_LIBRARY})
MARK_AS_ADVANCED (CUDA_FOUND CUDA_COMPILER CUDA_RUNTIME_LIBRARY)
#SET(CUDA_OPTIONS "-ncfe")
SET(CUDA_OPTIONS "")
IF (CUDA_EMULATION)
SET (CUDA_OPTIONS "${CUDA_OPTIONS} -deviceemu")
ENDIF (CUDA_EMULATION)
# Get include directories.
MACRO(GET_CUDA_INC_DIRS _cuda_INC_DIRS)
SET(${_cuda_INC_DIRS})
GET_DIRECTORY_PROPERTY(_inc_DIRS INCLUDE_DIRECTORIES)
FOREACH(_current ${_inc_DIRS})
SET(${_cuda_INC_DIRS} ${${_cuda_INC_DIRS}} "-I" ${_current})
ENDFOREACH(_current ${_inc_DIRS})
SET(${_cuda_INC_DIRS} ${${_cuda_INC_DIRS}} "-I" ${CUDA_INCLUDE_PATH})
# IF (CMAKE_SYTEM_INCLUDE_PATH)
# SET(${_cuda_INC_DIRS} ${${_cuda_INC_DIRS}} "-I" ${CMAKE_SYSTEM_INCLUDE_PATH})
# ENDIF (CMAKE_SYTEM_INCLUDE_PATH)
# IF (CMAKE_INCLUDE_PATH)
# SET(${_cuda_INC_DIRS} ${${_cuda_INC_DIRS}} "-I" ${CMAKE_INCLUDE_PATH})
# ENDIF (CMAKE_INCLUDE_PATH)
ENDMACRO(GET_CUDA_INC_DIRS)
# Get file dependencies.
MACRO (GET_CUFILE_DEPENDENCIES dependencies file)
GET_FILENAME_COMPONENT(filepath ${file} PATH)
# parse file for dependencies
FILE(READ "${file}" CONTENTS)
#STRING(REGEX MATCHALL "#[ \t]*include[ \t]+[<\"][^>\"]*" DEPS "${CONTENTS}")
STRING(REGEX MATCHALL "#[ \t]*include[ \t]+\"[^\"]*" DEPS "${CONTENTS}")
SET(${dependencies})
FOREACH(DEP ${DEPS})
STRING(REGEX REPLACE "#[ \t]*include[ \t]+\"" "" DEP "${DEP}")
FIND_PATH(PATH_OF_${DEP} ${DEP}
${filepath})
IF(NOT ${PATH_OF_${DEP}} STREQUAL PATH_OF_${DEP}-NOTFOUND)
#MESSAGE("${file} : ${PATH_OF_${DEP}}/${DEP}")
SET(${dependencies} ${${dependencies}} ${PATH_OF_${DEP}}/${DEP})
ENDIF(NOT ${PATH_OF_${DEP}} STREQUAL PATH_OF_${DEP}-NOTFOUND)
ENDFOREACH(DEP)
ENDMACRO (GET_CUFILE_DEPENDENCIES)
# WRAP_CUDA(outfile ...)
MACRO (WRAP_CUDA outfiles)
GET_CUDA_INC_DIRS(cuda_includes)
#MESSAGE(${cuda_includes})
FOREACH (CUFILE ${ARGN})
GET_FILENAME_COMPONENT (CUFILE ${CUFILE} ABSOLUTE)
GET_FILENAME_COMPONENT (CFILE ${CUFILE} NAME_WE)
SET (CFILE ${CMAKE_CURRENT_BINARY_DIR}/${CFILE}.gen.c)
GET_CUFILE_DEPENDENCIES(CUDEPS ${CUFILE})
#MESSAGE("${CUDEPS}")
ADD_CUSTOM_COMMAND (
OUTPUT ${CFILE}
COMMAND ${CUDA_COMPILER}
ARGS -cuda ${cuda_includes} ${CUDA_OPTIONS} -o ${CFILE} ${CUFILE}
MAIN_DEPENDENCY ${CUFILE}
DEPENDS ${CUDEPS})
#MACRO_ADD_FILE_DEPENDENCIES(${CUFILE} ${CFILE})
SET (${outfiles} ${${outfiles}} ${CFILE})
ENDFOREACH (CUFILE)
SET_SOURCE_FILES_PROPERTIES(${outfiles} PROPERTIES GENERATED 1)
ENDMACRO (WRAP_CUDA)

@ -1,129 +0,0 @@
#
# Try to find NVIDIA's Cg compiler, runtime libraries, and include path.
# Once done this will define
#
# CG_FOUND =system has NVIDIA Cg and it can be used.
# CG_INCLUDE_PATH = directory where cg.h resides
# CG_LIBRARY = full path to libCg.so (Cg.DLL on win32)
# CG_GL_LIBRARY = full path to libCgGL.so (CgGL.dll on win32)
# CG_COMPILER = full path to cgc (cgc.exe on win32)
#
# On OSX default to using the framework version of Cg.
IF (APPLE)
INCLUDE(${CMAKE_ROOT}/Modules/CMakeFindFrameworks.cmake)
SET(CG_FRAMEWORK_INCLUDES)
CMAKE_FIND_FRAMEWORKS(Cg)
IF (Cg_FRAMEWORKS)
FOREACH(dir ${Cg_FRAMEWORKS})
SET(CG_FRAMEWORK_INCLUDES ${CG_FRAMEWORK_INCLUDES}
${dir}/Headers ${dir}/PrivateHeaders)
ENDFOREACH(dir)
# Find the include dir
FIND_PATH(CG_INCLUDE_PATH cg.h
${CG_FRAMEWORK_INCLUDES}
)
# Since we are using Cg framework, we must link to it.
# Note, we use weak linking, so that it works even when Cg is not available.
SET(CG_LIBRARY "-weak_framework Cg" CACHE STRING "Cg library")
SET(CG_GL_LIBRARY "-weak_framework Cg" CACHE STRING "Cg GL library")
ENDIF (Cg_FRAMEWORKS)
FIND_PROGRAM(CG_COMPILER cgc
/usr/bin
/usr/local/bin
DOC "The Cg compiler"
)
ELSE (APPLE)
IF (WIN32)
FIND_PROGRAM( CG_COMPILER cgc
$ENV{CG_BIN_PATH}
$ENV{PROGRAMFILES}/NVIDIA\ Corporation/Cg/bin
$ENV{PROGRAMFILES}/Cg
${PROJECT_SOURCE_DIR}/../Cg
DOC "The Cg Compiler"
)
IF (CG_COMPILER)
GET_FILENAME_COMPONENT(CG_COMPILER_DIR ${CG_COMPILER} PATH)
GET_FILENAME_COMPONENT(CG_COMPILER_SUPER_DIR ${CG_COMPILER_DIR} PATH)
ELSE (CG_COMPILER)
SET (CG_COMPILER_DIR .)
SET (CG_COMPILER_SUPER_DIR ..)
ENDIF (CG_COMPILER)
FIND_PATH( CG_INCLUDE_PATH Cg/cg.h
$ENV{CG_INC_PATH}
$ENV{PROGRAMFILES}/NVIDIA\ Corporation/Cg/include
$ENV{PROGRAMFILES}/Cg
${PROJECT_SOURCE_DIR}/../Cg
${CG_COMPILER_SUPER_DIR}/include
${CG_COMPILER_DIR}
DOC "The directory where Cg/cg.h resides"
)
FIND_LIBRARY( CG_LIBRARY
NAMES Cg
PATHS
$ENV{CG_LIB_PATH}
$ENV{PROGRAMFILES}/NVIDIA\ Corporation/Cg/lib
$ENV{PROGRAMFILES}/Cg
${PROJECT_SOURCE_DIR}/../Cg
${CG_COMPILER_SUPER_DIR}/lib
${CG_COMPILER_DIR}
DOC "The Cg runtime library"
)
FIND_LIBRARY( CG_GL_LIBRARY
NAMES CgGL
PATHS
$ENV{PROGRAMFILES}/NVIDIA\ Corporation/Cg/lib
$ENV{PROGRAMFILES}/Cg
${PROJECT_SOURCE_DIR}/../Cg
${CG_COMPILER_SUPER_DIR}/lib
${CG_COMPILER_DIR}
DOC "The Cg runtime library"
)
ELSE (WIN32)
FIND_PROGRAM( CG_COMPILER cgc
/usr/bin
/usr/local/bin
DOC "The Cg Compiler"
)
GET_FILENAME_COMPONENT(CG_COMPILER_DIR "${CG_COMPILER}" PATH)
GET_FILENAME_COMPONENT(CG_COMPILER_SUPER_DIR "${CG_COMPILER_DIR}" PATH)
FIND_PATH( CG_INCLUDE_PATH Cg/cg.h
/usr/include
/usr/local/include
${CG_COMPILER_SUPER_DIR}/include
DOC "The directory where Cg/cg.h resides"
)
FIND_LIBRARY( CG_LIBRARY Cg
PATHS
/usr/lib64
/usr/lib
/usr/local/lib64
/usr/local/lib
${CG_COMPILER_SUPER_DIR}/lib64
${CG_COMPILER_SUPER_DIR}/lib
DOC "The Cg runtime library"
)
SET(CG_LIBRARY ${CG_LIBRARY} -lpthread)
FIND_LIBRARY( CG_GL_LIBRARY CgGL
PATHS
/usr/lib64
/usr/lib
/usr/local/lib64
/usr/local/lib
${CG_COMPILER_SUPER_DIR}/lib64
${CG_COMPILER_SUPER_DIR}/lib
DOC "The Cg runtime library"
)
ENDIF (WIN32)
ENDIF (APPLE)
IF (CG_INCLUDE_PATH)
SET( CG_FOUND 1 CACHE STRING "Set to 1 if CG is found, 0 otherwise")
ELSE (CG_INCLUDE_PATH)
SET( CG_FOUND 0 CACHE STRING "Set to 1 if CG is found, 0 otherwise")
ENDIF (CG_INCLUDE_PATH)
MARK_AS_ADVANCED( CG_FOUND )

@ -1,38 +0,0 @@
IF (WIN32)
FIND_PATH(DX9_INCLUDE_PATH d3d9.h
PATHS
"$ENV{DXSDK_DIR}/Include"
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Include"
DOC "The directory where D3D9.h resides")
FIND_PATH(DX10_INCLUDE_PATH D3D10.h
PATHS
"$ENV{DXSDK_DIR}/Include"
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Include"
DOC "The directory where D3D10.h resides")
FIND_LIBRARY(D3D10_LIBRARY d3d10.lib
PATHS
"$ENV{DXSDK_DIR}/Lib/x86"
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Lib/x86"
DOC "The directory where d3d10.lib resides")
FIND_LIBRARY(D3DX10_LIBRARY d3dx10.lib
PATHS
"$ENV{DXSDK_DIR}/Lib/x86"
"$ENV{PROGRAMFILES}/Microsoft DirectX SDK/Lib/x86"
DOC "The directory where d3dx10.lib resides")
SET(DX10_LIBRARIES ${D3D10_LIBRARY} ${D3DX10_LIBRARY})
ENDIF (WIN32)
IF (DX10_INCLUDE_PATH)
SET( DX10_FOUND 1 CACHE STRING "Set to 1 if CG is found, 0 otherwise")
ELSE (DX10_INCLUDE_PATH)
SET( DX10_FOUND 0 CACHE STRING "Set to 1 if CG is found, 0 otherwise")
ENDIF (DX10_INCLUDE_PATH)
MARK_AS_ADVANCED( DX10_FOUND )

@ -1,47 +0,0 @@
#
# Try to find GLEW library and include path.
# Once done this will define
#
# GLEW_FOUND
# GLEW_INCLUDE_PATH
# GLEW_LIBRARY
#
IF (WIN32)
FIND_PATH( GLEW_INCLUDE_PATH GL/glew.h
$ENV{PROGRAMFILES}/GLEW/include
${PROJECT_SOURCE_DIR}/src/nvgl/glew/include
DOC "The directory where GL/glew.h resides")
FIND_LIBRARY( GLEW_LIBRARY
NAMES glew GLEW glew32 glew32s
PATHS
$ENV{PROGRAMFILES}/GLEW/lib
${PROJECT_SOURCE_DIR}/src/nvgl/glew/bin
${PROJECT_SOURCE_DIR}/src/nvgl/glew/lib
DOC "The GLEW library")
ELSE (WIN32)
FIND_PATH( GLEW_INCLUDE_PATH GL/glew.h
/usr/include
/usr/local/include
/sw/include
/opt/local/include
DOC "The directory where GL/glew.h resides")
FIND_LIBRARY( GLEW_LIBRARY
NAMES GLEW glew
PATHS
/usr/lib64
/usr/lib
/usr/local/lib64
/usr/local/lib
/sw/lib
/opt/local/lib
DOC "The GLEW library")
ENDIF (WIN32)
IF (GLEW_INCLUDE_PATH)
SET( GLEW_FOUND 1 CACHE STRING "Set to 1 if GLEW is found, 0 otherwise")
ELSE (GLEW_INCLUDE_PATH)
SET( GLEW_FOUND 0 CACHE STRING "Set to 1 if GLEW is found, 0 otherwise")
ENDIF (GLEW_INCLUDE_PATH)
MARK_AS_ADVANCED( GLEW_FOUND )

@ -1,127 +0,0 @@
# - try to find glut library and include files
# GLUT_INCLUDE_DIR, where to find GL/glut.h, etc.
# GLUT_LIBRARIES, the libraries to link against
# GLUT_FOUND, If false, do not try to use GLUT.
# Also defined, but not for general use are:
# GLUT_glut_LIBRARY = the full path to the glut library.
# GLUT_Xmu_LIBRARY = the full path to the Xmu library.
# GLUT_Xi_LIBRARY = the full path to the Xi Library.
IF (WIN32)
IF(CYGWIN)
FIND_PATH( GLUT_INCLUDE_DIR GL/glut.h
/usr/include
)
FIND_LIBRARY( GLUT_glut_LIBRARY glut32
${OPENGL_LIBRARY_DIR}
/usr/lib
/usr/lib/w32api
/usr/local/lib
/usr/X11R6/lib
)
ELSE(CYGWIN)
# FIND_PATH( GLUT_INCLUDE_DIR GL/glut.h
# ${GLUT_ROOT_PATH}/include
# )
# FIND_LIBRARY( GLUT_glut_LIBRARY glut32
# ${GLUT_ROOT_PATH}/lib
# ${OPENGL_LIBRARY_DIR}
# )
FIND_PATH( GLUT_INCLUDE_DIR GL/glut.h
${GLUT_ROOT_PATH}/include
${PROJECT_SOURCE_DIR}/src/nvgl/glut/include
DOC "The directory where GL/glut.h resides")
FIND_LIBRARY( GLUT_glut_LIBRARY
NAMES glut GLUT glut32 glut32s
PATHS
${GLUT_ROOT_PATH}/lib
${PROJECT_SOURCE_DIR}/src/nvgl/glut/bin
${PROJECT_SOURCE_DIR}/src/nvgl/glut/lib
${OPENGL_LIBRARY_DIR}
DOC "The GLUT library")
ENDIF(CYGWIN)
ELSE (WIN32)
IF (APPLE)
# These values for Apple could probably do with improvement.
FIND_PATH( GLUT_INCLUDE_DIR glut.h
/System/Library/Frameworks/GLUT.framework/Versions/A/Headers
${OPENGL_LIBRARY_DIR}
)
SET(GLUT_glut_LIBRARY "-framework Glut" CACHE STRING "GLUT library for OSX")
SET(GLUT_cocoa_LIBRARY "-framework Cocoa" CACHE STRING "Cocoa framework for OSX")
ELSE (APPLE)
FIND_PATH( GLUT_INCLUDE_DIR GL/glut.h
/usr/include
/usr/include/GL
/usr/local/include
/usr/openwin/share/include
/usr/openwin/include
/usr/X11R6/include
/usr/include/X11
/opt/graphics/OpenGL/include
/opt/graphics/OpenGL/contrib/libglut
)
FIND_LIBRARY( GLUT_glut_LIBRARY glut
/usr/lib
/usr/local/lib
/usr/openwin/lib
/usr/X11R6/lib
)
FIND_LIBRARY( GLUT_Xi_LIBRARY Xi
/usr/lib
/usr/local/lib
/usr/openwin/lib
/usr/X11R6/lib
)
FIND_LIBRARY( GLUT_Xmu_LIBRARY Xmu
/usr/lib
/usr/local/lib
/usr/openwin/lib
/usr/X11R6/lib
)
ENDIF (APPLE)
ENDIF (WIN32)
SET( GLUT_FOUND "NO" )
IF(GLUT_INCLUDE_DIR)
IF(GLUT_glut_LIBRARY)
# Is -lXi and -lXmu required on all platforms that have it?
# If not, we need some way to figure out what platform we are on.
SET( GLUT_LIBRARIES
${GLUT_glut_LIBRARY}
${GLUT_Xmu_LIBRARY}
${GLUT_Xi_LIBRARY}
${GLUT_cocoa_LIBRARY}
)
SET( GLUT_FOUND "YES" )
#The following deprecated settings are for backwards compatibility with CMake1.4
SET (GLUT_LIBRARY ${GLUT_LIBRARIES})
SET (GLUT_INCLUDE_PATH ${GLUT_INCLUDE_DIR})
ENDIF(GLUT_glut_LIBRARY)
ENDIF(GLUT_INCLUDE_DIR)
MARK_AS_ADVANCED(
GLUT_INCLUDE_DIR
GLUT_glut_LIBRARY
GLUT_Xmu_LIBRARY
GLUT_Xi_LIBRARY
)

@ -1,67 +0,0 @@
IF (WIN32)
# Maya plugins can only be compiled with msvc
IF (MSVC)
FIND_PATH(MAYA_INCLUDE_PATH maya/MTypes.h
PATHS
"$ENV{PROGRAMFILES}/Autodesk/Maya8.5/include"
"$ENV{MAYA_LOCATION}/include"
DOC "The directory where MTypes.h resides")
# Find maya version!
FIND_LIBRARY(MAYA_FOUNDATION_LIBRARY Foundation
PATHS
"$ENV{PROGRAMFILES}/Autodesk/Maya8.5/lib"
"$ENV{MAYA_LOCATION}/lib"
DOC "The directory where Foundation.lib resides")
FIND_LIBRARY(MAYA_OPENMAYA_LIBRARY OpenMaya
PATHS
"$ENV{PROGRAMFILES}/Autodesk/Maya8.5/lib"
"$ENV{MAYA_LOCATION}/lib"
DOC "The directory where OpenMaya.lib resides")
FIND_LIBRARY(MAYA_OPENMAYAANIM_LIBRARY OpenMayaAnim
PATHS
"$ENV{PROGRAMFILES}/Autodesk/Maya8.5/lib"
"$ENV{MAYA_LOCATION}/lib"
DOC "The directory where OpenMayaAnim.lib resides")
SET(MAYA_LIBRARIES
${MAYA_FOUNDATION_LIBRARY}
${MAYA_OPENMAYA_LIBRARY}
${MAYA_OPENMAYAANIM_LIBRARY})
SET(MAYA_EXTENSION ".mll")
ENDIF (MSVC)
ELSE (WIN32)
# On linux, check gcc version.
# OSX and Linux
FIND_PATH(MAYA_INCLUDE_PATH maya/MTypes.h
PATHS
/usr/autodesk/maya/include
$ENV{MAYA_LOCATION}/include
DOC "The directory where MTypes.h resides")
# TODO
ENDIF (WIN32)
IF (MAYA_INCLUDE_PATH)
SET( MAYA_FOUND 1 CACHE STRING "Set to 1 if Maya is found, 0 otherwise")
ELSE (MAYA_INCLUDE_PATH)
SET( MAYA_FOUND 0 CACHE STRING "Set to 1 if Maya is found, 0 otherwise")
ENDIF (MAYA_INCLUDE_PATH)
MARK_AS_ADVANCED( MAYA_FOUND )

@ -1,79 +0,0 @@
#
# Try to find OpenEXR's libraries, and include path.
# Once done this will define:
#
# OPENEXR_FOUND = OpenEXR found.
# OPENEXR_INCLUDE_PATHS = OpenEXR include directories.
# OPENEXR_LIBRARIES = libraries that are needed to use OpenEXR.
#
INCLUDE(FindZLIB)
IF(ZLIB_FOUND)
SET(LIBRARY_PATHS
/usr/lib
/usr/local/lib
/sw/lib
/opt/local/lib
$ENV{PROGRAM_FILES}/OpenEXR/lib/static)
FIND_PATH(OPENEXR_INCLUDE_PATH ImfRgbaFile.h
PATH_SUFFIXES OpenEXR
/usr/include
/usr/local/include
/sw/include
/opt/local/include)
FIND_LIBRARY(OPENEXR_HALF_LIBRARY
NAMES Half
PATHS ${LIBRARY_PATHS})
FIND_LIBRARY(OPENEXR_IEX_LIBRARY
NAMES Iex
PATHS ${LIBRARY_PATHS})
FIND_LIBRARY(OPENEXR_IMATH_LIBRARY
NAMES Imath
PATHS ${LIBRARY_PATHS})
FIND_LIBRARY(OPENEXR_ILMIMF_LIBRARY
NAMES IlmImf
PATHS ${LIBRARY_PATHS})
FIND_LIBRARY(OPENEXR_ILMTHREAD_LIBRARY
NAMES IlmThread
PATHS ${LIBRARY_PATHS})
ENDIF(ZLIB_FOUND)
#MESSAGE(STATUS ${OPENEXR_IMATH_LIBRARY} ${OPENEXR_ILMIMF_LIBRARY} ${OPENEXR_IEX_LIBRARY} ${OPENEXR_HALF_LIBRARY} ${OPENEXR_ILMTHREAD_LIBRARY} ${ZLIB_LIBRARY})
IF (OPENEXR_INCLUDE_PATH AND OPENEXR_IMATH_LIBRARY AND OPENEXR_ILMIMF_LIBRARY AND OPENEXR_IEX_LIBRARY AND OPENEXR_HALF_LIBRARY)
SET(OPENEXR_FOUND TRUE)
SET(OPENEXR_INCLUDE_PATHS ${OPENEXR_INCLUDE_PATH} CACHE STRING "The include paths needed to use OpenEXR")
SET(OPENEXR_LIBRARIES ${OPENEXR_IMATH_LIBRARY} ${OPENEXR_ILMIMF_LIBRARY} ${OPENEXR_IEX_LIBRARY} ${OPENEXR_HALF_LIBRARY} ${ZLIB_LIBRARY} CACHE STRING "The libraries needed to use OpenEXR")
IF(OPENEXR_ILMTHREAD_LIBRARY)
SET(OPENEXR_LIBRARIES ${OPENEXR_LIBRARIES} ${OPENEXR_ILMTHREAD_LIBRARY})
ENDIF(OPENEXR_ILMTHREAD_LIBRARY)
ENDIF (OPENEXR_INCLUDE_PATH AND OPENEXR_IMATH_LIBRARY AND OPENEXR_ILMIMF_LIBRARY AND OPENEXR_IEX_LIBRARY AND OPENEXR_HALF_LIBRARY)
IF(OPENEXR_FOUND)
IF(NOT OPENEXR_FIND_QUIETLY)
MESSAGE(STATUS "Found OpenEXR: ${OPENEXR_ILMIMF_LIBRARY}")
ENDIF(NOT OPENEXR_FIND_QUIETLY)
ELSE(OPENEXR_FOUND)
IF(OPENEXR_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find OpenEXR library")
ENDIF(OPENEXR_FIND_REQUIRED)
ENDIF(OPENEXR_FOUND)
MARK_AS_ADVANCED(
OPENEXR_INCLUDE_PATHS
OPENEXR_LIBRARIES
OPENEXR_ILMIMF_LIBRARY
OPENEXR_IMATH_LIBRARY
OPENEXR_IEX_LIBRARY
OPENEXR_HALF_LIBRARY)

@ -1,35 +1,11 @@
INCLUDE(${NV_CMAKE_DIR}/DetermineProcessor.cmake)
# Set optimal options for gcc:
IF(CMAKE_COMPILER_IS_GNUCXX)
IF(NV_SYSTEM_PROCESSOR STREQUAL "i586")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=i586")
ENDIF(NV_SYSTEM_PROCESSOR STREQUAL "i586")
IF(NV_SYSTEM_PROCESSOR STREQUAL "i686")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=i686")
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpmath=sse -mtune=i686 -msse3")
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=pentium4")
ENDIF(NV_SYSTEM_PROCESSOR STREQUAL "i686")
IF(NV_SYSTEM_PROCESSOR STREQUAL "x86_64")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=athlon64")
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=athlon64 -msse3")
ENDIF(NV_SYSTEM_PROCESSOR STREQUAL "x86_64")
IF(NV_SYSTEM_PROCESSOR STREQUAL "powerpc")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcpu=powerpc -maltivec -mabi=altivec -mpowerpc-gfxopt")
# ibook G4:
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mcpu=7450 -mtune=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt")
ENDIF(NV_SYSTEM_PROCESSOR STREQUAL "powerpc")
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
ENDIF()
IF(MSVC)
# @@ Some of these might only be available in VC8.
# Code generation flags.
# SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /arch:SSE2 /fp:fast")
# SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:SSE2 /fp:fast")

25
configure vendored

@ -18,7 +18,7 @@ fi
help=false
build="Debug" # release
build="debug" # release
prefix=/usr/local
# Parse the args
@ -26,9 +26,8 @@ for i in "$@"
do
case $i in
--help ) help=true ;;
--debug ) build="Debug" ;;
--release ) build="Release" ;;
--prefix=* ) prefix="${i#--prefix=}" ;;
--debug ) build="debug" ;;
--release ) build="release" ;;
--prefix=* ) prefix="${i#--prefix=}" ;;
* ) echo "Unrecognised argument $i" ;;
esac
@ -51,9 +50,9 @@ fi
echo "-- Configuring nvidia-texture-tools "`cat VERSION`
mkdir -p ./build
cd ./build
$CMAKE .. -DCMAKE_BUILD_TYPE=$build -DCMAKE_INSTALL_PREFIX=$prefix -G "Unix Makefiles" || exit 1
mkdir -p ./build-$build
cd ./build-$build
$CMAKE .. -DNVTT_SHARED=0 -DCMAKE_BUILD_TYPE=$build -DCMAKE_INSTALL_PREFIX=$prefix -G "Unix Makefiles" || exit 1
cd ..
echo ""
@ -62,11 +61,15 @@ echo ""
cat > Makefile << EOF
all:
@make --no-print-directory -C build/
@+make --no-print-directory -C build-$build/
install:
@make install --no-print-directory -C build/
@+make install --no-print-directory -C build-$build/
package:
@+make package --no-print-directory -C build-$build/
test:
@+make test --no-print-directory -C build-$build/
clean:
@make clean --no-print-directory -C build/
@+make clean --no-print-directory -C build-$build/
distclean:
@rm -Rf build/
@rm -Rf build-$build/
EOF

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

@ -0,0 +1,95 @@
#include <stdio.h>
#include <stdlib.h>
typedef unsigned char uint8;
static int Mul8Bit(int a, int b)
{
int t = a * b + 128;
return (t + (t >> 8)) >> 8;
}
// this exactly matches the (fm*2 + to)/3
static inline int Lerp13_16bit(int fm, int to)
{
int t = fm * (2 * 0xAAAB) + to * 0xAAAB;
return t >> 17;
}
static inline int Lerp13(int fm, int to)
{
return (fm * 2 + to) / 3;
}
static void PrepareOptTable(uint8 * Table, const uint8 * expand, int size)
{
for (int i = 0; i < 256; i++)
{
float bestErr = 256;
for (int min = 0; min < size; min++)
{
for (int max = 0; max < size; max++)
{
int mine = expand[min];
int maxe = expand[max];
//if (maxe - mine < 32)
{
//printf("%d <-> %d\n", maxe + Mul8Bit(mine-maxe, 0x55), Lerp13(maxe, mine));
//int err = abs(Lerp13_16bit(mine, maxe) - i);
//int err = abs(maxe + Mul8Bit(mine-maxe, 0x55) - i);
float err = abs(Lerp13(maxe, mine) - i);
//err += 0.03f * abs(maxe - mine);
err += 0.03f * abs(max - min);
if (err < bestErr)
{
Table[i*2+0] = max;
Table[i*2+1] = min;
bestErr = err;
}
}
}
}
printf("%d: %f %d\n", i, bestErr, abs(Table[i*2+0] - Table[i*2+1]));
}
}
int main()
{
uint8 OMatch5[256*2];
uint8 OMatch6[256*2];
uint8 Expand5[32];
uint8 Expand6[64];
for (int i=0; i<32; i++)
Expand5[i] = (i<<3)|(i>>2);
for (int i=0; i<64; i++)
Expand6[i] = (i<<2)|(i>>4);
PrepareOptTable(OMatch5, Expand5, 32);
PrepareOptTable(OMatch6, Expand6, 64);
printf("const static uint8 OMatch5[256][2] = {\n");
for (int i = 0; i < 256; i++)
{
printf("\t{0x%.2X, 0x%.2X},\n", OMatch5[2*i+0], OMatch5[2*i+1]);
}
printf("}\n");
printf("const static uint8 OMatch6[256][2] = {\n");
for (int i = 0; i < 256; i++)
{
printf("\t{0x%.2X, 0x%.2X},\n", OMatch6[2*i+0], OMatch6[2*i+1]);
}
printf("}\n");
return 0;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 154 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 828 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 140 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 35 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 155 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 541 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 375 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 415 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 621 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 108 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 407 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 68 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 719 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 604 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 491 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 622 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 767 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 604 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 553 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 770 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 569 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 580 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 606 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 519 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 803 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 676 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 522 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 588 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 763 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 656 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 481 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 622 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 686 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 544 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 690 KiB

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 KiB

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save