Gimp/plug-ins/file-dds
Jacob Boerema c8a8d06cd8 plug-ins: move unchanging code out of the loop in dds load_layer
Optimize dds loading a bit by moving code that doesn't change outside
the loop:
1. The number of bits to be shifted when the source isn't exactly 8 or
16 bits depends on bytes per sample and isn't changing inside the loop.
2. Use rowstride variable to compute width * d->bpp once.
3. The check for rowstride > hdr->pitch_or_linsize doesn't change
inside the loop so move it out.

Inside the loop we only check the DDSD_PITCH flag once and move both
the size check and the fread check inside it.
2023-11-02 15:21:23 -04:00
..
color.c plug-ins: big formatting and indentation cleanup in file-dds 2019-05-23 14:34:00 +02:00
color.h plug-ins: fix #6755 DDS RGB10A2 has Red and Blue swapped. 2021-04-23 14:31:50 -04:00
COPYING
dds.c plug-ins: dds string fixes 2023-10-26 21:52:32 +00:00
dds.h Issue #4492: Add "Flip image", save visible layers feature to DDS 2022-05-16 18:56:16 +00:00
ddsread.c plug-ins: move unchanging code out of the loop in dds load_layer 2023-11-02 15:21:23 -04: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 plug-ins: port dds-write to GimpProcedureDialog. 2023-10-26 17:16:49 +00:00
ddswrite.h plug-ins: port dds-write to GimpProcedureDialog. 2023-10-26 17:16:49 +00:00
dxt.c plug-ins: set blue channel of BC5 dds images to 0 instead of 255. 2021-01-05 17:58:20 -05: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
LICENSE
LICENSE.nvtt
meson.build build: Add support for OpenMP dependency 2023-01-09 16:41:06 +00: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
README
README.dxt Fix various typos 2019-09-21 17:10:46 +00:00
TODO
vec.h plug-ins: big formatting and indentation cleanup in file-dds 2019-05-23 14:34:00 +02:00

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