Compare commits

...

913 Commits
2.0 ... master

Author SHA1 Message Date
Ignacio
aeddd65f81
Update README.md 2020-12-21 11:05:34 -08:00
Ignacio
4eafedd848
Update README.md 2020-12-21 10:52:45 -08:00
Ignacio
756e1da914
Update README.md 2020-12-18 23:24:46 -08:00
Ignacio
e2508fbb80
Update README.md 2020-12-18 23:14:12 -08:00
Ignacio
e393b6db04
Update README.md 2020-12-18 23:02:29 -08:00
Ignacio
2fdd22c2da
Update README.md 2020-12-18 21:40:20 -08:00
Ignacio
c209cb1bb9
Update README.md 2020-12-18 21:39:07 -08:00
Ignacio
70f2618dfb
Update README.md 2020-12-18 21:37:46 -08:00
Ignacio
248f84ca46
Merge pull request #331 from voyageur/tests_path
Fix data testsuite path
2020-09-07 10:27:39 -07:00
Bernard Cafarelli
4c95dc8716
Fix data testsuite path
Add separator between base path and set path if base path is set

Fixes #299
2020-09-07 14:45:14 +02:00
Ignacio
249d678b25
Merge pull request #330 from MaddTheSane/arm64
Better AARCH64/Arm64 support.
2020-08-23 23:44:26 -07:00
C.W. Betts
b700982b1f Have NV_CPU_ARM and NV_CPU_AARCH64 reference the same code on Darwin. 2020-08-24 00:42:58 -06:00
Ignacio Castano
b1a90f3601 Update version number. 2020-08-23 23:27:21 -07:00
Ignacio Castano
72dd3db723 Update changelog. 2020-08-23 23:27:09 -07:00
Ignacio Castano
4754e526ce Target AVX2 in all projects and configurations. 2020-08-23 23:24:25 -07:00
Ignacio Castano
f7e037d1c1 Fix build error. 2020-08-23 23:20:52 -07:00
Ignacio Castano
b4da3c68f0 Update version number. 2020-08-23 23:18:24 -07:00
Ignacio Castano
46d1179b17 Fix version number. 2020-08-23 22:55:58 -07:00
Ignacio Castano
e5cf10de0e Remove specialized fast compressor. 2020-08-23 22:55:49 -07:00
Ignacio
13121bf32e
Update README.md
Add badges.
2020-08-23 22:26:58 -07:00
Ignacio
9870cfbf90
Merge pull request #329 from MaddTheSane/patch-1
Update Half.cpp
2020-08-23 22:04:10 -07:00
Ignacio Castano
e4301b3df7 Merge branch 'master' of https://github.com/castano/nvidia-texture-tools 2020-08-23 21:58:56 -07:00
Ignacio Castano
831c8e6667 Upgrade ICBC to 1.05 2020-08-23 21:58:18 -07:00
C.W. Betts
3a8e89d6f6 Better AARCH64 support. 2020-08-23 18:55:14 -06:00
C.W. Betts
be5a305081
Update Half.cpp
Replace old(?) usage of NV_CC_GCC with NV_CC_GNUC
2020-08-23 18:03:02 -06:00
Ignacio
5932492d8a Add release build. 2020-08-23 16:02:06 -07:00
Ignacio
09164a5fd3 Cleanup configuration. 2020-08-23 15:59:57 -07:00
Ignacio
2ab73d8cd5 Fix release instructions. 2020-08-23 15:53:09 -07:00
Ignacio
a4712cff20 Remove unused code.
Remove jai-specific workaround.
Various cleanups.
2020-08-23 15:39:54 -07:00
Ignacio
93146ffc73 Update svn:ignore properties. 2020-08-23 15:26:09 -07:00
Ignacio
dd6b750942 Update release instructions. 2020-08-23 15:23:38 -07:00
Ignacio
b06d5aba59 Remove support for some external compressors. 2020-08-23 15:21:54 -07:00
Ignacio
9d93fccb37 Cleanup. 2020-08-23 15:20:42 -07:00
Ignacio
2b3ffac418 Add sublime and vscode projects. 2020-08-23 15:20:01 -07:00
Ignacio
7525d356a0 Update buildpkg script 2020-08-23 15:16:47 -07:00
Ignacio
cb21ee18a1 Remove unused dependencies. 2020-08-23 15:15:45 -07:00
Ignacio
e5be4a615f Remove unused scripts. 2020-08-23 15:14:55 -07:00
Ignacio
c4aefe530c Remove unused scripts. 2020-08-23 15:13:22 -07:00
Ignacio
a77953a306 Update copyright. 2020-08-23 14:47:27 -07:00
Ignacio
6b9a6abccb Fix github action 2020-08-23 14:46:54 -07:00
Ignacio
8dc9df25d7
Create build.yml 2020-08-23 14:17:31 -07:00
Ignacio
614a7a4b82
Update README.md
Update build instructions.
2020-08-23 13:57:17 -07:00
Ignacio
61935ffa08
Update README.md
Provide links for source path.
2020-08-23 13:54:25 -07:00
Ignacio
6f3d02deab
Merge pull request #328 from akb825/linux-fix-2
Linux build fixes.
2020-08-19 10:28:31 -07:00
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.
2020-08-16 21:26:37 -07:00
Ignacio
b4cf9bc3f6
Merge pull request #324 from tepGithub/master
Add some support for uncompressed textures for ktx
2020-07-28 10:24:19 -07:00
sindra
967278d579 Fix tab/whitespace 2 2020-07-28 10:16:25 -07:00
sindra
aa8514e65d Fix tab/whitespace 2020-07-28 10:15:34 -07:00
sindra
b4eb9c5972 Added some support for uncompressed texture for ktx 2020-07-28 10:07:16 -07:00
Ignacio
eb34681ce8
Merge pull request #308 from voroskoi/musl
Musl build fixes
2020-07-13 16:54:35 -07:00
Ignacio
aeb84b5ffa
Merge pull request #322 from leper/fix_va_list_vcpp
Fix build on VC++. Refs #309.
2020-07-13 16:17:19 -07:00
leper
d73335fb82 Fix build on VC++. Refs #309.
This was broken by 831d8e1a91.
2020-07-10 19:01:56 +02:00
Ignacio
1aa1b038e8
Merge pull request #309 from leper/aarch64
Fix build on AArch64. Fixes #298.
2020-07-09 17:14:13 -07:00
Ignacio Castano
26a56414c5 Do not include etcpack & rgetc in the build. 2020-07-07 09:56:04 -07:00
Ignacio Castano
8baac9b111 Fix mac build error. 2020-07-06 13:28:18 -07:00
Ignacio Castano
2bd1ed1ba7 Use AVX2 by default. 2020-07-06 11:13:05 -07:00
Ignacio Castano
8fb22e951e Fix error reported by #312. 2020-07-06 11:04:47 -07:00
Ignacio Castano
ea53e0b1ee Update vs2017 project files. 2020-07-06 10:33:17 -07:00
Ignacio Castano
721cc85da7 Remove old projects. 2020-07-06 10:31:30 -07:00
Ignacio Castano
446e4b4611 Remove unused dependencies. 2020-07-06 10:08:14 -07:00
Ignacio Castano
0be40976a2 Remove unused external dependencies. 2020-07-06 10:07:14 -07:00
Ignacio Castano
bf4799c9ac Fix build errors. 2020-07-06 10:00:04 -07:00
Ignacio Castano
bfd1a38a86 Updates for new icbc interface. 2020-07-05 23:09:46 -07:00
Ignacio Castano
ba3dbe32df KTX output fixes. 2020-07-05 23:09:29 -07:00
Ignacio Castano
7aebf0c251 ETC compression experiments. 2020-07-05 23:08:57 -07:00
Ignacio Castano
c87706f2a4 Remove unused files. 2020-07-05 23:08:22 -07:00
Ignacio Castano
e5b93bbfe8 Upgrade icbc 2020-07-05 23:07:21 -07:00
Ignacio Castano
d09dd24ce9 Remove unused files. 2020-07-05 23:06:48 -07:00
Ignacio Castano
7894e9e6f8 Upgrade rgbcx. 2020-07-05 23:05:50 -07:00
Ignacio Castano
07d9ab7860 Add goofy_tc. 2020-07-05 23:05:17 -07:00
Ignacio Castano
4ff7af50ca Upgrade CMP Core. 2020-07-05 23:05:07 -07:00
Ignacio
1e06539012
Create FUNDING.yml 2020-06-12 23:01:14 -07:00
Ignacio
fdfbfb2552 Update to latest icbc version. 2020-06-07 20:02:14 -07:00
Ignacio
0f98a936f8 Fix rgbe conversion routines thanks to Charles Bloom. http://cbloomrants.blogspot.com/2020/06/widespread-error-in-radiance-hdr-rgbe.html 2020-06-07 19:46:35 -07:00
Ignacio
3e034d2de1
Merge pull request #314 from r-a-sattarov/master
Added compiler check for support of C++11 standard
2020-04-26 09:39:57 -07:00
r-a-sattarov
0297a00ebc Added compiler check for support of C ++ 11 standard 2020-04-26 15:23:47 +03:00
Ignacio
8e64503338 Update vc projects.
Disable RGETC for now.
2020-04-13 18:44:57 -07:00
Ignacio
a671567596 Update nvtt to use icbc library. 2020-04-13 18:01:33 -07:00
Ignacio
daff42781d Work toward packaging dxt1 compressor as a single header library. 2020-04-05 12:22:25 -07:00
Ignacio
1a6e70c9a0 Cleanup. Assume static linking. 2020-04-05 12:20:35 -07:00
Ignacio
860b639492 Remove unused code. 2020-04-04 10:40:58 -07:00
Ignacio
52e065d66a Update benchmark with rgbcx. 2020-04-04 10:21:00 -07:00
Ignacio
0b15c58692 Fix more build errors. 2020-04-04 10:18:58 -07:00
Ignacio
504ecc8e10 Fix build errors. 2020-04-04 10:17:01 -07:00
Ignacio
f68d894b8b Tweak endpoint refinement. 2020-03-30 16:35:17 -07:00
Ignacio
5eac5a4859 Experiment with endpoint refinement. Add Rich's encoder, not functional yet. 2020-03-30 10:13:59 -07:00
Ignacio
ca3871a28c More cleanups! 2020-03-30 10:12:29 -07:00
Ignacio
adce1a00da More cleanups. Assume static linking. 2020-03-30 10:09:31 -07:00
Ignacio
7f9c87713a Minor cleanups in nvmath. 2020-03-30 10:07:15 -07:00
Ignacio
4f0ecc4506 Add defer helper. 2020-03-30 10:06:10 -07:00
Ignacio
e5740ccb32 Add Rich's improved tie breaking change. 2020-03-30 10:04:35 -07:00
Ignacio
9a16bebf8f Add external libs for comparisons and benchmarks. 2020-03-23 10:07:38 -07:00
Ignacio
4a33d1ac75 Add baboon image to waterloo image set. 2020-03-23 10:05:31 -07:00
Ignacio
9009962054 Minor cleanups and some experiments. 2020-03-23 10:03:19 -07:00
Ignacio
97723db794 Rename internal squish library to nvsquish to avoid conflicts. 2020-03-23 10:02:07 -07:00
Ignacio
4d47c0d2fc Comment out debug code. 2020-03-23 10:01:12 -07:00
Ignacio
5d7a761d6b Handle more DDS formats in Surface::load(). 2020-03-23 10:00:40 -07:00
Ignacio
a3ae50b50f Update stb_image. 2020-03-23 09:59:44 -07:00
Ignacio
6dd3687be1 Minor cleanup. 2020-03-23 09:58:56 -07:00
Ignacio
3a99af11d7 Fix initialization of PVR texture header. 2020-03-23 09:58:19 -07:00
Ignacio
e5b763b075 Minor fixes. 2020-03-23 09:54:09 -07:00
Ignacio
c8a6e2c6cc Update SDK version. 2020-03-23 09:50:11 -07:00
Ignacio
9e36d6747b Update stb libraries. 2020-03-23 09:49:15 -07:00
leper
831d8e1a91 Fix build on AArch64. Fixes #298. 2020-03-16 21:08:18 +01:00
VÖRÖSKŐI András
99bcaf719c Use isnan() instead of isnanf() on linux
isnanf() is deprecated since C99
2020-02-20 11:05:44 +01:00
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.
2020-02-20 10:10:17 +01:00
Ignacio
b45560cfc4
Merge pull request #292 from leper/clang_linking
Fix linking with Clang and clean up some linking directive
2019-11-23 16:10:19 -08:00
Ignacio
d14b4df347
Merge pull request #304 from r-a-sattarov/master
Added support for MCST Elbrus 2000 (e2k) architecture
2019-11-23 16:03:39 -08:00
r-a-sattarov
c621de8d2b E2K: added initial support for MCST Elbrus 2000 2019-11-23 16:40:53 +03:00
r-a-sattarov
b764700527 poshlib: added support for MCST Elbrus 2000 (e2k) 2019-11-23 16:22:56 +03:00
Ignacio
a131e4c6b0
Merge pull request #301 from Starnick/master
Updated C-API to expose some functionality present in the C++ API
2019-09-08 17:25:30 -07:00
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
2019-09-06 17:54:40 -04:00
Ignacio
e872fc2850
Merge pull request #300 from edowson/master
Enable CUDA support.
2019-08-30 10:08:13 -07:00
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>
2019-08-19 03:22:00 +04:00
Ignacio
662d223626
Merge pull request #295 from mitko0003/master
Minor fix to ATOC normalization.
2019-02-15 08:31:45 -08:00
Димитър Трендафилов
d891d044e7
Minor fix to ATOC normalization. 2019-02-15 15:06:29 +02:00
Ignacio
84595a62f2 Add helper methods for jai bindings. 2019-02-07 15:39:32 -08:00
Ignacio
29493d365e Add Visual Studio 2017 projects. 2019-01-31 18:10:14 -08:00
Ignacio
c591c5f8b4 Compute spherical harmonics from cube maps. Work in progress. 2019-01-31 18:06:02 -08:00
leper
2ac75fc932 Remove duplicate link instruction. 2019-01-09 00:55:49 +01:00
leper
542711f862 Link with -fPIC when using Clang.
Remove the need for a few workarounds by handling this in just one place.
2019-01-09 00:55:19 +01:00
Ignacio
7c68e09d77 Fix ATOC overflow error on large textures. Merge fix from The Witness. 2018-10-29 12:52:00 -07:00
Ignacio
a9a6f6968e Fix minor warnings.
Add output directories to ignore list.
2018-10-29 12:37:16 -07:00
Ignacio
8a076c8e8d
Merge pull request #289 from Starnick/master
Updated C-API
2018-10-27 10:51:11 -07:00
Starnick
40f395ef19 spaces->tabs consistency 2018-10-18 20:34:07 -04:00
Starnick
0f65d60602 Updated C-API to support 2D array textures + added missing enum values from nvtt.h 2018-10-18 20:29:57 -04:00
Ignacio
d2b514a3c1 Comment out hack. 2018-10-10 16:30:25 -07:00
Ignacio
a1c54bc7f7 Add fast sRGB conversion. 2018-10-10 14:04:13 -07:00
Ignacio
bc60e8c154 Use our own parallel for by default to avoid dependencies. 2018-10-09 18:11:21 -07:00
Ignacio
1722b00802 FloatImage does not need a virtual dtor. 2018-10-09 18:10:25 -07:00
Ignacio
95f1f60490 Enable stb libraries for image loading. This was disabled by error. 2018-10-09 18:01:15 -07:00
Ignacio
5c70ffef0b
Merge pull request #287 from madscientist159/master
Fix build on OpenPOWER (ppc64le) platforms
2018-08-19 14:04:22 -07:00
Ignacio
005b2518c9 Install nvtt_wrapper.h. Fix issue #288. 2018-08-19 14:02:34 -07:00
Timothy Pearson
95454e9024 Fix build on OpenPOWER (ppc64le) platforms 2018-08-15 21:53:49 -05:00
Ignacio
95bd6193cc Fix bug 281. 2018-05-29 23:28:08 -07:00
Ignacio
6ea078f196
Merge pull request #280 from MonoGame/ignore
Added gitignore to hide stuff that shouldn't be checked in.
2018-02-24 12:04:38 -08:00
Ignacio
e52a2f1a02
Merge pull request #279 from MonoGame/vc12
Fixed some missing files in the vc12 project.
2018-02-24 12:03:51 -08:00
Tom Spilman
6cb1821bf1 Added gitignore to hide stuff that shouldn't be checked in. 2018-02-23 19:59:21 -06:00
Tom Spilman
1a78eae8f6 Fixed some missing files in the vc12 project. 2018-02-23 19:56:37 -06:00
Ignacio
2c276f64d7
Merge pull request #276 from StefanBruens/fix_memalign_linux
Fix compilation on Linux - missing include, semicolon
2018-02-06 16:32:27 -08:00
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>
2018-02-06 08:38:37 +01:00
Ignacio
9489aed825 Merge changes from The Witness. 2018-02-05 18:55:07 -08:00
Ignacio
2075d740c9
Merge pull request #274 from StefanBruens/fix_build_errors
Fix some build errors
2018-02-05 18:30:58 -08:00
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>
2018-02-02 19:46:58 +01:00
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
2018-02-02 19:46:54 +01:00
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>
2018-02-02 19:45:18 +01:00
Ignacio
8e8b3b82e1
Merge pull request #273 from wsmind/master
Fix .hdr images being loaded as LDR before compression
2018-01-28 12:06:21 -08:00
Remi Papillie
b03d5178fc Fix .hdr images being loaded as LDR before compression 2018-01-28 20:18:13 +01:00
Ignacio
befe79d103 Merge changes from thekla-atlas. 2017-12-15 11:39:21 -08:00
Ignacio
182a326e1c
Merge pull request #271 from Chainsawkitten/patch-1
Update file paths in readme
2017-11-15 16:45:18 -08:00
Albin Bernhardsson
133b84d536
Update file paths in readme
There is no src/nvimage/nvtt folder.
2017-11-08 22:49:11 +01:00
Ignacio
6816128f80 Add dataset from lightmap compression article. 2017-09-28 22:32:59 -07:00
Ignacio
e442d6d390 Remove incorrect assert. Fixes issue #261. 2017-09-04 12:34:00 -07:00
Ignacio
ed735ac2cb Fix alpha coverage subsampling. Fixes issue #266. 2017-09-04 12:25:22 -07:00
Ignacio
5f6424778e Update changelog 2017-08-23 11:05:30 -07:00
Ignacio
132cf14623 Bump version number 2017-08-23 11:02:09 -07:00
Ignacio
8d333f2a4f Merge pull request #264 from justinmeiners/master
added noalpha option to assemble and fixed RGB write
2017-06-28 15:06:12 -07:00
Justin Meiners
d47de35893 added noalpha option to assemble and fixed RGB write 2017-06-28 15:53:50 -06:00
Ignacio
4fb0070b7e Do not use undeclared format. 2017-06-28 11:26:18 -07:00
Ignacio
fa03dfc291 Add option to control prefered swizzle. 2017-06-28 11:19:47 -07:00
Ignacio
923b57db45 Merge pull request #255 from AMDmi3/patch-3
Use libexecinfo on FreeBSD as well
2017-06-06 17:58:17 -07:00
Ignacio
ef30f69c9d Merge pull request #256 from AMDmi3/patch-4
Use HW_NCPU on FreeBSD as well
2017-06-06 17:57:50 -07:00
Ignacio
7849ee9e71 Merge pull request #260 from leper/master
Add virtual destructor to TaskDispatcher.
2017-06-06 17:57:01 -07:00
Ignacio
0608489ec4 Merge pull request #262 from kencooke/master
Fast implementations of toLinear() and toGamma() for default gamma=2.2
2017-06-06 17:56:24 -07:00
Ken Cooke
01597842fe Update CMakeLists.txt and vc8/9/10 projects 2017-06-04 11:10:15 -07:00
Ken Cooke
96b73af196 Fast implementations of toLinear() and toGamma() for default gamma=2.2 2017-06-01 13:44:28 -07:00
leper
78054e977b Add virtual destructor to TaskDispatcher.
This removes a GCC warning about that missing while virtual functions exist.
2017-05-04 03:22:19 +02:00
Dmitry Marakasov
a64cc24169 Use HW_NCPU on FreeBSD as well 2017-02-16 18:21:39 +04:00
Dmitry Marakasov
6b24b1f45c Use libexecinfo on FreeBSD as well 2017-02-16 18:20:07 +04:00
Ignacio
e85d851cd9 Do not compile etcpack. Only used for reference. 2017-02-15 11:12:27 -08:00
Ignacio
91fe4d37d6 Enable c++1x the official way. 2017-02-15 11:11:44 -08:00
Ignacio
1762334a9f Fix buildpkg for osx. 2017-02-15 11:10:43 -08:00
Ignacio
d7612a3b67 Add some external dependencies. 2017-02-08 11:42:25 -08:00
Ignacio
1004d5d5b5 Merge pull request #252 from lunkhound/fix-normal-maps
fix a bug where created normal maps were not packed prior to compression
2016-12-26 23:19:17 -08:00
Lunkhound
0535ab3414 fix a bug where created normal maps were not packed prior to compression 2016-12-26 12:34:06 -08:00
Ignacio
cec8e7159a Merge pull request #247 from Lectem/patch-2
Fix compression for non multiple of 4 texture size
2016-10-19 12:18:36 -07:00
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
2016-10-19 17:47:00 +02:00
Ignacio
6fb57d3478 Fix order of kaiser parameters. 2016-10-05 11:14:11 -07:00
Ignacio
fa6ebda53f Cleanups for 2.1.0 release. 2016-09-19 12:53:33 -07:00
Ignacio
383331bb42 Fix issue #240. 2016-09-19 11:29:40 -07:00
Ignacio
1a75484520 Minor fixes. 2016-09-19 11:20:25 -07:00
Ignacio
a11a6739c2 Fix comments. Minor fixes. 2016-09-19 11:12:19 -07:00
Ignacio
94e0ba9ec7 Merge pull request #245 from Lectem/patch-1
Fix build on VC2015 (missing typedefs)
2016-09-19 10:57:25 -07:00
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.
2016-09-19 10:28:03 +02:00
Ignacio
d41c7ac33a Merge pull request #243 from fshp/master
Fix CMakeLists after rename license and readme files
2016-09-14 11:37:41 -07:00
Maxim Moseychuk
396b6153af
Fix CMakeLists after rename license and readme files
Additions to 831ebec475
2016-09-14 13:18:36 +03:00
Ignacio
831ebec475 Update readme files. 2016-08-16 12:43:17 -07:00
Ignacio
b0afc82d7d Minor osx fixes.
Remove FindCUDA and use cmake version instead.
2016-08-16 12:31:31 -07:00
Ignacio
8659d3fb4a Merge pull request #241 from krytarowski/netbsd-1
Add basic NetBSD support
2016-07-30 09:01:25 -07:00
Kamil Rytarowski
3c4ccd41fa Add basic NetBSD support 2016-07-30 11:49:33 +02:00
Ignacio
475c66d2cc Merge pull request #239 from madscientist159/master
Fix remaining issues on PPC64EL
2016-07-12 00:57:05 -07:00
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>
2016-07-12 06:04:04 +00:00
Ignacio
b549e862b0 Merge pull request #238 from madscientist159/master
Fix PPC64LE builds
2016-06-29 17:04:44 -07:00
Timothy Pearson
203eda1d47 Fix build on PPC64LE
Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
2016-06-26 20:09:39 -05:00
Timothy Pearson
47b06d3255 Fix build failure due to PPM save incorrect data types
Signed-off-by: Timothy Pearson <tpearson@raptorengineering.com>
2016-06-26 20:02:28 -05:00
Ignacio
e965a668a3 Merge pull request #237 from sanderd17/patch-1
Fix compilation on GCC 6
2016-06-20 12:36:57 -07:00
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
2016-06-12 15:09:19 +02:00
Ignacio
875a78a124 Merge pull request #236 from mpersano/master
Add support for compressing texture arrays.
2016-02-29 12:50:39 -08:00
mpersano
46e5c6a8ee Fix nvassemble command-line options parsing. 2016-02-28 08:17:35 -03:00
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.
2016-02-28 08:05:59 -03:00
Ignacio
49677da371 Remove executable property. 2016-02-22 11:54:43 -08:00
Ignacio
3850b22f7f Merge pull request #235 from mpersano/master
Support assembling texture arrays.
2016-02-11 15:21:54 -08:00
mpersano
db8fc561c3 Support assembling texture arrays. 2016-02-11 18:43:01 -02:00
Ignacio
9b79638f79 Disable test code from nvdecompress. Update vc12 projects and fix vc12 build. Fixes bug #232. 2015-12-11 12:15:22 -08:00
Ignacio
7596650a2d Be more clear that Qt4 is not used. From cfcohen. 2015-12-05 15:23:00 -08:00
Ignacio
308050923b Integrate changes from cfcohen. 2015-12-05 15:19:59 -08:00
Ignacio
9d6c7d6a69 Integrate more changes from cfcohen. 2015-12-05 15:16:14 -08:00
Ignacio
a20044bccc Integrate changes from cfcohen to supress warning. 2015-12-05 15:09:57 -08:00
Ignacio
268e6abd65 Integrate cfcohen changes to fix linker problems with gcc. 2015-12-05 15:06:37 -08:00
Ignacio
87ca69bd14 Do not output messages for disabled libraries. 2015-12-05 14:58:05 -08:00
Ignacio
63d29a508e Fix compiler warning. 2015-12-05 14:56:36 -08:00
Ignacio
e9a8630a3f Increase array size to supress compiler warning. 2015-12-05 14:50:52 -08:00
Ignacio
c0ad0f4d31 Merge changes from The Witness. 2015-10-28 23:53:08 -07:00
Ignacio Castaño
a382ea5b21 Fix compiler warning. 2015-09-02 12:25:47 -07:00
Ignacio Castaño
26723de502 Fix memory leak reported by Sylvain Rochette in issue #229. 2015-08-21 21:53:16 -07:00
Ignacio
58617584d4 Apply patch provided in issue #224. Add support for ARM64. 2015-07-20 23:47:01 +02:00
Ignacio
4ef408b591 Remove debug code. 2015-07-20 14:32:16 +02:00
Ignacio
592c8b8b0a Merge pull request #225 from Skylark13/master
Fix compilation on VS2013 (non-CUDA)
2015-07-20 13:15:55 +02:00
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
2015-07-19 14:08:01 -04:00
Ignacio
d32f0e0173 Merge pull request #223 from cmdrf/no-include-library-h
Do not include Library.h
2015-06-12 10:27:02 -07:00
Ignacio
701f8224dc Merge pull request #222 from cmdrf/gccforeach
Update NV_FOREACH for C++11
2015-06-12 10:26:25 -07:00
cmdrf
7b031aa4bf Do not include removed Library.h 2015-06-12 14:00:37 +02:00
cmdrf
d01d72f8e7 Update NV_FOREACH for C++11 2015-06-12 12:38:44 +02:00
Ignacio
0d205015ae Merge pull request #221 from cmdrf/snprintf-vs2015
Do not redefine snprintf on VS2015
2015-06-10 10:51:07 -07:00
Ignacio
7aa0390f32 Merge pull request #220 from cmdrf/cmakecuda
Fix CMake CUDA introspection
2015-06-10 10:49:35 -07:00
Ignacio
68e6cbdd40 Merge pull request #219 from cmdrf/gcclinkorder
Fix Link Order for GCC in CMake
2015-06-10 10:48:46 -07:00
cmdrf
fa062aa298 Do not redefine snprintf on VS2015 2015-06-10 18:46:26 +02:00
cmdrf
205f492e2e Fix CMake CUDA introspection 2015-06-10 18:14:12 +02:00
cmdrf
899a99a106 Fix link order for Linux 2015-06-10 17:59:57 +02:00
cmdrf
766edcb1a6 Fix more link order for Linux 2015-06-10 17:59:56 +02:00
Ignacio
b37ca4498d Merge pull request #217 from pzychotic/master
Fixed compiler flag being set on wrong target.
2015-04-21 15:49:59 -07:00
Thomas Roß
9ad63e7f3a Fixed compiler flag being set on wrong target. 2015-04-21 22:18:25 +02:00
Ignacio
81336cc3e9 Remove unnecessary files. 2015-03-25 12:36:16 -07:00
Ignacio
e9d44813d2 Merge pull request #216 from esok/master
Added support for gcc and c++11 features.
2015-03-24 17:08:37 -07:00
Ignacio
d4fbfd0ff4 Add project notes. 2015-03-24 12:32:27 -07:00
Ignacio
4c7ff58885 Update vc12 projects 2015-03-24 12:31:22 -07:00
Ignacio
a083337473 Merge changes from The Witness. 2015-03-24 12:14:49 -07:00
esok
6bc3224fe7 Added support for gcc and c++11 features. 2015-03-23 22:05:33 -04:00
castano
7e2a9d1adb osx fixes. Fix issue 211. 2014-12-02 20:23:21 +00:00
castano
2d6fc0e304 DXT1 compressor tweaks. 2014-12-02 05:43:13 +00:00
castano
d019cd7080 Merge changes from the witness. 2014-11-04 17:49:29 +00:00
castano@gmail.com
4cb60cc5ba Fix vc12 build. 2014-09-23 17:49:18 +00:00
castano@gmail.com
9722101114 Cleanup vc12 project. 2014-09-23 17:44:36 +00:00
castano@gmail.com
3f0bffaadf Add vc12 solution. 2014-09-23 17:39:36 +00:00
castano
6e69560969 Tag dll and binaries with 32/64 suffix. 2014-07-01 18:10:28 +00:00
castano
8f4ebf1d93 Remove missing project. 2014-07-01 17:27:46 +00:00
castano
132443013a Minor updates to C# bindings. Work in progress. 2014-06-11 21:31:47 +00:00
castano
ac87eefa6d Apply patch to update C# wraper. Fixes issue 184. 2014-06-11 21:02:04 +00:00
castano
f705b2eaa1 Fixes issue 93. 2014-06-11 19:46:17 +00:00
castano
6ade0e27b7 Fixes issue 202. 2014-05-21 18:09:47 +00:00
castano
7e74261f92 Fixes issue 204. 2014-05-21 17:47:06 +00:00
castano
57298c71c8 Fix issue 194. 2014-05-21 17:23:05 +00:00
castano
b06a6f46a5 Fixes issue 207. 2014-04-18 16:25:24 +00:00
castano
63d6036e3a Fix issue 206. 2014-04-03 22:10:12 +00:00
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.
2013-12-07 02:17:08 +00:00
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.
2013-12-05 02:13:17 +00:00
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.
2013-10-25 17:30:55 +00:00
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). 2013-10-16 21:18:16 +00:00
castano@gmail.com
57b99a1595 Apply CubeSurface fold/unfold patch. Fixes issue 199. 2013-09-04 01:10:52 +00:00
castano@gmail.com
b2b367ef5f Fix xyzToCieLab bug and add CIE Lab DeltaE 1994 color differencing.
Fixes issue 197.
Fixes issue 198.
2013-09-04 01:08:39 +00:00
castano@gmail.com
022944e49b Apply patch to fix issue 192. 2013-07-20 00:08:06 +00:00
castano@gmail.com
27024253ce Handle 3d textures in nvcompress. 2013-07-09 17:16:41 +00:00
castano
22bc0b949d Fix assert. Fixes issue 190. 2013-06-25 17:03:08 +00:00
castano
ac0759efc8 Update cmake file. Fixes issue 189. 2013-06-12 05:57:08 +00:00
castano@gmail.com
94d0635285 Merge changes from the Witness. 2013-06-07 17:53:55 +00:00
castano
634229a842 Fix issue 182. 2013-02-05 18:38:39 +00:00
castano
eb5556548d Fix issue 186. Confirmed it works on gcc and clang. 2013-02-05 18:35:38 +00:00
castano
14faa8e564 Fix linux/osx compiler errors. Fixes issue 168. 2013-02-05 07:35:15 +00:00
castano
2f12bfdb41 Fix issue 158. 2013-02-05 07:17:25 +00:00
castano
358bd0296e Fix issue 181. 2013-02-01 23:19:58 +00:00
castano
aa6cd0d2e5 Fix alpha detection code. Fixes issue 183. Thanks rocatis! 2013-01-29 20:37:15 +00:00
castano
83bdcb541c OpenBSD fixes. Fixes issue 176. 2012-09-11 16:41:02 +00:00
castano
1d8d067caf Fix build under OSX with clang. Fixes issue 180. 2012-09-11 16:22:09 +00:00
castano
15f5e19d40 Add missing semicolon. Fixes issue 179. 2012-09-05 04:06:37 +00:00
castano
63897b3ecc Integrate 3D texture fixes from Ben Goldstein @ Nihilistic. 2012-08-28 17:22:37 +00:00
castano
ac3f2d1794 Misc changes. 2012-08-28 16:44:23 +00:00
castano
bff3dab505 Fix errors. 2012-07-20 16:36:20 +00:00
castano
04bdc76749 Merge changes from The Witness. 2012-07-20 16:32:26 +00:00
castano
3b4fcd0369 Merge changes from The Witness. 2012-07-20 16:19:03 +00:00
castano
fea97461c5 Merge changes from The Witness. 2012-07-20 16:17:28 +00:00
castano
897cc78397 Port fix from 2.0 to trunk. Problem discovered thanks to Jern-Kuan. 2012-07-20 16:10:25 +00:00
castano
0eb7c3eb71 Integrate skylight model. Work in progress. 2012-05-22 18:47:38 +00:00
castano
20c5078e93 Fix tabs. 2012-05-03 17:12:49 +00:00
castano
c784e03be5 Try to increase robustness of thread pool. 2012-05-03 17:04:53 +00:00
castano
803301ea89 Add luma test. 2012-04-30 23:04:05 +00:00
castano
fa4ba97f6d Merge changes from the witness.
Fix parallel cluster fit compressor.
Luma compression experiment.
2012-04-30 23:03:44 +00:00
castano
b130487c2a Merge changes from the witness. 2012-04-30 23:03:00 +00:00
castano
8ff802dac1 Merge changes from the witness. 2012-04-30 23:02:46 +00:00
castano
69e8641db5 Merge changes from the witness. 2012-04-30 23:02:23 +00:00
castano
d5a3c1d3a7 Minor cleanups to testsuite output. 2012-03-09 07:44:13 +00:00
castano
79360e6501 Fix msvc build. 2012-03-09 07:08:16 +00:00
castano
547c59e52f Update project file. 2012-03-09 07:07:50 +00:00
castano
5473a89132 Updated vc10 projects thanks to Jern-Kuan Leong @ nvidia. 2012-03-09 06:47:51 +00:00
castano
dca493b6c4 clang/osx lion fix. 2012-03-01 03:50:38 +00:00
castano
b6b47ff254 Fix pedantic warning. 2012-03-01 03:50:07 +00:00
castano
095737d863 Linux build fix from Matthaus. 2012-03-01 03:48:34 +00:00
castano
9609d1e2fd Darwin/Lion fixes.
Integrate Linux and Unicode fixes from Matthaus.
2012-03-01 03:48:05 +00:00
castano
d36f68fd66 Update vc10 projects. 2012-02-23 07:41:43 +00:00
castano
d252888850 Add vc10 project. 2012-02-21 23:55:25 +00:00
castano
21af952fec osx fixes. Update cmake files. 2012-02-14 18:00:47 +00:00
castano
778bdec4ba Update project files. 2012-02-14 16:45:55 +00:00
castano
f1c943cd57 Merge changes from The Witness. 2012-02-14 16:37:15 +00:00
castano
1248743859 Merge changes from The Witness. 2012-02-14 16:35:42 +00:00
castano
fa468b04ab Merge changes from The Witness. 2012-02-14 16:31:25 +00:00
castano
06c170b41b Merge changes from The Witness. 2012-02-14 16:16:27 +00:00
castano
cb6c18efa4 Add info about Valve's texture format. 2012-02-14 16:15:20 +00:00
castano
d44a65c7b7 Fix unicode builds. 2012-02-03 16:23:52 +00:00
castano
d08c9e61e3 Fix merge error. 2012-02-02 16:21:48 +00:00
castano
8922ab86d6 Fix msvc build. Fixes issue 171.
Improve sse perf.
Fix rmse computation in nvimgdiff.
2012-01-12 16:54:10 +00:00
castano
6d843c78cf HDR encoding tests. 2012-01-04 02:25:28 +00:00
castano
e46f48f0a3 Better stack trace parser for OSX. 2012-01-04 02:24:30 +00:00
castano
f2d90ee844 Fix errors in new cluster fit compressor. 2012-01-02 08:49:13 +00:00
castano@gmail.com
23bfc1b514 Fix errors and enable new cluster fit compressor. 2012-01-01 21:29:27 +00:00
castano
035997bc2e Fix cube map processing bug reported by Cedric Perthuis. 2011-12-12 18:05:04 +00:00
castano
086bf0343c Minor opt. 2011-11-11 02:19:28 +00:00
castano
97f17dc6d8 Update posh. 2011-11-11 02:19:07 +00:00
castano
50a5d5967b Update project. 2011-11-11 02:17:52 +00:00
castano
78d48e62a9 Merge changes from The Witness. 2011-11-11 02:02:58 +00:00
castano
2e9afac689 Add tone mapping operators. 2011-11-11 00:48:22 +00:00
castano@gmail.com
fa0800a24a Some bug fixes. 2011-10-12 00:01:58 +00:00
castano
0b3959e1a1 Linux fixes. Thanks to Rico Tzschichholz. 2011-10-11 22:22:29 +00:00
castano
e98d795d2b More header optimizations. 2011-10-11 18:52:24 +00:00
castano
d11d7a5f38 seamless cubemap filtering. 2011-10-11 06:40:40 +00:00
castano
2ec37026be Merge changes from the witness. 2011-10-10 20:24:12 +00:00
castano
94401919b8 Add some inline files to reduce amount of code parsed. 2011-10-10 19:35:21 +00:00
castano
cbf4b2e3bf Some debugging. 2011-10-04 06:10:34 +00:00
castano
d8aec20022 Add cubemap tests. 2011-10-04 06:06:38 +00:00
castano
e462e3ef58 build nvthread properly 2011-10-04 06:09:50 +00:00
castano
9e7651e2d5 Work in progress. 2011-10-04 01:33:31 +00:00
castano
78fa1e785d Fixes and optimizations. 2011-10-01 02:07:32 +00:00
castano
149a50a26f Filtering optimizations. 2011-09-30 17:21:08 +00:00
castano
18b3f8025e Add test. 2011-09-30 16:36:35 +00:00
castano
eb10483faf Fix bugs. In progress cube map loading. 2011-09-30 01:52:27 +00:00
castano
dc13d9e9d2 Add support for float10 and float11 formats. Not tested. 2011-09-29 23:14:18 +00:00
castano
676a0b2908 work in progress. 2011-09-29 00:58:47 +00:00
castano
9de43e7757 Fix build errors/warnings. 2011-09-28 22:02:46 +00:00
castano
f0d9497e1f Add missing changes. 2011-09-28 19:54:05 +00:00
castano
d87b7edd5f RGBE conversion fixes. 2011-09-28 19:53:02 +00:00
castano
e15aa7a9bf Remove RGBE compressor. Implement as a color transform. 2011-09-28 18:44:18 +00:00
castano
2e96567459 Fix project. 2011-09-28 16:49:31 +00:00
castano
8e586ca693 Rename files. 2011-09-28 16:46:01 +00:00
castano
03c3fa42a8 Cosine power filter. A bit of renaming. 2011-09-28 16:40:59 +00:00
castano
dbdf9b6398 Update project. 2011-09-28 01:48:33 +00:00
castano
fcd296cd81 Merge changes from the witness. 2011-09-28 01:45:08 +00:00
castano
95811dfdff Cleanups. 2011-09-27 23:05:46 +00:00
castano
91e6bbe5c3 Add convolution method to TexImage. Fixes issue 166. 2011-09-27 18:41:02 +00:00
castano
8c65e4c62d Do not depend on external int limits. 2011-09-27 18:25:39 +00:00
castano
2364f539eb Porting parallel stuff to unix. 2011-09-27 18:12:32 +00:00
castano
5081360073 Add missing file. 2011-09-27 17:51:13 +00:00
castano
3c0ab2d3f3 Merge changes from the witness. 2011-09-27 17:48:46 +00:00
castano
9c0658edca Fixes. 2011-09-27 17:29:50 +00:00
castano
86b43e55c1 cubemap support, work in progress. 2011-09-27 17:28:01 +00:00
castano
0b05255f90 Add missing files to project. 2011-09-27 16:37:53 +00:00
castano
17e01ed240 Fix errors, warnings. 2011-09-27 16:37:41 +00:00
castano
af9ba8ae90 Add support for 3D texture. Integrate patch provided in issue 28 plus some additional changes. 2011-09-27 05:17:01 +00:00
castano
4906642ac3 Revert Library.*, needed for CUDA stuff. 2011-09-26 05:33:53 +00:00
castano
b68d428492 Accumulate filter sums using doubles to avoid unsymmetries. Fixes issue 167. 2011-09-14 17:51:09 +00:00
castano
02709e1699 Set DDPF_FOURCC flag when using DX10 container. Fixes issue 165. 2011-09-13 19:20:51 +00:00
castano
fe108af32e Pitch is specified in bytes and always byte aligned. Fixes issue 168. 2011-09-13 17:08:09 +00:00
castano
8b096b4186 Remove unused code. 2011-09-01 22:16:37 +00:00
castano
5d19ff392a Some pitch alignment fixes. Fixes issue 168. 2011-08-26 12:11:38 +00:00
castano
2952480d30 Fix tabs. Fix leak. 2011-06-20 19:09:29 +00:00
castano
66d02325d8 Swap red and blue channels when using stb_image. Fixes issue 164. 2011-06-20 06:45:45 +00:00
castano
69ff14a54c Apply changes suggested in issue 161. 2011-04-30 23:13:07 +00:00
castano
71d53e0d4e Fix leak. 2011-04-22 00:04:29 +00:00
castano
2643a62d4a Undo buffer class. Use plain array for easier debugging. 2011-04-07 07:41:58 +00:00
castano
144a8d6d4b Fix errors in meta data api. 2011-04-06 06:42:22 +00:00
castano
11d04287c9 Fix errors. 2011-04-06 06:42:10 +00:00
castano
76a7adf83e Apply patch suggested in issue 161. 2011-04-06 06:41:57 +00:00
castano
8a837981b6 Merge changes from The Witness. 2011-04-06 02:41:15 +00:00
castano
9ebcff93de More tweaks. 2011-04-06 02:14:32 +00:00
castano
ce8647c51d Tweaks. 2011-04-06 01:56:51 +00:00
castano
43b16d85f4 Use STB image by default.
Add buffer object, try to reduce binary size.
2011-04-02 07:41:55 +00:00
castano
ad7a618222 Start adding ktx file support. 2011-03-22 22:52:43 +00:00
castano
765a0e394a Add more error estimation methods. 2011-03-06 22:23:24 +00:00
castano
1aac4215ff Add stb image. 2011-03-06 22:00:09 +00:00
castano
dfcf8ecf37 Unify project settings. 2011-03-01 03:03:00 +00:00
castano
92d7ebded3 Add dual paraboloid transform. 2011-03-01 03:02:40 +00:00
castano
9302ee2cb0 Add normal encoding test. 2011-02-28 09:49:47 +00:00
castano
28592e73a8 Add normal transforms and reconstruction. 2011-02-28 09:05:28 +00:00
castano
609db2639e Move foreach to its own header. 2011-02-28 09:05:03 +00:00
castano
b74cd8ec97 Add target decoder compression option. 2011-02-28 08:27:24 +00:00
castano
cd6f798b85 tabs to spaces 2011-02-28 08:19:38 +00:00
castano
2338eeb4c0 Add bc6 project. 2011-02-25 09:52:15 +00:00
castano
b72a69f25c Supress msvc warning.
Replace tabs with spaces.
2011-02-25 09:51:09 +00:00
castano
71b88deb2a Add testsuite project. 2011-02-25 09:44:14 +00:00
castano
0a290a64cc Add support for D3D9 and D3D10 decoders. Fixes issue 157. 2011-02-25 09:27:40 +00:00
castano
94dce3b623 Fix vc warnings. 2011-02-25 09:26:27 +00:00
castano
659b684bf2 Update vc9 projects. Hide output directories. 2011-02-25 09:25:46 +00:00
castano
92db15b8d9 Do not compile old quantization code anymore. 2011-01-25 09:18:42 +00:00
castano
12bf7f9346 Implement quantization. 2011-01-25 09:17:53 +00:00
castano
95b5e1decd Cleanup clusterfit. 2011-01-19 07:27:04 +00:00
castano
4f098c4ff9 Workaround GCC error. 2011-01-19 07:26:22 +00:00
castano
4fc1952539 Fix tabs. 2011-01-19 07:25:49 +00:00
castano
5324156cc4 Fix kernel offset. Fixes issue 158. 2011-01-19 07:12:22 +00:00
castano
5f8cd22cdb Merge changes from the-witness. 2011-01-08 04:54:06 +00:00
castano
993e853a5f Set OpenMP compiler flags. 2010-12-10 10:29:43 +00:00
castano
a2f0e566c7 Use task dispatcher provided by user. 2010-12-10 10:29:04 +00:00
castano
66c9729097 Enable openmp. 2010-12-10 02:15:12 +00:00
castano
a607aadf32 Reenable openmp task dispatcher. 2010-12-10 02:14:56 +00:00
castano
8d99f2c6c4 Add tbb code. 2010-12-09 20:57:41 +00:00
castano
f4cf5dd32c Experiments with microsoft concurrency runtime. 2010-12-09 00:37:34 +00:00
castano
f99761c813 Disable new experimental compressor. 2010-12-08 20:11:11 +00:00
castano
34d2631502 Remove duplicate line. 2010-12-08 19:58:14 +00:00
castano
3265c36e14 Reallocate float image data properly. Fixes issue 155. 2010-12-08 19:56:06 +00:00
castano
3ee2c39be4 Generate mipmaps until both extents are 1. Fixes issue 156. 2010-12-08 19:53:59 +00:00
castano
b2f59ea0d7 Fix memory overrun. 2010-12-06 19:28:44 +00:00
castano
260097151d Link against pthreads library on systems that do not include it automatically. Fixes issue 149. 2010-11-30 20:30:11 +00:00
castano
c21fa98ba5 Fix Linux build. 2010-11-26 08:47:48 +00:00
castano
eea2fce447 Workaround powerpc processor detection. 2010-11-26 08:45:00 +00:00
castano
96b757130d Fix build on powerpc/mac. 2010-11-26 07:20:23 +00:00
castano
c51f25f38d concurrency experiments. 2010-11-22 07:34:05 +00:00
castano
0bb3011f7f Add cluster fit implementation based on squish. 2010-11-12 03:35:28 +00:00
castano
af5595c845 Add lightmap tests. 2010-11-12 03:33:47 +00:00
castano
23b140416a Work in progress. Experiment with lightmap compression. 2010-11-12 03:32:46 +00:00
castano
4cbf43165c Undo changes. 2010-11-11 19:53:45 +00:00
castano
d6f6c1f1d4 Undo changes. 2010-11-11 19:52:00 +00:00
castano
1484c667a0 Add missing files. 2010-11-11 19:13:01 +00:00
castano
1f1afe0c33 Add SCIE-Lab error metric. Work in progress. 2010-11-11 19:10:14 +00:00
castano
5cf219a22e Add perceptual color distance function. 2010-11-10 03:28:44 +00:00
castano
26283c8c25 Minor fixes. 2010-11-09 19:34:45 +00:00
castano
49482d1441 Work in progress.
Merging squish into nvtt. 
Using squish only to find endpoints, do discrete refinement afterwards.
2010-11-09 03:38:03 +00:00
castano
c532ffb34e Add lightmap and normal maps. 2010-11-09 01:39:36 +00:00
castano
86ee333c02 Reorganize testsuite files 2010-11-09 01:34:32 +00:00
castano
199fc19277 Replace bmps with pngs. 2010-11-08 19:41:05 +00:00
castano
1d4a2ea710 Testsuite outputs graphs using google api. 2010-11-08 19:03:20 +00:00
castano
5f845513ee Fix msvc warnings and errors.
Test TexImage stuff more througly.
Test YCoCg and RGBM.
2010-11-06 02:34:34 +00:00
castano
c1204bfb66 Fix errors in new implementation of InputOptions.
Output cube map faces in DDS order. Fixes issue 147.
2010-11-05 00:36:50 +00:00
castano
5225f4810f Add stubs for quantization methods. 2010-11-03 18:53:51 +00:00
castano
1e2567e4a3 More work toward 2.1: Implement InputOptions using TexImage. 2010-11-03 18:31:16 +00:00
castano
8838b5220a user file does not appear to be portable. Deleting. 2010-11-03 06:59:22 +00:00
castano
bdf60f16a4 Add qtcreator project file. 2010-11-03 06:50:14 +00:00
castano
5d408c0aa4 Use uname -m to detect processor name. Fixes issue 140. 2010-11-03 06:33:04 +00:00
castano
ea42b83573 Fix linux build errors. 2010-11-02 01:03:19 +00:00
castano
5ae77ae037 Fix warnings. 2010-10-28 05:39:35 +00:00
castano
1c588e3311 Fix some warnings. 2010-10-28 05:39:02 +00:00
castano
4bbf62855c osx/iphone fixes. 2010-10-28 05:38:39 +00:00
castano
188d5043d8 Use tabs. 2010-10-22 05:12:35 +00:00
castano
09e46ead48 Fix some messages. Add support for range scaling in TexImage. 2010-10-22 00:28:46 +00:00
castano
47df8ff7d6 Fix readBlock. Fixes issue 145. 2010-10-21 18:58:49 +00:00
castano
a4356caefe Merge changes from The-Witness. 2010-10-21 18:48:04 +00:00
castano
f0bcbdca5c Fix seek bug. Fixes issue 144. 2010-10-21 18:47:27 +00:00
castano
bd74a9ffc6 Merge changes from the-witness. 2010-10-21 18:44:10 +00:00
castano
5d498d6824 Fix cuda compressor. Start work on new UI. 2010-10-18 08:47:50 +00:00
castano
5d80fb8219 Fix TGA loading using FreeImage. Fixes issue 141. 2010-10-13 17:49:16 +00:00
castano
2bd7db4244 Fix error after changes in Memory.h 2010-10-09 07:45:48 +00:00
castano
25507428c2 Prefer the GLEW static library. 2010-10-06 02:57:35 +00:00
castano
df13c904b2 Stop using custom memory allocators.
Fix aliasing errors. Fixes issue 139 in trunk.
Fix build errors under OSX.
2010-10-06 02:56:35 +00:00
castano
06bf4ea960 Fix typo, fixes issue 137. 2010-09-20 17:14:13 +00:00
castano
765a89951d tabs -> spaces 2010-09-20 06:59:24 +00:00
castano
19f872161e Use posh typedefs.
Enable stacktraces on OS X.
2010-09-20 06:58:20 +00:00
castano
276c608f26 Fix alignment assumptions in DDS loading code. Fixes issue 132.
Merge misc changes from the-witness.
2010-09-07 18:24:50 +00:00
castano
2c969b70a5 Fix mirror sampling in trunk. Fixes issue 135. 2010-09-07 18:08:53 +00:00
castano
e8dc679874 Merge recent changes from the witness. 2010-08-31 01:39:08 +00:00
castano
47e8f23e9f Merge fix for issue 134 into trunk. 2010-08-26 16:46:03 +00:00
castano
83e249a1a0 Use INCLUDE_DIR instead of INCLUDE_PATH. Fixes issue 102. 2010-07-22 14:35:23 +00:00
castano
9e881f28d1 Merge changes from the-witness.
Fix DXT5n compressor.
2010-07-22 10:25:14 +00:00
castano
ac7c017c35 DXT1a single color compressor. Fixes issue 131.
Init single color tables at startup.
2010-07-22 09:23:17 +00:00
castano
da548fd03a Use noinline. 2010-07-13 23:28:31 +00:00
castano
9094756997 Merge changes from the witness. 2010-07-13 03:08:45 +00:00
castano
30b9545d75 Add glew for real this time... 2010-07-01 00:55:39 +00:00
castano
1db253b243 Add glew. 2010-07-01 00:50:31 +00:00
castano
50d80e3b81 Add simple dds file viewer. 2010-07-01 00:26:37 +00:00
castano
e5736fcf92 Add explicit load methods to DirectDrawSurface. 2010-07-01 00:25:44 +00:00
castano
1e0dea0738 Fix build. Minor cleanups. 2010-06-24 07:45:39 +00:00
castano
cfdc731634 Write BC6/BC7 headers in TexImage path. 2010-06-24 07:32:17 +00:00
castano
528b93ab14 Replace tabs with spaces. 2010-06-24 07:17:36 +00:00
castano
39c291e2a6 Fix build. 2010-06-24 07:10:34 +00:00
castano
5c60989043 BC6/7 progress. Work in progress. 2010-06-21 22:23:28 +00:00
castano
f2c581dec1 Remove unused methods. Add float color block. 2010-06-21 22:23:01 +00:00
castano
f9753b649a Fix mingw warning. 2010-06-10 02:30:38 +00:00
castano
11411bae2b Do not compile ui. 2010-06-10 02:30:25 +00:00
castano
42a641f0a5 Fix errors when cuda is not enabled. 2010-06-10 02:30:01 +00:00
castano
b19cd63558 Fix mingw error. 2010-06-10 02:29:04 +00:00
castano
5bb6a54f61 Fix mingw errors/warnings. 2010-06-10 02:28:49 +00:00
castano
82da6ea0a0 Do not enable CUDA under mingw. 2010-06-10 02:27:51 +00:00
castano
7b65595fe2 Add mingw library for FreeImage. 2010-06-10 02:26:41 +00:00
castano
357b91a9b2 Update FindCUDA. 2010-06-10 01:24:19 +00:00
castano
322dcd72c1 Some bug fixes and more progress toward BC6-7 support. 2010-06-03 07:58:03 +00:00
castano
68cbe543b0 Add missing files for previous change.
Some cleanup.
2010-06-03 07:07:37 +00:00
castano
f08e2c4f64 Add alpha map processor. 2010-06-03 05:49:04 +00:00
castano
e5ffd618f7 Replace tabs with spaces. 2010-06-03 00:32:49 +00:00
castano
f233188963 Fix format. 2010-06-01 19:25:49 +00:00
castano
c3bc24b165 Merge changes from 2.0. 2010-06-01 19:23:37 +00:00
castano
caff2c9006 Fix assert when reading paletted TGA images. Fixes issue 125. 2010-06-01 17:51:57 +00:00
castano
da503d2b3e Imperative api is sort of working now. Fixed various bugs. 2010-06-01 02:04:33 +00:00
castano
adbb0c3338 Update vc9 project. 2010-06-01 02:04:09 +00:00
castano
cf62ecc199 Upgrade freeimage. 2010-06-01 02:03:06 +00:00
castano
4b08c20b0e More cleanup. 2010-05-31 08:13:23 +00:00
castano
c8bf853ba4 More cleanup. 2010-05-31 07:41:01 +00:00
castano
9ae9ec1975 Fix power method initial estimate as in squish. 2010-05-31 07:40:08 +00:00
castano
8e074b2e28 Remove executable properties. Add cmake file. 2010-05-30 05:43:14 +00:00
castano
757e372726 Integrate bc6 compressor into nvtt. 2010-05-30 05:40:29 +00:00
castano
cf2b20dd43 Fix build error on OSX. 2010-05-29 05:33:28 +00:00
castano
fd6b8449bf Add bc6 and bc7 compressors from nvidia. 2010-05-29 02:47:57 +00:00
castano
035231a928 Minor changes. 2010-05-28 23:16:06 +00:00
castano
1454cbac14 Fix build. 2010-05-28 07:45:11 +00:00
castano
3956d8a0c2 Merge private changes. 2010-05-27 23:21:10 +00:00
castano
18ad53aa24 Merge private changes. 2010-05-27 23:20:09 +00:00
castano
c09067e477 Merge private branch. 2010-05-27 23:19:24 +00:00
castano
51a4fe7e2d Merge private branch. 2010-05-27 23:18:39 +00:00
castano
e7f2d1e2bc Merge private branch. 2010-05-27 23:18:08 +00:00
castano
56401d5f7d fix polyphase filter 2010-05-27 19:28:49 +00:00
castano
8cbd2c9ec6 Add mipmap scaling according to alphatest coverage. 2010-05-27 00:37:15 +00:00
castano
77bfabca3b Remove experimental callback mechanism. 2010-05-20 05:25:50 +00:00
castano
27f84c5caa Start work on a simple dds viewer. 2010-05-20 05:25:15 +00:00
castano
a32d780347 Experiment with output callbacks instead of handlers. 2010-05-18 17:13:30 +00:00
castano
d38b89edc7 fix comment. 2010-05-18 17:12:36 +00:00
castano
0322f1b54a Add comment. 2010-05-18 17:12:01 +00:00
castano
f6a39d6eab Remove duplicate code. 2010-05-14 04:58:08 +00:00
castano
4fa93f8676 Update vc9 project. 2010-05-11 18:20:06 +00:00
castano
639f11d0b9 Use the same defaults as nvtt 2.0 2010-05-11 17:18:08 +00:00
castano
6e32d1e010 Update latest stb_dxt. 2010-05-09 08:21:34 +00:00
castano
85db14f213 Add vertical flip. 2010-05-05 00:24:31 +00:00
castano
ac5f849e91 Better estimation of principle component. Fixes issue 120. 2010-04-19 18:41:42 +00:00
castano
4783d5621e Add missing files to cmake build as reported by amorilia. 2010-03-21 18:38:26 +00:00
castano
85b9c2b0c5 Fix FindOpenEXR cmake script. Fixes issue 97. 2010-03-18 00:21:13 +00:00
castano
447634d263 Fix cmake build in msvc. Fixes issue 111. 2010-03-18 00:13:31 +00:00
castano
f436a71479 Add support for RGBE. 2010-03-17 07:55:03 +00:00
castano
e848645e88 Add a few utils. Start converting tabs to spaces. 2010-03-17 07:54:07 +00:00
castano
78b55e1e37 Finish pixel format converter. 2010-03-17 02:25:06 +00:00
castano
3b0e0c3402 Fix errors after merge. Update cmake files. 2010-03-16 22:46:09 +00:00
castano
a19e25228f reorg. 2010-03-16 22:37:25 +00:00
castano
d8ed531e4c minor optimization. 2010-03-16 22:36:14 +00:00
castano
73851ab86f misc 2010-03-16 22:35:38 +00:00
castano
0cabfb6cfa misc. 2010-03-16 22:35:20 +00:00
castano
1fafffd8af Detect OpenMP properly. 2010-03-16 22:31:27 +00:00
castano
96f22f8cd4 Fix isColorNoAlpha, but leave it commented out. 2010-03-10 08:49:40 +00:00
castano
558f7970b1 Fix issue 112. 2010-03-02 01:29:48 +00:00
castano
d2fbcc5259 Add external libs. 2009-11-05 09:43:54 +00:00
castano
0e5a1877a8 Some progress on the CUDA compressors. 2009-11-05 09:27:03 +00:00
castano
8e436b1d30 Add post build commands to 64 bit targets. 2009-11-05 00:31:16 +00:00
castano
2f0fe5149f Patch posh to support freebsd. 2009-11-03 23:58:10 +00:00
castano
f744e700ae Add doc folder. 2009-11-03 23:57:36 +00:00
castano
48f5dd4603 Update cmake scripts. 2009-11-03 23:56:25 +00:00
castano
78bb864c14 cmake build system update. 2009-11-03 23:55:38 +00:00
castano
7bc1eb6a29 Add ignore lists. 2009-11-03 23:53:44 +00:00
castano
f63abb3ef6 Add properties. 2009-11-03 23:51:41 +00:00
castano
e8500dead4 Add ignore list. 2009-11-03 23:50:14 +00:00
castano
2e1d1e70ae Add ignore properties. 2009-11-03 23:44:05 +00:00
castano
bc3299b78b Add ignore properties. 2009-11-03 23:43:35 +00:00
castano
d01bdaf370 Add ignore properties. 2009-11-03 23:42:52 +00:00
castano
d90b3d927b Update ignore file. 2009-11-03 23:40:10 +00:00
castano
3e5c47d9fb Add ignore properties. 2009-11-03 23:39:03 +00:00
castano
6a667fff50 Do not use external dependencies. 2009-11-03 23:28:18 +00:00
castano
dfe081d32a Update messages. 2009-11-03 23:27:24 +00:00
castano
acc02abaf1 Fix messages. 2009-11-03 23:17:11 +00:00
castano
8871fefe89 Update project uuid. 2009-11-03 23:08:11 +00:00
castano
2543f4c9ed rename stress->testsuite 2009-11-03 18:48:25 +00:00
castano
ac46c40b3e Rename stress->testsuite 2009-11-03 18:48:03 +00:00
castano
bcf0df2b49 use default pixel format, add comment to indicate where to change default 2009-10-30 01:05:31 +00:00
castano
8c7f54056c Add more todo items.
Delete images more efficiently?
2009-10-21 19:20:30 +00:00
castano
34cd266d8c Add todo item to perform color transforms before compression. 2009-10-21 19:19:09 +00:00
castano
9a9366cf4c Who knows what msvc decided to change. 2009-10-21 18:29:46 +00:00
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.
2009-10-21 07:48:27 +00:00
castano
18a3abf794 Enable alpha dithering when using DXT3.
Update timing message.
2009-10-21 07:43:24 +00:00
castano
384f74ba39 Use minimal set by default. 2009-10-21 07:42:33 +00:00
castano
7d75840398 Add todo messages.
Use DXT3 nvidia decoder if requested.
2009-10-21 07:42:08 +00:00
castano
8ea52efbf4 Add DXT3 nvidia decoder. 2009-10-21 07:40:49 +00:00
castano
d86a89742e Update info message. 2009-10-21 07:40:23 +00:00
castano
fd11f5e7ef Implement generic swizzle, remove specialized ones. 2009-10-21 07:39:59 +00:00
castano
dcfdabaee3 Fix timer. 2009-10-21 07:39:08 +00:00
castano
2d97ee9c03 Update project files. Many minor changes. Enable OpenMP. 2009-10-21 07:38:11 +00:00
castano
14f49b6003 Define new macro to point to extern dir. 2009-10-21 07:37:21 +00:00
castano
ea7dabc6b1 Add comment. 2009-10-19 05:42:27 +00:00
castano
0878c0e967 Add expand and pack normal methods.
Set normal map flag.
2009-10-18 20:04:39 +00:00
castano
a088ae5789 Implement normal map generation for floating point images. 2009-10-18 20:03:21 +00:00
castano
a52d3b7cdc Tweak implementation of scaleBias. 2009-10-18 20:02:43 +00:00
castano
307c418acc Update FindCUDA script to latest. 2009-10-18 08:11:51 +00:00
castano
d0218cb18b Merge changes from 2.0 2009-10-18 08:10:28 +00:00
castano
c1f9c4df42 Create default output handle on setFileName to avoid modifying const argument.
Fix ref counting errors in TexImage.
Format TODO messages.
2009-10-18 08:09:20 +00:00
castano
78d65e8368 When compiling with gcc, define NV_FILE_LINE using gcc convention. 2009-10-18 08:04:25 +00:00
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.
2009-10-12 07:56:02 +00:00
castano
b7fbd1fc9b Fix error in Snow Leopard. 2009-10-12 00:44:03 +00:00
castano
9de3298d6b Fix cmake build. 2009-10-11 23:51:22 +00:00
castano
568f34d838 Fix color weighted compression for single color blocks. Fixes issue 96. 2009-09-21 18:46:48 +00:00
castano
e38e584db2 Rename texture to teximage. 2009-09-14 22:43:53 +00:00
castano
8655259379 Fix comment. 2009-08-26 01:27:50 +00:00
castano
7d65633f63 Add files to repro bugs/request. 2009-07-28 08:07:48 +00:00
castano
cb62c3c461 Add support for R16 in DDS headers.
Cleanup DDS header output code.
Temporary testing code added to nvcompress.
2009-07-28 08:05:23 +00:00
castano
573cc1b371 Add support for UINT16 images when using freetype. 2009-07-28 08:03:36 +00:00
castano
9c6f6e143e Use tabs not spaces. 2009-07-28 08:03:08 +00:00
castano
126816ef72 Experimental quality improvements and speed optimizations. 2009-07-06 09:08:09 +00:00
castano
2ca6e4a1bd Add support function for stb compressor. 2009-07-06 09:06:40 +00:00
castano
b839b873e1 Remove commented out code. 2009-07-06 09:06:17 +00:00
castano
ab473f4ec5 Add DXT5 tests.
Use timer class.
2009-07-06 09:05:54 +00:00
castano
f1ebbd4da6 Add more third-party compressors. 2009-07-06 09:04:29 +00:00
castano
ac79935c88 Init default values. 2009-07-06 09:03:12 +00:00
castano
2aca4673ab Some progress implementing new api. 2009-07-06 09:02:20 +00:00
castano
43893d5d0f Add NV5x DXT5 decompressor. 2009-07-06 09:00:30 +00:00
castano
009eaf2aa6 Fix msvc warnings. 2009-07-06 08:59:48 +00:00
castano
fd2492670e Add a QPF timer. 2009-07-06 08:57:36 +00:00
castano
7d88f4fa32 Merge changes from 2.0 branch. 2009-07-06 08:56:55 +00:00
castano
60022acaa7 Add dxt5 tests to testsuite. 2009-07-04 19:34:42 +00:00
castano
a5faf51738 Add simd power solver. 2009-07-04 19:33:55 +00:00
castano
8365df0adf Add example textures with alpha. 2009-07-04 19:32:09 +00:00
castano
2d38f4fb2c Update cmake scripts to use new FindCUDA package. 2009-06-26 06:34:19 +00:00
castano
3adf00b4b9 Use official FindCUDA cmake script. 2009-06-26 06:33:34 +00:00
castano
63897f3fe6 Mark threads as required. 2009-06-13 14:27:53 +00:00
castano
71f29a27f3 Fix error in zero padding. 2009-06-13 14:18:31 +00:00
castano
720be412fa Return correct error codes. Fix issue 92. 2009-06-13 14:17:46 +00:00
castano
8d361eee22 Use memory allocator correctly. 2009-06-13 14:17:10 +00:00
castano
8d54d22cb2 Update vc9 project files. 2009-04-21 09:31:59 +00:00
castano
782a127071 Add alpha flag to DXT1a files. 2009-04-16 20:06:08 +00:00
castano
154e117e13 Update nvmath project file. 2009-04-16 08:43:16 +00:00
castano
603d8ad1a2 Update vc9 project. 2009-04-16 08:38:39 +00:00
castano
bed4d78f6b Remove static member that was not thread safe! 2009-04-12 03:13:13 +00:00
castano
d7f8fba7a7 Add comment about thread safety. 2009-04-12 03:10:40 +00:00
javiuniversidad@gmail.com
e0a7e103c1 Add include to all configurations. 2009-04-11 16:10:31 +00:00
javiuniversidad@gmail.com
319ed6bac0 Required include added 2009-04-11 16:07:12 +00:00
castano
9e959d0191 Update wrapper, disable error handler temporarily. 2009-04-03 21:39:44 +00:00
castano
53265596a3 Update nvtt wrapper. 2009-04-03 21:37:50 +00:00
castano
ae24cb163d Remove msvc warnings. 2009-04-01 07:17:25 +00:00
castano
fb75d6065d Update projects. 2009-04-01 07:13:47 +00:00
castano
ae744f88e6 Add constructor that takes a stream. 2009-04-01 07:13:13 +00:00
castano
5ac76b68c9 Add option to select decompression algorithm to test suite. 2009-03-24 17:35:40 +00:00
castano
f2090df7a5 Add support for FreeBSD. Patch by AMDmi3. 2009-03-21 07:44:26 +00:00
castano
0a8de141a6 Fix errors on win32. Define function pointers properly. 2009-03-21 07:43:15 +00:00
castano
9aaee3ae16 Add proper todo message. 2009-03-21 07:42:36 +00:00
castano
820eb374d5 Add single color table generation code. 2009-03-19 10:06:42 +00:00
castano
974cacda5f Update single color compression tables. 2009-03-19 10:00:43 +00:00
castano
953a63d7b5 Add farbrausch images to testsuite. 2009-03-19 10:00:26 +00:00
castano
19477d60c0 Fix errors in the pixel format conversion code. 2009-03-19 08:57:49 +00:00
castano
8a48250bcb Fix win32 errors and errors in the png saving code. 2009-03-19 08:57:28 +00:00
castano
18d95584cc Add farbrausch textures. 2009-03-19 06:28:32 +00:00
castano
9b3075030e Add data to repro bug reports. 2009-03-19 06:18:31 +00:00
castano
dd98ce6eab Add one more exclude rule to pkg builder script. 2009-03-18 06:55:54 +00:00
castano
35ff0e5aa6 Remove verbose error checking. 2009-03-18 05:51:15 +00:00
castano
8529dcf755 Fix memory leaks.
Shutdown CUDA properly when nvtt context is destroyed.
Fixes issue 83.
2009-03-18 05:46:53 +00:00
castano
56543e1a92 Merge changes from 2.0 2009-03-18 04:05:39 +00:00
castano
72543c9307 Add todo message. 2009-03-17 08:16:00 +00:00
castano
872c61e1d1 Add image saving code. 2009-03-17 08:14:28 +00:00
castano
7f3cee4db9 Remove commented out code. 2009-03-17 06:33:31 +00:00
castano
3f036a11a6 Avoid msvc8 warnings. 2009-03-16 21:08:09 +00:00
castano
3df9aff396 rename gnuwin back to gnuwin32 2009-03-16 19:42:25 +00:00
castano
be12367910 fix blend, add setborder and fill methods. 2009-03-16 09:05:32 +00:00
castano
c59a2e0a4b Implement alpha premultiplication and color blending. 2009-03-16 08:54:43 +00:00
castano
0abec17ab4 Implement toGreyScale.
Skip undefined images.
2009-03-16 08:47:20 +00:00
castano
6b67f4a0d7 More progress with imperative api.
Rename Texture to TexImage.
Implement image initialization.
Add stubs for all methods.
2009-03-16 08:37:07 +00:00
castano
6e2565d1a4 Install doc files in doc folder. 2009-03-16 06:05:51 +00:00
castano
3e3c8a4d18 Generate debs on linux only. 2009-03-15 18:35:00 +00:00
castano
8e836591ee Fix warning. 2009-03-15 18:34:46 +00:00
castano
50b8b67185 Hide file format especific savers. Add generic image saver.
Misc fixes under OSX.
2009-03-15 10:18:54 +00:00
castano
36850f6241 Include readme in the installer. 2009-03-14 08:02:47 +00:00
castano
ed58bd90ff Update readme. 2009-03-14 08:02:33 +00:00
castano
ab73c790e1 Testsuite cleanups and improvements.
Add ctest support.
Add FileSystem::changeDirectory method.
2009-03-14 07:27:25 +00:00
castano
4a34c673a4 Add testsuite images. 2009-03-14 07:09:26 +00:00
castano
0ce578668f Compile libraries as dynamic libs.
Excluse qtproject folder in source packages.
Add support for package generation using cpack.
2009-03-14 06:04:33 +00:00
castano
53e6c4c911 Update project files with recently added files. 2009-03-14 03:31:12 +00:00
castano
d99cf11e2e Update version checking code. 2009-03-14 03:30:20 +00:00
castano
d9832ed22c Eliminate some warnings with MSVC. 2009-03-14 03:29:43 +00:00
castano
a02649faa9 Fallback to CPU compressor only on smaller images. 2009-03-14 03:29:14 +00:00
castano
a28ebb4ccf Some more progress in the imperative API. 2009-03-07 07:14:00 +00:00
castano
0f5a5e5d24 Some more progress in the imperative API. 2009-03-05 05:34:28 +00:00
castano
8f0b129a52 Add RefCounted base class back to the reposotory. 2009-03-05 05:33:53 +00:00
castano
098bc2f905 Fix some endiannes errors. 2009-03-04 09:36:40 +00:00
castano
5943e8f42f Fix errors on ibook G4. 2009-03-04 07:04:32 +00:00
castano
ba72ebafcb Delete win64 dlls, not very useful without the corresponding lib files. 2009-03-02 09:50:47 +00:00
castano
a89735994c Update vc9 project files. 2009-03-02 09:45:17 +00:00
castano
e7fd290af6 Update changelog. 2009-03-02 09:28:11 +00:00
castano
35b97e7a13 Add property file. 2009-03-02 09:27:51 +00:00
castano
472c2d691f Update vc8 project files. 2009-03-02 09:27:07 +00:00
castano
e48f56a15e Includer project headers first. 2009-03-02 09:21:48 +00:00
castano
25e32c8ff2 Fix msvc warnings. 2009-03-02 09:21:30 +00:00
castano
db63ba7fa4 Fix build in win64. 2009-03-02 09:21:07 +00:00
castano
3df66be089 Do not use CUDA to compress small mipmaps. 2009-03-02 09:09:05 +00:00
castano
3a52923697 Add alpha command line option. 2009-03-02 09:07:07 +00:00
castano
9953883d26 Cleanup cmake files. 2009-03-02 07:32:00 +00:00
castano
5ed9090012 Move poshlib to extern. 2009-03-02 07:30:38 +00:00
castano
93e2fb46a9 Update changelog and buildpkg script. 2009-03-02 07:01:06 +00:00
castano
03c9ec0f62 More cleanup. Remove files that are not strictly required. 2009-03-01 02:38:24 +00:00
castano
88fc5ca18e Merge changes from private tree.
Eliminate files that are not needed for NVTT.
2009-03-01 00:18:47 +00:00
castano
6fb29816a2 Gnome thumbnailer. Fixes issue 82. 2009-02-03 09:32:54 +00:00
castano
c67edca820 Update changelog. 2009-02-03 09:30:54 +00:00
castano
9d5242594b Add gnome thumbnailer by Frank Richter. Fixes issue 82. 2009-02-03 09:29:25 +00:00
castano
69c74d7a5e Add support for comments. 2009-02-03 09:23:58 +00:00
castano
b7ea7a255b Fix const-correctness. 2009-02-03 09:22:30 +00:00
castano
17790a34df Add support for PNG in nvdecompress. Patch by Frank Richter. Fixes issue 80. 2009-02-03 09:08:39 +00:00
castano
7741a99b90 Add support for saving PNG files. Patch by Frank Richter. Fixes issue 79. 2009-02-03 09:06:21 +00:00
castano
36dd7fb76b Merge changes from p4. 2009-02-03 08:22:35 +00:00
castano
8fa870bf0c Fix typo. Fixes issue 82. 2009-02-03 08:02:20 +00:00
castano
1afdf2da8a Fix alpha-weighted filtering. 2009-01-28 12:10:04 +00:00
castano
242aa4254e Use alpha-aware resize when alpha is used for transparency and it's not premultiplied. 2009-01-28 10:58:57 +00:00
castano
4f576d5539 Add support for alpha weighting to float image. 2009-01-28 10:55:23 +00:00
castano
2411f3f5db Fix generation of blended sobel filter. Fixes issue 77. 2009-01-28 00:56:27 +00:00
castano
1c6b65ad52 Do not use custom FindGLUT cmake script. 2009-01-27 23:39:33 +00:00
castano
f92a2191f2 Print message when cuda acceleration enabled. 2009-01-20 10:43:56 +00:00
castano
7f9b10329b Add squish.h to project. 2009-01-19 10:43:53 +00:00
castano
49409e9d92 Cleanup color rounding and expansion. 2009-01-19 10:42:31 +00:00
castano
f753cc9702 Implement FileSystem::exists correctly on win32. 2009-01-19 10:41:51 +00:00
castano
07a4daed7b Add FileSystem.{h,cpp} to project. 2009-01-19 10:41:09 +00:00
castano
2ad15489bb Try to optimize color rounding and expansion.
Detect CUDA 2.1 properly.
2009-01-19 09:54:43 +00:00
castano
fa53ddcecd Add NV5x/G8x DXT decompression code.
Clean things up a bit, remove old code.
2009-01-13 08:25:04 +00:00
castano
7a8b3aecc9 Fix name of libpng dll. 2009-01-10 04:40:46 +00:00
castano
94357626f7 Merge fixes from 2.0 branch. 2009-01-10 01:31:02 +00:00
castano
19342d8adf Use timer class instead of clock.
Check that file exists before opening.
2009-01-09 05:46:24 +00:00
castano
2ed4fee447 Fix error sin string builder and path. 2009-01-09 05:45:36 +00:00
castano
f03d702d84 Implement exists with access instead of stat. 2009-01-09 05:45:02 +00:00
castano
10de10b9c2 Implement FileSystem::exists(). 2009-01-09 02:24:32 +00:00
castano
508f9fbdc2 Start implementing experimental interface. 2009-01-05 10:17:06 +00:00
castano
e965b0e4a9 Include correct headers. 2009-01-04 07:29:35 +00:00
castano
1f4d313d0f Merge changes from internal branch. Whitespace changes only. 2008-12-29 11:34:39 +00:00
castano
dc0b78ad14 Do not enable testing. 2008-12-29 11:33:48 +00:00
castano
b8eb12afc1 Merge changes from internal branch.
- Better support for win64.
2008-12-29 11:33:20 +00:00
castano
1975883bed Update after changes in nvcore. 2008-12-29 11:29:45 +00:00
castano
9bda107603 Add pull push filter with bilinear filtering. 2008-12-29 11:28:29 +00:00
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.
2008-12-29 11:27:13 +00:00
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).
2008-12-29 11:20:06 +00:00
castano
a03411e451 Check version properly. 2008-12-16 20:25:12 +00:00
castano
931580edc5 Include cuda runtime properly. 2008-12-09 11:26:08 +00:00
castano
fd2f5465f8 Do not use kahansum, that was stupid.
Include cuda runtime properly.
2008-12-09 11:25:46 +00:00
castano
127052f404 Use KahanSum to compute RMSE.
Fix typos.
2008-12-07 23:15:06 +00:00
castano
a30490ab9b Preserve cluster location for empty partitions. 2008-11-24 10:35:42 +00:00
castano
1ec115c7ec Cleanup 4 means compressor. 2008-11-24 10:35:07 +00:00
castano
a4f56b65b8 Add support for alpha modes in the CPU compressors. Fixes issue 30. 2008-11-24 10:34:16 +00:00
castano
bb69acec6c Add FileSystem to build. 2008-11-23 22:25:47 +00:00
castano
4bbf5e96f4 Add squish external compressor.
Rename our squish version to nvsquish.
2008-11-23 08:59:56 +00:00
castano
4a85f8e48d Remove executable flag. 2008-11-22 22:12:05 +00:00
castano
f34b7ce84f Merge optimizations from squish. 2008-11-22 22:10:51 +00:00
castano
010905edd3 Fix tabs. 2008-11-22 22:10:11 +00:00
castano
7bb2d55d35 Create output directory. 2008-11-22 22:08:31 +00:00
castano
e3a7cc19dd Add file system helper. 2008-11-22 22:07:07 +00:00
castano
379605d30a Use metric to measure distance to clusters. 2008-11-22 21:32:27 +00:00
castano
c05c4e155b Merge optimizations from official squish release. 2008-11-22 11:36:06 +00:00
castano
fd73484bfc Merge optimizations from official squish relese. 2008-11-22 11:35:13 +00:00
castano
f29d7dd938 Try using 4 means clustering. 2008-11-22 11:34:29 +00:00
castano
3a5dc4783a Add support for regressions. 2008-11-22 11:33:31 +00:00
castano
d4a713451e Fix 4 means clustering. 2008-11-22 11:32:51 +00:00
castano
a302475fa6 Add fitting implementation to project. 2008-11-22 11:30:46 +00:00
castano
6e988ea4c8 Add stream to the vc8 project. 2008-11-22 11:28:18 +00:00
castano
7731181900 Update changelog. 2008-11-22 08:37:56 +00:00
castano
41f6e0ba73 Try 4-means. 2008-11-22 08:37:14 +00:00
castano
11073171a1 Rename stress to testsuite. Install target. 2008-11-22 08:36:55 +00:00
castano
0805832b44 Remove squish build and project files. 2008-11-22 08:36:17 +00:00
castano
a4dcd414ca Fix errors. 2008-11-22 08:35:04 +00:00
castano
4ff8a83f90 Add fitting code to build. 2008-11-22 08:30:55 +00:00
castano
48da357385 Add PCA, and 4-means implementation. 2008-11-22 08:30:20 +00:00
castano
e1916d43c8 Do not mix tabs and spaces. 2008-11-22 00:14:05 +00:00
castano
321f320bfb Do not print stupid messages. 2008-11-22 00:13:14 +00:00
castano
df32fedc7c Add command line options.
Reformat output for easier parsing.
2008-11-21 09:09:57 +00:00
castano
a7396b70ba Fix segfault on linux. Merged from 2.0 branch. 2008-11-21 09:08:00 +00:00
castano
d9ca49cc5e Fix bug in dxt decompression.
Output files as TGA.
2008-11-21 08:06:25 +00:00
castano
56849b78ad Output compressed files. 2008-11-21 07:58:49 +00:00
castano
a769831fb5 Add const keyword to const arguments. 2008-11-21 07:57:28 +00:00
castano
7486201a7e Fix bug in testsuite. 2008-11-21 07:45:09 +00:00
castano
1813624992 Modify stress test to compress a list of real images. 2008-11-21 07:38:12 +00:00
castano
5fa27adfcd Add custom error code and message for the case when container format does not support a certain output format. 2008-11-19 08:10:54 +00:00
castano
6d1891a7e9 Remove gcc-4.3 warning. 2008-11-14 02:19:39 +00:00
castano
8fb1d70d0b Fix bug detected by gcc-4.3. 2008-11-14 02:19:07 +00:00
castano
c26c52d59c Fix gcc-4.3 warnings. 2008-11-14 02:18:35 +00:00
castano
c3329d4675 Fix gcc-4.3 warning. 2008-11-14 02:16:36 +00:00
castano
1cefc366f8 Remove unused function. 2008-11-14 02:15:35 +00:00
castano
7df0885c4f Fix CUDA detection code on linux. 2008-11-14 01:15:36 +00:00
castano
1c5da0e341 Do not use cuda API when CUDA not found.
Fix end of lines.
2008-11-10 21:54:03 +00:00
castano
36ba75b598 Select fastest device. 2008-10-30 04:50:41 +00:00
castano
1628831878 Fix comment. 2008-10-27 08:00:46 +00:00
castano
12e774ea74 Fix cmake file. 2008-10-26 05:56:32 +00:00
castano
66b18f2dbd Fix build under VC7 2008-10-22 03:48:06 +00:00
castano
9ea1934097 Update vc8 projects. 2008-10-17 18:40:16 +00:00
castano
9771e72702 Update vc9 projects. 2008-10-17 18:38:55 +00:00
castano
7776bd5c17 Win32 fixes. 2008-10-17 18:37:17 +00:00
castano
6d8a75462a Build nvtt as a shared library. 2008-10-16 22:22:45 +00:00
castano
cf18077eda Prevent missmatches between incompatible versions of the CUDA runtime and the CUDA driver. 2008-10-16 22:21:21 +00:00
castano
aa37e7a868 Add library loading helpers. 2008-10-16 22:20:31 +00:00
castano
d01a5c1661 Workaround bug in CUDA runtime. When using CUDA 2.0, it's required to use a driver that supports CUDA 2.0. 2008-10-16 08:39:58 +00:00
castano
36ed6bebda Update changelog with branch 2.0 fixes. 2008-10-15 07:17:20 +00:00
castano
5234060618 Integrate branch 2.0 to trunk. 2008-10-15 07:16:57 +00:00
castano
f402f28643 Use unsigned ints for stream sizes and positions. 2008-10-15 07:15:50 +00:00
castano
f047043eb2 Fix compiler errors under gcc-4.3 2008-10-15 07:15:00 +00:00
castano
7eac4195c4 Fix compiler errors under gcc-4.3 2008-10-15 07:14:25 +00:00
castano
0f5692d1ea Compile CUDA files as C++. 2008-10-11 06:43:57 +00:00
castano
b2d6122769 Fix linux build. 2008-10-05 19:20:42 +00:00
castano
cd59058fc2 Fix linux includes. 2008-10-05 19:17:59 +00:00
castano
db14e048e1 Fix errors in Green and Alpha optimal compressors. 2008-10-02 07:33:05 +00:00
castano
0c36fcf626 Update changelog. 2008-10-01 22:30:19 +00:00
castano
68be24bf00 Set correct DXT5n swizzle code.
Select swizzle codes in nvtt instead of nvimage.
2008-10-01 22:28:57 +00:00
castano
b284669993 Try some optimizations. 2008-10-01 22:28:01 +00:00
castano
2f6e885ced Add DXT1 compressor that uses texture to avoid CPU swizzling.
Fix errors under emulation.
Experiment with DXT5 compressor.
2008-10-01 22:24:53 +00:00
castano
1957120c26 Reference gnuwin32 libs and include paths correctly. 2008-09-11 07:56:39 +00:00
castano
d7ddcb9263 Set optimal options for release vc9 projects.
Fixes issue 62.
2008-09-11 07:48:02 +00:00
castano
f5f6e88585 Do not use freeimage yet. 2008-08-20 22:34:08 +00:00
castano
13e2d2e447 Fix float support. 2008-08-20 22:32:54 +00:00
castano
0b13b6d0d9 Update version number. 2008-08-20 22:31:14 +00:00
castano
ad85b0fcbe Include gnuwin32 directory properly. 2008-08-20 22:30:41 +00:00
castano
0515d9a0a0 Add Half.{h,cpp} to project. 2008-07-31 10:00:05 +00:00
castano
16adf94635 Add support for floating point output formats.
Images are currently output in linear space, some color transforms not applied.
2008-07-31 09:55:22 +00:00
castano
e9002a7d86 Adding support for floating point input/output. Work in progress. 2008-07-31 02:04:44 +00:00
castano
3161fca9d9 Decompress DDS10 files. Only BC# supported so far. 2008-07-30 02:28:09 +00:00
castano
bb5b02df0e Adding support for floating point images as input. 2008-07-29 08:56:40 +00:00
castano
1941e27148 Fix DDS10 header initialization.
Fix depth initialization.
2008-07-29 08:43:42 +00:00
castano
02c3abb394 Fix color transforms. 2008-07-29 06:05:11 +00:00
castano
86ef67bbfa Fix error in input image transformation. 2008-07-29 05:45:35 +00:00
castano
79529f994f Fix compilation error. 2008-07-29 05:44:31 +00:00
castano
c2508d9eeb Add option to use dds10 headers. 2008-07-29 02:31:57 +00:00
castano
b1cd916105 Change parameters in declaration to match definition. 2008-07-29 02:31:09 +00:00
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.
2008-07-26 10:03:12 +00:00
castano
529c0075e1 do not compile mpeg tests. 2008-07-26 09:01:00 +00:00
castano
c70e5d6121 Reorg header files. 2008-07-05 09:10:45 +00:00
castano
7394644719 Move ui to separate folder. 2008-07-05 09:10:00 +00:00
castano
d5055300e2 Require cmake 2.6.0 2008-07-05 09:09:23 +00:00
castano
b2e7d717c2 Fix compilation error under gcc/linux. 2008-07-05 08:57:03 +00:00
castano
756f12c994 Fix errors in color transforms.
Add support for color offsets.
Add support for special swizzles that select default const values.
2008-06-30 10:59:57 +00:00
castano
206bfcf0f3 reorg included files 2008-06-28 08:40:32 +00:00
castano
15cfd1c06b fix path to gnulibs 2008-06-28 02:57:31 +00:00
castano
8b26ecc865 fix path to gnulibs 2008-06-28 02:56:57 +00:00
castano
488f3c8f42 fix path to gnu libs. 2008-06-28 02:56:27 +00:00
castano
458b8814a7 fix path to gnulibs. 2008-06-28 02:55:35 +00:00
castano
c08acc8a71 Add single color compressor to optimal green compressor.
Improve quality of DXT1 green compressor increasing search range.
2008-06-28 02:50:09 +00:00
castano
45f7244f20 Check in proposed fix for issue 44. 2008-06-27 18:52:49 +00:00
castano
f412ec8efb Fix assertion. 2008-06-26 07:23:31 +00:00
castano
a1a34f546f Do not compile nvmpegenc. 2008-06-26 07:23:09 +00:00
castano
7ef88c6f7e Fix build on OSX 10.5. Solves issue 44. 2008-06-26 07:22:34 +00:00
castano
3368f9039b Fix embarrasing typo. 2008-06-24 21:47:47 +00:00
castano
870a3fe438 Add references. 2008-06-23 19:24:59 +00:00
castano
82bed4ac9a Eliminate warning. 2008-06-19 10:01:56 +00:00
castano
b8a9395117 Fix end of lines. 2008-06-19 09:53:09 +00:00
castano
65f769160d Fix solution. 2008-06-19 09:52:20 +00:00
castano
524ebbec8c Add PhotoshopExporter template project to solution. 2008-06-19 00:38:15 +00:00
castano
ce85eaff3e Add photoshop exporter template. 2008-06-19 00:37:15 +00:00
castano
6befe3505c Enable Qt ui with win32/msvc. 2008-06-19 00:35:47 +00:00
castano
ff6f7f0506 Add quick and dirty single frame mpeg encoder based on ffmpeg. 2008-06-13 08:12:58 +00:00
castano
55e7d3dec4 Delete outdated comment. 2008-06-03 06:34:18 +00:00
castano
b5e373b734 Compile NVTT under G5/leopard 2008-05-23 22:22:09 +00:00
castano
6ce542b5c0 Fix error in cmake file. 2008-05-23 06:51:02 +00:00
castano
58e5f6534f Print version number in copyright statement. 2008-05-22 21:48:40 +00:00
castano
eda4786ca6 Update version number. 2008-05-22 21:48:19 +00:00
castano
29a720bf82 Do not print text. 2008-05-22 21:32:09 +00:00
castano
1120f83f7d Fix errors. 2008-05-22 21:31:44 +00:00
castano
c38c3dc584 Fix win32 buid errors and warnings due to FreeImage. 2008-05-22 21:31:15 +00:00
castano
7d3d0ede9d Update projects to use FreeImage. 2008-05-22 21:30:34 +00:00
castano
bc66a7ad74 Update cmake files. 2008-05-22 19:47:52 +00:00
castano
ca8d17abf5 Reorganize external libs. 2008-05-22 19:47:23 +00:00
castano
10e79dac9d Update changelog. 2008-05-21 19:22:43 +00:00
castano
e068964423 Fix EXR loading code. Issue 45. Fix provided by alastairpatrick. 2008-05-21 19:17:27 +00:00
castano
ea340443d9 Add -mipfilter command line option, per request of Noel Llopis. 2008-05-19 20:10:05 +00:00
castano
fb2b0cb38c Fix bug reported by Noel Llopis.
Make sure FreeImage declarations are not used when FreeImage is not available.
2008-05-19 18:23:42 +00:00
castano
c01566cd2f Add support for FreeImage in nvimage.
Add support for floating point input images in nvtt.
2008-05-15 09:47:55 +00:00
castano
47bdab8e27 Define FREEIMAGE_LIBRARIES. 2008-05-15 09:46:45 +00:00
castano
70267fda15 Add support for input floating point images. Patch provided by Jim Tilander. See issue 27. 2008-05-15 06:18:24 +00:00
castano
aebcea412c Search for freeimage. 2008-05-15 06:17:46 +00:00
castano
bccdcd49da Use standard gram schmidt 2008-05-15 06:04:17 +00:00
castano
68e9f05794 Add freeimage cmake file. 2008-05-15 05:57:11 +00:00
castano
0f186e688f Remove 'virtual' from non virtual methods. 2008-05-08 21:15:05 +00:00
castano
38e9652d64 Remove executable flag. 2008-05-08 18:20:55 +00:00
castano
f08114c1b5 Whops, check fix for vc9. 2008-05-08 18:18:53 +00:00
castano
7b9f891f92 Update vc9 projects. 2008-05-07 21:58:50 +00:00
castano
787c9bb8fb Add vc9 projects. 2008-05-07 21:55:33 +00:00
castano
42220b981e Add vc9 folder 2008-05-07 21:45:48 +00:00
castano
70331a37fd Refactor compression functions, group them into class methods. 2008-05-06 23:55:19 +00:00
castano
2ffc4cd7ad Ups, checked in the file before saving it. 2008-05-06 23:34:46 +00:00
castano
4ba8e87a38 Ups, checked in file before saving it. 2008-05-06 23:34:13 +00:00
castano
d440d68aa8 Update ChangeLog. 2008-05-06 23:22:04 +00:00
castano
48f61dbfc0 Add support for linear and swizzle transforms. Fixes issue 4. 2008-05-06 23:21:39 +00:00
castano
94c3fa75a8 Add comments indicating where to perform linear color transforms. 2008-05-06 22:01:23 +00:00
castano
c562af6d9b Integrate YCoCg color space conversion by Jim Tilander. 2008-05-06 21:49:10 +00:00
castano
a889f2fda6 Add support for alpha modes in the CUDA compressors. 2008-05-06 20:04:05 +00:00
castano
d855d0461b Add single color checks to CUDA compressors.
Use optimized bitmap table for CTX compressor.
2008-05-06 19:52:27 +00:00
castano
246f2a409a Add cpp file to project so that a library is built. 2008-05-06 19:48:43 +00:00
castano
6a6b3edce1 factorial optimization suggested by pponywong. 2008-05-06 06:37:06 +00:00
castano
52b3bc9437 Update project files. Remove fast compressor, add optimal compressor. 2008-04-29 22:34:09 +00:00
castano
f6ab357b09 Add missing files to project. 2008-04-29 22:33:42 +00:00
castano
ce3a65c03e Fix operator= in String class. 2008-04-29 22:32:12 +00:00
castano
8d9bf5c0b3 Fix after refactoring CPU compressors. Changes were not tested with CUDA enabled. 2008-04-29 22:31:55 +00:00
castano
ab5265e642 Remove declaration of method that was removed. 2008-04-28 08:39:24 +00:00
castano
fd1d5e41c7 Add missing files! 2008-04-28 06:22:26 +00:00
castano
3980d5dc21 Update changelog. 2008-04-26 09:17:16 +00:00
castano
15e7125b4b Check for single color blocks in all compressors. 2008-04-26 09:16:56 +00:00
castano
921ee354c0 Remove legacy compressors.
Add iteration count parameter to iterative alpha compressor.
Add optimal compressors.
2008-04-26 08:02:30 +00:00
castano
e3f7e303e4 Use FLT_MAX instead of INFINITE. The latter not supported in msvc. 2008-04-20 06:01:50 +00:00
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.
2008-04-18 08:49:32 +00:00
castano
91eb30667f Add TLS class wrapper.
Fix AutoPtr operator=.
Fix typo.
2008-04-17 18:39:01 +00:00
castano
6db5cffca6 Fix changelog. 2008-04-17 09:28:38 +00:00
castano
34ae5bcb6f Merge 2.0 branch fixes. 2008-04-17 07:17:46 +00:00
castano
fe130a9906 Add DXT1a single color compressor. 2008-04-17 07:00:51 +00:00
castano
bade8e5e09 Merge private branch. 2008-04-17 07:00:19 +00:00
castano
141a05edf4 Merge private branch. 2008-04-17 06:59:29 +00:00
castano
7d3facd81a Merge private branch. 2008-04-17 06:59:13 +00:00
castano
17a4f765fb Merge private branch. 2008-04-17 06:58:43 +00:00
castano
cb91740591 Merge private branch. 2008-04-17 06:58:18 +00:00
castano
d10295fbf6 Use DXT1a single color compressor. 2008-04-17 06:55:26 +00:00
castano
fa5e1f5a07 Add single color DXT1a compressor. 2008-04-17 06:54:29 +00:00
castano
9d47e100f1 Add better support for the DX10 DDS formats. 2008-04-11 23:58:41 +00:00
castano
db1b30ee4b Update changelog. 2008-04-11 22:04:59 +00:00
castano
4c759f999c Integrate decompressor tool improvements submitted by Amorilia. 2008-04-11 22:03:42 +00:00
castano
299ad176fc Add experimental image based interface. 2008-04-11 08:06:15 +00:00
castano
5070cc98d3 Do not use constructor that initializes POD types. 2008-04-11 06:50:36 +00:00
castano
133ebfb282 Remove unused parameter warnings.
Do not compile tokenizer; it's not being used, and does not work on win64 yet.
2008-04-09 09:06:19 +00:00
castano
ebe8054728 Cache HAVE_* variables so that they can be edited through the cmake gui. 2008-04-06 05:59:13 +00:00
castano
aa14653d96 Do not cache CUDA_FOUND variable. 2008-04-06 05:54:53 +00:00
castano
389adb5368 Update change log, merge 2.0 changes, add attributions. 2008-03-27 04:45:11 +00:00
castano
bd3314f4af Add inputOptions argument to compressors, so that they can access alpha mode. 2008-03-27 04:28:17 +00:00
castano
065c5f0689 Cleanup simple compressors. Move code from FastCompress to QuickCompress. 2008-03-20 01:39:02 +00:00
castano
cc8656f12b Update project files. 2008-03-14 08:42:24 +00:00
castano
d2384cf47f Remove unused methods. 2008-03-14 08:40:48 +00:00
castano
aff59c22b8 remove unused compressors 2008-03-14 08:40:11 +00:00
castano
59be16d40a Remove unused fitting code. 2008-03-14 08:39:03 +00:00
castano
b7a724448b Remove unnecesary dependency. 2008-03-14 07:32:59 +00:00
castano
259e7c58fd Merge Viktor Linder patch into 2.0 and trunk.
Fixes RGB modes with less than 32 bpp.
2008-03-11 21:22:54 +00:00
castano
307c8b99ee Add support for premultiplied alpha. Patch by Charles Nicholson. 2008-03-07 00:41:03 +00:00
castano
6b933c4f62 Fix post-build command. Copy headers to include/nvtt/. 2008-03-06 20:28:43 +00:00
castano
fd1ac3c61f Add quotes around post build command arguments. Reported by Richard Sim. 2008-03-05 23:26:12 +00:00
castano
65aa7e1eaa Add interface for swizzle color xform. 2008-03-05 22:35:16 +00:00
castano
f5ae4c1a9a Fix indexMirror error reported by Chris Lambert. 2008-03-05 19:42:45 +00:00
castano
75c09220c8 Fix Image copy ctor bug reported by Richard Sim. 2008-03-05 19:11:41 +00:00
castano
9f4b4bd532 Update comments about hole filling algorithms. 2008-03-04 00:13:44 +00:00
castano
bce983f39e Add post build command to copy header files. 2008-02-28 22:07:08 +00:00
castano
ff93ad41cb Fix end of lines. 2008-02-28 21:45:46 +00:00
castano
56c7771100 Fix end of lines. 2008-02-28 21:45:26 +00:00
castano
ccced843e3 Use smaller allocations to prevent errors.
Check for allocation errors.
2008-02-28 21:45:04 +00:00
castano
dafe2b8841 Hide copy ctor and operator to prevent compiler warnings.
Wrap pimpl using NVTT_DECLARE_PIMPL macro.
2008-02-28 21:14:40 +00:00
castano
e3e7fcb226 Check cuda errors to find out whether the cuda context initialization succeeded. 2008-02-28 17:52:32 +00:00
castano
970395fba8 Fix osx build. 2008-02-28 17:02:29 +00:00
castano
8a24a93e2f Disable CUDA when memory allocations fail. 2008-02-28 16:06:27 +00:00
649 changed files with 160168 additions and 47002 deletions

