diff --git a/debian/changelog b/debian/changelog index 518f92a..4456891 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +gimp-plugin-registry (7.20140602+nmu1) unstable; urgency=medium + + * Non-maintainer upload. + * Drop wavelet-decompose plugin: included in gimp 2.10 (Closes: #895387) + + -- Jeremy Bicha Thu, 19 Apr 2018 12:25:13 -0400 + gimp-plugin-registry (7.20140602) unstable; urgency=medium * [b8040b86] Update debian/README.source and add a symlink for github diff --git a/debian/control b/debian/control index cad5f94..91d9c2b 100644 --- a/debian/control +++ b/debian/control @@ -172,13 +172,6 @@ Description: repository of optional extensions for GIMP consists of taking two copies of an image, one blurred, and one sharp, and mixing them to produce an image with a dreamy quality. It is especially well suited to landscape and flower photography. - * wavelet-decompose (0.1.2): Wavelet Decompose - The wavelet decompose plugin decomposes a layer of an image into layers - of wavelet scales. This means that you can edit the image on different - detail scales (frequencies). The trivial recomposition of the image can - be done by GIMP's layer modes so you can see the results of your - modifications instantly. Among the applications are retouching, noise - reduction, and enhancing global contrast. * wavelet-denoise (0.3.1): Wavelet Denoise The wavelet denoise plugin is a tool to selectively reduce noise in individual channels of an image with optional RGB<->YCbCr conversion. diff --git a/debian/copyright b/debian/copyright index f4c24eb..ed5cde1 100644 --- a/debian/copyright +++ b/debian/copyright @@ -1638,24 +1638,6 @@ http://registry.gimp.org/node/24441 THE SOFTWARE. ------------------------------------------------------------------------------- - -wavelet-decompose: - -The plugin was downloaded from: -http://registry.gimp.org/node/11742 - - Wavelet decompose GIMP plugin - - Copyright 2008 by Marco Rossini - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License version 2+ - as published by the Free Software Foundation. - - - - ------------------------------------------------------------------------------ wavelet-denoise: diff --git a/debian/patches/series b/debian/patches/series index bdf26d8..04e5836 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -14,5 +14,4 @@ refocus/fix_warnings refocus/use_lapack fix-ca/menu wavelet-denoise/ldflags -wavelet-decompose/install_-d wavelet-denoise/install_-d diff --git a/debian/patches/wavelet-decompose/install_-d b/debian/patches/wavelet-decompose/install_-d deleted file mode 100644 index 985a468..0000000 --- a/debian/patches/wavelet-decompose/install_-d +++ /dev/null @@ -1,11 +0,0 @@ ---- a/wavelet-decompose/src/po/Makefile -+++ b/wavelet-decompose/src/po/Makefile -@@ -24,7 +24,7 @@ fi - - install: $(LANGUAGES) - for L in $(LANGUAGES); \ -- do install -v -m 0644 $$L.mo "$(LOCALEDIR)/$$L/LC_MESSAGES/gimp20-$(PLUGIN)-plug-in.mo"; \ -+ do install -D -v -m 0644 $$L.mo "$(LOCALEDIR)/$$L/LC_MESSAGES/gimp20-$(PLUGIN)-plug-in.mo"; \ - done - - uninstall: $(LANGUAGES) diff --git a/wavelet-decompose/Makefile b/wavelet-decompose/Makefile deleted file mode 100644 index 42f2a46..0000000 --- a/wavelet-decompose/Makefile +++ /dev/null @@ -1,19 +0,0 @@ - -build: build-stamp - -build-stamp: - make -C src CFLAGS="$(CFLAGS) $(shell gimptool-2.0 --cflags)" - touch build-stamp - -install: build - install -m 755 -d $(DESTDIR)$(PLUGINBINDIR) - install -m 755 -d $(DESTDIR)/usr/share/locale - make -C src/po install LOCALEDIR=$(DESTDIR)/usr/share/locale - install -m 755 src/src/wavelet-decompose $(DESTDIR)$(PLUGINBINDIR) - -clean: - rm -f build-stamp - make -C src clean - -.PHONY: install clean build - diff --git a/wavelet-decompose/control b/wavelet-decompose/control deleted file mode 100644 index 9658b1d..0000000 --- a/wavelet-decompose/control +++ /dev/null @@ -1,10 +0,0 @@ -Description: Wavelet Decompose - The wavelet decompose plugin decomposes a layer of an image into layers - of wavelet scales. This means that you can edit the image on different - detail scales (frequencies). The trivial recomposition of the image can - be done by GIMP's layer modes so you can see the results of your - modifications instantly. Among the applications are retouching, noise - reduction, and enhancing global contrast. -Homepage: http://registry.gimp.org/node/11742 -Version: 0.1.2 -Uploaders: Bernd Zeimetz diff --git a/wavelet-decompose/copyright b/wavelet-decompose/copyright deleted file mode 100644 index 4f7ef07..0000000 --- a/wavelet-decompose/copyright +++ /dev/null @@ -1,9 +0,0 @@ -Wavelet decompose GIMP plugin - -Copyright 2008 by Marco Rossini - -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License version 2+ -as published by the Free Software Foundation. - - diff --git a/wavelet-decompose/src b/wavelet-decompose/src deleted file mode 120000 index 11b5562..0000000 --- a/wavelet-decompose/src +++ /dev/null @@ -1 +0,0 @@ -wavelet-decompose-0.1.2 \ No newline at end of file diff --git a/wavelet-decompose/wavelet-decompose-0.1.2/AUTHORS b/wavelet-decompose/wavelet-decompose-0.1.2/AUTHORS deleted file mode 100644 index e6bef83..0000000 --- a/wavelet-decompose/wavelet-decompose-0.1.2/AUTHORS +++ /dev/null @@ -1,5 +0,0 @@ -AUTHORS -======= - -This plugin is written by Marco Rossini. Some code is copied and altered from -the UFRaw program by Udi Fuchs. diff --git a/wavelet-decompose/wavelet-decompose-0.1.2/COPYING b/wavelet-decompose/wavelet-decompose-0.1.2/COPYING deleted file mode 100644 index d60c31a..0000000 --- a/wavelet-decompose/wavelet-decompose-0.1.2/COPYING +++ /dev/null @@ -1,340 +0,0 @@ - GNU GENERAL PUBLIC LICENSE - Version 2, June 1991 - - Copyright (C) 1989, 1991 Free Software Foundation, Inc. - 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - Everyone is permitted to copy and distribute verbatim copies - of this license document, but changing it is not allowed. - - Preamble - - The licenses for most software are designed to take away your -freedom to share and change it. By contrast, the GNU General Public -License is intended to guarantee your freedom to share and change free -software--to make sure the software is free for all its users. This -General Public License applies to most of the Free Software -Foundation's software and to any other program whose authors commit to -using it. (Some other Free Software Foundation software is covered by -the GNU Library General Public License instead.) You can apply it to -your programs, too. - - When we speak of free software, we are referring to freedom, not -price. Our General Public Licenses are designed to make sure that you -have the freedom to distribute copies of free software (and charge for -this service if you wish), that you receive source code or can get it -if you want it, that you can change the software or use pieces of it -in new free programs; and that you know you can do these things. - - To protect your rights, we need to make restrictions that forbid -anyone to deny you these rights or to ask you to surrender the rights. -These restrictions translate to certain responsibilities for you if you -distribute copies of the software, or if you modify it. - - For example, if you distribute copies of such a program, whether -gratis or for a fee, you must give the recipients all the rights that -you have. You must make sure that they, too, receive or can get the -source code. And you must show them these terms so they know their -rights. - - We protect your rights with two steps: (1) copyright the software, and -(2) offer you this license which gives you legal permission to copy, -distribute and/or modify the software. - - Also, for each author's protection and ours, we want to make certain -that everyone understands that there is no warranty for this free -software. If the software is modified by someone else and passed on, we -want its recipients to know that what they have is not the original, so -that any problems introduced by others will not reflect on the original -authors' reputations. - - Finally, any free program is threatened constantly by software -patents. We wish to avoid the danger that redistributors of a free -program will individually obtain patent licenses, in effect making the -program proprietary. To prevent this, we have made it clear that any -patent must be licensed for everyone's free use or not licensed at all. - - The precise terms and conditions for copying, distribution and -modification follow. - - GNU GENERAL PUBLIC LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - - 0. This License applies to any program or other work which contains -a notice placed by the copyright holder saying it may be distributed -under the terms of this General Public License. The "Program", below, -refers to any such program or work, and a "work based on the Program" -means either the Program or any derivative work under copyright law: -that is to say, a work containing the Program or a portion of it, -either verbatim or with modifications and/or translated into another -language. (Hereinafter, translation is included without limitation in -the term "modification".) Each licensee is addressed as "you". - -Activities other than copying, distribution and modification are not -covered by this License; they are outside its scope. The act of -running the Program is not restricted, and the output from the Program -is covered only if its contents constitute a work based on the -Program (independent of having been made by running the Program). -Whether that is true depends on what the Program does. - - 1. You may copy and distribute verbatim copies of the Program's -source code as you receive it, in any medium, provided that you -conspicuously and appropriately publish on each copy an appropriate -copyright notice and disclaimer of warranty; keep intact all the -notices that refer to this License and to the absence of any warranty; -and give any other recipients of the Program a copy of this License -along with the Program. - -You may charge a fee for the physical act of transferring a copy, and -you may at your option offer warranty protection in exchange for a fee. - - 2. You may modify your copy or copies of the Program or any portion -of it, thus forming a work based on the Program, and copy and -distribute such modifications or work under the terms of Section 1 -above, provided that you also meet all of these conditions: - - a) You must cause the modified files to carry prominent notices - stating that you changed the files and the date of any change. - - b) You must cause any work that you distribute or publish, that in - whole or in part contains or is derived from the Program or any - part thereof, to be licensed as a whole at no charge to all third - parties under the terms of this License. - - c) If the modified program normally reads commands interactively - when run, you must cause it, when started running for such - interactive use in the most ordinary way, to print or display an - announcement including an appropriate copyright notice and a - notice that there is no warranty (or else, saying that you provide - a warranty) and that users may redistribute the program under - these conditions, and telling the user how to view a copy of this - License. (Exception: if the Program itself is interactive but - does not normally print such an announcement, your work based on - the Program is not required to print an announcement.) - -These requirements apply to the modified work as a whole. If -identifiable sections of that work are not derived from the Program, -and can be reasonably considered independent and separate works in -themselves, then this License, and its terms, do not apply to those -sections when you distribute them as separate works. But when you -distribute the same sections as part of a whole which is a work based -on the Program, the distribution of the whole must be on the terms of -this License, whose permissions for other licensees extend to the -entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest -your rights to work written entirely by you; rather, the intent is to -exercise the right to control the distribution of derivative or -collective works based on the Program. - -In addition, mere aggregation of another work not based on the Program -with the Program (or with a work based on the Program) on a volume of -a storage or distribution medium does not bring the other work under -the scope of this License. - - 3. You may copy and distribute the Program (or a work based on it, -under Section 2) in object code or executable form under the terms of -Sections 1 and 2 above provided that you also do one of the following: - - a) Accompany it with the complete corresponding machine-readable - source code, which must be distributed under the terms of Sections - 1 and 2 above on a medium customarily used for software interchange; or, - - b) Accompany it with a written offer, valid for at least three - years, to give any third party, for a charge no more than your - cost of physically performing source distribution, a complete - machine-readable copy of the corresponding source code, to be - distributed under the terms of Sections 1 and 2 above on a medium - customarily used for software interchange; or, - - c) Accompany it with the information you received as to the offer - to distribute corresponding source code. (This alternative is - allowed only for noncommercial distribution and only if you - received the program in object code or executable form with such - an offer, in accord with Subsection b above.) - -The source code for a work means the preferred form of the work for -making modifications to it. For an executable work, complete source -code means all the source code for all modules it contains, plus any -associated interface definition files, plus the scripts used to -control compilation and installation of the executable. However, as a -special exception, the source code distributed need not include -anything that is normally distributed (in either source or binary -form) with the major components (compiler, kernel, and so on) of the -operating system on which the executable runs, unless that component -itself accompanies the executable. - -If distribution of executable or object code is made by offering -access to copy from a designated place, then offering equivalent -access to copy the source code from the same place counts as -distribution of the source code, even though third parties are not -compelled to copy the source along with the object code. - - 4. You may not copy, modify, sublicense, or distribute the Program -except as expressly provided under this License. Any attempt -otherwise to copy, modify, sublicense or distribute the Program is -void, and will automatically terminate your rights under this License. -However, parties who have received copies, or rights, from you under -this License will not have their licenses terminated so long as such -parties remain in full compliance. - - 5. You are not required to accept this License, since you have not -signed it. However, nothing else grants you permission to modify or -distribute the Program or its derivative works. These actions are -prohibited by law if you do not accept this License. Therefore, by -modifying or distributing the Program (or any work based on the -Program), you indicate your acceptance of this License to do so, and -all its terms and conditions for copying, distributing or modifying -the Program or works based on it. - - 6. Each time you redistribute the Program (or any work based on the -Program), the recipient automatically receives a license from the -original licensor to copy, distribute or modify the Program subject to -these terms and conditions. You may not impose any further -restrictions on the recipients' exercise of the rights granted herein. -You are not responsible for enforcing compliance by third parties to -this License. - - 7. If, as a consequence of a court judgment or allegation of patent -infringement or for any other reason (not limited to patent issues), -conditions are imposed on you (whether by court order, agreement or -otherwise) that contradict the conditions of this License, they do not -excuse you from the conditions of this License. If you cannot -distribute so as to satisfy simultaneously your obligations under this -License and any other pertinent obligations, then as a consequence you -may not distribute the Program at all. For example, if a patent -license would not permit royalty-free redistribution of the Program by -all those who receive copies directly or indirectly through you, then -the only way you could satisfy both it and this License would be to -refrain entirely from distribution of the Program. - -If any portion of this section is held invalid or unenforceable under -any particular circumstance, the balance of the section is intended to -apply and the section as a whole is intended to apply in other -circumstances. - -It is not the purpose of this section to induce you to infringe any -patents or other property right claims or to contest validity of any -such claims; this section has the sole purpose of protecting the -integrity of the free software distribution system, which is -implemented by public license practices. Many people have made -generous contributions to the wide range of software distributed -through that system in reliance on consistent application of that -system; it is up to the author/donor to decide if he or she is willing -to distribute software through any other system and a licensee cannot -impose that choice. - -This section is intended to make thoroughly clear what is believed to -be a consequence of the rest of this License. - - 8. If the distribution and/or use of the Program is restricted in -certain countries either by patents or by copyrighted interfaces, the -original copyright holder who places the Program under this License -may add an explicit geographical distribution limitation excluding -those countries, so that distribution is permitted only in or among -countries not thus excluded. In such case, this License incorporates -the limitation as if written in the body of this License. - - 9. The Free Software Foundation may publish revised and/or new versions -of the General Public License from time to time. Such new versions will -be similar in spirit to the present version, but may differ in detail to -address new problems or concerns. - -Each version is given a distinguishing version number. If the Program -specifies a version number of this License which applies to it and "any -later version", you have the option of following the terms and conditions -either of that version or of any later version published by the Free -Software Foundation. If the Program does not specify a version number of -this License, you may choose any version ever published by the Free Software -Foundation. - - 10. If you wish to incorporate parts of the Program into other free -programs whose distribution conditions are different, write to the author -to ask for permission. For software which is copyrighted by the Free -Software Foundation, write to the Free Software Foundation; we sometimes -make exceptions for this. Our decision will be guided by the two goals -of preserving the free status of all derivatives of our free software and -of promoting the sharing and reuse of software generally. - - NO WARRANTY - - 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY -FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN -OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES -PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED -OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS -TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE -PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, -REPAIR OR CORRECTION. - - 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING -WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR -REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, -INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING -OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED -TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY -YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER -PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE -POSSIBILITY OF SUCH DAMAGES. - - END OF TERMS AND CONDITIONS - - How to Apply These Terms to Your New Programs - - If you develop a new program, and you want it to be of the greatest -possible use to the public, the best way to achieve this is to make it -free software which everyone can redistribute and change under these terms. - - To do so, attach the following notices to the program. It is safest -to attach them to the start of each source file to most effectively -convey the exclusion of warranty; and each file should have at least -the "copyright" line and a pointer to where the full notice is found. - - - Copyright (C) - - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. - - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. - - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - - -Also add information on how to contact you by electronic and paper mail. - -If the program is interactive, make it output a short notice like this -when it starts in an interactive mode: - - Gnomovision version 69, Copyright (C) year name of author - Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. - This is free software, and you are welcome to redistribute it - under certain conditions; type `show c' for details. - -The hypothetical commands `show w' and `show c' should show the appropriate -parts of the General Public License. Of course, the commands you use may -be called something other than `show w' and `show c'; they could even be -mouse-clicks or menu items--whatever suits your program. - -You should also get your employer (if you work as a programmer) or your -school, if any, to sign a "copyright disclaimer" for the program, if -necessary. Here is a sample; alter the names: - - Yoyodyne, Inc., hereby disclaims all copyright interest in the program - `Gnomovision' (which makes passes at compilers) written by James Hacker. - - , 1 April 1989 - Ty Coon, President of Vice - -This General Public License does not permit incorporating your program into -proprietary programs. If your program is a subroutine library, you may -consider it more useful to permit linking proprietary applications with the -library. If this is what you want to do, use the GNU Library General -Public License instead of this License. diff --git a/wavelet-decompose/wavelet-decompose-0.1.2/ChangeLog b/wavelet-decompose/wavelet-decompose-0.1.2/ChangeLog deleted file mode 100644 index 289c69a..0000000 --- a/wavelet-decompose/wavelet-decompose-0.1.2/ChangeLog +++ /dev/null @@ -1,18 +0,0 @@ -ChangeLog -========= - -wavelet-decompose v0.1.2 - minors -------------------------------------------------------------------------------- -- Polish translations added. -- Returning correct errors if they occur. -- Added missing arguments for scripts. -- Now saving and restoring values only when in interactive mode. - -wavelet-decompose v0.1.1 - bugfix -------------------------------------------------------------------------------- -- Fixed severe bug when having 'Create new image' checked. -- Updated italian translation. - -wavelet-decompose v0.1 -------------------------------------------------------------------------------- -- First release. diff --git a/wavelet-decompose/wavelet-decompose-0.1.2/INSTALL b/wavelet-decompose/wavelet-decompose-0.1.2/INSTALL deleted file mode 100644 index 3c39098..0000000 --- a/wavelet-decompose/wavelet-decompose-0.1.2/INSTALL +++ /dev/null @@ -1,21 +0,0 @@ -INSTALL -======= - -For Linux and Unix users ------------------------- -To install this GIMP plugin simply state - - make - make install - -for a system wide installation (with root privileges) or - - make - make userinstall - -for a user installation. A restart of The GIMP is recommended. - -Other platforms ---------------- -I'm sorry I have no knowledge on how to install plugins on other platforms. I -hope others will find a way. diff --git a/wavelet-decompose/wavelet-decompose-0.1.2/Makefile b/wavelet-decompose/wavelet-decompose-0.1.2/Makefile deleted file mode 100644 index f837d0a..0000000 --- a/wavelet-decompose/wavelet-decompose-0.1.2/Makefile +++ /dev/null @@ -1,31 +0,0 @@ -.PHONY: all po src install uninstall userinstall useruninstall clean dist - -all: po src - -po: - $(MAKE) -C po -src: - $(MAKE) -C src - -install: - $(MAKE) -C po install - $(MAKE) -C src install - -uninstall: - $(MAKE) -C po uninstall - $(MAKE) -C src uninstall - -userinstall: - $(MAKE) -C po userinstall - $(MAKE) -C src userinstall - -useruninstall: - $(MAKE) -C po useruninstall - $(MAKE) -C src useruninstall - -clean: - $(MAKE) -C po clean - $(MAKE) -C src clean - -dist: - $(error make dist not implemented!) diff --git a/wavelet-decompose/wavelet-decompose-0.1.2/README b/wavelet-decompose/wavelet-decompose-0.1.2/README deleted file mode 100644 index 2d8324e..0000000 --- a/wavelet-decompose/wavelet-decompose-0.1.2/README +++ /dev/null @@ -1,35 +0,0 @@ -README -====== - -The wavelet decompose plugin decomposes a layer of an image into layers of -wavelet scales. This means that you can edit the image on different detail -scales (frequencies). The trivial recomposition of the image can be done by -GIMP's layer modes so you can see the results of your modifications instantly. -Among the applications are retouching, noise reduction, and enhancing global -contrast. - -Wavelet scales: - -An image can be transformed into a set of wavelet scales. There are detail -scales and one residual. The detail scales contain the image details of a their -scale size. This means that scale 1 contains only image details of the smallest -scale. Scale 2 details are larger and scale 3 details even larger (and so on). - -This plugin computes these scales and creates a new layer for each one. The -recomposition is the addition off all scales which is done by GIMP using the -grain merge layer mode. You can then paint the scales with your favourite tool, -using (128,128,128) as neutral colour (for the details, not the residual). -Values below neutral darken, values above lighten. The most straightforward -thing to do is to use the paintbrush tool with the neutral colour and use -different brushes and opacities. That way you erase details. - -LICENCE -------- - -Copyright (C) 2008 by Marco Rossini. Distributed under the General Public -License GPLv2 and later. See the file COPYING which contains the license. - -INSTALLATION ------------- - -See the file INSTALL for instructions how to install the plugins. diff --git a/wavelet-decompose/wavelet-decompose-0.1.2/THANKS b/wavelet-decompose/wavelet-decompose-0.1.2/THANKS deleted file mode 100644 index d99838e..0000000 --- a/wavelet-decompose/wavelet-decompose-0.1.2/THANKS +++ /dev/null @@ -1,14 +0,0 @@ -THANKS -====== - -Translators: -- Alexandre Prokoudine (Russian) -- Carlo Baldassi (Italian) -- Michal Predotka (Polish) - -Many thanks to - -- Dave Coffin for the original code. -- The GIMP team for providing a program to run the plugin in. -- The people who invented wavelets. -- RomanA for all kinds of support. diff --git a/wavelet-decompose/wavelet-decompose-0.1.2/TRANSLATIONS b/wavelet-decompose/wavelet-decompose-0.1.2/TRANSLATIONS deleted file mode 100644 index 1962482..0000000 --- a/wavelet-decompose/wavelet-decompose-0.1.2/TRANSLATIONS +++ /dev/null @@ -1,16 +0,0 @@ -TRANSLATIONS -============ - -If you want to contribute by translating the program to any language, go to -the 'po' directory and open the file 'Makefile'. Add your language to - - LANGUAGES = de ru it pl - -with a valid locale name. Then state - - make update-po - -which will create the file '.po' - -Translate this file and send '.po' to the program maintainer. -This would be . Thank you! diff --git a/wavelet-decompose/wavelet-decompose-0.1.2/po/Makefile b/wavelet-decompose/wavelet-decompose-0.1.2/po/Makefile deleted file mode 100644 index c9d805b..0000000 --- a/wavelet-decompose/wavelet-decompose-0.1.2/po/Makefile +++ /dev/null @@ -1,47 +0,0 @@ -PLUGIN = wavelet-decompose -LOCALEDIR = /usr/share/locale -LANGUAGES = de ru it pl - -# END CONFIG ################################################################## - -.PHONY: all install userinstall uninstall useruninstall clean $(LANGUAGES) -.PHONY: update-po update-pot - -all: $(LANGUAGES) - -PO_FILES = $(foreach lang, $(LANGUAGES), $(lang).po) - -$(LANGUAGES): - msgfmt -c -v -o $@.mo $@.po - -update-po: $(PO_FILES) - -$(PO_FILES): $(PLUGIN).pot - if [[ -e $@ ]]; \ - then msgmerge -U $@ $^; \ - else msginit -l $(subst .po,,$@) -o $@ -i $^; \ -fi - -install: $(LANGUAGES) - for L in $(LANGUAGES); \ - do install -v -m 0644 $$L.mo "$(LOCALEDIR)/$$L/LC_MESSAGES/gimp20-$(PLUGIN)-plug-in.mo"; \ -done - -uninstall: $(LANGUAGES) - for L in $(LANGUAGES); \ - do rm -vf "$(LOCALEDIR)/$$L/LC_MESSAGES/gimp20-$(PLUGIN)-plug-in.mo"; \ -done - -clean: - rm -f *.po~ *.mo $(PLUGIN).pot - -userinstall: - $(warning Will not install gettext files for user installation!) - -useruninstall: - $(warning Will not uninstall gettext files for user installation!) - -$(PLUGIN).pot: ../src/*.h ../src/*.c - xgettext -C '-k_' -kN_ -d $(PLUGIN) -o $@ $^ - -update-pot: $(PLUGIN).pot diff --git a/wavelet-decompose/wavelet-decompose-0.1.2/po/de.po b/wavelet-decompose/wavelet-decompose-0.1.2/po/de.po deleted file mode 100644 index 37279fa..0000000 --- a/wavelet-decompose/wavelet-decompose-0.1.2/po/de.po +++ /dev/null @@ -1,110 +0,0 @@ -# German translations for wavelet-decompose package. -# Copyright (C) 2008 THE wavelet-decompose'S COPYRIGHT HOLDER -# This file is distributed under the same license as the wavelet-decompose package. -# , 2008. -# -msgid "" -msgstr "" -"Project-Id-Version: wavelet-decompose 0.1\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2008-12-30 11:28+0100\n" -"PO-Revision-Date: 2008-11-18 16:52+0100\n" -"Last-Translator: \n" -"Language-Team: German\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: ../src/decompose.c:116 -msgid "Wavelet decompose..." -msgstr "Wavelet Zerlegung..." - -#: ../src/decompose.c:125 -msgid "Original" -msgstr "Original" - -#: ../src/interface.c:14 -msgid "" -"Sets the number of detail scales for the wavelet decomposition. This value " -"is restricted by the size of the image. Two to the power of the maximal " -"scale must be smaller or equal to the shortest edge." -msgstr "" -"Legt die Anzahl von Detail-Skalen für die Wavelet Zerlegung fest. Diese Zahl " -"ist von der Grösse des Bildes eingeschränkt. Zwei hoch die maximale " -"Skalenanzahl muss kleiner gleich der kürzesten Bildkante sein." - -#: ../src/interface.c:15 -msgid "" -"If checked (default) the layer modes of the detail scales are set such that " -"the image is automatically recomposed. If you want to see the individual " -"scales by themselves uncheck this." -msgstr "" -"Falls aktiviert (standard) werden die Ebenen Moden so eingestellt, dass das " -"Bild automatisch zurücktransformiert wird. Wenn man die individuellen " -"Skalen sehen möchte muss man dies deaktivieren." - -#: ../src/interface.c:16 -msgid "" -"Creates a new image with the wavelet decomposition in it. This does not " -"alter the original image." -msgstr "" -"Erstellt ein neues Bild mit der Wavelet Zerlegung darin. Dies ändert das " -"originale Bild nicht." - -#: ../src/interface.c:17 -msgid "" -"Always adds an alpha channel to each detail scale layer, regardless on " -"whether the original layer had one or not." -msgstr "" -"Fügt den Detail-Skalen Ebenen immer einen Alpha Kanal hinzu, egal ob die " -"ursprüngliche Ebene einen hatte oder nicht." - -#: ../src/interface.c:58 ../src/interface.c:116 -msgid "Wavelet decompose" -msgstr "Wavelet Zerlegung" - -#: ../src/interface.c:62 -msgid "Number of wavelet detail scales:" -msgstr "Anzahl Wavelet Detail-Skalen:" - -#: ../src/interface.c:80 -msgid "Set layer modes for recomposition" -msgstr "Ebenen Modus für Rekomposition einstellen" - -#: ../src/interface.c:90 -msgid "Add alpha channels to detail scale layers" -msgstr "Alpha Kanal zu Detail-Skalen Ebenen hinzufügen" - -#: ../src/interface.c:98 -msgid "Create new image" -msgstr "Neues Bild erstellen" - -#: ../src/plugin.c:32 -msgid "Decomposes the image into wavelet scales." -msgstr "Zerlegt das Bild in Wavelet Skalen." - -#: ../src/plugin.c:37 -msgid "_Wavelet decompose ..." -msgstr "_Wavelet Zerlegung ..." - -#: ../src/plugin.c:79 -msgid "Error: The wavelet decompose filter works only on layers!" -msgstr "Fehler: Der Wavelet zerlegen filter funktioniert nur auf Ebenen!" - -#: ../src/wavelet.c:101 -#, c-format -msgid "Wavelet scale %i" -msgstr "Wavelet Skala %i" - -#: ../src/wavelet.c:108 -msgid "Wavelet residual" -msgstr "Wavelet Residual" - -#: ../src/wavelet.c:114 -#, c-format -msgid "Warning: Some pixels were clipped! Number of ccurences: %i" -msgstr "Warnung: Einige pixel wurden abgeschnitten! Anzahl Vorkommnisse: %i" - -#~ msgid "Error: Image is too small to decompose to that scale." -#~ msgstr "Fehler: Das Bild ist zu klein um bis zu dieser Skala zu zerlegen." diff --git a/wavelet-decompose/wavelet-decompose-0.1.2/po/it.po b/wavelet-decompose/wavelet-decompose-0.1.2/po/it.po deleted file mode 100644 index 8f64952..0000000 --- a/wavelet-decompose/wavelet-decompose-0.1.2/po/it.po +++ /dev/null @@ -1,117 +0,0 @@ -# Italian translations for wavelet-decompose package. -# Copyright (C) 2008 THE wavelet-decompose'S COPYRIGHT HOLDER -# This file is distributed under the same license as the wavelet-decompose package. -# , 2008. -# , 2008. -# -# -msgid "" -msgstr "" -"Project-Id-Version: wavelet-decompose 0.1\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2008-12-30 11:28+0100\n" -"PO-Revision-Date: 2008-11-26 23:36+0100\n" -"Last-Translator: Carlo Baldassi \n" -"Language-Team: Italian\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=iso-8859-1\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: ../src/decompose.c:116 -msgid "Wavelet decompose..." -msgstr "Scomposizione in wavelet..." - -#: ../src/decompose.c:125 -msgid "Original" -msgstr "Originale" - -#: ../src/interface.c:14 -msgid "" -"Sets the number of detail scales for the wavelet decomposition. This value " -"is restricted by the size of the image. Two to the power of the maximal " -"scale must be smaller or equal to the shortest edge." -msgstr "" -"Imposta il numero di livelli di dettaglio risultanti dalla scomposizione in " -"wavelet. Questo valore � limitato dalle dimensioni dell'immagine (il massimo " -"deve essere minore o uguale al logaritmo in base 2 del lato pi� corto)." - -#: ../src/interface.c:15 -msgid "" -"If checked (default) the layer modes of the detail scales are set such that " -"the image is automatically recomposed. If you want to see the individual " -"scales by themselves uncheck this." -msgstr "" -"Se quest'opzione � attivata (com'� per default) le modalit� dei livelli con " -"le scale di dettaglio sono impostati in modo tale che l'immagine risulti " -"ricomposta automaticamente dalla loro sovrapposizione. Se volete " -"visualizzare individualmente i livelli di dettaglio per come sono, " -"deselezionate questa opzione." - -#: ../src/interface.c:16 -msgid "" -"Creates a new image with the wavelet decomposition in it. This does not " -"alter the original image." -msgstr "" -"Crea una nuova immagine con la scomposizione in wavelet. Non altera " -"l'immagine originale." - -#: ../src/interface.c:17 -msgid "" -"Always adds an alpha channel to each detail scale layer, regardless on " -"whether the original layer had one or not." -msgstr "" -"Aggiunge sempre il canale alpha ad ogni livello di dettaglio, " -"indipendentemente dal fatto che il livello originale ce l'abbia o meno." - -#: ../src/interface.c:58 ../src/interface.c:116 -msgid "Wavelet decompose" -msgstr "Scomposizione in wavelet" - -#: ../src/interface.c:62 -msgid "Number of wavelet detail scales:" -msgstr "Numero di livelli di dettaglio:" - -#: ../src/interface.c:80 -msgid "Set layer modes for recomposition" -msgstr "Ricomponi i livelli di dettaglio" - -#: ../src/interface.c:90 -msgid "Add alpha channels to detail scale layers" -msgstr "Aggiungi il canale alpha ai livelli di dettaglio" - -#: ../src/interface.c:98 -msgid "Create new image" -msgstr "Crea una nuova immagine" - -#: ../src/plugin.c:32 -msgid "Decomposes the image into wavelet scales." -msgstr "Scompone l'immagine in diversi livelli di dettaglio tramite wavelet." - -#: ../src/plugin.c:37 -msgid "_Wavelet decompose ..." -msgstr "Scomposizione in _wavelet ..." - -#: ../src/plugin.c:79 -msgid "Error: The wavelet decompose filter works only on layers!" -msgstr "" -"Errore: il filtro di scomposizione in wavelet funziona solo sui livelli!" - -#: ../src/wavelet.c:101 -#, c-format -msgid "Wavelet scale %i" -msgstr "Livello wavelet %i" - -#: ../src/wavelet.c:108 -msgid "Wavelet residual" -msgstr "Residuo wavelet" - -#: ../src/wavelet.c:114 -#, c-format -msgid "Warning: Some pixels were clipped! Number of ccurences: %i" -msgstr "" -"Attenzione: alcuni pixel sono stati tagliati fuori! Numero di eventi: %i" - -#~ msgid "Error: Image is too small to decompose to that scale." -#~ msgstr "" -#~ "Errore: l'immagine � troppo piccola per essere scomposta a quella scala." diff --git a/wavelet-decompose/wavelet-decompose-0.1.2/po/pl.po b/wavelet-decompose/wavelet-decompose-0.1.2/po/pl.po deleted file mode 100644 index c4bd8e7..0000000 --- a/wavelet-decompose/wavelet-decompose-0.1.2/po/pl.po +++ /dev/null @@ -1,102 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: Wavelet Decompose 0.2\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2008-12-30 11:28+0100\n" -"PO-Revision-Date: 2008-12-26 11:25+0100\n" -"Last-Translator: Michał Prędotka \n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#: ../src/decompose.c:116 -msgid "Wavelet decompose..." -msgstr "Rozkładanie wavelet..." - -#: ../src/decompose.c:125 -msgid "Original" -msgstr "Oryginał" - -#: ../src/interface.c:14 -msgid "" -"Sets the number of detail scales for the wavelet decomposition. This value " -"is restricted by the size of the image. Two to the power of the maximal " -"scale must be smaller or equal to the shortest edge." -msgstr "" -"Ilość skali rozłożenia wavelet. Wartość ta jest zależna od wymiarów obrazu." - -#: ../src/interface.c:15 -msgid "" -"If checked (default) the layer modes of the detail scales are set such that " -"the image is automatically recomposed. If you want to see the individual " -"scales by themselves uncheck this." -msgstr "" -"Jeśli zaznaczone (domyślnie), tryby warstw poszczególnych skali są ustawiane " -"w taki sposób, aby obraz został ponownie automatycznie złożony. Jeśli " -"niezaznaczone, warstwy zostaną ustawione na tryb \"Zwykły\"" - -#: ../src/interface.c:16 -msgid "" -"Creates a new image with the wavelet decomposition in it. This does not " -"alter the original image." -msgstr "" -"Tworzy nowy obraz zawierający rozłożenie wavelet. Oryginalny obraz pozostaje " -"niezmieniony." - -#: ../src/interface.c:17 -msgid "" -"Always adds an alpha channel to each detail scale layer, regardless on " -"whether the original layer had one or not." -msgstr "" -"Dodaje kanał alfa dla każdej tworzonej warstwy, niezależnie od tego, czy " -"oryginalny obraz posiada kanał alfa czy nie." - -#: ../src/interface.c:58 ../src/interface.c:116 -msgid "Wavelet decompose" -msgstr "Rozłożenie wavelet" - -#: ../src/interface.c:62 -msgid "Number of wavelet detail scales:" -msgstr "Ilość skali wavelet: " - -#: ../src/interface.c:80 -msgid "Set layer modes for recomposition" -msgstr "Ustaw tryby warstw dla ponownego złożenia" - -#: ../src/interface.c:90 -msgid "Add alpha channels to detail scale layers" -msgstr "Dodaj kanał alfa do każdej tworzonej warstwy" - -#: ../src/interface.c:98 -msgid "Create new image" -msgstr "Utwórz nowy obraz" - -#: ../src/plugin.c:32 -msgid "Decomposes the image into wavelet scales." -msgstr "Rozkłada obraz na skale wavelet." - -#: ../src/plugin.c:37 -msgid "_Wavelet decompose ..." -msgstr "Rozłożenie _wavelet..." - -#: ../src/plugin.c:79 -msgid "Error: The wavelet decompose filter works only on layers!" -msgstr "Błąd: Rozłożenie wavelet działa tylko na warstwach!" - -#: ../src/wavelet.c:101 -#, c-format -msgid "Wavelet scale %i" -msgstr "Wavelet skala %i" - -#: ../src/wavelet.c:108 -msgid "Wavelet residual" -msgstr "Wavelet szczątkowy" - -#: ../src/wavelet.c:114 -#, c-format -msgid "Warning: Some pixels were clipped! Number of ccurences: %i" -msgstr "Ostrzeżenie: Niektóre piksele zostały ucięte! Ilość takich pikseli: %i" - -#~ msgid "Error: Image is too small to decompose to that scale." -#~ msgstr "Błąd: Obraz jest za mały do rozłożenia go na tyle skali!" diff --git a/wavelet-decompose/wavelet-decompose-0.1.2/po/ru.po b/wavelet-decompose/wavelet-decompose-0.1.2/po/ru.po deleted file mode 100644 index 0021ea4..0000000 --- a/wavelet-decompose/wavelet-decompose-0.1.2/po/ru.po +++ /dev/null @@ -1,113 +0,0 @@ -msgid "" -msgstr "" -"Project-Id-Version: Wavelet Decompose 0.2\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2008-12-30 11:28+0100\n" -"PO-Revision-Date: 2008-12-09 00:36+0300\n" -"Last-Translator: Alexandre Prokoudine \n" -"Language-Team: GNOME Cyrillic \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"X-Poedit-Language: Russian\n" -"X-Poedit-Country: RUSSIAN FEDERATION\n" - -#: ../src/decompose.c:116 -msgid "Wavelet decompose..." -msgstr "Выполняется разбор на вейвлетные ступени..." - -#: ../src/decompose.c:125 -msgid "Original" -msgstr "Оригинал" - -#: ../src/interface.c:14 -msgid "" -"Sets the number of detail scales for the wavelet decomposition. This value " -"is restricted by the size of the image. Two to the power of the maximal " -"scale must be smaller or equal to the shortest edge." -msgstr "" -"Устанавливает количество уровней детализации для вейвлетного разбора. Число " -"уровней ограничено размером изображения. " - -#: ../src/interface.c:15 -msgid "" -"If checked (default) the layer modes of the detail scales are set such that " -"the image is automatically recomposed. If you want to see the individual " -"scales by themselves uncheck this." -msgstr "" -"Если включено, режимы слоев будут выставлены так, что проекция слоев будет " -"выглядеть как исходное изображение." - -#: ../src/interface.c:16 -msgid "" -"Creates a new image with the wavelet decomposition in it. This does not " -"alter the original image." -msgstr "" -"Создать новое изображение с вейвлетным разбором. Исходное изображение не " -"будет изменено." - -#: ../src/interface.c:17 -msgid "" -"Always adds an alpha channel to each detail scale layer, regardless on " -"whether the original layer had one or not." -msgstr "" -"Всегда добавлять альфа-канал в каждый слой уровня детализации не зависимости " -"от того, есть он там уже или нет." - -#: ../src/interface.c:58 ../src/interface.c:116 -msgid "Wavelet decompose" -msgstr "Вейвлетный разбор" - -#: ../src/interface.c:62 -msgid "Number of wavelet detail scales:" -msgstr "Количество ступеней детализации:" - -#: ../src/interface.c:80 -msgid "Set layer modes for recomposition" -msgstr "Использовать режимы слоёв для восстановления" - -#: ../src/interface.c:90 -msgid "Add alpha channels to detail scale layers" -msgstr "Добавить альфа-канал в слои уровней детализации" - -#: ../src/interface.c:98 -msgid "Create new image" -msgstr "Создать новое изображение" - -#: ../src/plugin.c:32 -msgid "Decomposes the image into wavelet scales." -msgstr "Разобрать изображение на вейвлетные ступени" - -#: ../src/plugin.c:37 -msgid "_Wavelet decompose ..." -msgstr "В_ейвлетный разбор..." - -#: ../src/plugin.c:79 -msgid "Error: The wavelet decompose filter works only on layers!" -msgstr "" -"Ошибка: фильтр разбора на вейвлетные ступени работает только со слоями!" - -#: ../src/wavelet.c:101 -#, c-format -msgid "Wavelet scale %i" -msgstr "Вейвлетная ступень %i" - -#: ../src/wavelet.c:108 -msgid "Wavelet residual" -msgstr "Вейвлетный остаток" - -#: ../src/wavelet.c:114 -#, c-format -msgid "Warning: Some pixels were clipped! Number of ccurences: %i" -msgstr "" -"Предупреждение: Некоторые пикселы были обрезаны. Число таких случаев: %i" - -#~ msgid "Error: Image is too small to decompose to that scale." -#~ msgstr "" -#~ "Ошибка: изображение слишком мало для разбора на такое количество ступеней!" - -#~ msgid "Marco Rossini" -#~ msgstr "Marco Rossini" - -#~ msgid "Copyright 2008 Marco Rossini" -#~ msgstr "Авторские права 2008 Marco Rossini" diff --git a/wavelet-decompose/wavelet-decompose-0.1.2/src/Makefile b/wavelet-decompose/wavelet-decompose-0.1.2/src/Makefile deleted file mode 100644 index 62cdde7..0000000 --- a/wavelet-decompose/wavelet-decompose-0.1.2/src/Makefile +++ /dev/null @@ -1,34 +0,0 @@ -CFLAGS = -O3 -Wall $(shell gimptool-2.0 --cflags) -LIBS = $(shell gimptool-2.0 --libs) -PLUGIN = wavelet-decompose -SOURCES = plugin.c wavelet.c interface.c decompose.c -HEADERS = plugin.h - -# END CONFIG ################################################################## - -.PHONY: all install userinstall clean uninstall useruninstall - -all: $(PLUGIN) - -OBJECTS = $(subst .c,.o,$(SOURCES)) - -$(PLUGIN): $(OBJECTS) - $(CC) $(CFLAGS) -o $@ $^ $(LIBS) - -%.o: %.c $(HEADERS) - $(CC) $(CFLAGS) -c -o $@ $*.c - -install: $(PLUGIN) - @gimptool-2.0 --install-admin-bin $^ - -userinstall: $(PLUGIN) - @gimptool-2.0 --install-bin $^ - -uninstall: - @gimptool-2.0 --uninstall-admin-bin $(PLUGIN) - -useruninstall: - @gimptool-2.0 --uninstall-bin $(PLUGIN) - -clean: - rm -f *.o *~ $(PLUGIN) diff --git a/wavelet-decompose/wavelet-decompose-0.1.2/src/decompose.c b/wavelet-decompose/wavelet-decompose-0.1.2/src/decompose.c deleted file mode 100644 index fd0456e..0000000 --- a/wavelet-decompose/wavelet-decompose-0.1.2/src/decompose.c +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Wavelet decompose GIMP plugin - * - * decompose.c - * Copyright 2008 by Marco Rossini - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2+ - * as published by the Free Software Foundation. - */ - -#include "plugin.h" - -void -add_layer (gint32 image, gint32 parent, wdsint ** img, const char *name, - GimpLayerModeEffects mode) -{ - gint offx, offy; - gint32 layer; - unsigned int x, y, width, height, channels, c; - GimpPixelRgn rgn; - GimpDrawable *drawable; - guchar *line; - - width = gimp_drawable_width (parent); - height = gimp_drawable_height (parent); - channels = gimp_drawable_bpp (parent); - - if (settings.add_alpha) - layer = gimp_layer_new (image, name, width, height, - gimp_drawable_type_with_alpha (parent), 100.0, - mode); - else - layer = gimp_layer_new (image, name, width, height, - gimp_drawable_type (parent), 100.0, mode); - drawable = gimp_drawable_get (layer); - gimp_image_add_layer (image, layer, -1); - - gimp_pixel_rgn_init (&rgn, drawable, 0, 0, width, height, TRUE, FALSE); - - if (settings.add_alpha && channels % 2 != 0) - line = malloc (width * height * (channels + 1) * sizeof (guchar)); - else - line = malloc (width * height * channels * sizeof (guchar)); - for (y = 0; y < height; y++) - { - if (settings.add_alpha && channels % 2 != 0) - { - /* no alpha channel, but add one */ - for (x = 0; x < width; x++) - { - for (c = 0; c < channels; c++) - { - line[x * (channels + 1) + c] = img[c][y * width + x]; - } - line[x * (channels + 1) + channels] = 255; - } - } - else if (channels % 2 != 0) - { - /* no alpha channel */ - for (x = 0; x < width; x++) - { - for (c = 0; c < channels; c++) - { - line[x * channels + c] = img[c][y * width + x]; - } - } - } - else - { - for (x = 0; x < width; x++) - { - for (c = 0; c < channels - 1; c++) - { - line[x * channels + c] = img[c][y * width + x]; - } - line[x * channels + channels - 1] = 255; - } - } - gimp_pixel_rgn_set_row (&rgn, line, 0, y, width); - } - free (line); - - gimp_drawable_offsets (parent, &offx, &offy); - gimp_layer_translate (layer, offx, offy); - gimp_image_set_active_layer (image, parent); - gimp_drawable_flush (drawable); - gimp_drawable_update (layer, 0, 0, width, height); -} - -void -decompose (gint32 image, GimpDrawable * drawable, unsigned int scales) -{ - /* this function prepares for decomposing, which is done in the - function wavelet_decompose() */ - - int i, c, x, width, height, channels; - GimpPixelRgn rgn_in; - wdsint *img[3]; - guchar *line; - gint32 layer; - - width = gimp_drawable_width (drawable->drawable_id); - height = gimp_drawable_height (drawable->drawable_id); - channels = gimp_drawable_bpp (drawable->drawable_id); - - /* pixel access */ - gimp_pixel_rgn_init (&rgn_in, drawable, 0, 0, width, height, FALSE, FALSE); - gimp_tile_cache_ntiles (drawable->width / gimp_tile_width () + 1); - - for (c = 0; c < (channels % 2 ? channels : channels - 1); c++) - { - img[c] = malloc (width * height * sizeof (wdsint)); - } - - gimp_progress_init (_("Wavelet decompose...")); - - if (settings.new_image) - { - image = gimp_image_new (width, height, gimp_image_base_type (image)); - gimp_display_new (image); - layer = gimp_layer_new_from_drawable (drawable->drawable_id, image); - gimp_drawable_set_name (layer, _("Original")); - gimp_image_add_layer (image, layer, 0); - gimp_layer_set_offsets (layer, 0, 0); - drawable = gimp_drawable_get (layer); - gimp_image_undo_disable (image); - } - else - { - gimp_image_undo_group_start (image); - } - - /* read the image into memory */ - line = (guchar *) malloc (channels * width * sizeof (guchar)); - for (i = 0; i < height; i++) - { - gimp_pixel_rgn_get_row (&rgn_in, line, 0, i, width); - - for (x = 0; x < width; x++) - { - for (c = 0; c < (channels % 2 ? channels : channels - 1); c++) - { - img[c][i * width + x] = line[x * channels + c]; - } - } - } - - gimp_progress_update (1.0 / (double) (scales + 1)); - - wavelet_decompose (image, drawable->drawable_id, img, width, height, - channels % 2 ? channels : channels - 1, scales); - - if (settings.new_image) - { - gimp_image_undo_enable (image); - } - else - { - gimp_image_undo_group_end (image); - } - - for (c = 0; c < (channels % 2 ? channels : channels - 1); c++) - { - free (img[c]); - } -} diff --git a/wavelet-decompose/wavelet-decompose-0.1.2/src/interface.c b/wavelet-decompose/wavelet-decompose-0.1.2/src/interface.c deleted file mode 100644 index 273955b..0000000 --- a/wavelet-decompose/wavelet-decompose-0.1.2/src/interface.c +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Wavelet decompose GIMP plugin - * - * interface.c - * Copyright 2008 by Marco Rossini - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2+ - * as published by the Free Software Foundation. - */ - -#include "plugin.h" - -#define SCALES_TT _("Sets the number of detail scales for the wavelet decomposition. This value is restricted by the size of the image. Two to the power of the maximal scale must be smaller or equal to the shortest edge.") -#define MODE_TT _("If checked (default) the layer modes of the detail scales are set such that the image is automatically recomposed. If you want to see the individual scales by themselves uncheck this.") -#define NEW_TT _("Creates a new image with the wavelet decomposition in it. This does not alter the original image.") -#define ALPHA_TT _("Always adds an alpha channel to each detail scale layer, regardless on whether the original layer had one or not.") - -static void -scale_update (GtkWidget * w, gpointer * p) -{ - settings.scales = gtk_adjustment_get_value (GTK_ADJUSTMENT (w)); -} - -static void -mode_update (GtkWidget * w, gpointer * p) -{ - if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (w))) - settings.layer_modes = GIMP_GRAIN_MERGE_MODE; - else - settings.layer_modes = GIMP_NORMAL_MODE; -} - -static void -toggle_update_bool (GtkWidget * w, gpointer * p) -{ - int *bool; - bool = (int *) p; - if (gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (w))) - *bool = 1; - else - *bool = 0; -} - -gboolean -user_interface (GimpDrawable * drawable, unsigned int maxscale) -{ - gboolean run; - - GtkWidget *dialog; - GtkWidget *dialog_box; - GtkWidget *scales_spin, *scales_label, *scales_box, *scales_align; - GtkObject *scales_adj; - GtkWidget *mode_check; - GtkWidget *alpha_check; - GtkWidget *new_check; - - gimp_ui_init (_("Wavelet decompose"), FALSE); - - scales_box = gtk_hbox_new (FALSE, 10); - /* TRANSLATORS: wavlet scales is a technical term */ - scales_label = gtk_label_new (_("Number of wavelet detail scales:")); - scales_adj = gtk_adjustment_new (settings.scales, 1, maxscale, 1, 1, 0); - scales_spin = gtk_spin_button_new (GTK_ADJUSTMENT (scales_adj), 1, 0); - gtk_widget_set_tooltip_text (scales_spin, SCALES_TT); - gtk_widget_set_tooltip_text (scales_label, SCALES_TT); - scales_align = gtk_alignment_new (0, 0.5, 0, 0); - gtk_container_add (GTK_CONTAINER (scales_align), scales_label); - g_signal_connect (scales_adj, "value_changed", G_CALLBACK (scale_update), - NULL); - gtk_box_pack_start (GTK_BOX (scales_box), scales_align, TRUE, TRUE, 0); - gtk_box_pack_start (GTK_BOX (scales_box), scales_spin, FALSE, FALSE, 0); - gtk_widget_show (scales_box); - gtk_widget_show (scales_label); - gtk_widget_show (scales_spin); - gtk_widget_show (scales_align); - - /* prepare layer mode checkbutton */ - mode_check = - gtk_check_button_new_with_label (_("Set layer modes for recomposition")); - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (mode_check), - settings.layer_modes == - GIMP_GRAIN_MERGE_MODE); - gtk_widget_set_tooltip_text (mode_check, MODE_TT); - g_signal_connect (mode_check, "toggled", G_CALLBACK (mode_update), NULL); - gtk_widget_show (mode_check); - - /* prepare alpha add checkbutton */ - alpha_check = - gtk_check_button_new_with_label (_ - ("Add alpha channels to detail scale layers")); - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (alpha_check), - settings.add_alpha); - gtk_widget_set_tooltip_text (alpha_check, ALPHA_TT); - g_signal_connect (alpha_check, "toggled", G_CALLBACK (toggle_update_bool), - &(settings.add_alpha)); - gtk_widget_show (alpha_check); - - /* prepare new image checkbutton */ - new_check = gtk_check_button_new_with_label (_("Create new image")); - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (new_check), - settings.new_image); - gtk_widget_set_tooltip_text (new_check, NEW_TT); - g_signal_connect (new_check, "toggled", G_CALLBACK (toggle_update_bool), - &(settings.new_image)); - gtk_widget_show (new_check); - - /* dialog box */ - dialog_box = gtk_vbox_new (FALSE, 10); - gtk_container_set_border_width (GTK_CONTAINER (dialog_box), 10); - gtk_box_pack_start (GTK_BOX (dialog_box), scales_box, FALSE, FALSE, 10); - gtk_box_pack_start (GTK_BOX (dialog_box), mode_check, FALSE, FALSE, 0); - gtk_box_pack_start (GTK_BOX (dialog_box), alpha_check, FALSE, FALSE, 0); - gtk_box_pack_start (GTK_BOX (dialog_box), new_check, FALSE, FALSE, 0); - gtk_widget_show (dialog_box); - - /* prepeare the dialog */ - dialog = - gimp_dialog_new (_("Wavelet decompose"), "wavelet decompose", NULL, 0, - gimp_standard_help_func, "plug-in-wavelet-decompose", - GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL, GTK_STOCK_OK, - GTK_RESPONSE_OK, NULL); - - gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), dialog_box); - - gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER); - - gtk_widget_show (dialog); - - run = (gimp_dialog_run (GIMP_DIALOG (dialog)) == GTK_RESPONSE_OK); - - /* FIXME: destroy all widgets - memory leak! */ - gtk_widget_destroy (dialog); - - return run; -} diff --git a/wavelet-decompose/wavelet-decompose-0.1.2/src/plugin.c b/wavelet-decompose/wavelet-decompose-0.1.2/src/plugin.c deleted file mode 100644 index 3c63b24..0000000 --- a/wavelet-decompose/wavelet-decompose-0.1.2/src/plugin.c +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Wavelet decompose GIMP plugin - * - * plugin.c - * Copyright 2008 by Marco Rossini - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2+ - * as published by the Free Software Foundation. - */ - -#include "plugin.h" - -GimpPlugInInfo PLUG_IN_INFO = { NULL, NULL, query, run }; - -MAIN () - void query (void) -{ - static GimpParamDef args[] = { - {GIMP_PDB_INT32, "run-mode", "Run mode"}, - {GIMP_PDB_IMAGE, "image", "Input image"}, - {GIMP_PDB_DRAWABLE, "drawable", "Input drawable"}, - {GIMP_PDB_INT8, "scale-num", "Number of wavelet scales to decompose"}, - {GIMP_PDB_INT8, "layer-modes", "Set layer mode to grain-merge (boolean)"}, - {GIMP_PDB_INT8, "alpha", "Force alpha channel (boolean)"}, - {GIMP_PDB_INT8, "new-image", "Create new image (boolean)"} - }; - - gimp_plugin_domain_register (GETTEXT_PKG, LOCALEDIR); - - gimp_install_procedure ("plug-in-wavelet-decompose", - N_("Decomposes the image into wavelet scales."), - "Decomposes the image into wavelet scales.", - "Marco Rossini", - "Copyright 2008 Marco Rossini", - "2008", - N_("_Wavelet decompose ..."), - "RGB*, GRAY*", - GIMP_PLUGIN, G_N_ELEMENTS (args), 0, args, NULL); - - gimp_plugin_menu_register ("plug-in-wavelet-decompose", - "/Filters/Generic"); -} - -wavelet_settings settings = { - 5, /* scales */ - 0, /* new_image */ - 0, /* add_alpha */ - GIMP_GRAIN_MERGE_MODE /* layer_modes */ -}; - -void -run (const gchar * name, gint nparams, const GimpParam * param, - gint * nreturn_vals, GimpParam ** return_vals) -{ - static GimpParam values[1]; - GimpRunMode run_mode; - GimpDrawable *drawable; - gint32 image; - unsigned int maxscale, size; - - bindtextdomain (GETTEXT_PKG, LOCALEDIR); - textdomain (GETTEXT_PKG); - bind_textdomain_codeset (GETTEXT_PKG, "UTF-8"); - - /* Setting mandatory output values */ - *nreturn_vals = 1; - *return_vals = values; - values[0].type = GIMP_PDB_STATUS; - values[0].data.d_status = GIMP_PDB_SUCCESS; - - image = param[1].data.d_image; - drawable = gimp_drawable_get (param[2].data.d_drawable); - - /* verify things */ - if (!gimp_drawable_is_layer (drawable->drawable_id)) - { - g_message (_ - ("Error: The wavelet decompose filter works only on layers!")); - values[0].data.d_status = GIMP_PDB_CALLING_ERROR; - return; - } - - /* smallest edge must be higher than or equal to 2^scales */ - size = - MIN2 (gimp_drawable_width (drawable->drawable_id), - gimp_drawable_height (drawable->drawable_id)); - maxscale = 0; - while (size >>= 1) - { - maxscale++; - } - - /* run GUI if in interactiv mode */ - run_mode = param[0].data.d_int32; - if (run_mode == GIMP_RUN_INTERACTIVE) - { - /* restore settings saved in GIMP core, only when interactive */ - gimp_get_data ("plug-in-wavelet-decompose", &settings); - - if (settings.scales > maxscale) - settings.scales = maxscale; - - if (!user_interface (drawable, maxscale)) - { - gimp_drawable_detach (drawable); - values[0].data.d_status = GIMP_PDB_EXECUTION_ERROR; - return; - } - } - else - { - settings.scales = param[3].data.d_int8; - settings.layer_modes = - (param[4].data.d_int8) ? GIMP_GRAIN_MERGE_MODE : GIMP_NORMAL_MODE; - settings.add_alpha = !!(param[5].data.d_int8); - settings.new_image = !!(param[6].data.d_int8); - if (settings.scales < 1 || settings.scales > maxscale) - { - values[0].data.d_status = GIMP_PDB_CALLING_ERROR; - return; - } - } - - decompose (image, drawable, settings.scales); - - gimp_displays_flush (); - gimp_drawable_detach (drawable); - - if (run_mode == GIMP_RUN_INTERACTIVE) - { - /* save settings in the GIMP core, only when interactive and on success */ - gimp_set_data ("plug-in-wavelet-decompose", &settings, - sizeof (wavelet_settings)); - } -} diff --git a/wavelet-decompose/wavelet-decompose-0.1.2/src/plugin.h b/wavelet-decompose/wavelet-decompose-0.1.2/src/plugin.h deleted file mode 100644 index ca292ac..0000000 --- a/wavelet-decompose/wavelet-decompose-0.1.2/src/plugin.h +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Wavelet decompose GIMP plugin - * - * plugin.h - * Copyright 2008 by Marco Rossini - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2+ - * as published by the Free Software Foundation. - */ - -#ifndef __PLUGIN_H__ -#define __PLUGIN_H__ - -#include -#include -#include -#include -#include - -/* has to be at least one byte larger than pixel type */ -typedef signed short wdsint; - -#define LOCALEDIR "/usr/share/locale/" -#define GETTEXT_PKG "gimp20-wavelet-decompose-plug-in" - -#define _(string) gettext(string) -#define N_(string) string - -#define MAX2(x,y) ((x) > (y) ? (x) : (y)) -#define MIN2(x,y) ((x) < (y) ? (x) : (y)) - -void query (void); -void run (const gchar * name, gint nparams, const GimpParam * param, - gint * nreturn_vals, GimpParam ** return_vals); -void wavelet_decompose (guint32 image, guint32 layer, wdsint * img[3], - unsigned int width, unsigned int height, - unsigned int channels, unsigned int scales); -void decompose (gint32 image, GimpDrawable * drawable, unsigned int scales); -gboolean user_interface (GimpDrawable * drawable, unsigned int maxscale); -void add_layer (gint32 image, gint32 parent, wdsint ** img, const char *name, - GimpLayerModeEffects mode); - -extern GimpPlugInInfo PLUG_IN_INFO; - -typedef struct -{ - unsigned int scales; - unsigned int new_image; - unsigned int add_alpha; - GimpLayerModeEffects layer_modes; -} wavelet_settings; - -extern wavelet_settings settings; - -#endif /* __PLUGIN_H__ */ diff --git a/wavelet-decompose/wavelet-decompose-0.1.2/src/wavelet.c b/wavelet-decompose/wavelet-decompose-0.1.2/src/wavelet.c deleted file mode 100644 index 072bc27..0000000 --- a/wavelet-decompose/wavelet-decompose-0.1.2/src/wavelet.c +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Wavelet decompose GIMP plugin - * - * wavelet.c - * Copyright 2008 by Marco Rossini - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2+ - * as published by the Free Software Foundation. - */ - -#include "plugin.h" - -/* into plugin.h */ -//typedef signed short wdsint; - -/* code copied from UFRaw (which originates from dcraw) */ -static void -hat_transform (wdsint * temp, wdsint * base, int st, int size, int sc) -{ - int i; - for (i = 0; i < sc; i++) - temp[i] = 2 * base[st * i] + base[st * (sc - i)] + base[st * (i + sc)]; - for (; i + sc < size; i++) - temp[i] = 2 * base[st * i] + base[st * (i - sc)] + base[st * (i + sc)]; - for (; i < size; i++) - temp[i] = 2 * base[st * i] + base[st * (i - sc)] - + base[st * (2 * size - 2 - (i + sc))]; -} - -/* actual decomposing algorithm */ -void -wavelet_decompose (guint32 image, guint32 layer, wdsint ** img, - unsigned int width, unsigned int height, - unsigned int channels, unsigned int scales) -{ - wdsint *temp; - unsigned int i, c, lev, lpass, hpass, size, col, row; - wdsint *buffer[2][3]; - char str[256]; - unsigned int clip = 0; - - size = width * height; - - for (c = 0; c < channels; c++) - { - /* image buffers */ - buffer[0][c] = img[c]; - /* temporary storage */ - buffer[1][c] = malloc (size * sizeof (wdsint)); - } - - /* FIXME: replace by GIMP functions */ - temp = malloc (MAX2 (width, height) * sizeof (wdsint)); - - /* iterate over wavelet scales */ - lpass = 1; - hpass = 0; - for (lev = 0; lev < scales; lev++) - { - lpass = (1 - (lev & 1)); - - /* iterate over channels */ - for (c = 0; c < channels; c++) - { - for (row = 0; row < height; row++) - { - hat_transform (temp, buffer[hpass][c] + row * width, 1, width, - 1 << lev); - for (col = 0; col < width; col++) - { - buffer[lpass][c][row * width + col] = temp[col]; - } - } - for (col = 0; col < width; col++) - { - hat_transform (temp, buffer[lpass][c] + col, width, height, - 1 << lev); - for (row = 0; row < height; row++) - { - buffer[lpass][c][row * width + col] = temp[row]; - } - } - for (i = 0; i < size; i++) - { - /* rounding errors introduced here (division by 16) */ - buffer[lpass][c][i] = (buffer[lpass][c][i] + 8) / 16; - buffer[hpass][c][i] -= buffer[lpass][c][i] - 128; - if (buffer[hpass][c][i] > 255) - { - buffer[hpass][c][i] = 255; - clip++; - } - else if (buffer[hpass][c][i] < 0) - { - buffer[hpass][c][i] = 0; - clip++; - } - } - } - - /* TRANSLATORS: This is a technical term which must be correct. It must - not be longer than 255 bytes including the integer number. */ - sprintf (str, _("Wavelet scale %i"), lev + 1); - add_layer (image, layer, buffer[hpass], str, settings.layer_modes); - hpass = lpass; - gimp_progress_update ((lev + 2) / (double) (scales + 1)); - } - - /* TRANSLATORS: This is a technical term which must be correct */ - add_layer (image, layer, buffer[lpass], _("Wavelet residual"), - GIMP_NORMAL_MODE); - - if (clip) - { - /* TRANSLATORS: This must not be longer than 255 bytes including the - integer number. */ - sprintf (str, - _ - ("Warning: Some pixels were clipped! Number of ccurences: %i"), - clip); - gimp_message (str); - } - - /* FIXME: replace by GIMP functions */ - free (temp); - for (c = 0; c < channels; c++) - { - free (buffer[1][c]); - } -}