Commit Graph

26 Commits

Author SHA1 Message Date
bf98388d97 plug-ins: set blue channel of BC5 dds images to 0 instead of 255.
Information in issue #6200 revealed that 0 as default value for
the blue channel is a lot more common than 255 so let's use
that instead. The discussion and testing revealed no negative
effects for the other formats that use the same code to
initialize the memory to read blocks of image data.

(cherry picked from commit 691548579a)
2021-01-05 22:48:56 -05:00
c82c995bd3 plug-ins: fix incorrect dds BC5 images saved by GIMP.
Since older versions of our GIMP dds file exporter incorrectly
saved BC5 dds images with the red and green channels
swapped we should fix that. Since the exporter already
wrote the plug-ins version number and that it is written by
GIMP we can check for these incorrect images.

To enable that we increase the plug-ins revision in this
commit and swap red and green channels for images
that have an older version number and are of the
correct type.

(cherry picked from commit a4cc8b7070)

# Conflicts:
#	plug-ins/file-dds/dds.h
2021-01-05 22:48:00 -05:00
204c6fa8a5 plug-ins: fix #6200 DDS BC5 compression/decompression has Red and Blue swapped.
(cherry picked from commit efa899ad15)
2021-01-05 22:40:20 -05:00
d9b102e196 Misc typo fixes in plug-ins/
(cherry picked from commit c1585d609b)
2020-09-08 23:22:57 +00:00
8f539680de plug-ins: fix #5357 Image marked as compressed, but DDSD_LINEARSIZE is not set.
(cherry picked from commit 81a3370e1d)
2020-07-26 13:46:09 +02:00
cd1c842cd5 plug-ins: fix duplicate mnemonic in one string in ddswrite.c 2020-05-14 09:41:58 +02:00
06049c3ac5 Update ddswrite.c
(cherry picked from commit f00df8f773)
2020-05-06 18:35:53 +02:00
414a9a7f49 plug-ins: mask the 3 "Converts *" procedure from file-dds plug-in.
See equivalent commit ccc8224aa9 in master
(couldn't cherry-pick as code changed too much with new API obviously).

Let's also hide these procs even in gimp-2-10, because that's how much
these don't really make sense for a core plug-in IMO.
2019-09-16 11:13:15 +02:00
a02958c5ce Missing mnemonics on several file dialogs
This path corrects missing mnemonics on several save/open/export dialogs.

save: file
open: file, dds, fits, tiff
export: bmp, dds, fli, gbr, gih, mng, pat, pnm, pdf, raw, sunras, sgi, webp
2019-09-05 12:46:14 +00:00
7cc61ade2b plug-ins: link dds plugins against libm
(cherry picked from commit 1661aab620)
2019-08-14 11:58:26 +02:00
d578aa67f5 plug-ins: clean up the file-dds GUI, remove the "Advanced" expander 2019-07-22 01:05:43 +02:00
9501d63b20 plug-ins: big formatting and indentation cleanup in file-dds
Also change the license to GPL 3 or later, like all other files.

(cherry picked from commit 2a48a5f868)
2019-05-23 14:35:44 +02:00
6d6bf8ec72 Issue #3140 - Export as DDS dialog does not have an Export button
(cherry picked from commit d7a4d5c6a8)
2019-05-13 20:36:32 +09:00
Ell
2dad85b84f libgimpwidgets, app, plug-ins: use GimpSpinButton everywhere
Replace all direct uses of GtkSpinButton with GimpSpinButton, so
that its modified behavior extends to all our spin buttons.
2019-03-09 07:43:13 -05:00
Ell
bfa6285d23 plug-ins: in file-dds, rename endian.h to endian_rw.h ...
... to avoid clashing with the system <endian.h>

Thanks Andrea!

(cherry picked from commit b5a34c3190)
2019-02-17 13:35:22 -05:00
b81723042e plug-ins: add .gitignore file to file-dds
(cherry picked from commit 0fa98d4849)
2019-01-30 18:49:36 +01:00
d75a4615bd plug-ins: a lot of coding style cleanup in file-dds.
Still a lot more to do but pushing WIP to not have it wasted if more
commits come in from others.
Also got rid of some global variables.

(cherry picked from commit ff2d22d915)
2019-01-02 21:49:34 +01:00
188c82ddc8 plug-ins: "Export as DDS" is translatable.
Thanks to Piotr Drąg for raising my overlooking this.

(cherry picked from commit d1de204dbc)
2019-01-02 20:48:38 +01:00
c8b663e1b3 plug-ins: get rid of "Show this dialog" checkbox in file-dds.
None of our load plug-ins have such a checkbox, so this is not
consistent. Moreover one you uncheck it, you just can't get back the
dialog until next GIMP restart. That's very bad usability.

(cherry picked from commit 948608e658)
2019-01-02 19:37:59 +01:00
80667aa73f plug-ins: s/Save as DDS/Export as DDS/
Let's make the GUI title consistent with our naming.

(cherry picked from commit 7e68aa37c1)
2019-01-02 19:17:22 +01:00
4c4c54af2d plug-ins: fix a few more warnings.
There are still a bunch of warnings, especially regarding usage of
GtkTable, GtkMisc and some unused functions.

(cherry picked from commit 8f49fad3da)
2019-01-02 18:55:24 +01:00
a6385fa096 plug-ins: make the file-dds plug-in load correctly.
This commit fixes the following error:

> attempted to install a procedure with a full menu path as menu label,
> this is not supported any longer.

Instead, if we want new items in menu, we should use
gimp_plugin_menu_register(). I add the calls, yet comment them out,
since I don't think we want these various conversion calls into the
provided filters. The proper way for data conversion should be through
babl/GEGL.

(cherry picked from commit 67a80c8667)
2019-01-02 18:55:23 +01:00
4c8f8f45c0 plug-ins: make file-dds compile.
This is still very broken and it doesn't load well. But at least it
compiles!
All build errors (and a few warnings though not all) fixed.

(cherry picked from commit df8a20956b)
2019-01-02 18:55:23 +01:00
91c6f27cf2 file-dds: mark some user-vsible messages for translation, expose them to PO files
Unfortunately, no items of comboboxes are currently translatble
due to the way the code is written.

(cherry picked from commit 2f3504e06a)
2019-01-02 18:55:23 +01:00
994368d68d file-dds: support for DXT2/DXT4, initial build and GEGL-related fixes
(cherry picked from commit d25348ca24)
2019-01-02 18:55:22 +01:00
369884cf9c file-dds: add original source code of the DDS plug-in
This is the code from the 'gimp-2.9' branch of the plug-in,
integrated into GIMP's build system.

(cherry picked from commit 79bc2dc1ef)
2019-01-02 18:54:52 +01:00