3
.github/FUNDING.yml vendored Normal file
View File

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

33
.github/workflows/build.yml vendored Normal file
View File

@ -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 Normal file
View File

@ -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

View File

@ -1,23 +1,63 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.0) CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0)
PROJECT(NV) PROJECT(NV)
ENABLE_TESTING() ENABLE_TESTING()
SET(NV_CMAKE_DIR "${NV_SOURCE_DIR}/cmake") SET(NV_CMAKE_DIR "${NV_SOURCE_DIR}/cmake")
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${NV_CMAKE_DIR}") SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${NV_CMAKE_DIR}")
IF(WIN32) # Compiler check (needs -std:c++11 flag)
SET(GNUWIN32 "${NV_SOURCE_DIR}/gnuwin32") include(CheckCXXCompilerFlag)
SET(CMAKE_INCLUDE_PATH "${GNUWIN32}/include") CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
SET(CMAKE_LIBRARY_PATH "${GNUWIN32}/lib") if(COMPILER_SUPPORTS_CXX11)
ENDIF(WIN32) 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) INCLUDE(${NV_CMAKE_DIR}/OptimalOptions.cmake)
MESSAGE(STATUS "Setting optimal options")
MESSAGE(STATUS " Processor: ${NV_SYSTEM_PROCESSOR}") IF(CMAKE_BUILD_TYPE MATCHES "debug")
MESSAGE(STATUS " Compiler Flags: ${CMAKE_CXX_FLAGS}") SET(CMAKE_DEBUG_POSTFIX "_d" CACHE STRING "Postfix for debug build libraries.")
ADD_DEFINITIONS(-D_DEBUG=1)
ENDIF()
ADD_SUBDIRECTORY(extern)
ADD_SUBDIRECTORY(src) 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) 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) ENDIF(WIN32)
INCLUDE(CPack)

