Commit Graph

271 Commits

Author SHA1 Message Date
castano
9e881f28d1 Merge changes from the-witness.
Fix DXT5n compressor.
2010-07-22 10:25:14 +00:00
castano
9094756997 Merge changes from the witness. 2010-07-13 03:08:45 +00:00
castano
e5736fcf92 Add explicit load methods to DirectDrawSurface. 2010-07-01 00:25:44 +00:00
castano
f2c581dec1 Remove unused methods. Add float color block. 2010-06-21 22:23:01 +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
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
035231a928 Minor changes. 2010-05-28 23:16:06 +00:00
castano
51a4fe7e2d Merge private branch. 2010-05-27 23:18:39 +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
f6a39d6eab Remove duplicate code. 2010-05-14 04:58:08 +00:00
castano
85db14f213 Add vertical flip. 2010-05-05 00:24:31 +00:00
castano
447634d263 Fix cmake build in msvc. Fixes issue 111. 2010-03-18 00:13:31 +00:00
castano
96f22f8cd4 Fix isColorNoAlpha, but leave it commented out. 2010-03-10 08:49:40 +00:00
castano
acc02abaf1 Fix messages. 2009-11-03 23:17:11 +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
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
573cc1b371 Add support for UINT16 images when using freetype. 2009-07-28 08:03:36 +00:00
castano
2ca6e4a1bd Add support function for stb compressor. 2009-07-06 09:06:40 +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
8d361eee22 Use memory allocator correctly. 2009-06-13 14:17:10 +00:00
castano
782a127071 Add alpha flag to DXT1a files. 2009-04-16 20:06:08 +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
9aaee3ae16 Add proper todo message. 2009-03-21 07:42:36 +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
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
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
098bc2f905 Fix some endiannes errors. 2009-03-04 09:36:40 +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
69c74d7a5e Add support for comments. 2009-02-03 09:23:58 +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
1afdf2da8a Fix alpha-weighted filtering. 2009-01-28 12:10:04 +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
fa53ddcecd Add NV5x/G8x DXT decompression code.
Clean things up a bit, remove old code.
2009-01-13 08:25:04 +00:00
castano
1f4d313d0f Merge changes from internal branch. Whitespace changes only. 2008-12-29 11:34:39 +00:00
castano
9bda107603 Add pull push filter with bilinear filtering. 2008-12-29 11:28:29 +00:00
castano
a769831fb5 Add const keyword to const arguments. 2008-11-21 07:57:28 +00:00
castano
1cefc366f8 Remove unused function. 2008-11-14 02:15:35 +00:00
castano
12e774ea74 Fix cmake file. 2008-10-26 05:56:32 +00:00
castano
5234060618 Integrate branch 2.0 to trunk. 2008-10-15 07:16:57 +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
0b13b6d0d9 Update version number. 2008-08-20 22:31:14 +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
1941e27148 Fix DDS10 header initialization.
Fix depth initialization.
2008-07-29 08:43:42 +00:00
castano
79529f994f Fix compilation error. 2008-07-29 05:44:31 +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
c70e5d6121 Reorg header files. 2008-07-05 09:10:45 +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
870a3fe438 Add references. 2008-06-23 19:24:59 +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
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
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
c562af6d9b Integrate YCoCg color space conversion by Jim Tilander. 2008-05-06 21:49:10 +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
34ae5bcb6f Merge 2.0 branch fixes. 2008-04-17 07:17:46 +00:00
castano
7d3facd81a Merge private branch. 2008-04-17 06:59:13 +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
d2384cf47f Remove unused methods. 2008-03-14 08:40:48 +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
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
b41752aa84 Apply singlecolorpatch.diff from Amir Ebrahimi.
Add single color compressor to CUDA implementation.
2008-02-16 09:53:07 +00:00
castano
9d13742314 Fix errors in DDS loading code. 2008-02-11 07:01:11 +00:00
castano
79d305008a Add copy constructor and operator=. 2008-02-03 07:34:32 +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
3e702e563b Add support for win64.
Disable PFM.
Disable Tokenizer.
2008-01-16 08:01:24 +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
364663c49d Fix error. Wrong return value. 2007-12-17 06:27:03 +00:00
castano
6fa15f4e5b Output correct number of mipmaps.
Fix nvtt, remove deprecated attributes.
2007-12-17 05:19:55 +00:00
castano
2307416b07 Fix build error. 2007-12-15 08:11:02 +00:00
castano
743599eb1d Fix fast box downsampling filter. 2007-12-15 06:52:17 +00:00
castano
d3240ff992 Add triangle filter sampling. 2007-12-06 10:13:01 +00:00
castano
f8377cf7ed Remove msvc warnings. 2007-12-03 23:26:48 +00:00
castano
4373aa758b merge internal branch:
- some support for floating point images.
- Charles Bloom extrapolation filter.
- misc fixes.
2007-12-03 09:14:19 +00:00
castano
067f3abf54 Cleanup filters. 2007-12-03 08:34:32 +00:00
castano
3359090581 Correct polyphase filters. 2007-12-02 10:31:37 +00:00
castano
c772a00b8f More progress with polyphase filters. 2007-11-28 10:34:40 +00:00
castano
fef6466c1c Fix downscale with polyphase filter. 2007-11-28 07:39:25 +00:00
castano
3ea9d12676 Some progress with polyphase filters. 2007-11-28 05:04:16 +00:00
castano
71788cc904 More gcc warnings. 2007-11-27 08:35:56 +00:00
castano
95a3b5dc77 Eliminate gcc warnings. 2007-11-27 08:35:31 +00:00
castano
4e80c6430f minor edits. 2007-11-22 07:16:17 +00:00
castano
c36bf421f5 rename normalize to normalizeNormalMap 2007-11-22 01:52:10 +00:00
castano
854da30b8e Add nvassemble tool to create cubemaps, volumes, and texture arrays. 2007-11-16 11:05:17 +00:00
castano
18c452a2a6 Add support for EXR files 2007-11-06 09:51:53 +00:00
castano
88c811fca5 remove old comments. 2007-11-05 10:01:34 +00:00
castano
b05689c8e3 Add support for saving exr files. Not tested.
Some cleanups.
2007-11-01 05:35:33 +00:00
castano
7fcda1fb41 recontruct normal more correctly... 2007-10-30 09:30:37 +00:00
castano
645eda8fd4 Merge internal repository.
Delete TODO list, use issue list instead.
2007-10-16 20:53:12 +00:00
castano
fff7b3cf56 Fix z reconstruction. 2007-10-15 10:50:29 +00:00
castano
6cee7e2892 Fix loading of dds normal maps.
Fix computation of angular deviation.
2007-10-15 10:36:49 +00:00
castano
e34a12a46f flatten tree. 2007-10-14 08:58:24 +00:00
castano
b553bb11b8 remove redundant code. 2007-10-12 06:25:18 +00:00
castano
4d0eaf93c4 Add silent flag to disable progress output. Fixes issue 17. 2007-10-12 06:13:56 +00:00
castano
dbe3546690 small fixes. 2007-10-10 23:59:08 +00:00
castano
44e6560111 Fix vc8 warnings. 2007-10-10 17:06:42 +00:00
castano
36ee0aee8d Fix error, do not report that RGB images are not supported. 2007-10-08 10:05:43 +00:00
castano
4b0fca6eca Fix endiannes error. 2007-10-08 03:21:03 +00:00
castano
e7aca55ba3 Improved floating point random number generation.
Fixed loading RGB images, as reported in issue 15.
Moved pixel format conversion helpers to PixelFormat.h
2007-10-08 00:56:58 +00:00
castano
c9c7c42d2b Add support for unpacking arbitrary pixel formats. 2007-09-26 18:00:41 +00:00
castano
3c6cc7cfad Fix whitespaces. 2007-09-20 06:18:23 +00:00
castano
6339a585e2 Update changelog
Remove compiler warnings
2007-09-15 07:11:59 +00:00
castano
13335f3d97 Move fast DXT1a compressor to QuickCompress. 2007-09-05 09:18:12 +00:00
castano
793611fe7f Move endpoint optimization to QuickCompress. 2007-09-05 00:12:59 +00:00
castano
a19df8721d Start using refactored fast compressor.
Fix error with DX10 headers.
2007-09-04 22:46:15 +00:00
castano
d1d71dd2b3 Fix a couple of errors.
Disable cone mapping, it is not ready yet.
2007-09-04 21:48:49 +00:00
castano
0008199435 Add dxt1a fast compressor.
Cleanup fast compressors, move them to QuickCompress.
2007-09-04 10:00:32 +00:00
castano
da3a43ba2e Start adding some support for DX10 DDS files. 2007-08-31 07:52:27 +00:00
castano
6164174325 Start adding support cone maps. 2007-08-23 02:11:15 +00:00
castano
ee28a5a37b Fix memory leaks. 2007-08-06 19:48:52 +00:00
castano
6cdfaaca58 Fix PSD file format support. Read stream in big endian format. 2007-07-26 10:39:18 +00:00
castano
2ea2aaaf4d start adding some support for ctx1 and other fixes. 2007-07-22 06:09:14 +00:00
castano
1308795378 RGB conversion fixes. 2007-07-17 10:00:48 +00:00
castano
2cc70162dd Do not select d3dformat according to pfd. 2007-07-17 09:34:06 +00:00
castano
41db8b8c72 validate setPixelFormat arguments. 2007-07-17 09:28:35 +00:00
castano
1cdcea3164 Add support for arbitrary rgb pixel formats. 2007-07-17 09:16:28 +00:00
castano
cc5bb56f3f Fix PSNR formula. 2007-07-17 01:53:56 +00:00
castano
e341366aa0 Init color block from block linear image. 2007-07-09 10:32:39 +00:00
castano
1548c2ed80 Enable support for DXT3 and DXT5 accelerated compressors. 2007-07-09 10:31:54 +00:00
castano
31c9ef0413 DXT3 and DXT5 cuda compressors. 2007-07-09 10:30:16 +00:00
castano
83490b0b66 diff images with alpha channels. 2007-07-08 09:50:30 +00:00
castano
50a71f78b5 Fix errors and optimize kernel. 2007-07-08 09:46:18 +00:00