Commit Graph

659 Commits

Author SHA1 Message Date
castano
8be0573599 Fix msvc warnings. 2009-03-02 09:21:30 +00:00
castano
f9855c6f0e Fix build in win64. 2009-03-02 09:21:07 +00:00
castano
5c08d6dbef Do not use CUDA to compress small mipmaps. 2009-03-02 09:09:05 +00:00
castano
6b1e49e31b Add alpha command line option. 2009-03-02 09:07:07 +00:00
castano
1f6201ac6a Cleanup cmake files. 2009-03-02 07:32:00 +00:00
castano
9328c4da6c Move poshlib to extern. 2009-03-02 07:30:38 +00:00
castano
89fb0bcfe5 Update changelog and buildpkg script. 2009-03-02 07:01:06 +00:00
castano
0e8223ea92 More cleanup. Remove files that are not strictly required. 2009-03-01 02:38:24 +00:00
castano
d7f667ae96 Merge changes from private tree.
Eliminate files that are not needed for NVTT.
2009-03-01 00:18:47 +00:00
castano
61376efe8b Gnome thumbnailer. Fixes issue 82. 2009-02-03 09:32:54 +00:00
castano
beac56bf12 Update changelog. 2009-02-03 09:30:54 +00:00
castano
b83b6d8957 Add gnome thumbnailer by Frank Richter. Fixes issue 82. 2009-02-03 09:29:25 +00:00
castano
763de3172f Add support for comments. 2009-02-03 09:23:58 +00:00
castano
42595b26e2 Fix const-correctness. 2009-02-03 09:22:30 +00:00
castano
a998460157 Add support for PNG in nvdecompress. Patch by Frank Richter. Fixes issue 80. 2009-02-03 09:08:39 +00:00
castano
41a6c23d44 Add support for saving PNG files. Patch by Frank Richter. Fixes issue 79. 2009-02-03 09:06:21 +00:00
castano
d35ef3a509 Merge changes from p4. 2009-02-03 08:22:35 +00:00
castano
3048fb2db3 Fix typo. Fixes issue 82. 2009-02-03 08:02:20 +00:00
castano
2d477a341f Fix alpha-weighted filtering. 2009-01-28 12:10:04 +00:00
castano
f1844405cc Use alpha-aware resize when alpha is used for transparency and it's not premultiplied. 2009-01-28 10:58:57 +00:00
castano
4071603f91 Add support for alpha weighting to float image. 2009-01-28 10:55:23 +00:00
castano
e5947f378a Fix generation of blended sobel filter. Fixes issue 77. 2009-01-28 00:56:27 +00:00
castano
cd541d6635 Do not use custom FindGLUT cmake script. 2009-01-27 23:39:33 +00:00
castano
db2ecf82a7 Print message when cuda acceleration enabled. 2009-01-20 10:43:56 +00:00
castano
4d3045d5eb Add squish.h to project. 2009-01-19 10:43:53 +00:00
castano
09cfd3f36e Cleanup color rounding and expansion. 2009-01-19 10:42:31 +00:00
castano
fa4768557a Implement FileSystem::exists correctly on win32. 2009-01-19 10:41:51 +00:00
castano
2518292006 Add FileSystem.{h,cpp} to project. 2009-01-19 10:41:09 +00:00
castano
8cca66d9c9 Try to optimize color rounding and expansion.
Detect CUDA 2.1 properly.
2009-01-19 09:54:43 +00:00
castano
284fd08d53 Add NV5x/G8x DXT decompression code.
Clean things up a bit, remove old code.
2009-01-13 08:25:04 +00:00
castano
97eaa44acc Fix name of libpng dll. 2009-01-10 04:40:46 +00:00
castano
438e32c3e2 Merge fixes from 2.0 branch. 2009-01-10 01:31:02 +00:00
castano
6e64f04755 Use timer class instead of clock.
Check that file exists before opening.
2009-01-09 05:46:24 +00:00
castano
252efa0aff Fix error sin string builder and path. 2009-01-09 05:45:36 +00:00
castano
57d202acda Implement exists with access instead of stat. 2009-01-09 05:45:02 +00:00
castano
13278326be Implement FileSystem::exists(). 2009-01-09 02:24:32 +00:00
castano
ba38c1b64d Start implementing experimental interface. 2009-01-05 10:17:06 +00:00
castano
e43887e44b Include correct headers. 2009-01-04 07:29:35 +00:00
castano
e9b65db23f Merge changes from internal branch. Whitespace changes only. 2008-12-29 11:34:39 +00:00
castano
3f3097a2c9 Do not enable testing. 2008-12-29 11:33:48 +00:00
castano
b2af642311 Merge changes from internal branch.
- Better support for win64.
2008-12-29 11:33:20 +00:00
castano
c7b94cf190 Update after changes in nvcore. 2008-12-29 11:29:45 +00:00
castano
c085684b0c Add pull push filter with bilinear filtering. 2008-12-29 11:28:29 +00:00
castano
13f86b74f1 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
01b67619b5 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
0180737695 Check version properly. 2008-12-16 20:25:12 +00:00
castano
989883a20c Include cuda runtime properly. 2008-12-09 11:26:08 +00:00
castano
2dfc0ff6ca Do not use kahansum, that was stupid.
Include cuda runtime properly.
2008-12-09 11:25:46 +00:00
castano
1fc2da4b82 Use KahanSum to compute RMSE.
Fix typos.
2008-12-07 23:15:06 +00:00
castano
9e05c7aaa7 Preserve cluster location for empty partitions. 2008-11-24 10:35:42 +00:00
castano
1aa2fc9440 Cleanup 4 means compressor. 2008-11-24 10:35:07 +00:00
castano
19299ef7f0 Add support for alpha modes in the CPU compressors. Fixes issue 30. 2008-11-24 10:34:16 +00:00
castano
09708ce496 Add FileSystem to build. 2008-11-23 22:25:47 +00:00
castano
4e6485a2e5 Add squish external compressor.
Rename our squish version to nvsquish.
2008-11-23 08:59:56 +00:00
castano
2004c0fe36 Remove executable flag. 2008-11-22 22:12:05 +00:00
castano
7de636d58c Merge optimizations from squish. 2008-11-22 22:10:51 +00:00
castano
8721c0d16e Fix tabs. 2008-11-22 22:10:11 +00:00
castano
d7021b941b Create output directory. 2008-11-22 22:08:31 +00:00
castano
67b9def0e8 Add file system helper. 2008-11-22 22:07:07 +00:00
castano
4a1cbadfa6 Use metric to measure distance to clusters. 2008-11-22 21:32:27 +00:00
castano
d3d0a13c73 Merge optimizations from official squish release. 2008-11-22 11:36:06 +00:00
castano
803d7852bb Merge optimizations from official squish relese. 2008-11-22 11:35:13 +00:00
castano
e5dbcf645c Try using 4 means clustering. 2008-11-22 11:34:29 +00:00
castano
725a1576cc Add support for regressions. 2008-11-22 11:33:31 +00:00
castano
f4c8a14109 Fix 4 means clustering. 2008-11-22 11:32:51 +00:00
castano
ad036808b3 Add fitting implementation to project. 2008-11-22 11:30:46 +00:00
castano
aa724d4f78 Add stream to the vc8 project. 2008-11-22 11:28:18 +00:00
castano
1dc2f8cbdf Update changelog. 2008-11-22 08:37:56 +00:00
castano
d2ec0643c3 Try 4-means. 2008-11-22 08:37:14 +00:00
castano
daa843298d Rename stress to testsuite. Install target. 2008-11-22 08:36:55 +00:00
castano
f8332036b0 Remove squish build and project files. 2008-11-22 08:36:17 +00:00
castano
469accc203 Fix errors. 2008-11-22 08:35:04 +00:00
castano
3cbf8b6ced Add fitting code to build. 2008-11-22 08:30:55 +00:00
castano
99ea48e9e3 Add PCA, and 4-means implementation. 2008-11-22 08:30:20 +00:00
castano
dac1ef329c Do not mix tabs and spaces. 2008-11-22 00:14:05 +00:00
castano
06a360a96d Do not print stupid messages. 2008-11-22 00:13:14 +00:00
castano
415776db9f Add command line options.
Reformat output for easier parsing.
2008-11-21 09:09:57 +00:00
castano
b26e015673 Fix segfault on linux. Merged from 2.0 branch. 2008-11-21 09:08:00 +00:00
castano
02e4320d23 Fix bug in dxt decompression.
Output files as TGA.
2008-11-21 08:06:25 +00:00
castano
9b9a2fd737 Output compressed files. 2008-11-21 07:58:49 +00:00
castano
bbd1f3e3a8 Add const keyword to const arguments. 2008-11-21 07:57:28 +00:00
castano
40bf6cdc2a Fix bug in testsuite. 2008-11-21 07:45:09 +00:00
castano
7f0eb849f0 Modify stress test to compress a list of real images. 2008-11-21 07:38:12 +00:00
castano
bbaf9d1803 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
df9d9fb049 Remove gcc-4.3 warning. 2008-11-14 02:19:39 +00:00
castano
9f3baa51cf Fix bug detected by gcc-4.3. 2008-11-14 02:19:07 +00:00
castano
f852d7c89e Fix gcc-4.3 warnings. 2008-11-14 02:18:35 +00:00
castano
612ac4c067 Fix gcc-4.3 warning. 2008-11-14 02:16:36 +00:00
castano
e1ec0b33b7 Remove unused function. 2008-11-14 02:15:35 +00:00
castano
72ee072073 Fix CUDA detection code on linux. 2008-11-14 01:15:36 +00:00
castano
deb9baad67 Do not use cuda API when CUDA not found.
Fix end of lines.
2008-11-10 21:54:03 +00:00
castano
aa1245b3b2 Select fastest device. 2008-10-30 04:50:41 +00:00
castano
f33e21bb0a Fix comment. 2008-10-27 08:00:46 +00:00
castano
34c4b959ad Fix cmake file. 2008-10-26 05:56:32 +00:00
castano
988c033d10 Fix build under VC7 2008-10-22 03:48:06 +00:00
castano
c5783c9cf7 Update vc8 projects. 2008-10-17 18:40:16 +00:00
castano
a073d741df Update vc9 projects. 2008-10-17 18:38:55 +00:00
castano
7e2a153b94 Win32 fixes. 2008-10-17 18:37:17 +00:00
castano
3f62d4fe4c Build nvtt as a shared library. 2008-10-16 22:22:45 +00:00
castano
75e75e8f9d Prevent missmatches between incompatible versions of the CUDA runtime and the CUDA driver. 2008-10-16 22:21:21 +00:00
castano
61fabfcacb Add library loading helpers. 2008-10-16 22:20:31 +00:00
castano
da7bfea934 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
687661d5c2 Update changelog with branch 2.0 fixes. 2008-10-15 07:17:20 +00:00
castano
b0e885d124 Integrate branch 2.0 to trunk. 2008-10-15 07:16:57 +00:00
castano
ea0b69df61 Use unsigned ints for stream sizes and positions. 2008-10-15 07:15:50 +00:00
castano
194b0e2033 Fix compiler errors under gcc-4.3 2008-10-15 07:15:00 +00:00
castano
b813ce4e8c Fix compiler errors under gcc-4.3 2008-10-15 07:14:25 +00:00
castano
aa35be01cc Compile CUDA files as C++. 2008-10-11 06:43:57 +00:00
castano
dec4e22d44 Fix linux build. 2008-10-05 19:20:42 +00:00
castano
35a8b9adff Fix linux includes. 2008-10-05 19:17:59 +00:00
castano
1a4fb0d890 Fix errors in Green and Alpha optimal compressors. 2008-10-02 07:33:05 +00:00
castano
c488789abd Update changelog. 2008-10-01 22:30:19 +00:00
castano
e067ba8ff9 Set correct DXT5n swizzle code.
Select swizzle codes in nvtt instead of nvimage.
2008-10-01 22:28:57 +00:00
castano
20210126c7 Try some optimizations. 2008-10-01 22:28:01 +00:00
castano
00dbd401ba 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
e2ce2c9c4e Reference gnuwin32 libs and include paths correctly. 2008-09-11 07:56:39 +00:00
castano
52ea5fa2a8 Set optimal options for release vc9 projects.
Fixes issue 62.
2008-09-11 07:48:02 +00:00
castano
86abad2935 Do not use freeimage yet. 2008-08-20 22:34:08 +00:00
castano
e0b4c51d61 Fix float support. 2008-08-20 22:32:54 +00:00
castano
5da1d9a976 Update version number. 2008-08-20 22:31:14 +00:00
castano
f01ce215d9 Include gnuwin32 directory properly. 2008-08-20 22:30:41 +00:00
castano
ae0c0b4759 Add Half.{h,cpp} to project. 2008-07-31 10:00:05 +00:00
castano
ecf8a217b1 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
1c663ed843 Adding support for floating point input/output. Work in progress. 2008-07-31 02:04:44 +00:00
castano
e0ae3e6fc1 Decompress DDS10 files. Only BC# supported so far. 2008-07-30 02:28:09 +00:00
castano
ce7b547895 Adding support for floating point images as input. 2008-07-29 08:56:40 +00:00
castano
4392d205b3 Fix DDS10 header initialization.
Fix depth initialization.
2008-07-29 08:43:42 +00:00
castano
37bada3b0a Fix color transforms. 2008-07-29 06:05:11 +00:00
castano
e9a71142b7 Fix error in input image transformation. 2008-07-29 05:45:35 +00:00
castano
ca2189ca73 Fix compilation error. 2008-07-29 05:44:31 +00:00
castano
d7cd135ba8 Add option to use dds10 headers. 2008-07-29 02:31:57 +00:00
castano
3d586f0562 Change parameters in declaration to match definition. 2008-07-29 02:31:09 +00:00
castano
15ed9e17c8 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
1ee93680fa do not compile mpeg tests. 2008-07-26 09:01:00 +00:00
castano
06636af58a Reorg header files. 2008-07-05 09:10:45 +00:00
castano
909d13fafd Move ui to separate folder. 2008-07-05 09:10:00 +00:00
castano
40dee8b2a2 Require cmake 2.6.0 2008-07-05 09:09:23 +00:00
castano
264c3ad3fb Fix compilation error under gcc/linux. 2008-07-05 08:57:03 +00:00
castano
2a15548925 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
e0cc45ad75 reorg included files 2008-06-28 08:40:32 +00:00
castano
60a9a6cd7e fix path to gnulibs 2008-06-28 02:57:31 +00:00
castano
f4f44b5c6d fix path to gnulibs 2008-06-28 02:56:57 +00:00
castano
77c38212b5 fix path to gnu libs. 2008-06-28 02:56:27 +00:00
castano
dd8d64f7ec fix path to gnulibs. 2008-06-28 02:55:35 +00:00
castano
ab23899c15 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
b4b41c5131 Check in proposed fix for issue 44. 2008-06-27 18:52:49 +00:00
castano
9799874792 Fix assertion. 2008-06-26 07:23:31 +00:00
castano
46da35a822 Do not compile nvmpegenc. 2008-06-26 07:23:09 +00:00
castano
b3b49541e1 Fix build on OSX 10.5. Solves issue 44. 2008-06-26 07:22:34 +00:00
castano
bc31e5e15a Fix embarrasing typo. 2008-06-24 21:47:47 +00:00
castano
8f94dbed88 Add references. 2008-06-23 19:24:59 +00:00
castano
b2ac206d0f Eliminate warning. 2008-06-19 10:01:56 +00:00
castano
ea0013a42b Fix end of lines. 2008-06-19 09:53:09 +00:00
castano
4a24f48147 Fix solution. 2008-06-19 09:52:20 +00:00
castano
0b67b7ea24 Add PhotoshopExporter template project to solution. 2008-06-19 00:38:15 +00:00
castano
bf2771279c Add photoshop exporter template. 2008-06-19 00:37:15 +00:00
castano
8b1f9b617a Enable Qt ui with win32/msvc. 2008-06-19 00:35:47 +00:00
castano
1833c7952f Add quick and dirty single frame mpeg encoder based on ffmpeg. 2008-06-13 08:12:58 +00:00
castano
f1c10d028a Delete outdated comment. 2008-06-03 06:34:18 +00:00
castano
c42ca29b4c Compile NVTT under G5/leopard 2008-05-23 22:22:09 +00:00
castano
683507094a Fix error in cmake file. 2008-05-23 06:51:02 +00:00
castano
cd1c328136 Print version number in copyright statement. 2008-05-22 21:48:40 +00:00
castano
ea927fe354 Update version number. 2008-05-22 21:48:19 +00:00
castano
0776edc2c5 Do not print text. 2008-05-22 21:32:09 +00:00
castano
acc772d36d Fix errors. 2008-05-22 21:31:44 +00:00
castano
8eba608d6d Fix win32 buid errors and warnings due to FreeImage. 2008-05-22 21:31:15 +00:00
castano
e7d0d881c5 Update projects to use FreeImage. 2008-05-22 21:30:34 +00:00
castano
d2d98d8d3f Update cmake files. 2008-05-22 19:47:52 +00:00
castano
9b8f73ca11 Reorganize external libs. 2008-05-22 19:47:23 +00:00
castano
87ffc3d518 Update changelog. 2008-05-21 19:22:43 +00:00
castano
0cd9e2837c Fix EXR loading code. Issue 45. Fix provided by alastairpatrick. 2008-05-21 19:17:27 +00:00
castano
2f8bc1a6e9 Add -mipfilter command line option, per request of Noel Llopis. 2008-05-19 20:10:05 +00:00
castano
cf45673929 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
64768b0a0e Add support for FreeImage in nvimage.
Add support for floating point input images in nvtt.
2008-05-15 09:47:55 +00:00
castano
719621c327 Define FREEIMAGE_LIBRARIES. 2008-05-15 09:46:45 +00:00
castano
fe04cc95dd Add support for input floating point images. Patch provided by Jim Tilander. See issue 27. 2008-05-15 06:18:24 +00:00
castano
82f431dfc7 Search for freeimage. 2008-05-15 06:17:46 +00:00
castano
702589792c Use standard gram schmidt 2008-05-15 06:04:17 +00:00
castano
f72687bc83 Add freeimage cmake file. 2008-05-15 05:57:11 +00:00
castano
2595a89721 Remove 'virtual' from non virtual methods. 2008-05-08 21:15:05 +00:00
castano
a5dc971ca0 Remove executable flag. 2008-05-08 18:20:55 +00:00
castano
d96fa0f3c5 Whops, check fix for vc9. 2008-05-08 18:18:53 +00:00
castano
a19549760c Update vc9 projects. 2008-05-07 21:58:50 +00:00
castano
430e3651e3 Add vc9 projects. 2008-05-07 21:55:33 +00:00
castano
c8792551b5 Add vc9 folder 2008-05-07 21:45:48 +00:00
castano
5093606dd2 Refactor compression functions, group them into class methods. 2008-05-06 23:55:19 +00:00
castano
ad5502b799 Ups, checked in the file before saving it. 2008-05-06 23:34:46 +00:00
castano
e9ea256a91 Ups, checked in file before saving it. 2008-05-06 23:34:13 +00:00
castano
dd7027a4fe Update ChangeLog. 2008-05-06 23:22:04 +00:00
castano
71a7e3caa8 Add support for linear and swizzle transforms. Fixes issue 4. 2008-05-06 23:21:39 +00:00
castano
5b1227c3cf Add comments indicating where to perform linear color transforms. 2008-05-06 22:01:23 +00:00
castano
224bb3e6d3 Integrate YCoCg color space conversion by Jim Tilander. 2008-05-06 21:49:10 +00:00
castano
785f140e84 Add support for alpha modes in the CUDA compressors. 2008-05-06 20:04:05 +00:00
castano
12a3da043d Add single color checks to CUDA compressors.
Use optimized bitmap table for CTX compressor.
2008-05-06 19:52:27 +00:00
castano
0fd669e8e2 Add cpp file to project so that a library is built. 2008-05-06 19:48:43 +00:00
castano
7ca2e5bf66 factorial optimization suggested by pponywong. 2008-05-06 06:37:06 +00:00
castano
df314db30f Update project files. Remove fast compressor, add optimal compressor. 2008-04-29 22:34:09 +00:00
castano
e49f7783a1 Add missing files to project. 2008-04-29 22:33:42 +00:00
castano
2a18c2474f Fix operator= in String class. 2008-04-29 22:32:12 +00:00
castano
3ff6ff4c84 Fix after refactoring CPU compressors. Changes were not tested with CUDA enabled. 2008-04-29 22:31:55 +00:00