Commit Graph

290 Commits

Author SHA1 Message Date
castano
5910d3f4bf Add -fPIC option for GCC, and cleanup a bit. 2009-01-10 01:28:52 +00:00
castano
d292859745 Remove testing code. 2009-01-05 18:21:50 +00:00
castano
4c197ab48c Include correct CUDA runtime headers. 2009-01-04 07:32:41 +00:00
castano
7165dab99f Update version number. 2008-12-16 20:29:31 +00:00
castano
d827cee863 Fix version checking. 2008-12-16 20:27:18 +00:00
castano
d787b30379 Select fastest CUDA device. Merged from trunk. 2008-12-01 07:56:00 +00:00
castano
559bf61f4a Link all libraries dynamically, when nvtt is linked dynamically. 2008-11-14 01:49:09 +00:00
castano
dbfb36b812 Fix CUDA Library detection on Linux. 2008-11-14 01:16:27 +00:00
castano
d58fd00fd9 Fix cmake file. Add NVTT_SHARED=1 definition to export DLL symbols. 2008-10-27 09:34:56 +00:00
castano
cd112e2133 Merge fixes from trunk. Prevent CUDA dll mismatches. 2008-10-27 09:17:09 +00:00
castano
b013aa64b9 Add Library to the build. 2008-10-27 09:16:33 +00:00
castano
112bf2c5c3 Fix error in CUDA single color compressor. 2008-10-27 07:49:32 +00:00
castano
7a85fdc59a Merge fixes from trunk. 2008-10-22 05:32:56 +00:00
castano
f167b79cfd Merge fixes from trunk. 2008-10-22 05:32:35 +00:00
castano
73288eb24b Merge fixes from trunk. 2008-10-22 05:31:53 +00:00
castano
3f13eb89f1 Merge fixes from trunk. 2008-10-22 05:31:28 +00:00
castano
ad43f6e5f2 Increment revision number. 2008-10-22 05:17:55 +00:00
castano
da506404ad Compile nvtt as a shared library. 2008-10-15 18:39:28 +00:00
castano
d253e4bf4f Implement sinc filter... 2008-10-05 09:58:21 +00:00
castano
c59e4db15a Implement general scale filter, including upsampling 2008-09-27 07:32:11 +00:00
castano
bdebc937be Fix infinite loop in indexMirror. Fixes issue 65. 2008-09-24 00:37:38 +00:00
castano
d938e2d753 Update changelog.
Update version.
2008-06-12 01:20:46 +00:00
castano
5fbeb8d34b Fixed error in CompressRGB, as reported by jonsoh in issue 49.
Added support for RGBA pixel format dithering. Fixes issue 50 and issue 51.
Add PixelFormat.h to vc8 project.
2008-06-12 01:16:52 +00:00
castano
f95d09d1e9 Update version numbers. 2008-06-09 19:13:01 +00:00
castano
0b17e3095a Update 2.0 project file.
Fix backported cuda kernel.
2008-06-09 19:05:49 +00:00
castano
6e1a87129f Integrate bug fixes from trunk. 2008-06-09 08:27:00 +00:00
castano
e8bb3f2886 Merge Noel's fix to the 2.0 branch. 2008-05-19 18:30:08 +00:00
castano
f7bbd4b4d7 Merge improved DXT3 compressor from trunk. Fix issue 38. 2008-04-26 08:05:21 +00:00
castano
056aedea97 Fix error in DXT3 cuda compressor. 2008-04-17 08:16:10 +00:00
castano
dda3b661dd Update version number of DDS files. 2008-04-17 08:15:23 +00:00
castano
08ca2fbe16 Set correct swizzle code for 3Dc files. 2008-04-17 07:14:27 +00:00
castano
de042e828a Add plane class. 2008-04-17 07:06:00 +00:00
castano
64cbd74ef0 Merge trunk fixes. 2008-04-17 07:04:20 +00:00
castano
3d1b9324e1 Add single color compressor for DXT1a. 2008-03-27 05:07:40 +00:00
castano
07df6e7539 Merge trunk fixes to 2.0 branch. Get things ready for 2.0.2 release. 2008-03-27 04:44:29 +00:00
castano
46334cb96a 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
21fb83c081 Merge fixes from trunk. 2008-03-05 19:44:00 +00:00
castano
4c3549cb66 Merge copy ctor bug reported by Richard Sim.
Update ChangeLog.
2008-03-05 19:17:06 +00:00
castano
3dae7f9b70 Add missing changes. 2008-02-28 22:34:18 +00:00
castano
ebe47a0f78 Merge fixes from trunk.
- better error CUDA checking.
 - eliminate compiler warnings.
 - fix end of lines.
