[gimp-dds] / tags / release-2.0.1 / ddsread.c Repository:
ViewVC logotype

Log of /tags/release-2.0.1/ddsread.c

Parent Directory Parent Directory


Links to HEAD: (view) (download) (as text) (annotate)
Sticky Revision:

Revision 88 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 7 23:49:28 2007 UTC (2 years ago) by cocidius
File length: 24733 byte(s)
Diff to previous 57
Replacing 2.0.1 release tag, phase 2 of 2

Revision 57 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 18 18:18:07 2007 UTC (2 years, 7 months ago) by cocidius
Original Path: trunk/ddsread.c
File length: 24733 byte(s)
Diff to previous 49
* Various cleanups
* Renamed all compression types to new DirectX 10 standards

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 43 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Aug 25 00:10:36 2006 UTC (3 years, 2 months ago) by cocidius
Original Path: trunk/ddsread.c
File length: 24533 byte(s)
Diff to previous 39
* Added support for ATI's 3Dc compression format for both reading and writing, as well as both hardware and software 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 38 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 16 00:57:47 2006 UTC (3 years, 3 months ago) by cocidius
Original Path: trunk/ddsread.c
File length: 23547 byte(s)
Diff to previous 33
Disabled the "DDSD_PITCH or DDSD_LINEARSIZE is not set" warning message


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 30 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Jul 29 00:31:41 2006 UTC (3 years, 3 months ago) by cocidius
Original Path: trunk/ddsread.c
File length: 23174 byte(s)
Diff to previous 28
Added read/write support for the R3G3B2 pixel format

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 27 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 26 08:49:36 2006 UTC (3 years, 3 months ago) by cocidius
Original Path: trunk/ddsread.c
File length: 22720 byte(s)
Diff to previous 24
Fixed a bug that caused luminance images to be read improperly due to the
previously added paletted image support.

Revision 24 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jul 26 06:01:22 2006 UTC (3 years, 3 months ago) by cocidius
Original Path: trunk/ddsread.c
File length: 22674 byte(s)
Diff to previous 23
- Added support for reading 8-bit paletted images (Thanks Jason!)
- Added a warning if the pixel format is unknown.

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 19 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Sep 16 00:19:20 2005 UTC (4 years, 2 months ago) by cocidius
Original Path: trunk/ddsread.c
File length: 20979 byte(s)
Diff to previous 18
* Added ability to save in a custom pixel format
* Added ability to load the custom pixel formats

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 15 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Sep 14 23:18:31 2005 UTC (4 years, 2 months ago) by cocidius
Original Path: trunk/ddsread.c
File length: 16292 byte(s)
Diff to previous 12
Fixed bug that caused compressed images with 0 for bits-per-pixel to not load

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 9 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 13 06:57:02 2005 UTC (4 years, 7 months ago) by cocidius
Original Path: trunk/ddsread.c
File length: 15333 byte(s)
Diff to previous 6
Fixed a bug that caused a premature EOF when reading mipmaps for non
power-of-2 images

Revision 6 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Mar 30 06:30:41 2005 UTC (4 years, 7 months ago) by cocidius
Original Path: trunk/ddsread.c
File length: 15358 byte(s)
Diff to previous 4
Fixed a bug that caused layers with 0 sized dimensions to be created causing
an assertion in gimp_drawable_get.

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.

Revision 2 - (view) (download) (as text) (annotate) - [select for diffs]
Added Wed Oct 13 23:08:29 2004 UTC (5 years, 1 month ago) by cocidius
Original Path: trunk/ddsread.c
File length: 15303 byte(s)
Initial revision

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.

  Diffs between and
  Type of Diff should be a

Sort log by:

ViewVC Help
Powered by ViewVC 1.0.4