Commit Graph

455 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
6a6b3edce1 factorial optimization suggested by pponywong. 2008-05-06 06:37:06 +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
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
34ae5bcb6f Merge 2.0 branch fixes. 2008-04-17 07:17:46 +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
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
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
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
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
ff93ad41cb Fix end of lines. 2008-02-28 21:45:46 +00:00