Log of /tags/release-2.0.7/ddsread.c
Parent Directory
Revision
120 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Nov 11 19:05:16 2008 UTC (12 months, 1 week ago) by
cocidius
Original Path:
trunk/ddsread.c
File length: 28239 byte(s)
Diff to
previous 99
* Fix some gcc 4.3 warnings
* Corrected mipmap image generation for DXT compressed images when mipmap
image has a dimension smaller than 4 pixels
Revision
99 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Apr 11 00:54:26 2008 UTC (19 months, 1 week ago) by
cocidius
Original Path:
trunk/ddsread.c
File length: 28150 byte(s)
Diff to
previous 96
* Updated README, LICENSE and INSTALL
* Updated information in file headers (email address, copyright)
* An optimization for the refine_block() function in dxt.c (Thanks to Fabian
Giesen ('ryg'))
Revision
49 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Sep 8 07:24:20 2006 UTC (3 years, 2 months ago) by
cocidius
Original Path:
trunk/ddsread.c
File length: 24743 byte(s)
Diff to
previous 43
* When reading compressed images, zero out destination buffer and fill alpha
channel with full opacity before decompressing. This is mainly for 3Dc
compressed images, as the blue channel should be zero and the alpha channel
fully opaque.
* Some more cleanup for 3Dc compression
Revision
39 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Tue Aug 22 01:08:38 2006 UTC (3 years, 3 months ago) by
cocidius
Original Path:
trunk/ddsread.c
File length: 23606 byte(s)
Diff to
previous 38
* Moved the endian-safe memory to integer casting macros out of ddsplugin.h and into newly created file endian.h
* Added optional software decompression routines to dxt.c. Compression routines to follow shortly...
* Various code cleanups and Makefile modifications
Revision
33 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Aug 3 01:23:31 2006 UTC (3 years, 3 months ago) by
cocidius
Original Path:
trunk/ddsread.c
File length: 23545 byte(s)
Diff to
previous 30
* Added support for writing volume map mipmap chains for indexed images (not very good ATM)
* Pre-convert indexed images to RGB for better quality mipmaps if a pixel format conversion is requested
Revision
28 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Fri Jul 28 20:32:44 2006 UTC (3 years, 3 months ago) by
cocidius
Original Path:
trunk/ddsread.c
File length: 22472 byte(s)
Diff to
previous 27
- Added proper read support for 8-bit paletted images. They are now read
into an indexed gimp image.
- Added write support for indexed images
Revision
23 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Oct 13 20:45:49 2005 UTC (4 years, 1 month ago) by
cocidius
Original Path:
trunk/ddsread.c
File length: 21169 byte(s)
Diff to
previous 19
* Added L8 and L8A8 pixel formats
* Fixed all pixel formats when writing images. All images saved with the
plugin should be compatible with various DDS tools out there (tested with
the DirectX DDS viewer, and nVidia's image converter)
Revision
18 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Thu Sep 15 07:53:50 2005 UTC (4 years, 2 months ago) by
cocidius
Original Path:
trunk/ddsread.c
File length: 20043 byte(s)
Diff to
previous 16
* Update feature list/planned features in README
* Added better detection of pixel formats when loading
* Added support to load RGBA4, R5G6B5 and L16/I16 formats
Revision
16 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Sep 14 23:38:14 2005 UTC (4 years, 2 months ago) by
cocidius
Original Path:
trunk/ddsread.c
File length: 16973 byte(s)
Diff to
previous 15
It seems there are a lot of DDS images out there that don't have the
DDSD_PITCH or DDSD_LINEARSIZE flags set. And further, have 0 in the
pitch/linear size field of the header. This goes against the DDS image
standards. But since the problem seems so common, I've decided to demote
the DDSD_PITCH or DDSD_LINEARSIZE error to a warning, and assume DDSD_PITCH
for uncompressed images and DDSD_LINEARSIZE for DXT compressed images.
Further, if the pitch/linear size is 0, I attempt to calculate it based on
the width and height and pixel format read from the header. This should
allow the plugin to open a lot of files it previously couldn't. So much for
standards :)
Revision
12 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Sep 14 21:51:36 2005 UTC (4 years, 2 months ago) by
cocidius
Original Path:
trunk/ddsread.c
File length: 16184 byte(s)
Diff to
previous 11
A few more fixes:
* Fixed grayscale and gray-alpha loading for REAL this time.
* Disable compression for volume maps (for now...)
* Fixed mipmap saving (oops!)
Revision
11 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Wed Sep 14 20:31:02 2005 UTC (4 years, 2 months ago) by
cocidius
Original Path:
trunk/ddsread.c
File length: 15480 byte(s)
Diff to
previous 9
Gearing up for the next release with a slug of new features:
* Added support for writing grayscale and gray-alpha images
* Added support for writing cube maps (Image must have 6 layers,
all the same size and pixel format. Cube faces controlled by layer name
contents, see documentation.)
* Added support for writing volume maps (Image must have > 1 layer,
all the same size and pixel format). Volume map compression is currently
not supported. Mipmap support is scetchy ATM. If your image's layer count
is a power of two and the image dimensions are a power of two, everything
should work fine using SGIS_generate_mipmap. If your layer count or image
dimensions are not a power of two, then mipmap generation will likely fail
unless your video card supports ARB_texture_non_power_of_two. A fix for
this will soon follow.
* Fixed volume map loading
* Cleaned up layer naming convention when loading images with mipmaps or
multiple layers (cube and volume maps)
Revision
4 -
(
view)
(
download)
(
as text)
(
annotate)
-
[select for diffs]
Modified
Sat Oct 23 00:03:58 2004 UTC (5 years, 1 month ago) by
cocidius
Original Path:
trunk/ddsread.c
File length: 15299 byte(s)
Diff to
previous 2
Added feature to swap red and alpha channels on save. This helps preserve
quality when saving normal maps in compressed DXT5 format.
This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
enter a numeric revision.