gimp/plug-ins/file-dds
Jehan aea69dc165 plug-ins: file-dds (read) cleaned up a bit for better error handling.
Fatal errors should not be done with g_message(), but by setting the
returned GError appropriately. The main GError must therefore be passed
through functions.
Some non-fatal warnings may still be outputted with g_message() if we
want people to be aware of them (for instance if we managed to load some
data yet there might have been data loss or errors).
Finally when we are confident that we recovered from the format error,
it is still nice to output some error on standard error (not be totally
silent about it), but probably not need to bother people with popups.
See #5357.

Also clean up C++-style comments into C-style, to follow our coding
style.

Note: I only cleaned ddsread as a continuation of commit 81a3370e1d. I
expect ddswrite to have similar issues, but I did not look at it.
2020-07-26 13:32:18 +02:00
..
.gitignore plug-ins: add .gitignore file to file-dds 2019-01-30 18:48:28 +01:00
COPYING file-dds: add original source code of the DDS plug-in 2019-01-02 18:33:46 +01:00
LICENSE file-dds: add original source code of the DDS plug-in 2019-01-02 18:33:46 +01:00
LICENSE.nvtt file-dds: add original source code of the DDS plug-in 2019-01-02 18:33:46 +01:00
Makefile.am plug-ins: mktables.c in file-dds is unused. 2019-10-20 17:11:34 +02:00
README file-dds: add original source code of the DDS plug-in 2019-01-02 18:33:46 +01:00
README.dxt Fix various typos 2019-09-21 17:10:46 +00:00
TODO file-dds: add original source code of the DDS plug-in 2019-01-02 18:33:46 +01:00
color.c plug-ins: big formatting and indentation cleanup in file-dds 2019-05-23 14:34:00 +02:00
color.h Misc typo fixes in plug-ins/ 2019-08-13 11:50:51 -04:00
dds.c plug-ins: file-dds (read) cleaned up a bit for better error handling. 2020-07-26 13:32:18 +02:00
dds.h plug-ins: remove ddsplugin.h and add ddsread.h and ddswrite.h 2019-10-02 20:54:16 +02:00
ddsread.c plug-ins: file-dds (read) cleaned up a bit for better error handling. 2020-07-26 13:32:18 +02:00
ddsread.h plug-ins: file-dds (read) cleaned up a bit for better error handling. 2020-07-26 13:32:18 +02:00
ddswrite.c Update ddswrite.c 2020-05-06 13:58:28 +00:00
ddswrite.h plug-ins: remove ddsplugin.h and add ddsread.h and ddswrite.h 2019-10-02 20:54:16 +02:00
dxt.c Misc typo fixes in plug-ins/ 2019-08-13 11:50:51 -04:00
dxt.h plug-ins: big formatting and indentation cleanup in file-dds 2019-05-23 14:34:00 +02:00
dxt_tables.h plug-ins: big formatting and indentation cleanup in file-dds 2019-05-23 14:34:00 +02:00
endian_rw.h plug-ins: big formatting and indentation cleanup in file-dds 2019-05-23 14:34:00 +02:00
imath.h plug-ins: big formatting and indentation cleanup in file-dds 2019-05-23 14:34:00 +02:00
meson.build meson: Use libgimp(ui)_dep in plug-ins meson files 2020-05-11 07:01:37 +02:00
mipmap.c plug-ins: big formatting and indentation cleanup in file-dds 2019-05-23 14:34:00 +02:00
mipmap.h plug-ins: big formatting and indentation cleanup in file-dds 2019-05-23 14:34:00 +02:00
misc.c plug-ins: port file-dds to GimpPlugIn and libgimp objects 2019-08-27 14:43:38 +02:00
misc.h plug-ins: port file-dds to GimpPlugIn and libgimp objects 2019-08-27 14:43:38 +02:00
vec.h plug-ins: big formatting and indentation cleanup in file-dds 2019-05-23 14:34:00 +02:00

README

DDS plugin for The GIMP
(C) 2004-2012 Shawn Kirst <skirst@gmail.com>,
with parts (C) 2003 Arne Reuter <homepage@arnereuter.de> where specified.
==========================================

This is a plugin for GIMP version 2.4.x. It allows you to load and save
images in Direct Draw Surface (DDS) format.

Features
==========================================
* Load/Save DDS files using DXT texture compression
* Automatic mipmap generation on save
* Load mipmaps into separate layers
* Load cube map faces and volume map slices into separate layers
* Cube and volume map saving
* Pixel conversion selection for custom formats (RGBA4, R5G6B5, RGB10A2, etc.)
* Load/save DDS files, optionally using DirectX texture compression (DXT)
* Optional automatic mipmap generation when saving
* Load mipmaps into separate layers
* Load cube map faces and volume map slices into separate layers
* Save cube maps and volume maps with automatic mipmap generation support
* Save image with a custom pixel format
* Non-power-of-two image loading and saving support with automatic mipmap generation support
* Compliant with DirectX 10 compressed formats
    

Installation
==========================================
See the file INSTALL for installation instructions