[gimp-dds] / tags / release-2.0.5 / ddswrite.c Repository:
ViewVC logotype

Log of /tags/release-2.0.5/ddswrite.c

Parent Directory Parent Directory


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

Revision 112 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 10 00:44:43 2008 UTC (18 months, 1 week ago) by cocidius
File length: 52006 byte(s)
Diff to previous 111
Release 2.0.5 tag

Revision 111 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat May 10 00:36:11 2008 UTC (18 months, 1 week ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 52006 byte(s)
Diff to previous 110
* Added Lanczos mipmap filter

Revision 110 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu May 8 23:29:44 2008 UTC (18 months, 2 weeks ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 51969 byte(s)
Diff to previous 104
* Added box mipmap filter, made it default

Revision 104 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed May 7 00:52:32 2008 UTC (18 months, 2 weeks ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 51936 byte(s)
Diff to previous 103
* Added selectable mipmap filter + bilinear filter

Revision 103 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 17 02:24:54 2008 UTC (19 months ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 49909 byte(s)
Diff to previous 99
Created documentation

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/ddswrite.c
File length: 49902 byte(s)
Diff to previous 98
* 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 98 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 10 01:11:55 2008 UTC (19 months, 1 week ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 49892 byte(s)
Diff to previous 97
* Fix reading in non-interactive mode
* Bold advanced options expander on write dialog

Revision 97 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Feb 14 19:51:23 2008 UTC (21 months ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 49826 byte(s)
Diff to previous 96
Fix writing BGR8 format, bpp == 3, not 4

Revision 96 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 30 00:54:05 2007 UTC (23 months, 3 weeks ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 49826 byte(s)
Diff to previous 94
* Added a dialog when interactively loading images for various load time
options (load mipmaps, etc...).

Revision 94 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 29 05:09:50 2007 UTC (23 months, 3 weeks ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 49238 byte(s)
Diff to previous 93
* Don't use DDPF_ALPHAPIXELS in pixel format flags when writing A8 images
* Dropped lookup tables when unpacking RGB565 in dxt.c
* Updated mktables.c to not write expand5 and expand6 lookup tables
* Updated makefiles

Revision 93 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 9 23:54:31 2007 UTC (2 years ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 49238 byte(s)
Diff to previous 92
Use macros in endian.h in pixel conversion routines

Revision 92 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 9 22:13:31 2007 UTC (2 years ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 49354 byte(s)
Diff to previous 91
Fixed reading and writing A8 image formats.  Now correctly uses the
DDPF_ALPHA flag in the pixel format header.

Revision 91 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 9 21:45:54 2007 UTC (2 years ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 49224 byte(s)
Diff to previous 89
* Fixed reading images in A8 format
* Added write support for A8 format

Revision 89 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 9 02:17:06 2007 UTC (2 years ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 48827 byte(s)
Diff to previous 84
Some code cleanups

Revision 84 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Nov 7 21:31:06 2007 UTC (2 years ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 48825 byte(s)
Diff to previous 81
Added a YCoCg scaled compression format.  It's the same as normal YCoCg,
except with extra color precision stored in the blue bits.  Use YCoCg for
high quality with alpha stored in the blue channel at the cost of some color
precision, and YCoCg scaled for the highest color precision without alpha.

Revision 81 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Nov 6 23:27:52 2007 UTC (2 years ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 48340 byte(s)
Diff to previous 74
* Added YCoCg format to uncompressed custom pixel format options
* Tweaked luminance pixel conversion

Revision 74 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 2 22:47:39 2007 UTC (2 years ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 48220 byte(s)
Diff to previous 73
Some cleanup, and minor change to DXT compressor to be compliant with S3TC
standards.

Revision 73 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 2 20:30:23 2007 UTC (2 years ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 48213 byte(s)
Diff to previous 71
* Added advanced options to save dialog to allow choice of the color
selection algorithm used in the DXT compressor, as well as whether or not to
operate on dithered blocks.
* Added distance, luminance and inset bounding box color selection
algorithms to DXT compressor.
* Updated non-interactive interface to allow use of new advanced options

Revision 71 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 2 01:06:43 2007 UTC (2 years ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 44350 byte(s)
Diff to previous 69
Some cleanups

Revision 69 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 1 04:06:28 2007 UTC (2 years ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 44229 byte(s)
Diff to previous 67
Added Alpha multiply compression format

Revision 67 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 1 00:55:16 2007 UTC (2 years ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 43066 byte(s)
Diff to previous 66
Fixed a bug in the DXTn compressor.  All pixels sent to dxt_compress with a
bpp >= 3 are assumed to be in BGR[A] order.

Revision 66 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Nov 1 00:42:49 2007 UTC (2 years ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 43066 byte(s)
Diff to previous 64
* Moved OpenGL specific code to opengl.c
* Finished new compression backend.  Now fully in portable ANSI C code, no
longer needs OpenGL to do compression/decompression, removes requirement for
the external DXTn compression library for software compression.

Revision 64 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Oct 31 19:27:19 2007 UTC (2 years ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 43066 byte(s)
Diff to previous 63
Finished YCoCg compression

Revision 63 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 26 23:59:37 2007 UTC (2 years ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 42699 byte(s)
Diff to previous 62
More work on YCoCg compression

Revision 62 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Oct 26 20:28:50 2007 UTC (2 years ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 41817 byte(s)
Diff to previous 61
Begin work on YCoCg DXT1/5 compression

Revision 61 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Apr 19 15:38:30 2007 UTC (2 years, 7 months ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 41664 byte(s)
Diff to previous 59
Cleanups

Revision 59 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 18 23:02:31 2007 UTC (2 years, 7 months ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 41664 byte(s)
Diff to previous 58
Convert source pixels to RGBA when saving BC3n compressed images

Revision 58 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 18 22:51:41 2007 UTC (2 years, 7 months ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 41401 byte(s)
Diff to previous 57
* Removed 'Swap red and alpha' option, added BC3n (DXT5n) compression type


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/ddswrite.c
File length: 41705 byte(s)
Diff to previous 53
* Various cleanups
* Renamed all compression types to new DirectX 10 standards

Revision 53 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Jan 31 18:30:42 2007 UTC (2 years, 9 months ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 41708 byte(s)
Diff to previous 52
* Fixed non-interactive saving
* Added option to save dialog to choose the transparent color index when
saving paletted images.

Revision 52 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Sat Nov 18 01:35:52 2006 UTC (3 years ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 39744 byte(s)
Diff to previous 51
More fixes/cleanups (thanks to Daniel Jungmann for the patch!)

Revision 51 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Nov 17 23:46:45 2006 UTC (3 years ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 39730 byte(s)
Diff to previous 43
Clean up gcc 4.1/amd64 warnings

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/ddswrite.c
File length: 39700 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/ddswrite.c
File length: 39457 byte(s)
Diff to previous 36
* 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 36 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Aug 9 00:57:00 2006 UTC (3 years, 3 months ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 39418 byte(s)
Diff to previous 35
* Removed dependence on the SGIS_generate_mipmap extension.  It will only be used if it is available.
* Cleaned up mipmap generation code

Revision 35 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 3 07:12:31 2006 UTC (3 years, 3 months ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 41389 byte(s)
Diff to previous 34
* Added support for non-power-of-two volume maps with mipmap generation
* Fixed mipmap generation for indexed volume maps

Revision 34 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Aug 3 01:29:42 2006 UTC (3 years, 3 months ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 41443 byte(s)
Diff to previous 33
Added more cubemap face names

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/ddswrite.c
File length: 41365 byte(s)
Diff to previous 31
* 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 31 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Tue Aug 1 10:49:21 2006 UTC (3 years, 3 months ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 39708 byte(s)
Diff to previous 30
* Fixed indexed image writing.  It was not writing the proper amount of
palette entries when the number of entries was less than 256.
* Fixed indexed image mipmap generation.

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/ddswrite.c
File length: 39608 byte(s)
Diff to previous 29
Added read/write support for the R3G3B2 pixel format

Revision 29 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Fri Jul 28 22:42:02 2006 UTC (3 years, 3 months ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 38928 byte(s)
Diff to previous 28
Added proper mipmap chain generation for indexed images

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/ddswrite.c
File length: 38911 byte(s)
Diff to previous 23
- 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/ddswrite.c
File length: 36572 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/ddswrite.c
File length: 34462 byte(s)
Diff to previous 17
* Added ability to save in a custom pixel format
* Added ability to load the custom pixel formats

Revision 17 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Sep 15 01:19:46 2005 UTC (4 years, 2 months ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 24821 byte(s)
Diff to previous 12
Updated the non-interactive interface and added error checking

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/ddswrite.c
File length: 23759 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/ddswrite.c
File length: 23943 byte(s)
Diff to previous 7
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 7 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Wed Apr 13 05:36:28 2005 UTC (4 years, 7 months ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 16080 byte(s)
Diff to previous 4
- Disabled compression when saving an image with non power-of-2 dimensions
(not compatible with S3TC compression)
- Added mipmap generation for images with non power-of-2 dimensions using
GdkPixbuf

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/ddswrite.c
File length: 15739 byte(s)
Diff to previous 3
Added feature to swap red and alpha channels on save.  This helps preserve
quality when saving normal maps in compressed DXT5 format.

Revision 3 - (view) (download) (as text) (annotate) - [select for diffs]
Modified Thu Oct 14 16:05:55 2004 UTC (5 years, 1 month ago) by cocidius
Original Path: trunk/ddswrite.c
File length: 14750 byte(s)
Diff to previous 2
Duplicate fclose() call in write_image removed.

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/ddswrite.c
File length: 14765 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