2008-02-28 22:29:37 +00:00
castano
21859216bc I should be using branches instead of tags. 2008-02-28 07:49:13 +00:00
castano
d0c21cecfb Update stress test.
Fix errors in single color compressor.
2008-02-28 03:09:51 +00:00
castano
b41752aa84 Apply singlecolorpatch.diff from Amir Ebrahimi.
Add single color compressor to CUDA implementation.
2008-02-16 09:53:07 +00:00
castano
eb36ef86a7 Fix single color compressor. 2008-02-16 02:48:28 +00:00
castano
5dbfb20b60 Add DXT1n and CTX1 CUDA compressors. 2008-02-15 08:58:02 +00:00
castano
c7fcc3ef4b Improve stress test to detect errors in the output. 2008-02-14 09:21:57 +00:00
castano
14ae88bb06 Fix leaks. Allocate CUDA memory only once. Free allocations when Compressor is destroyed. 2008-02-14 05:08:26 +00:00
castano
c3749f48cd Bug fix. Only use tonormal conversion for top of the mipmap chain. 2008-02-11 08:35:32 +00:00
castano
9d13742314 Fix errors in DDS loading code. 2008-02-11 07:01:11 +00:00
castano
a9bd20270b Fix DDS reading code. 2008-02-11 07:00:45 +00:00
castano
90eae7a480 Fix compilation error when SIMD is not supported. 2008-02-11 07:00:14 +00:00
castano
525aa5b40b Remove duplicate. 2008-02-06 07:15:13 +00:00
castano
7569ca136b Add missing file. 2008-02-06 07:15:00 +00:00
castano
e1d5bda3e9 prevent overflow when compressing large images. 2008-02-05 22:41:58 +00:00
castano
3c90686e00 Final API changes.
Rename OutputHandler::mipmap method to beginImage.
Add NVTT_VERSION.
Add nvtt::version function.
2008-02-05 00:28:13 +00:00
castano
91ff256adf Do precomputation only when needed. 2008-02-04 10:12:32 +00:00
castano
7b433f08f3 Minor optimizations.
Fix DXT1a support.
2008-02-04 10:01:43 +00:00
castano
357f18c162 Cleanup interface. Provide mipmap filter using a separate method. 2008-02-03 09:30:32 +00:00
castano
3fcf9c9773 Remove commented out code. 2008-02-03 08:27:02 +00:00
castano
039035ae25 Cleanup public header. 2008-02-03 08:24:58 +00:00
castano
79d305008a Add copy constructor and operator=. 2008-02-03 07:34:32 +00:00
castano
3b24951e93 Finish Compressor class.
Move all the image processing to Compressor.cpp.
Finish rescale support, close issue 12.
2008-02-03 07:31:09 +00:00
castano
6f28642282 Set useCuda if CUDA enabled in Compression class. 2008-02-01 19:51:54 +00:00
castano
90a0dc505b Fix typo.
Add bc1n option.
2008-02-01 19:50:55 +00:00
castano
2b291f7871 Fix typos. 2008-02-01 19:50:19 +00:00
castano
67e8ec376d Do not use small keyword. 2008-02-01 19:49:50 +00:00
castano
65842ac7e8 Fix typo.
Do not use small keyword.
2008-02-01 19:49:22 +00:00
castano
1d1dcfe922 Update compressor to new squish interface. 2008-02-01 19:48:51 +00:00
castano
b7f3ce664f Fix weighted cluster fit.
Set metric before color sets.
2008-02-01 19:48:12 +00:00
castano
d44b8e9358 Reenable QuickCompress for DXT5n.
Fix end of lines.
2008-02-01 02:33:51 +00:00
castano
05a760b2f6 Normalize inputs correctly. 2008-01-31 21:48:02 +00:00
castano
6fadaebae5 Disable quick green compressor, until I figure out what's the problem with it. 2008-01-31 21:07:18 +00:00
castano
5475f35262 Some cleanup. 2008-01-31 09:17:32 +00:00
castano
ddc79f69f4 Refactor internals.
Move compression functions to Compressor.cpp.
Implementing rescaling support in a cleaner way.
2008-01-30 08:21:55 +00:00
castano
9ebd736e98 Sync with vc8 file. 2008-01-26 05:37:19 +00:00
castano
ad6597b75e Add create minimal set option. 2008-01-26 05:32:23 +00:00
castano
ebf8234dc6 Update tools to new interface. 2008-01-26 02:47:43 +00:00
castano
d2105f922c More interface changes, update bindings.
Move globals to Compress class, to do CUDA initialization only once.
enableCUDA is broken, will be fixed later tonight.
2008-01-26 02:46:12 +00:00
castano
493f1b6604 Rename C# wrapper. 2008-01-24 04:26:13 +00:00
castano
196a77fdde Fix interface errors.
Complete C wrapper.
Complete C# wrapper.
2008-01-24 04:25:24 +00:00
castano
db380be946 Fix typo. 2008-01-19 08:56:03 +00:00
castano
2b23d97d1d Add missing method. 2008-01-19 08:54:57 +00:00
castano
32d694798a Some progress with .net bindings. 2008-01-19 08:52:50 +00:00
castano
92c3dd3f75 remove error threshold. 2008-01-18 23:51:47 +00:00
castano
64020a4cb7 Use tabs instead of spaces. 2008-01-18 23:51:20 +00:00
castano
c8ac20ee0f Remove errorThreshold. 2008-01-18 23:50:22 +00:00
castano
3383851e44 Add C# wrapper. 2008-01-18 23:47:05 +00:00
castano
05d14e97bb Some progress with C wrapper. 2008-01-18 08:49:57 +00:00
castano
d89c26889c Add alpha component to color weights. It may be needed in the future. 2008-01-18 06:11:58 +00:00
castano
ac0cb61927 Eliminate W4 warning. Add assert. 2008-01-17 20:40:40 +00:00
castano
593cce308a Disable copy constructors. Eliminates some W4 warnings. 2008-01-17 20:39:59 +00:00
castano
204d6381f3 Add warnings about functionllity not fully implemented. 2008-01-17 05:44:21 +00:00
castano
963b8e1541 Export more classes. 2008-01-17 05:34:58 +00:00
castano
f76e76cbe6 Export basic classes instead of exporting only their methods. 2008-01-17 05:32:50 +00:00
castano
7bf3927635 Fix red initialization for Capcon's trip. 2008-01-16 08:34:26 +00:00
castano
3e702e563b Add support for win64.
Disable PFM.
Disable Tokenizer.
2008-01-16 08:01:24 +00:00
castano
30f8ef09b5 use tabs 2008-01-16 01:31:24 +00:00
castano
a46a788760 Fix end of lines 2008-01-16 01:30:40 +00:00
castano
9c963172f3 Add support for Capcon's DXT trick by setting the red channel to 1 in the DXT5n mode. 2008-01-15 19:38:13 +00:00
castano
6587d05d72 Do not install nvconfig.h 2008-01-09 08:13:08 +00:00