View File

@ -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 NVIDIA Texture Tools version 2.1.0
* Too many changes to list here.
* CTX1 CUDA compressor. * CTX1 CUDA compressor.
* DXT1n 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 NVIDIA Texture Tools version 2.0.1
* Fix memory leaks. * Fix memory leaks.
* Pre-allocate device memory for CUDA compressor. * 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 NVIDIA Texture Tools version 2.0.0
* Fixed PSNR formula in nvimgdiff. * Fixed PSNR formula in nvimgdiff.

View File

@ -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 Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation obtaining a copy of this software and associated documentation

View File

@ -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.

83
README.md Normal file
View File

@ -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

View File

@ -1 +1 @@
2.1.0 2.1.2

View File

@ -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/,' *

View File

@ -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)

View File

@ -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)

View File

@ -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 )

View File

@ -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 )

View File

@ -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 )

View File

@ -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
)

View File

@ -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 )

View File

@ -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)

View File

@ -1,35 +1,11 @@
INCLUDE(${NV_CMAKE_DIR}/DetermineProcessor.cmake)
# Set optimal options for gcc: # Set optimal options for gcc:
IF(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")
IF(NV_SYSTEM_PROCESSOR STREQUAL "i586") SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=i586") ENDIF()
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(MSVC) IF(MSVC)
# @@ Some of these might only be available in VC8.
# Code generation flags. # Code generation flags.
# SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /arch:SSE2 /fp:fast") # SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /arch:SSE2 /fp:fast")
# SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:SSE2 /fp:fast") # SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /arch:SSE2 /fp:fast")

25
configure vendored
View File

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

BIN
data/bugs/85/Sky.tga Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

BIN
data/bugs/85/sky_dither.dds Normal file

Binary file not shown.

BIN
data/bugs/85/sky_error.dds Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

95
data/bugs/85/tables.cpp Normal file
View File

@ -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;
}

BIN
data/bugs/88/nmap.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 654 B

BIN
data/bugs/mthomson/world.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 309 KiB

BIN
data/bugs/mthomson/world.tif Executable file

Binary file not shown.

Binary file not shown.

BIN
data/luma/testpat_orig.1k.png Executable file

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.

BIN
data/testsuite/lightmap/tower.dds Executable file

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