pax_global_header00006660000000000000000000000064141664105730014521gustar00rootroot0000000000000052 comment=d1f9da98ed4074f55db7c5ab4f701d70437810a3 pixelize-2.0.0~git20220108.d1f9da9/000077500000000000000000000000001416641057300162325ustar00rootroot00000000000000pixelize-2.0.0~git20220108.d1f9da9/.github/000077500000000000000000000000001416641057300175725ustar00rootroot00000000000000pixelize-2.0.0~git20220108.d1f9da9/.github/workflows/000077500000000000000000000000001416641057300216275ustar00rootroot00000000000000pixelize-2.0.0~git20220108.d1f9da9/.github/workflows/codeql-analysis.yml000066400000000000000000000044511416641057300254460ustar00rootroot00000000000000# For most projects, this workflow file will not need changing; you simply need # to commit it to your repository. # # You may wish to alter this file to override the set of languages analyzed, # or to provide custom queries or build logic. # # ******** NOTE ******** # We have attempted to detect the languages in your repository. Please check # the `language` matrix defined below to confirm you have the correct set of # supported CodeQL languages. # name: "CodeQL" on: push: branches: [ master ] pull_request: # The branches below must be a subset of the branches above branches: [ master ] schedule: - cron: '28 23 * * 6' jobs: analyze: name: Analyze runs-on: ubuntu-latest permissions: actions: read contents: read security-events: write strategy: fail-fast: false matrix: language: [ 'cpp', 'python' ] # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] # Learn more about CodeQL language support at https://git.io/codeql-language-support steps: - name: Checkout repository uses: actions/checkout@v2 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v1 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. # By default, queries listed here will override any specified in a config file. # Prefix the list here with "+" to use these queries and those in the config file. # queries: ./path/to/local/query, your-org/your-repo/queries@main # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild uses: github/codeql-action/autobuild@v1 # â„šī¸ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl # âœī¸ If the Autobuild fails above, remove it and uncomment the following three lines # and modify them (or add more) to build your code if your project # uses a compiled language #- run: | # make bootstrap # make release - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v1 pixelize-2.0.0~git20220108.d1f9da9/.gitignore000066400000000000000000000011521416641057300202210ustar00rootroot00000000000000# backup files *~ # Prerequisites *.d # Object files *.o *.ko *.obj *.elf # Linker output *.ilk *.map *.exp # Precompiled Headers *.gch *.pch # Libraries *.lib *.a *.la *.lo # Shared objects (inc. Windows DLLs) *.dll *.so *.so.* *.dylib # Executables *.exe *.out *.app *.i*86 *.x86_64 *.hex # Debug files *.dSYM/ *.su *.idb *.pdb # Kernel Module Compile Results *.mod* *.cmd .tmp_versions/ modules.order Module.symvers Mkfile.old dkms.conf # Vi temporary files *.swp # Generated header file pixelize_model.h # Generated binaries make_db pixelize core # Generated database pic_db.dat # depend file depend pixelize-2.0.0~git20220108.d1f9da9/LICENSE000066400000000000000000000432541416641057300172470ustar00rootroot00000000000000 GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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 Lesser 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 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 Lesser General Public License instead of this License. pixelize-2.0.0~git20220108.d1f9da9/Makefile000066400000000000000000000027351416641057300177010ustar00rootroot00000000000000# compile stuff in this dir CC = gcc GLADE2C = ./tools/glade2c CFLAGS += -Iinclude CFLAGS += -I/usr/X11R6/include `pkg-config --cflags gtk+-3.0` CFLAGS += -g -O2 CFLAGS += -fPIE CFLAGS += -Wl,--export-dynamic CFLAGS += -DGSEAL_ENABLE CLFLAS += -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED CFLAGS += -DGTK_DISABLE_SINGLE_INCLUDES CFLAGS += -DGDK_PIXBUF_DISABLE_DEPRECATED CFLAGS += -DG_DISABLE_DEPRECATED CFLAGS += -Wall -Wextra -Werror CFLAGS += -fstack-protector-strong -Wformat -Werror=format-security CFLAGS += -D_FORTIFY_SOURCE=2 DFLAGS = -L/usr/X11R6/lib DFLAGS += `pkg-config --libs gtk+-3.0` DFLAGS += `pkg-config --libs gmodule-2.0` DFLAGS += -Wall -Wextra DFLAGS += -fPIE DFLAGS += -Wl,-z,relro "-Wl,--as-needed" LIBS = -lm SRC_FILES := $(wildcard src/*.c) HDR_FILES := $(wildcard include/*.h) OBJ_FILES := $(subst .c,.o,$(subst src/,obj/,$(SRC_FILES))) DB_OBJS = obj/make_db.o obj/read_db.o PIX_OBJS = $(filter-out obj/make_db.o,$(OBJ_FILES)) all: obj make_db pixelize make_db: $(DB_OBJS) $(CC) -o $@ $(DB_OBJS) $(DFLAGS) $(LIBS) pixelize: $(PIX_OBJS) $(CC) -o $@ $(PIX_OBJS) $(DFLAGS) $(LIBS) obj/%.o: depend obj/%.o: src/%.c $(CC) -c -o $@ $(CFLAGS) $< depend: Makefile $(HDR_FILES) $(SRC_FILES) include/pixelize_model.h $(CC) -MM $(CFLAGS) $(SRC_FILES) > depend include/pixelize_model.h: glade/pixelize.glade $(GLADE2C) -i $< -o $@ clang-format -i $@ clean: rm -rf $(OBJ_FILES) pixelize make_db core depend include/pixelize_model.h obj: mkdir $@ include depend pixelize-2.0.0~git20220108.d1f9da9/README.md000066400000000000000000000024751416641057300175210ustar00rootroot00000000000000 # Pixelize Version 2.0.0 ## By Paul Wilkins Pixelize is a program that will use many scaled down images to try to duplicate, as closely as possible, another image. Pixelize works by splitting up the image you want rendered (or duplicated) into a grid of small rectangular areas. Each area is analyzed, and replaced with an image chosen from a large database of images. Pixelize tries to pick images that best matches each area. ### To build Pixelize: * Edit the Makefile to tell the compiler where to find the X and GTK headers and libraries if you do not have the gtk-config script properly installed. Most systems will not need this. * Run make. * Copy the executables, pixelize and make_db, to it's final installation directory, for example /usr/local/bin. ### Usage: * Run make_db to create the image database (a file called pic_db.dat). It takes a list of files as argument. You could do something like $ find . -name "*.jpg" | xargs make_db or $ make_db *.jpg in the directory where your pictures are stored. * Run pixelize. * Open an image (File->Open) * Select Options->Render ### Source code: Pixelize can be found at the following locations: * http://lashwhip.com/pixelize.html * https://github.com/jcdubois/pixelize That's it. Good Luck. Paul pwilkins@lashwhip.com pixelize-2.0.0~git20220108.d1f9da9/TODO000066400000000000000000000017421416641057300167260ustar00rootroot00000000000000TODO list from Pixelize 2.0.0 - Option to tag good images and scroll between them - Make all of the error and warning messages that Pixelize currently prints to the console, come up in a popup window. - Make Pixelize deal with aspect ratios correctly. I think this will be really hard, since the current way of storing the info in pic_db.dat knows nothing about aspect ratio. - Add a percent done thingy to Pixelizwhen reading pic_db.dat. - Add a Zoom-in/Zoom-out slider - Hourglass - Done v0.9.0 - make_db meeds to know about your X display. This is stupid since make_db never opens any windows. This is an issue with imlib. - imlib dependency removed in v1.0.0 - Option to toggle between the origional and rendered image. - Done v1.0.0 - Write man pages. - Done v2.0.0 - Add an option to make_db to update the pic_db.dat file by somehow checking if files have been added, removed or changed, and then changing pic_db.dat as required. -Done v2.0.0 pixelize-2.0.0~git20220108.d1f9da9/glade/000077500000000000000000000000001416641057300173065ustar00rootroot00000000000000pixelize-2.0.0~git20220108.d1f9da9/glade/pixelize.glade000066400000000000000000001170561416641057300221470ustar00rootroot00000000000000 True False True center-always True dialog True True Pixelize 2.0.0 (c) Paul Wilkins Pixelize is a program that will use many scaled down images to try to duplicate, as closely as possible, another image. Pixelize works by splitting up the image you want rendered (or duplicated) into a grid of small rectangular areas. Each area is analyzed, and replaced with an image chosen from a large database of images. Pixelize tries to pick images that best matches each area. Pixelize may be told how to size the grid, by either the number of areas in the grid, or by the dimensions of the areas in the grid. Once Pixelize has rendered an image, it displays the grid of small images that it has chosen, in place of the original image. By clicking on each small image, Pixelize will allow you to choose alternate images from a list of images, that also fit well into that area. Pixelize works best when it can choose images from a very large database of images. With about 1000 images, Pixelize can do a reasonable job. http://lashwhip.com/pixelize.html Paul Wilkins applications-graphics gpl-2-0 False vertical 2 False end False False 0 *.jpg *.jpeg *.png *.ico *.tiff *.bmp True Open File center True dialog True True True False image_filter False False vertical 2 False end OK True True True True True True 0 Cancel True True True True True 1 False False 0 open_file_ok_button open_file_cancel_button True Save File center True dialog True True True save True image_filter False True False vertical 2 False end OK True True True True True True 0 Cancel True True True True True 1 False False 0 save_file_ok_button save_file_cancel_button False Image Information True normal False vertical 2 False end Close True True True True True 0 False False 0 True False True True in 300 300 info_tree_view True True False 0 1 2 info_label True False Image coordinate : 0 0 3 Previous True True True 0 2 Next True True True 1 2 Highlight Image True True False True 0 3 Highlight Duplicates True True False True 1 3 info_draw_area True False center center True True 2 1 False True 1 info_close_button True False 15 Pixelize center 600 600 applications-graphics True True False menu_bar True False file_menu_item True False _Fichier True file_menu_list True False gtk-open True False True True gtk-save True False True True True False gtk-quit True False True True True False _Options True True False gtk-execute True False True True gtk-preferences True False True True True False True Aid_e True True False gtk-about True False True True 0 0 2 draw_scroll True True bottom-left in True False True True draw_area True True GDK_EXPOSURE_MASK | GDK_BUTTON_PRESS_MASK | GDK_KEY_RELEASE_MASK | GDK_LEAVE_NOTIFY_MASK center center True True 0 1 2 progress_bar True False Ready True 0 2 mode_label True False Size of Images : 10 x 10 1 2 True Configure rendering center True dialog False vertical 2 False end OK True True True True True True 0 Cancel True True True True True 1 False False 0 True False 0 none True False 12 True False pix_heigth True True digits 3 0 pix_width True True digits 1 0 n_pix_heigth True True digits 3 1 n_pix_width True True digits 1 1 proximity True True digits 1 2 True False x 2 0 True False x 2 1 True False Proximity of duplicates : 0 2 True False Pixels 4 0 True False Images 4 1 Image sizes : True True False True True 0 0 Number of Images : True True False True True image_size_button 0 1 True False 1 1 1 1 Images False True 1 options_ok_button options_cancel_button pixelize-2.0.0~git20220108.d1f9da9/include/000077500000000000000000000000001416641057300176555ustar00rootroot00000000000000pixelize-2.0.0~git20220108.d1f9da9/include/cursor.h000066400000000000000000000015221416641057300213430ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* cursor.h by Paul Wilkins 1/2/2000 */ #ifndef __CURSOR_H #define __CURSOR_H void cursor_busy(); void cursor_normal(); #endif pixelize-2.0.0~git20220108.d1f9da9/include/display.h000066400000000000000000000015661416641057300215030ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* setup_display.h by Paul Wilkins 1/2/2000 */ #ifndef __DISPLAY_H #define __DISPLAY_H #include gboolean update_gui_callback(gpointer data); #endif pixelize-2.0.0~git20220108.d1f9da9/include/draw_image.h000066400000000000000000000017541416641057300221340ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* draw_image.h by Paul Wilkins 1/2/2000 */ #ifndef __DRAW_IMAGE_H #define __DRAW_IMAGE_H #include "globals.h" #include gboolean calc_dimensions(struct _ImageOptions *im_opt); void render_image_pixmap(GdkPixbuf *); gboolean change_small_image(int xx, int yy); #endif pixelize-2.0.0~git20220108.d1f9da9/include/file_dialog.h000066400000000000000000000016031416641057300222640ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* file_dialog by Paul Wilkins 1/2/2000 */ #ifndef __FILE_DIALOG_H #define __FILE_DIALOG_H #include gboolean open_image(void); gboolean save_image(void); #endif pixelize-2.0.0~git20220108.d1f9da9/include/find_match.h000066400000000000000000000017111416641057300221220ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* find_match.h by Paul Wilkins 1/2/2000 */ #ifndef __FIND_MATCH_H #define __FIND_MATCH_H #include "read_db.h" #include #define MAX_MATCHES 81 struct PIC_DB **find_match(guint order, guint *match_data, struct PIC_DB *head); #endif pixelize-2.0.0~git20220108.d1f9da9/include/globals.h000066400000000000000000000040641416641057300214550ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* globals.h by Paul Wilkins 1/2/2000 */ #ifndef __GLOBALS_H #define __GLOBALS_H #include "render_image.h" #include #define PIX_SIZE 0x1 #define PIX_COUNT 0x2 struct _ImageOptions { guint width, height; /* width and height of final image */ guint pixW, pixH; /* size to scale small images to */ guint nPixW, nPixH; guint proximity; unsigned long long opt_alg; }; struct _Globals { GtkWidget *topwin; /* The main window. It encompass everything */ GtkWidget *draw_area; /* The widget where the picture is drawn */ struct PIC_DB *head; /* the image database */ struct IMAGE_INFO **image; /* the constructed image */ guint max_order; /* maximum order when fitting images */ struct _ImageOptions cur_opt; struct _ImageOptions new_opt; guint do_highlight; gboolean command_mode; gboolean show_rendered; char *in_fname; /* Input file name */ GdkPixbuf *in_im; /* The original images */ GdkPixbuf *in_im_scaled; /* A scaled version ot the original image. It is scalled to fit exactly the col x line defined in the options */ char *out_fname; /* Output file name */ GdkPixbuf *out_im; /* The processed image */ }; extern struct _Globals globals; GtkWidget *find_child(GtkWidget *parent, const gchar *name); #endif //__GLOBALS_H pixelize-2.0.0~git20220108.d1f9da9/include/highlight.h000066400000000000000000000017331416641057300220010ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* highlight.h by Paul Wilkins 1/2/2000 */ #ifndef __HIGHLIGHT_H #define __HIGHLIGHT_H #define DO_HIGHLIGHT 0x1 #define DO_HIGHLIGHT_DUPS 0x2 #define DO_HIGHLIGHT_ON 0x4 void start_highlight_timer(); void stop_highlight_timer(); void highlight_changed(); #endif pixelize-2.0.0~git20220108.d1f9da9/include/info_popup.h000066400000000000000000000016011416641057300222020ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* info_popup.h by Paul Wilkins 1/2/2000 */ #ifndef __INFO_POPUP_H #define __INFO_POPUP_H #include void info_popup(GtkWidget *dialog, guint x, guint y); #endif pixelize-2.0.0~git20220108.d1f9da9/include/license.h000066400000000000000000000030401416641057300214450ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ #define LICENSE_TXT \ "Copyright (C) 2000 Paul Wilkins\n\ \n\ This program is free software; you can redistribute it and/or\n\ modify it under the terms of the GNU General Public License\n\ as published by the Free Software Foundation; either version 2\n\ of the License, or (at your option) any later version.\n\ \n\ This program is distributed in the hope that it will be useful,\n\ but WITHOUT ANY WARRANTY; without even the implied warranty of\n\ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See\n\ the GNU General Public License for more details.\n\ \n\ You should have received a copy of the GNU General Public License\n\ along with this program; if not, write to the Free Software\n\ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA \n\ 02111-1307, USA.\n\ " pixelize-2.0.0~git20220108.d1f9da9/include/menu.h000066400000000000000000000015511416641057300207740ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* menu.h by Paul Wilkins 1/2/2000 */ #ifndef __MENU_H #define __MENU_H #include gpointer render_compute_thread(gpointer data); #endif pixelize-2.0.0~git20220108.d1f9da9/include/options.h000066400000000000000000000015601416641057300215230ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* options.h by Paul Wilkins 1/2/2000 */ #ifndef __OPTIONS_H #define __OPTIONS_H #include void refresh_options_win(GtkWidget *dialog); #endif pixelize-2.0.0~git20220108.d1f9da9/include/pixelize.xpm000066400000000000000000002074531416641057300222470ustar00rootroot00000000000000/* XPM */ static char *pixelize_xpm[] = { "128 128 1612 2", " c None", ". c #353535", "+ c #616161", "@ c #434343", "# c #3B3B3B", "$ c #464646", "% c #3E3E3E", "& c #252525", "* c #2A2A2A", "= c #2D2D2D", "- c #292929", "; c #454545", "> c #262626", ", c #3A3A3A", "' c #333333", ") c #2C2C2C", "! c #282828", "~ c #FFFFFF", "{ c #3C3C3C", "] c #414141", "^ c #393939", "/ c #FEFEFF", "( c #FEFEFE", "_ c #595959", ": c #3F3F3F", "< c #4C4C4C", "[ c #4A4A4A", "} c #515151", "| c #9E9EFE", "1 c #C0C0FE", "2 c #EAEAFF", "3 c #FCFCFF", "4 c #555555", "5 c #5D5D5D", "6 c #494949", "7 c #6E6E6E", "8 c #646464", "9 c #505050", "0 c #666666", "a c #565656", "b c #AEAEFE", "c c #C5C5FE", "d c #D6D6FE", "e c #E0E0FE", "f c #F2F2FE", "g c #FDFDFF", "h c #F6F5FE", "i c #EED3E2", "j c #FCADB0", "k c #484848", "l c #4E4E4E", "m c #545454", "n c #363636", "o c #9696FE", "p c #B3B3FE", "q c #CDCDFE", "r c #D8D8FE", "s c #D2D2FF", "t c #E9E9FF", "u c #FBFBFF", "v c #F7F6FE", "w c #F4E4EE", "x c #FED8D9", "y c #FECCCC", "z c #FFB0B0", "A c #FE9393", "B c #373737", "C c #444444", "D c #232323", "E c #242424", "F c #424242", "G c #8D8DFE", "H c #B6B6FE", "I c #CECEFF", "J c #D7D7FF", "K c #D3D3FF", "L c #C8C8FF", "M c #BDBDFF", "N c #B5B5FF", "O c #E3E3FF", "P c #F2F1FE", "Q c #ECD1E3", "R c #FDCACC", "S c #FFD4D4", "T c #FFD7D7", "U c #FFCDCD", "V c #FEB3B3", "W c #FE8B8B", "X c #5E5E5E", "Y c #535353", "Z c #2E2E2E", "` c #5B5B5B", " . c #7777FF", ".. c #A6A6FE", "+. c #C8C8FE", "@. c #D4D4FE", "#. c #D0D0FF", "$. c #C2C2FF", "%. c #AFAFFF", "&. c #ADADFF", "*. c #B8B8FE", "=. c #E1E1FF", "-. c #FAFAFF", ";. c #F0EFFD", ">. c #E9C5DC", ",. c #FDB0B2", "'. c #FFB7B7", "). c #FFC3C3", "!. c #FFD0D0", "~. c #FFC7C7", "{. c #FEA3A3", "]. c #FE7474", "^. c #343434", "/. c #2F2F2F", "(. c #9191FF", "_. c #BBBBFF", ":. c #CFCFFF", "<. c #BFBFFF", "[. c #B2B2FF", "}. c #ACACFF", "|. c #AAAAFF", "1. c #A8A8FF", "2. c #A4A4FE", "3. c #9F9FFF", "4. c #A9A9FF", "5. c #DADAFF", "6. c #EEEDFD", "7. c #E6C0D9", "8. c #FCAAAC", "9. c #FFAAAA", "0. c #FEACAC", "a. c #FFB3B3", "b. c #FFC0C0", "c. c #FFCECE", "d. c #FFCFCF", "e. c #FEB9B9", "f. c #FF8E8E", "g. c #2B2B2B", "h. c #272727", "i. c #323232", "j. c #303030", "k. c #4D4D4D", "l. c #3D3D3D", "m. c #6E6EFF", "n. c #9F9FFE", "o. c #C6C6FF", "p. c #CDCDFF", "q. c #C0C0FF", "r. c #B1B1FF", "s. c #A7A7FF", "t. c #A5A5FF", "u. c #9797FF", "v. c #8E8EFF", "w. c #A0A0FF", "x. c #F9F9FF", "y. c #EBEAFD", "z. c #E1B2D1", "A. c #FC999C", "B. c #FFA0A0", "C. c #FFA5A5", "D. c #FFA7A7", "E. c #FFA9A9", "F. c #FFB2B2", "G. c #FFC1C1", "H. c #FECDCD", "I. c #FFC4C4", "J. c #FF9C9C", "K. c #FF6A6A", "L. c #757575", "M. c #4F4F4F", "N. c #636363", "O. c #6F6F6F", "P. c #7979FE", "Q. c #C9C9FE", "R. c #C3C3FF", "S. c #A2A2FF", "T. c #9B9BFF", "U. c #9393FE", "V. c #8C8CFE", "W. c #8B8BFF", "X. c #8A8AFF", "Y. c #8C8CFF", "Z. c #9E9EFF", "`. c #FDFDFE", " + c #EAE9FD", ".+ c #DFADCE", "++ c #FC8C90", "@+ c #FF8D8D", "#+ c #FF9393", "$+ c #FF9B9B", "%+ c #FFA2A2", "&+ c #FEA5A5", "*+ c #FFA8A8", "=+ c #FFC8C8", "-+ c #FFABAB", ";+ c #FF7575", ">+ c #404040", ",+ c #626262", "'+ c #383838", ")+ c #4B4B4B", "!+ c #474747", "~+ c #8080FF", "{+ c #C4C4FF", "]+ c #A3A3FF", "^+ c #A1A1FF", "/+ c #9A9AFF", "(+ c #8989FF", "_+ c #8989FE", ":+ c #9D9DFF", "<+ c #EAE8FC", "[+ c #E0ACCD", "}+ c #FC8B8E", "|+ c #FF8989", "1+ c #FF8B8B", "2+ c #FF9191", "3+ c #FFA1A1", "4+ c #FFA3A3", "5+ c #FFB9B9", "6+ c #FFAFAF", "7+ c #FF7D7D", "8+ c #606060", "9+ c #575757", "0+ c #5C5C5C", "a+ c #5151FE", "b+ c #8181FE", "c+ c #8787FE", "d+ c #9292FF", "e+ c #9898FF", "f+ c #A7A7FE", "g+ c #D7D7FE", "h+ c #F9F9FE", "i+ c #FCFAFB", "j+ c #F2E3ED", "k+ c #EFB4C3", "l+ c #FD9FA0", "m+ c #FF9797", "n+ c #FF9090", "o+ c #FF8A8A", "p+ c #FF8787", "q+ c #FF9292", "r+ c #FF9F9F", "s+ c #FFAEAE", "t+ c #FFBEBE", "u+ c #FF7F7F", "v+ c #FE4F4F", "w+ c #737373", "x+ c #707070", "y+ c #6A6A6A", "z+ c #313131", "A+ c #5F5F5F", "B+ c #5151FF", "C+ c #7F7FFF", "D+ c #B5B5FE", "E+ c #9C9CFF", "F+ c #9393FF", "G+ c #8585FE", "H+ c #9595FE", "I+ c #A2A2FE", "J+ c #B3B3FF", "K+ c #BABAFD", "L+ c #DADAFC", "M+ c #F9F9FD", "N+ c #FCFCFC", "O+ c #FBFAFA", "P+ c #FAE6E6", "Q+ c #FCBFBF", "R+ c #FEB1B1", "S+ c #FFADAD", "T+ c #FE9292", "U+ c #FE8888", "V+ c #FF8585", "W+ c #FF9494", "X+ c #FF9A9A", "Y+ c #FEB6B6", "Z+ c #FF7C7C", "`+ c #FF4F4F", " @ c #7A7A7A", ".@ c #6C6C6C", "+@ c #4D4DFF", "@@ c #9595FF", "#@ c #8484FF", "$@ c #8383FF", "%@ c #ABABFF", "&@ c #B4B4FF", "*@ c #B6B6FF", "=@ c #B8B8FF", "-@ c #BABAFE", ";@ c #C0C0FD", ">@ c #E0E0FC", ",@ c #FCFCFD", "'@ c #FFFFFE", ")@ c #FDEEEE", "!@ c #FDC3C3", "~@ c #FEB4B4", "{@ c #FFB1B1", "]@ c #FFACAC", "^@ c #FEA7A7", "/@ c #FE9C9C", "(@ c #FF8383", "_@ c #FF8484", ":@ c #FF9696", "<@ c #FF9999", "[@ c #FE9F9F", "}@ c #FEAEAE", "|@ c #FFA4A4", "1@ c #FF7474", "2@ c #FF4B4B", "3@ c #525252", "4@ c #4A4AFE", "5@ c #6B6BFF", "6@ c #9999FF", "7@ c #8787FF", "8@ c #8181FF", "9@ c #A4A4FF", "0@ c #B0B0FF", "a@ c #B7B7FF", "b@ c #B9B9FF", "c@ c #BCBCFF", "d@ c #C2C2FE", "e@ c #E2E2FD", "f@ c #FCFCFE", "g@ c #FDF0F0", "h@ c #FDC5C5", "i@ c #FEB7B7", "j@ c #FFB4B4", "k@ c #FEA9A9", "l@ c #FF8181", "m@ c #FF8080", "n@ c #FE9595", "o@ c #FE9999", "p@ c #FFA6A6", "q@ c #FF9898", "r@ c #FF6969", "s@ c #FE4747", "t@ c #585858", "u@ c #808080", "v@ c #4545FE", "w@ c #6161FE", "x@ c #9494FF", "y@ c #8282FF", "z@ c #7D7DFF", "A@ c #9090FF", "B@ c #A6A6FF", "C@ c #C4C4FE", "D@ c #E4E4FD", "E@ c #FDC7C7", "F@ c #FFB6B6", "G@ c #FF9595", "H@ c #FF9E9E", "I@ c #FF8888", "J@ c #FF5E5E", "K@ c #FF4242", "L@ c #747474", "M@ c #3D3DFE", "N@ c #5555FE", "O@ c #7777FE", "P@ c #9494FE", "Q@ c #9090FE", "R@ c #7B7BFF", "S@ c #8F8FFF", "T@ c #BEBEFF", "U@ c #C7C7FE", "V@ c #E5E5FD", "W@ c #FFFEFE", "X@ c #FDF1F1", "Y@ c #FDC9C9", "Z@ c #FEBCBC", "`@ c #FF7B7B", " # c #FE5454", ".# c #FE3B3B", "+# c #3737FF", "@# c #4D4DFE", "## c #8686FF", "$# c #8D8DFF", "%# c #8A8AFE", "&# c #8585FF", "*# c #7A7AFF", "=# c #8E8EFE", "-# c #A5A5FE", ";# c #BBBBFE", "># c #BEBEFE", ",# c #E6E6FD", "'# c #FDF2F2", ")# c #FDCCCC", "!# c #FEBEBE", "~# c #FFBBBB", "{# c #FF7A7A", "]# c #FF7878", "^# c #FE7C7C", "/# c #FF8686", "(# c #FF5F5F", "_# c #FF4C4C", ":# c #FF3535", "<# c #7F7F7F", "[# c #2C2CFF", "}# c #4545FF", "|# c #4F4FFF", "1# c #6D6DFE", "2# c #7979FF", "3# c #7575FF", "4# c #7878FF", "5# c #ABABFE", "6# c #AEAEFF", "7# c #BBBBFB", "8# c #BEBEFC", "9# c #C1C1FE", "0# c #C6C6FE", "a# c #CCCCFE", "b# c #E7E7FD", "c# c #FDCECE", "d# c #FEC0C0", "e# c #FCBCBC", "f# c #FCB9B9", "g# c #FDB7B7", "h# c #FF7777", "i# c #FF4444", "j# c #FF2B2B", "k# c #3E3EFE", "l# c #4646FE", "m# c #5050FF", "n# c #7373FF", "o# c #7474FE", "p# c #B1B1F3", "q# c #9696CA", "r# c #8080AB", "s# c #8C8CB8", "t# c #B0B0E5", "u# c #C5C5FD", "v# c #CECEFD", "w# c #E8E8FD", "x# c #FBCECE", "y# c #E1ADAD", "z# c #B68888", "A# c #AB7E7E", "B# c #CD9595", "C# c #F4B0B0", "D# c #FEB5B5", "E# c #FF9D9D", "F# c #FF7373", "G# c #FF7979", "H# c #FF4D4D", "I# c #FF4646", "J# c #FF3C3C", "K# c #3F3232", "L# c #5A5A5A", "M# c #3333FF", "N# c #4141FE", "O# c #3B3BFE", "P# c #5E5EFF", "Q# c #7E7EFF", "R# c #7070FF", "S# c #7171FE", "T# c #7F7FFE", "U# c #9C9CFE", "V# c #A9A9FE", "W# c #B7B7FE", "X# c #B0B0F2", "Y# c #7777A3", "Z# c #3B3B4D", "`# c #49494D", " $ c #5A5A5F", ".$ c #70708A", "+$ c #B3B3E3", "@$ c #CACAFD", "#$ c #CFCFFD", "$$ c #E9E9FD", "%$ c #FCF2F2", "&$ c #DDBABA", "*$ c #775C5C", "=$ c #2D2020", "-$ c #201616", ";$ c #4A3535", ">$ c #AC7C7C", ",$ c #F2AEAE", "'$ c #FE9696", ")$ c #FF7070", "!$ c #FF7171", "~$ c #FF7E7E", "{$ c #FF5A5A", "]$ c #F64545", "^$ c #A95757", "/$ c #413F3F", "($ c #6B6B6B", "_$ c #2A2AFF", ":$ c #3A3AFF", "<$ c #3939FF", "[$ c #6F6FFF", "}$ c #7B7BFE", "|$ c #7676FE", "1$ c #B6B6FB", "2$ c #8C8CC0", "3$ c #303041", "4$ c #6A6A6B", "5$ c #616164", "6$ c #8C8CAC", "7$ c #C7C7F7", "8$ c #D2D2FE", "9$ c #EAEAFD", "0$ c #F4EDED", "a$ c #9C8989", "b$ c #201A1A", "c$ c #101010", "d$ c #121212", "e$ c #111111", "f$ c #453131", "g$ c #C78F8F", "h$ c #FDB4B4", "i$ c #FEA1A1", "j$ c #FF7676", "k$ c #FF6E6E", "l$ c #FF6F6F", "m$ c #FF6D6D", "n$ c #F63D3D", "o$ c #B46262", "p$ c #6B6565", "q$ c #717171", "r$ c #656565", "s$ c #1D1DFE", "t$ c #3232FF", "u$ c #3535FF", "v$ c #2323FF", "w$ c #4E4EFF", "x$ c #7676FF", "y$ c #7575FE", "z$ c #7171FF", "A$ c #AEAEEF", "B$ c #616186", "C$ c #212123", "D$ c #68687E", "E$ c #BEBEEA", "F$ c #D3D3FE", "G$ c #EBEBFD", "H$ c #E6E3E3", "I$ c #6A6161", "J$ c #1E1E1E", "K$ c #232020", "L$ c #946A6A", "M$ c #FE9E9E", "N$ c #FF6B6B", "O$ c #F97A7A", "P$ c #B56868", "Q$ c #716C6C", "R$ c #2828FE", "S$ c #3232FE", "T$ c #2424FF", "U$ c #2222FF", "V$ c #6262FF", "W$ c #7373FE", "X$ c #6868FE", "Y$ c #A8A8E4", "Z$ c #484863", "`$ c #171717", " % c #58586A", ".% c #BDBDE5", "+% c #D5D5FE", "@% c #ECECFD", "#% c #E2E0E0", "$% c #5D5656", "%% c #373636", "&% c #715252", "*% c #E9A8A8", "=% c #FFB5B5", "-% c #FF6868", ";% c #F87070", ">% c #CE9C9C", ",% c #878484", "'% c #797979", ")% c #1E1EFE", "!% c #2B2BFE", "~% c #2727FE", "{% c #1010FF", "]% c #6A6AFF", "^% c #6767FE", "/% c #6666FE", "(% c #7878FE", "_% c #9B9BFE", ":% c #BABAFF", "<% c #AAAAE5", "[% c #4C4C68", "}% c #070708", "|% c #161616", "1% c #181818", "2% c #191919", "3% c #18181A", "4% c #696980", "5% c #C4C4ED", "6% c #E9E6E6", "7% c #746A6A", "8% c #676767", "9% c #765656", "0% c #EAABAB", "a% c #F86B6B", "b% c #BC7E7E", "c% c #AFACAC", "d% c #868686", "e% c #767676", "f% c #7B7B7B", "g% c #2727FF", "h% c #1515FE", "i% c #0B0BFF", "j% c #4B4BFF", "k% c #6969FF", "l% c #6363FE", "m% c #6C6CFF", "n% c #B2B2FE", "o% c #B5B5F2", "p% c #6D6D92", "q% c #0D0D14", "r% c #020202", "s% c #040404", "t% c #262630", "u% c #9595B4", "v% c #D0D0F9", "w% c #D9D9FE", "x% c #EDEDFD", "y% c #F7F1F1", "z% c #AB9898", "A% c #2B2424", "B% c #252020", "C% c #9F7676", "D% c #F5B5B5", "E% c #FEA4A4", "F% c #F98D8D", "G% c #C79191", "H% c #8B8989", "I% c #9F9F9F", "J% c #7C7C7C", "K% c #212121", "L% c #696969", "M% c #1A1AFF", "N% c #1B1BFF", "O% c #0404FE", "P% c #1717FF", "Q% c #5555FF", "R% c #6565FF", "S% c #A3A3FE", "T% c #BCBCFE", "U% c #A0A0D3", "V% c #48485E", "W% c #14141C", "X% c #0B0B10", "Y% c #25252F", "Z% c #72728B", "`% c #C3C3EA", " & c #DADAFE", ".& c #EEEEFD", "+& c #FCF5F5", "@& c #E6C9C9", "#& c #836C6C", "$& c #2D2323", "%& c #171414", "&& c #211919", "*& c #664D4D", "=& c #D6A2A2", "-& c #FDBCBC", ";& c #FFBABA", ">& c #FA9F9F", ",& c #D5B1B1", "'& c #949292", ")& c #8B8B8B", "!& c #909090", "~& c #777777", "{& c #1D1DFF", "]& c #1C1CFF", "^& c #0101FE", "/& c #5B5BFE", "(& c #6060FE", "_& c #BDBDFE", ":& c #C0C0FA", "<& c #A4A4D2", "[& c #787898", "}& c #6B6B85", "|& c #9090B1", "1& c #C0C0E8", "2& c #D3D3FD", "3& c #DCDCFE", "4& c #FDF6F6", "5& c #FBDADA", "6& c #E5BEBE", "7& c #AE8D8D", "8& c #846969", "9& c #9B7979", "0& c #D7A6A6", "a& c #FABEBE", "b& c #FEBBBB", "c& c #FEB0B0", "d& c #F8A3A3", "e& c #CCA8A8", "f& c #BDBCBC", "g& c #8F8F8F", "h& c #8A8A8A", "i& c #7E7E7E", "j& c #1515FF", "k& c #1111FE", "l& c #0202FF", "m& c #0202FE", "n& c #2D2DFE", "o& c #6060FF", "p& c #9D9DFE", "q& c #A8A8FE", "r& c #ACACFE", "s& c #AFAFFE", "t& c #BFBFFE", "u& c #C6C6FC", "v& c #C3C3F5", "w& c #C4C4F3", "x& c #CBCBF8", "y& c #DDDDFE", "z& c #EFEFFD", "A& c #FFFEFD", "B& c #FFFDFA", "C& c #FFFDF9", "D& c #FEFCF8", "E& c #FEFDF8", "F& c #FEFEFD", "G& c #FDF5F5", "H& c #FDDCDC", "I& c #FED3D3", "J& c #F8CACA", "K& c #F2C3C3", "L& c #F6C2C2", "M& c #FFBFBF", "N& c #FFB8B8", "O& c #FBACAC", "P& c #D4B4B4", "Q& c #BAB9B9", "R& c #C0C0C0", "S& c #949494", "T& c #939393", "U& c #7D7D7D", "V& c #686868", "W& c #0C0CFE", "X& c #1414FE", "Y& c #0505FE", "Z& c #0000FF", "`& c #0303FF", " * c #3434FE", ".* c #5959FE", "+* c #5858FF", "@* c #CCCCFF", "#* c #D1D1FF", "$* c #D4D4FF", "%* c #DFDFFE", "&* c #F0F0FD", "** c #FFFDFB", "=* c #FFFBF2", "-* c #FFF6E1", ";* c #FFF0CB", ">* c #FFEDC0", ",* c #FFEBBD", "'* c #FEECC0", ")* c #FFEFCC", "!* c #FFF5E2", "~* c #FFFBF3", "{* c #FEFDFB", "]* c #FDDDDD", "^* c #FED4D4", "/* c #FFCACA", "(* c #FEC7C7", "_* c #FEC4C4", ":* c #FFBDBD", "<* c #FDB3B3", "[* c #EBD2D2", "}* c #A9A8A8", "|* c #A6A6A6", "1* c #D0D0D0", "2* c #B0B0B0", "3* c #A7A7A7", "4* c #AFAFAF", "5* c #8D8D8D", "6* c #838383", "7* c #0E0EFE", "8* c #1212FF", "9* c #0A0AFE", "0* c #0000FE", "a* c #0505FF", "b* c #3838FE", "c* c #5D5DFE", "d* c #A0A0FE", "e* c #ADADFE", "f* c #B0B0FE", "g* c #C3C3FE", "h* c #FEFDFA", "i* c #FEF9EC", "j* c #FEF2D1", "k* c #FEECB7", "l* c #FFE8A6", "m* c #FFE5A0", "n* c #FEE29C", "o* c #FFE19A", "p* c #FEE19C", "q* c #FFE29F", "r* c #FFE4A7", "s* c #FEE9B9", "t* c #FFF1D3", "u* c #FFF9ED", "v* c #FDDEDE", "w* c #FFD1D1", "x* c #FECBCB", "y* c #FFC5C5", "z* c #FEC1C1", "A* c #FBB4B4", "B* c #DDC3C3", "C* c #D9D9D9", "D* c #B6B6B6", "E* c #A1A1A1", "F* c #B3B3B3", "G* c #B2B2B2", "H* c #929292", "I* c #878787", "J* c #0707FE", "K* c #0D0DFE", "L* c #0303FE", "M* c #0606FE", "N* c #5353FF", "O* c #7272FF", "P* c #C7C7FF", "Q* c #CACAFE", "R* c #D6D6FF", "S* c #D8D8FF", "T* c #DBDBFF", "U* c #F0F0FE", "V* c #FFF9EB", "W* c #FFF0CA", "X* c #FFE9A9", "Y* c #FEE69A", "Z* c #FFE391", "`* c #FFDE84", " = c #FFD772", ".= c #FFD164", "+= c #FFCE5F", "@= c #FFCE62", "#= c #FFD26D", "$= c #FFD780", "%= c #FFDD8F", "&= c #FFE09A", "*= c #FFE5AB", "== c #FFEFCD", "-= c #FFFEFC", ";= c #FDDFDF", ">= c #FED6D6", ",= c #FFD2D2", "'= c #FFCBCB", ")= c #FFC2C2", "!= c #FDBABA", "~= c #DFC5C5", "{= c #CAC9C9", "]= c #DFDFDF", "^= c #EDEDED", "/= c #D2D2D2", "(= c #B1B1B1", "_= c #9C9C9C", ":= c #898989", "<= c #6D6D6D", "[= c #0808FF", "}= c #5757FF", "|= c #9999FE", "1= c #C1C1FF", "2= c #CACAFF", "3= c #D9D9FF", "4= c #DCDCFF", "5= c #F1F1FE", "6= c #FFFCF7", "7= c #FFF1D4", "8= c #FFE7A8", "9= c #FFE28F", "0= c #FFE084", "a= c #FFDC72", "b= c #FFD65B", "c= c #FFD04A", "d= c #FFCC43", "e= c #FFC943", "f= c #FFC743", "g= c #FFC643", "h= c #FFC748", "i= c #FFCB56", "j= c #FFD16C", "k= c #FFD880", "l= c #FFDD90", "m= c #FFE5AA", "n= c #FFF2D8", "o= c #FDF7F7", "p= c #FFCCCC", "q= c #FFC9C9", "r= c #FFC6C6", "s= c #FBBBBB", "t= c #F7E2E2", "u= c #E7E6E6", "v= c #EAEAEA", "w= c #EFEFEF", "x= c #DEDEDE", "y= c #D5D5D5", "z= c #BBBBBB", "A= c #B7B7B7", "B= c #B8B8B8", "C= c #969696", "D= c #8C8C8C", "E= c #0707FF", "F= c #6666FF", "G= c #9A9AFE", "H= c #CBCBFF", "I= c #D1D1FE", "J= c #FDFDFD", "K= c #FEFAF2", "L= c #FEECC3", "M= c #FFDF8F", "N= c #FFDC7C", "O= c #FFD867", "P= c #FFD24D", "Q= c #FFCF3B", "R= c #FFCE38", "S= c #FECD3A", "T= c #FECB3D", "U= c #FFC83E", "V= c #FFC63F", "W= c #FFC53F", "X= c #FFC53D", "Y= c #FFC43B", "Z= c #FFC438", "`= c #FFC339", " - c #FEC647", ".- c #FFCE61", "+- c #FFD678", "@- c #FFDE91", "#- c #FFEDC6", "$- c #FFFBF4", "%- c #FDE0E0", "&- c #FED7D7", "*- c #FFD3D3", "=- c #FEC6C6", "-- c #F9BBBB", ";- c #E3CECE", ">- c #E1E1E1", ",- c #D1D1D1", "'- c #CDCDCD", ")- c #BEBEBE", "!- c #ACACAC", "~- c #C8C8C8", "{- c #B9B9B9", "]- c #BABABA", "^- c #989898", "/- c #8E8E8E", "(- c #222222", "_- c #4040FF", ":- c #DDDDFF", "<- c #E1E1FE", "[- c #FEFBF6", "}- c #FFE9BC", "|- c #FED87E", "1- c #FFD366", "2- c #FECD47", "3- c #FFCB32", "4- c #FFCC2E", "5- c #FFCD31", "6- c #FFCD34", "7- c #FFCC36", "8- c #FEC939", "9- c #FFC73A", "0- c #FEC53B", "a- c #FEC43A", "b- c #FFC439", "c- c #FFC337", "d- c #FFC235", "e- c #FFC131", "f- c #FFC12E", "g- c #FEC02F", "h- c #FFC33F", "i- c #FFCD60", "j- c #FFD87F", "k- c #FFEBC2", "l- c #FFFDF8", "m- c #FEC2C2", "n- c #FCC3C3", "o- c #DCC7C7", "p- c #C8C7C7", "q- c #B5B5B5", "r- c #E0E0E0", "s- c #C1C1C1", "t- c #C7C7C7", "u- c #9B9B9B", "v- c #999999", "w- c #0101FF", "x- c #4C4CFF", "y- c #B1B1FE", "z- c #CBCBFE", "A- c #F1F1FD", "B- c #FDF7EC", "C- c #FFDC93", "D- c #FFCC55", "E- c #FFC534", "F- c #FEC524", "G- c #FAC426", "H- c #F4BF27", "I- c #F0BC2A", "J- c #EEBA2C", "K- c #EDB72E", "L- c #ECB430", "M- c #EBB030", "N- c #EAAE30", "O- c #EBAE30", "P- c #ECAF30", "Q- c #EDAF2F", "R- c #EEB02D", "S- c #F0B12B", "T- c #F3B328", "U- c #F9B826", "V- c #FDBC24", "W- c #FEBF2D", "X- c #FFC74E", "Y- c #FEDE97", "Z- c #FFFAF0", "`- c #FDE1E1", " ; c #FED0D0", ".; c #FBC6C6", "+; c #F5E4E4", "@; c #CFCFCF", "#; c #E4E4E4", "$; c #DBDBDB", "%; c #DCDCDC", "&; c #BDBDBD", "*; c #BCBCBC", "=; c #A3A3A3", "-; c #A4A4A4", ";; c #6565FE", ">; c #9191FE", ",; c #AAAAFE", "'; c #FDF8EF", "); c #FFD78E", "!; c #FFBF28", "~; c #FDBE1D", "{; c #E6AB1E", "]; c #BD8517", "^; c #A46B13", "/; c #985E11", "(; c #925611", "_; c #8E4F11", ":; c #8C4C11", "<; c #87450F", "[; c #86430F", "}; c #874410", "|; c #8C4A11", "1; c #8D4B11", "2; c #925011", "3; c #975712", "4; c #A16213", "5; c #B87917", "6; c #E09F1E", "7; c #FCB91E", "8; c #FFBC24", "9; c #FED890", "0; c #FFFAF2", "a; c #F9C6C6", "b; c #E1CECE", "c; c #F3F3F3", "d; c #E6E6E6", "e; c #C6C6C6", "f; c #CCCCCC", "g; c #959595", "h; c #C2C2C2", "i; c #9A9A9A", "j; c #919191", "k; c #2B2BFF", "l; c #9292FE", "m; c #9696FF", "n; c #FDFBF8", "o; c #FFDCA5", "p; c #FFBD22", "q; c #F4B41D", "r; c #A86914", "s; c #631602", "t; c #5A0500", "u; c #5A0300", "v; c #5A0200", "w; c #5A0100", "x; c #5B0100", "y; c #5A0400", "z; c #601001", "A; c #975510", "B; c #F2B020", "C; c #FFBC26", "D; c #FFE0AC", "E; c #FBCCCC", "F; c #E1D0D0", "G; c #F5F5F5", "H; c #C4C4C4", "I; c #CACACA", "J; c #9D9D9D", "K; c #C3C3C3", "L; c #979797", "M; c #787878", "N; c #8888FE", "O; c #B4B4FE", "P; c #DBDBFE", "Q; c #FFEAC7", "R; c #FFC241", "S; c #F4B520", "T; c #A56A1B", "U; c #5C0701", "V; c #590000", "W; c #5B0000", "X; c #5C0000", "Y; c #5D0000", "Z; c #5E0000", "`; c #5F0000", " > c #5A0000", ".> c #5A0301", "+> c #8E4E14", "@> c #F2B023", "#> c #FFC347", "$> c #FFEDCE", "%> c #FCD1D1", "&> c #F3E5E5", "*> c #E5E5E5", "=> c #E2E2E2", "-> c #F0F0F0", ";> c #F2F2F2", ">> c #C5C5C5", ",> c #D8D8D8", "'> c #AAAAAA", ")> c #727272", "!> c #0202F6", "~> c #9898FE", "{> c #D5D5FF", "]> c #FFF7EA", "^> c #FFD076", "/> c #FCBE22", "(> c #D0992C", "_> c #712E0E", ":> c #620000", "<> c #650000", "[> c #670000", "}> c #680000", "|> c #660000", "1> c #600000", "2> c #6A240A", "3> c #C08329", "4> c #FAB826", "5> c #FFD27E", "6> c #FFF9EE", "7> c #FED5D5", "8> c #F8CCCC", "9> c #EFE2E2", "0> c #F8F8F8", "a> c #ECECEC", "b> c #F9F9F9", "c> c #DDDDDD", "d> c #CECECE", "e> c #848484", "f> c #A8A8A8", "g> c #818181", "h> c #3B3B45", "i> c #2F2FA3", "j> c #0606F6", "k> c #7A7AFE", "l> c #C5C5FF", "m> c #FFE6BB", "n> c #FFC33B", "o> c #F4BB2E", "p> c #B27D2E", "q> c #6C230C", "r> c #620100", "s> c #730000", "t> c #800000", "u> c #860000", "v> c #870000", "w> c #7E0000", "x> c #710000", "y> c #691D0B", "z> c #AB712D", "A> c #EFB131", "B> c #FFC144", "C> c #FFE8C1", "D> c #FCD4D4", "E> c #D8CACA", "F> c #E9E9E9", "G> c #E7E7E7", "H> c #D4D4D4", "I> c #E3E3E3", "J> c #FBFBFB", "K> c #4D4D5E", "L> c #2F2FC6", "M> c #0303FB", "N> c #4141FF", "O> c #9797FE", "P> c #CECEFE", "Q> c #D0D0FE", "R> c #DEDEFE", "S> c #FEF7EA", "T> c #FFD582", "U> c #FEC323", "V> c #EEBA3B", "W> c #AF7936", "X> c #75210E", "Y> c #7F0100", "Z> c #9D0000", "`> c #AE0000", " , c #B50000", "., c #B60000", "+, c #B40000", "@, c #AC0000", "#, c #970000", "$, c #7A0100", "%, c #75200F", "&, c #AB7136", "*, c #ECB03D", "=, c #FEBB28", "-, c #FFD68E", ";, c #FFF8ED", ">, c #FED9D9", ",, c #F3E8E8", "', c #D3D3D3", "), c #D7D7D7", "!, c #EEEEEE", "~, c #F1F1F1", "{, c #A5A5A5", "], c #3B3B68", "^, c #1515DE", "/, c #0D0DFF", "(, c #5B5BFF", "_, c #C9C9FF", ":, c #CFCFFE", "<, c #FEFEFC", "[, c #FFF0D4", "}, c #FECD61", "|, c #FEC421", "1, c #F1BF43", "2, c #BF7E40", "3, c #AE2815", "4, c #BA0100", "5, c #C10000", "6, c #C40000", "7, c #C50000", "8, c #B90201", "9, c #A92A18", "0, c #C07D42", "a, c #F0B545", "b, c #FDBA23", "c, c #FFC966", "d, c #FFF2DB", "e, c #F6D8D8", "f, c #F5EAEA", "g, c #F7F7F7", "h, c #C9C9C9", "i, c #ADADAD", "j, c #888888", "k, c #212122", "l, c #0F0F73", "m, c #0101E9", "n, c #1F1FFF", "o, c #8F8FFE", "p, c #FEEAC2", "q, c #FFCB4E", "r, c #FEC622", "s, c #F5C14C", "t, c #DC8449", "u, c #C92819", "v, c #C90101", "w, c #CC0000", "x, c #CB0000", "y, c #CA0402", "z, c #CB3723", "A, c #DF894D", "B, c #F6B949", "C, c #FEB922", "D, c #FEC557", "E, c #FEEAC5", "F, c #E3DADA", "G, c #ABABAB", "H, c #A0A0A0", "I, c #858585", "J, c #1B1B1B", "K, c #1D1D1D", "L, c #141414", "M, c #060606", "N, c #010112", "O, c #000097", "P, c #0000F7", "Q, c #3333FE", "R, c #8B8BFE", "S, c #FEFCF6", "T, c #FEE8BB", "U, c #FECD53", "V, c #FEC624", "W, c #F9C252", "X, c #E58D55", "Y, c #D43928", "Z, c #D10704", "`, c #D20101", " ' c #D2140E", ".' c #D95239", "+' c #EC9D5D", "@' c #FBBA4A", "#' c #FFB921", "$' c #FFC558", "%' c #FAF8F8", "&' c #D6D6D6", "*' c #F6F6F6", "=' c #0A0A0A", "-' c #0F0F0F", ";' c #0B0B0B", ">' c #030303", ",' c #000000", "'' c #00002C", ")' c #0000B7", "!' c #0000FC", "~' c #4444FE", "{' c #FEFCF7", "]' c #FEECC4", "^' c #FFD268", "/' c #FFC72C", "(' c #FBC452", "_' c #EFA363", ":' c #E06446", "<' c #DC4733", "[' c #E57A54", "}' c #F4AF64", "|' c #FDBD43", "1' c #FFBA27", "2' c #FECB6F", "3' c #FEEBC9", "4' c #F4F4F4", "5' c #A9A9A9", "6' c #000001", "7' c #00004C", "8' c #0000D8", "9' c #5858FE", "0' c #8080FE", "a' c #FEF2D9", "b' c #FEDC8F", "c' c #FFC946", "d' c #FEC543", "e' c #F9BB5C", "f' c #F6B25E", "g' c #FBBC54", "h' c #FEBC34", "i' c #FFC148", "j' c #FED894", "k' c #FFF3DD", "l' c #FAFAFA", "m' c #EBEBEB", "n' c #BFBFBF", "o' c #010101", "p' c #000005", "q' c #00006E", "r' c #0000EB", "s' c #1818FE", "t' c #8484FE", "u' c #8888FF", "v' c #FFECC6", "w' c #FFD789", "x' c #FFC858", "y' c #FEC14C", "z' c #FFC659", "A' c #FFD58C", "B' c #FFEBCA", "C' c #000011", "D' c #000099", "E' c #0000F5", "F' c #8383FE", "G' c #FFF2DF", "H' c #FFF5E3", "I' c #FFFAF1", "J' c #E8E8E8", "K' c #00001C", "L' c #0000B4", "M' c #0000FB", "N' c #3030FE", "O' c #8282FE", "P' c #CBCBCB", "Q' c #828282", "R' c #000033", "S' c #0000C7", "T' c #0000FD", "U' c #4343FE", "V' c #DADADA", "W' c #000055", "X' c #4747FF", "Y' c #7C7CFF", "Z' c #A1A1FE", "`' c #9E9E9E", " ) c #A2A2A2", ".) c #0000F6", "+) c #0C0CFF", "@) c #7E7EFE", "#) c #5353FE", "$) c #1818FF", "%) c #7D7DFE", "&) c #C4C4FD", "*) c #E3E3FC", "=) c #2020FE", "-) c #6464FE", ";) c #C1C1FD", ">) c #E2E2FC", ",) c #E1E1FC", "') c #1F1FFE", ")) c #1E1EFF", "!) c #7474FF", "~) c #B9B9FD", "{) c #DFDFFC", "]) c #5E5EFE", "^) c #B6B6FD", "/) c #DDDDFC", "() c #5C5CFF", "_) c #6A6AFE", ":) c #6D6DFF", "<) c #B3B3FD", "[) c #DCDCFC", "}) c #B4B4B4", "|) c #6B6BFE", "1) c #6E6EFE", "2) c #7070FE", "3) c #B0B0FD", "4) c #AEAEAE", "5) c #5959FF", "6) c #ADADFD", "7) c #D9D9FC", "8) c #1A1AFE", "9) c #5656FF", "0) c #6464FF", "a) c #6767FF", "b) c #AAAAFD", "c) c #D8D8FC", "d) c #1111FF", "e) c #4242FF", "f) c #5454FF", "g) c #A6A6FD", "h) c #D6D6FC", "i) c #FBFBFE", "j) c #3E3EFF", "k) c #4646FF", "l) c #5A5AFF", "m) c #6363FF", "n) c #8686FE", "o) c #A3A3FD", "p) c #D5D5FC", "q) c #3C3CFF", "r) c #4444FF", "s) c #A0A0FD", "t) c #D3D3FB", "u) c #FBFBFD", "v) c #0404FF", "w) c #2525FE", "x) c #3636FF", "y) c #3D3DFF", "z) c #4040FE", "A) c #4A4AFF", "B) c #5050FE", "C) c #9D9DFD", "D) c #D2D2FB", "E) c #2121FF", "F) c #3838FF", "G) c #5F5FFE", "H) c #9999FD", "I) c #D0D0FB", "J) c #3131FE", "K) c #3535FE", "L) c #5F5FFF", "M) c #9696FD", "N) c #CFCFFB", "O) c #1414FF", "P) c #2D2DFF", "Q) c #3B3BFF", "R) c #5252FF", "S) c #5D5DFF", "T) c #6868FF", "U) c #8B8BFD", "V) c #CBCBFB", "W) c #2828FF", "X) c #3030FF", "Y) c #3F3FFE", "Z) c #5757FE", "`) c #6161FF", " ! c #7E7EFD", ".! c #CACAF2", "+! c #2E2EFF", "@! c #4949FF", "#! c #5656FE", "$! c #9090F0", "%! c #CECED6", "&! c #4343FF", "*! c #4848FF", "=! c #5252FE", "-! c #6262FE", ";! c #8888F2", ">! c #D3D3E2", ",! c #3131FF", "'! c #4C4CFE", ")! c #4F4FFE", "!! c #6A6AE6", "~! c #9E9EB4", "{! c #0909FF", "]! c #2929FF", "^! c #2C2CFE", "/! c #2E2EFE", "(! c #3636FE", "_! c #4242FE", ":! c #4949FE", "~ c #4E4B39", ",~ c #FEF16C", "'~ c #FDF275", ")~ c #D6D073", "!~ c #807F6F", "~~ c #FFEF32", "{~ c #FFF336", "]~ c #FEF75F", "^~ c #E7E286", "/~ c #8D8B7B", "(~ c #FEF623", "_~ c #FFFA29", ":~ c #FEF951", "<~ c #E2DE8A", "[~ c #CDCCC2", "}~ c #FFF91B", "|~ c #FFFC50", "1~ c #FEFB83", "2~ c #E9E598", "3~ c #B7B7AD", "4~ c #FEF722", "5~ c #FFFD30", "6~ c #FEFC7F", "7~ c #EFEC9E", "8~ c #CACAC0", "9~ c #FFF919", "0~ c #FDFB4C", "a~ c #E3E187", "b~ c #C7C7BE", "c~ c #FEF72C", "d~ c #E3E177", "e~ c #AFAFA3", "f~ c #CFC876", "g~ c #BFBEB5", "h~ c #61605E", "i~ c #202020", " " " " " " " ", " " " " " " " . ", " " " " " " " + @ ", " " " " " " " # $ % ", " " " " " " " & * = - ", " " " " " " " ; = = # > ", " " " " " " " @ , ' ) ' ! ", " " " ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ " " " " { ] ^ ) # % ] ", " " " / ~ ( ~ ( ~ ~ ~ ( ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ( " " " " _ : { < * [ } } ", " " " | 1 2 3 ~ ~ ~ ~ ~ ( ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ( ~ ~ ~ ~ ~ " "~ ~ / " " 4 5 6 7 8 ^ 9 0 a ", " " " b c d e f g ~ ( ~ ( ( ( ~ ~ ~ ( ~ ( ( ~ ~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 9 6 # @ % '+i.l.* @ < @ z+M.l.= /.Z B k < : !+< >+> ' E * : " "i.= % % { M.m < . # z+", " E= ~%~&~n ` X 9 ($q$8+< " "k.k.>+a @ # 4 " "t@y+j,/" "-=;I>@;G;b>1*~,J>r-&';>d>~,N+*'%;l'g,I;=>;>&'c;0>%;m'J=*>V'm'(=_=q-t@a l " "6 k.l < L#l.& O.,+* , !+h.'+< C /.[ ' E >+'+(-' ^ K%: < >+$ a ^ )+_ '+(-^ " "n ' } t@[ l Y n ", " *~=~0+# m ` } 8 7 + " "k.3@9 A+x+8%: a " "L#($/" "-H*|*,>),~,*'#;c;N+*'4'0>r-#;g,0>a>J>J>=>!,b>4'g,b>*'c;J=4'G;^=G*3*q-t@9+" "9 )+3@3@X q$8 z+r$q$F a 8 . z+: i.B k.n ^.!+@ = z+' (-' l.i.L%q$A+N.x+X > " ". Z . Y L#Y O.O.X ", " -~w+q$7 .@<=8%X + A+l } " "M., ; l.: 9 9 ` " "L@e%i;w=*'4'J>;>l'J=4'g,N+g,a>l'b>G;N+g,#;;>J>4'c;b>~,N+N+N+l'!,h;h;&;!+>+" "# 4 0+` l l l F } a k.!+6 @ l } M.Z '+> * ^ ^.> i.k.F E * > 4 0+9+l.^ '+D " "z+z+B 9 9 6 B k ^.", " ;~>~q$d%d%e>L.M;w+X r$N.3@m " "M.@ 3@^.% 0+4 l 8+0 " "6*P'c;J>l'',x=J>d;;>J=*'C*b>;>H>l'0>,-!,0>y=V'a>d>g,N+G>#;w=n''>n'; 6 " "j.t@A+8+3@0+a l ,+r$` )+3@9 5 8+8+'+M.z+^ 3@l.(-, x+8 g., - 0++ 8+B >+z+* " "[ M.# k.k.k B m ) ", " ,~'~)~!~_ )>:=h&e>f%i&)>0 @0 m " "0+3@8+O.0+>+_ _ l .@ " "@j,P'y=G>J>>-=>J>>-!,b>->;>0>->%;w=;>~,w=b>~,4'4'c>F>0>]==>!,{-'>R&)><=a " "L#8 8 3@_ _ M.7 ~&5 Y r$m X r$,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;=;i,J;{,F*D=I,d%: k.. " "$ A+M.< ($x+3@<=y+' F $ ) ", " ' n 9 d%I,:=v-d%`'G,^-=;`'5*/- " ")B=q-A=^-e>-;S&T&H*5*5*/-D=5*D=d%~& " "@g>L;6*i,x=*>x=->,>H>a>x=x=->c;v=G;%;G>>-G;',v=^=r-#;m'P'f;&;+ " "L%L%!&T&S&5*g&5*D=/-D= )|*|*D*{-}){-/-!&/-v-)&L;2*-;'>(= )H*!-d%I,e>l + @ " "t@<=N.l V&($} _ 0 C C >+= ", " K%= % j.< m )+L#5 a A++ a a ` 9+9+8 r$+ 5 ` 9+Y " "L#t@} ` 9+< Y M.k !+} $ t@4 0+U&I,i&i&e%M;i&<#f%i&d%I*u@ " "@u@M;u@<#6*f%x+~&J%L@J%L%l.< # } 0+a k.,+} t@,++ 8%x+q$<=8 x+N.8+,++ V&+ " "N.r$L%L%8+0+< ` k.a k /.M./.* C ' F Y m 6 !+< C - = ! ", " /.E < m D /.l.D B [ ) /.a @ ! )+< i.% B > l.6 ! ^ m " "k /.k.k.* ; ] > F [ > % ` g.' k.< g.!+, K%'+'+/.t@k.> Z ; * > >+] (-# j.E " "l } - F k.! l.a C z+[ i.l.k.M.l t@m k F _ ) 3@,+M.[ k.l '+)+M.* ^.'+D " "L#V&^.B [ /./.9 B # )+l k } t@)+z+C ) ", " /.* * a t@h.= n > @ 6 j.j.M.C ! l., * Z = E )+; g., " "M.$ ) l.B j.A+5 ' x+7 , k ,+i.Z % ^.^ 8+Y E i./., q$.@: l.6 { : B @ D " "i.g.> k )+^.<=)>] { l @ , < . l.9 } k.t@4 !+< A+z+k._ } 6 } } '+{ # D " "/.j.> _ .@M.; )+z+k.L.A+% M.Y [ } L#9 >+6 % ", " (-z+* (-) g.* ] F % g.B Z (-n ! K%/.^ (-* j.(-g.Z E j.] " "X h.- E & , ' h.F $ = : C >+h.% h.! k., (-* - z+l )+F ) l./.% l.l.D ) > " "K%) g.- k.} $ @ F !+g.% _ n F >+^ # { ^.* >+& '+: # B ] , * z+* (-! ^.(-* " "n ) ! Z h.) ; l.% M.} ; !+!+# g.{ Z ", " ] > k { h.k ] j.< k.[ # } @ ^.7 @ (-l.] D . # D >+!+* * m " "I,/., /.) % i.= l 6 g.k.a M.^.9 n ! [ '+- )+F ' t@X k n 9+) '+} 6 z+l # E " ">+l.Z M.4 9 )+} l /.< I,B { ' K%z+n K%l.Y g.# { > z+< . & k % D ] M.> # , " "E g.] g.(->+/.>+0+t@: 6 k.^ B 4 ) ", " <=L%; )>` $ e%.@@ k.3@< l.m ; @ q$y+' ^ >+> z+. z+)><=9 # ; " "~&{ ^ /./.' Z % q$($l.l 0+m # a [ n Y { 6 L..@: Y 5 6 < r$. # Y 6 _ )>0 . " "t@,+' 3@0+Y l 8%a >+] )>k n Z (-B i.& k 9+, ' ^.) 8+O.N.] q$5 Z ` " "N.g.i.^.- ^ k.# - ^ * % 9+L#>+l.C = l 8%B ", " * F C z+m 8+, 6 )+z+>+; l.' /.^.g.F >+{ # ' > - g.g.a _ )+F { " "9 i.' h.E * h.Z k !+. )+9 k.* g.g.h.'+z+z+6 [ n l } 6 * B ! ; ] !+{ } X " "i.[ ] z+M.9 k.] l )+a a A+@ Z z+D z+j.! , : l.& ! & l.4 k /.3@Y - z+[ , ^ " "l.l.: C ; = z+h.^.; k ^.) @ '+* . > ", " & z+6 $ ! F '%$ Z . K%^.: D g.% * '+l j.K%' z+K%B { g.)+l [ Z % " ") ! < ^ E 0+)+& % % * 6 k.k./.% ) = 6 k /.^ z+Z k.Y [ >+A+= !+l )+j.C " "<#!+6 : j.m t@)+. , - t@+ + % : C h.[ [ '+< Y k.g.l.- > l . * !+)+Z , " "<=N.< Y M.!+k.} >+< i.K%# C & '+L%8 z+>+& ", " 5 # . t@< n l.q$5 n . > k.5 i.n < n A+y+M.& # ^.! Y 0+z+k.} k.B < " "'+^.L#l ' )>)>@ w+L%F M.8 m '+< ^ ' 3@9 ^.'+' z+Y 0+9 X w+Y !+9 } l.: " "L.r$.@5 ^ a + < '+B ) L#N.8 F ^ ; h.@ !+n } 5 3@'+)+n , M.'+j.9 4 ^ # " "r$q$} 5 4 )+8 9+r$($3@) B $ z+# 8+O.)+5 l.", " l 9+: ' '+# ] ; )+a ) g.h.} 4 , % @ ] < m < E ! ! g.9+Y , < 9 M.] @ " "C ^.l.{ Z ; 3@^ 9+L#l.[ X 9+F C @ B B , z+n ^.^ l Y < '+)+C ] )+k k ; } " "9+_ Y B $ )+@ & ) & k._ t@< l., h.- g.) k < ; B # B ) , g.i.n { F F k X $ " ")+!+; 9+} M.4 M.: F { { F @ L#6 l ' ", " h.[ l )+g.% : i.6 ^ - !+!+. )+9 )+$ [ k.g.)+= (-% >+i.k.9 [ [ k.l l Y " "< < 9 M.B # ^ (-^.@ - j._ L@k k.[ Z % ' % 9 M.k < k.)+g.9 & h.F = h.k.% * " "[ ; Z z+. ! - 9 * Z a n ! F j.K%B : & >+$ & - >+> E >+/.D { $ > { 6 ! " "j.l.> ) ] g.Z ; ; - @ @ E /.. > z+. E ", " # ! 6 M.M.* l.] 3@8%!+& !+< B } X Y < 8+4 @ a l.i.8 a ^.m X l 9 + m Y + " "a l ,+m '+B z+i~j.F = . 9+J%< l l Z , g.>+A+a [ Y + l k.9 ' > # h.z+M.: " "h.6 < /.B C * < y+n $ O.A+!+0 0+. 9+@ n 0 ` ) l.a B D { * (-, 6 h.m 0+/.@ " "4 i.` 8 k.. 9+9 z+_ t@! ^ , h.{ # - "}; pixelize-2.0.0~git20220108.d1f9da9/include/read_db.h000066400000000000000000000021661416641057300214130ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* read_db.h by paul wilkins 1/2/2000 */ #ifndef __READ_PIC_DB_H #define __READ_PIC_DB_H #include struct PIC_DB { gboolean done; guint refcnt; char *fname; guint **data; struct PIC_DB *next; }; struct PIC_DB *read_database(guint *max_order); struct PIC_DB *malloc_db(int strlen, int max_order); void free_db(struct PIC_DB *db, int max_order); void reset_db_data(struct PIC_DB *head); #endif pixelize-2.0.0~git20220108.d1f9da9/include/render.h000066400000000000000000000014671416641057300213150ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* render.h by Paul Wilkins 1/2/2000 */ #ifndef __RENDER_H #define __RENDER_H int render(); #endif pixelize-2.0.0~git20220108.d1f9da9/include/render_image.h000066400000000000000000000026151416641057300224530ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* render_image.h by Paul Wilkins 1/2/2000 */ #ifndef __RENDER_IMAGE_H #define __RENDER_IMAGE_H #include "read_db.h" #include struct IMAGE_INFO { guint nMatch; /* number of matches in matches */ guint match_no; /* which match in matches is db */ gboolean do_highlight; /* should we highlight this image somehow */ struct PIC_DB *db; /* the image we are actually using */ struct PIC_DB **matches; /* all the other possible matches */ }; GdkPixbuf *render_image(struct IMAGE_INFO **image, guint nPixW, guint nPixH, guint pixW, guint pixH); void copy_image_RGB(GdkPixbuf *src, GdkPixbuf *dst, guint col, guint row); #endif pixelize-2.0.0~git20220108.d1f9da9/include/stats.h000066400000000000000000000016121416641057300211640ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* stats.h by Paul Wilkins 1/2/2000 */ #ifndef __STATS_H #define __STATS_H #include gboolean calc_mead_std(const double *data, int n, double *mean, double *std); #endif pixelize-2.0.0~git20220108.d1f9da9/include/status.h000066400000000000000000000017611416641057300213560ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* status.h by Paul Wilkins 1/2/2000 */ #ifndef __STATUS_H #define __STATUS_H #include #define ST_PERCENT 0x1 #define ST_READY 0x2 #define ST_PROGRESS 0x4 void set_progress_indicator(double val); void refresh_mode_display(); void setup_status(GtkWidget *dialog); #endif pixelize-2.0.0~git20220108.d1f9da9/man/000077500000000000000000000000001416641057300170055ustar00rootroot00000000000000pixelize-2.0.0~git20220108.d1f9da9/man/man1/000077500000000000000000000000001416641057300176415ustar00rootroot00000000000000pixelize-2.0.0~git20220108.d1f9da9/man/man1/make_db.1000066400000000000000000000023041416641057300213040ustar00rootroot00000000000000.TH "MAKE_DB" "1" "March 30, 2002" "make_db 2.0.0" "User Commands" .SH "NAME" make_db - Create the image database needed by pixelize .br .SH "SYNOPSIS" \fBmake_db\fR [OPTIONS] [image_files] .br .SH "DESCRIPTION" \fBmake_db\fR is a program that scans pictures and creates a file called \fBpic_db.dat\fR in the current directory. This file is used by \fBpixelize\fR when "rendering" images. .br Unless the "reset" command line option is given, \fBmake_db\fR will add provided files to the existing \fBpic_db.dat\fR file if they are not already referenced in this file. .br .SH "OPTIONS" Mandatory arguments to long options are mandatory for short options too. .br Application options : .br -r, --reset Reinitialize database .br .SH "FILES" \fBpic_db.dat\fR .br File containing a database of all pictures \fBpixelise\fR is going to use to match and replace against areas of the processed image. .br .SH "BUGS" Please report any bugs you find to Paul Wilkins . .br .SH LICENCE \fBmake_db\fR is covered by the GNU General Public License (GPL), version 2 or later. .br .SH SEE ALSO \fBpixelize\fR (1). .br .SH AUTHOR Paul Wilkins .br pixelize-2.0.0~git20220108.d1f9da9/man/man1/pixelize.1000066400000000000000000000027461416641057300215650ustar00rootroot00000000000000.TH "PIXELIZE" "1" "January 2020" "pixelize 2.0.0" "User Commands" .SH "NAME" pixelize - Create an image consisting of many small images .br .SH "SYNOPSIS" \fBpixelize \fR[OPTIONS] [image_file] .br .SH "DESCRIPTION" \fBpixelize\fR is a program that will use many scaled down images to try to duplicate, as closely as possible, another image. .br \fBpixelize\fR works by splitting up the image you want rendered (or duplicated) into a grid of small rectangular areas. Each area is analyzed, and replaced with an image chosen from a large database of images. \fBpixelize\fR tries to pick images that best matches each area. .br Note: Before running \fBpixelize\fR you have to create an image database (a file called \fBpic_db.dat\fR) using the \fBmake_db\fR(1) utility. .br .SH "OPTIONS" Mandatory arguments to long options are mandatory for short options too. .br Application options : .br -i, --in=file_name Input file name .br -o, --out=file_name Output file name .br -m, --mode Command line mode .br .SH "FILES" \fBpic_db.dat\fR .br File containing a database of all pictures \fBpixelise\fR is going to use to match and replace against areas of the processed image. .br .SH "BUGS" Please report any bugs you find to Paul Wilkins . .br .SH "LICENCE" \fBpixelize\fR is covered by the GNU General Public License (GPL), version 2 or later. .br .SH "SEE ALSO" \fBmake_db\fR(1). .br .SH "AUTHOR" Paul Wilkins .br pixelize-2.0.0~git20220108.d1f9da9/pixelize-2.0.0.lsm000066400000000000000000000011461416641057300212350ustar00rootroot00000000000000Begin3 Title: pixelize Version: 2.0.0 Entered-date: Nov. 09, 2019 Description: Pixelize is a program that will use many scaled down images to try to duplicate, as closely as possible, another image. Keywords: image viewer photo graphics render Author: pwilkins@lashwhip.com (Paul Wilkins) Maintained-by: pwilkins@lashwhip.com (Paul Wilkins) Primary-site: lashwhip.com /pixelize 32kB pixelize-1.0.0.tar.gz Alternate-site: github.com /jcdubois/pixelize/archive 32kB 2.0.0.zip Copying-policy: GPL End pixelize-2.0.0~git20220108.d1f9da9/src/000077500000000000000000000000001416641057300170215ustar00rootroot00000000000000pixelize-2.0.0~git20220108.d1f9da9/src/cursor.c000066400000000000000000000030761416641057300205100ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* cursor.c by Paul Wilkins 1/2/2000 */ #include "cursor.h" #include "globals.h" void cursor_busy() { static GdkCursor *cur = NULL; if (cur == NULL) { /* create busy cursor if not created yet */ cur = gdk_cursor_new_for_display(gdk_display_get_default(), GDK_WATCH); } if (cur) { /* change cursor to busy cursor */ gdk_window_set_cursor(gtk_widget_get_window(GTK_WIDGET(globals.topwin)), cur); } } void cursor_normal() { static GdkCursor *cur = NULL; if (cur == NULL) { /* create normal cursor if not created yet */ cur = gdk_cursor_new_for_display(gdk_display_get_default(), GDK_TOP_LEFT_ARROW); } if (cur) { /* change cursor to normal cursor */ gdk_window_set_cursor(gtk_widget_get_window(GTK_WIDGET(globals.topwin)), cur); } } pixelize-2.0.0~git20220108.d1f9da9/src/display.c000066400000000000000000000134151416641057300206360ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* display.c by Paul Wilkins 1/2/2000 */ #include "display.h" #include "draw_image.h" #include "file_dialog.h" #include "globals.h" #include "highlight.h" #include "info_popup.h" gboolean draw_area_draw_cb(GtkWidget *widget, cairo_t *cr, gpointer user_data) { (void)user_data; GdkPixbuf *ptr = NULL; /* compute the image to display (original or computed) */ if (globals.show_rendered && globals.image) { ptr = globals.out_im; } else { ptr = globals.in_im_scaled; } if (ptr) { GdkPixbuf *ptr2; GtkAllocation alloc; gint pix_width = gdk_pixbuf_get_width(ptr); gint pix_height = gdk_pixbuf_get_height(ptr); gint area_height; gint area_width; /* get the draw area size */ gtk_widget_get_allocation(gtk_widget_get_parent(widget), &alloc); /* compute the size of the image on display depending on its ration */ if (pix_height > pix_width) { area_height = (pix_height > alloc.height) ? alloc.height : pix_height; area_width = area_height * pix_width / pix_height; if (area_width > alloc.width) { area_width = alloc.width; area_height = area_width * pix_height / pix_width; } } else { area_width = (pix_width > alloc.width) ? alloc.width : pix_width; area_height = area_width * pix_height / pix_width; if (area_height > alloc.height) { area_height = alloc.height; area_width = area_height * pix_width / pix_height; } } /* scale the image to display to fit in the draw area */ ptr2 = gdk_pixbuf_scale_simple(ptr, area_width, area_height, GDK_INTERP_BILINEAR); if (ptr2) { // define the computed pixbuf as draw_area source gdk_cairo_set_source_pixbuf(cr, ptr2, 0, 0); cairo_paint(cr); /* do we need to draw rectangles on the image ? */ if ((globals.show_rendered == TRUE) && (globals.image != NULL) && (globals.do_highlight & DO_HIGHLIGHT_ON)) { // We need to go through the image array to find where to draw // rectangles. static int color = 0; guint y; color = color ? 0 : 1; cairo_set_source_rgb(cr, color, color, color); cairo_set_line_width(cr, 1); for (y = 0; y < globals.cur_opt.nPixH; y++) { guint x; for (x = 0; x < globals.cur_opt.nPixW; x++) { if ((globals.image[y][x]).do_highlight) { cairo_rectangle( cr, x * globals.cur_opt.pixW * area_width / pix_width, y * globals.cur_opt.pixH * area_height / pix_height, globals.cur_opt.pixW * area_width / pix_width, globals.cur_opt.pixH * area_height / pix_height); cairo_stroke(cr); } } } } // adjust the scrollbar as required gtk_widget_set_size_request(widget, area_width, area_height); // release the reference on the pixbuf g_object_unref(ptr2); } } return FALSE; } gboolean draw_area_configure_event_cb(GtkWidget *widget, GdkEventConfigure *event, gpointer user_data) { (void)user_data; (void)widget; (void)event; // Limit the minimal window size GdkGeometry hints; hints.min_width = 300; hints.min_height = 300; gdk_window_set_geometry_hints( gtk_widget_get_window(GTK_WIDGET(globals.topwin)), &hints, GDK_HINT_MIN_SIZE); // draw the configuration window gtk_widget_queue_draw(GTK_WIDGET(widget)); return TRUE; } gboolean draw_area_key_release_event_cb(GtkWidget *widget, GdkEventKey *event, gpointer user_data) { (void)widget; (void)user_data; switch (event->keyval) { case GDK_KEY_space: case GDK_KEY_KP_Space: // toggle the image to display globals.show_rendered = !globals.show_rendered; // redraw the draw area gtk_widget_queue_draw(widget); break; default: break; } return TRUE; } gboolean draw_area_button_press_event_cb(GtkWidget *widget, GdkEventButton *event, gpointer user_data) { (void)widget; GtkWidget *dialog = GTK_WIDGET(user_data); /* check that the mouse click event is within the bound of the widget */ if (dialog && (event->x > 0) && (event->y > 0) && (event->x < gtk_widget_get_allocated_width(widget)) && (event->y < gtk_widget_get_allocated_height(widget)) && (globals.image != NULL)) { /* compute the sub image that was clicked */ guint xx = (event->x * globals.cur_opt.width) / (gtk_widget_get_allocated_width(widget) * globals.cur_opt.pixW); guint yy = (event->y * globals.cur_opt.height) / (gtk_widget_get_allocated_height(widget) * globals.cur_opt.pixH); /* open the info popup window for the selected sub image */ info_popup(dialog, xx, yy); } return TRUE; } gboolean update_gui_callback(gpointer data) { /* Redraw the widget the other thread asked for */ gtk_widget_queue_draw(GTK_WIDGET(data)); return FALSE; } pixelize-2.0.0~git20220108.d1f9da9/src/draw_image.c000066400000000000000000000105121416641057300212630ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* draw_image.c by Paul Wilkins 1/2/2000 */ #include "draw_image.h" #include "globals.h" #include "read_db.h" #include "render_image.h" #include static gboolean check_options(struct _ImageOptions *im_opt) { gboolean ret = TRUE; if (im_opt->opt_alg == PIX_SIZE) { if (im_opt->pixW < 1) { g_printerr("Image size X: invalid number\n"); ret = FALSE; } if (im_opt->pixH < 1) { g_printerr("Image size Y: invalid number\n"); ret = FALSE; } } else { if (im_opt->nPixW < 1) { g_printerr("Image count X: invalid number\n"); ret = FALSE; } if (im_opt->nPixH < 1) { g_printerr("Image count Y: invalid number\n"); ret = FALSE; } } if (im_opt->proximity < 1) { g_printerr("Image proximity: invalid number\n"); ret = FALSE; } return ret; } gboolean calc_dimensions(struct _ImageOptions *im_opt) { gboolean ret = FALSE; if (check_options(im_opt)) { if (im_opt->opt_alg == PIX_SIZE) { if (globals.in_im == NULL) { im_opt->nPixW = 0; im_opt->nPixH = 0; } else { im_opt->nPixW = ceil((double)gdk_pixbuf_get_width(globals.in_im) / (double)im_opt->pixW); im_opt->nPixH = ceil((double)gdk_pixbuf_get_height(globals.in_im) / (double)im_opt->pixH); } im_opt->width = im_opt->nPixW * im_opt->pixW; im_opt->height = im_opt->nPixH * im_opt->pixH; ret = TRUE; } else if (im_opt->opt_alg == PIX_COUNT) { if (globals.in_im == NULL) { im_opt->pixW = 0; im_opt->pixH = 0; } else { im_opt->pixW = ceil((double)gdk_pixbuf_get_width(globals.in_im) / (double)im_opt->nPixW); im_opt->pixH = ceil((double)gdk_pixbuf_get_height(globals.in_im) / (double)im_opt->nPixH); } im_opt->width = im_opt->nPixW * im_opt->pixW; im_opt->height = im_opt->nPixH * im_opt->pixH; ret = TRUE; } else { g_printerr("calc_dimensions: I shouldn't get here.\n"); } } else { g_printerr("error with options\n"); } return ret; } gboolean change_small_image(int xx, int yy) { gboolean ret = FALSE; if (globals.image != NULL) { struct IMAGE_INFO *inf = &(globals.image[yy][xx]); if (inf) { struct PIC_DB *db = inf->matches[inf->match_no]; if (db) { /* load the image */ GError *gerror = NULL; GdkPixbuf *im = gdk_pixbuf_new_from_file(db->fname, &gerror); if (im) { /* scale the image */ GdkPixbuf *scale_im = gdk_pixbuf_scale_simple( im, globals.cur_opt.pixW, globals.cur_opt.pixH, GDK_INTERP_BILINEAR); if (scale_im) { /* add an alpha channel */ GdkPixbuf *scale_im_alpha = gdk_pixbuf_add_alpha(scale_im, 0, 0, 0, 0); if (scale_im_alpha) { copy_image_RGB(scale_im_alpha, globals.out_im, xx, yy); g_object_unref(scale_im_alpha); ret = TRUE; } else { g_printerr("Error: Unable to add alpha to %s\n", db->fname); } g_object_unref(scale_im); } else { g_printerr("Error: Unable to scale image %s\n", db->fname); } g_object_unref(im); } else { g_printerr("Error: Can't load image %s: ", db->fname); if (gerror) { g_printerr("%s", gerror->message); } g_printerr("\n"); } } else { g_printerr("Error: No db for coordinate x(%d) y(%d)\n", xx, yy); } } } return ret; } pixelize-2.0.0~git20220108.d1f9da9/src/file_dialog.c000066400000000000000000000117721416641057300214330ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* file_dialog.c by Paul Wilkins 1/2/2000 */ #include "file_dialog.h" #include "cursor.h" #include "draw_image.h" #include "globals.h" #include "options.h" #include /* 1 == regular * 0 == not regular * -1 == does not exist */ static int file_type(const char *file_name) { if (file_name) { struct stat statb; /* get the file's size */ if (stat(file_name, &statb) == -1) { return -1; } if (S_ISREG(statb.st_mode)) { return 1; } return 0; } return -1; } static gboolean check_valid_types(const char *type) { GSList *format_list; GSList *iterator; format_list = gdk_pixbuf_get_formats(); if (format_list) { for (iterator = format_list; iterator; iterator = g_slist_next(iterator)) { GdkPixbufFormat *pixbuf_format = (GdkPixbufFormat *)iterator->data; if (pixbuf_format) { gchar *format_name = gdk_pixbuf_format_get_name(pixbuf_format); if (format_name) { if (type) { if (strcmp(type, format_name) == 0) { return TRUE; } } else { g_printerr("%s\n", format_name); } } } } g_slist_free(format_list); } return FALSE; } static char *get_extension(const char *file_name) { if (file_name) { char *p1 = strrchr(file_name, '.'); if (p1 == NULL) { g_printerr("Error: %s: Can not find file extension\n", __func__); return NULL; } return p1 + 1; } g_printerr("Error: %s: no name provided\n", __func__); return NULL; } gboolean save_image(void) { gboolean ret = FALSE; if (globals.out_fname && strlen(globals.out_fname) && file_type(globals.out_fname) != 0) { if (globals.out_im) { char *extension = get_extension(globals.out_fname); if (extension) { if (check_valid_types(extension)) { GError *gerror = NULL; if (gdk_pixbuf_save(globals.out_im, globals.out_fname, extension, &gerror, NULL)) { ret = TRUE; } else { g_printerr("Error: %s: Can't write %s: %s\n", __func__, globals.out_fname, gerror->message); } } else { g_printerr("Error: %s: Can not determine file type from extension\n", __func__); g_printerr("Valid extension types are:\n"); check_valid_types(NULL); } } else { g_printerr("Error: %s: unknown extension\n", __func__); } } else { g_printerr("Error: %s: render an image first.\n", __func__); } } else { g_printerr("Error: %s: Invalid file name.\n", __func__); } return ret; } gboolean open_image(void) { gboolean ret = FALSE; if (globals.in_fname && strlen(globals.in_fname) != 0 && file_type(globals.in_fname) == 1) { GdkPixbuf *im; GError *gerror = NULL; /* free old data */ if (globals.in_im != NULL) { g_object_unref(globals.in_im); } globals.in_im = NULL; if (globals.in_im_scaled != NULL) { g_object_unref(globals.in_im_scaled); } globals.in_im_scaled = NULL; /* Load the image specified as the first argument */ im = gdk_pixbuf_new_from_file(globals.in_fname, &gerror); if (im) { /* add an alpha channel */ globals.in_im = gdk_pixbuf_add_alpha(im, 0, 0, 0, 0); g_object_unref(im); if (globals.in_im) { if (calc_dimensions(&(globals.new_opt))) { /* scale the image */ globals.in_im_scaled = gdk_pixbuf_scale_simple( globals.in_im, globals.new_opt.pixW * globals.new_opt.nPixW, globals.new_opt.pixH * globals.new_opt.nPixH, GDK_INTERP_BILINEAR); if (globals.in_im_scaled) { ret = TRUE; } else { g_printerr("Error: %s: Unable to scale image: %s\n", __func__, globals.in_fname); } } else { g_printerr("Error: %s: Invalid option value.\n", __func__); } } else { g_printerr("Error: %s: while adding alpha channel\n", __func__); } } else { g_printerr("Error: %s: Can't load image %s: %s\n", __func__, globals.in_fname, gerror->message); } } else { g_printerr("Error: %s: Invalid file name.\n", __func__); } return ret; } pixelize-2.0.0~git20220108.d1f9da9/src/find_match.c000066400000000000000000000045001416641057300212600ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* find_match.c by Paul Wilkins 1/2/2000 */ #include "find_match.h" #include struct PIC_DB **find_match(guint order, guint *match_data, struct PIC_DB *head) { double best_fit[MAX_MATCHES]; struct PIC_DB **matches = g_malloc0(MAX_MATCHES * sizeof(struct PIC_DB *)); if (matches) { guint i; struct PIC_DB *db; for (i = 0; i < MAX_MATCHES; i++) { matches[i] = NULL; best_fit[i] = 1e300; } /* loop through each pic in the db */ for (db = head; db != NULL; db = db->next) { guint *p1 = db->data[order - 1]; guint *p2 = match_data; double fit = 0.0; for (i = 0; i < order * order; i++) { guint r1 = *p1++; guint g1 = *p1++; guint b1 = *p1++; guint r2 = *p2++; guint g2 = *p2++; guint b2 = *p2++; guint r = r1 - r2; guint g = g1 - g2; guint b = b1 - b2; /* it looks like this emphasizes the colors more. But i don't understand why? Why not multiply? if(r1 > g1 && r1 > b1) r /= 2.0; else if(g1 > r1 && g1 > b1) g /= 2.0; else if(b1 > r1 && b1 > g1) b /= 2.0; */ fit += sqrt(r * r + g * g + b * b); } for (i = 0; i < MAX_MATCHES; i++) { if (fit < best_fit[i]) { guint j; for (j = MAX_MATCHES - 1; j > i; j--) { best_fit[j] = best_fit[j - 1]; matches[j] = matches[j - 1]; } best_fit[i] = fit; matches[i] = db; break; } } } } else { perror("malloc"); } return matches; } pixelize-2.0.0~git20220108.d1f9da9/src/globals.c000066400000000000000000000036551416641057300206210ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* globals.c by Paul Wilkins 1/2/2000 */ #include "globals.h" struct _Globals globals = {.topwin = NULL, .draw_area = NULL, .head = NULL, .image = NULL, .max_order = 0, .do_highlight = 0, .show_rendered = TRUE, .command_mode = FALSE, .in_fname = NULL, .in_im = NULL, .in_im_scaled = NULL, .out_fname = NULL, .out_im = NULL, .cur_opt.pixW = 10, .cur_opt.pixH = 10, .cur_opt.nPixW = 30, .cur_opt.nPixH = 30, .cur_opt.proximity = 3, .cur_opt.opt_alg = PIX_SIZE, .new_opt.pixW = 10, .new_opt.pixH = 10, .new_opt.nPixW = 30, .new_opt.nPixH = 30, .new_opt.proximity = 3, .new_opt.opt_alg = PIX_SIZE}; pixelize-2.0.0~git20220108.d1f9da9/src/highlight.c000066400000000000000000000040041416641057300211320ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* highlight.c by Paul Wilkins 1/2/2000 */ #include "highlight.h" #include "globals.h" #include "render_image.h" static gboolean timeout_exists = FALSE; static gboolean highlight_timeout(gpointer data) { (void)data; globals.do_highlight ^= DO_HIGHLIGHT_ON; /* redraw the screen */ if (globals.draw_area) { gtk_widget_queue_draw(globals.draw_area); } return timeout_exists; } void highlight_changed() { /* redraw the screen */ if (globals.draw_area) { gtk_widget_queue_draw(globals.draw_area); } } void start_highlight_timer() { /* start a timer if one does not already exist */ if (!timeout_exists) { guint local_timer; timeout_exists = TRUE; globals.do_highlight |= DO_HIGHLIGHT_ON; local_timer = gdk_threads_add_timeout(200, highlight_timeout, NULL); if (local_timer == 0) { timeout_exists = FALSE; globals.do_highlight &= ~DO_HIGHLIGHT_ON; g_printerr("%s: failed to create timer\n", __func__); } } /* redraw the screen */ if (globals.draw_area) { gtk_widget_queue_draw(globals.draw_area); } } void stop_highlight_timer() { if (timeout_exists) { timeout_exists = FALSE; globals.do_highlight &= ~DO_HIGHLIGHT_ON; } /* redraw the screen */ if (globals.draw_area) { gtk_widget_queue_draw(globals.draw_area); } } pixelize-2.0.0~git20220108.d1f9da9/src/info_popup.c000066400000000000000000000316271416641057300213540ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* info_popup.c by Paul Wilkins 1/2/2000 */ #include "info_popup.h" #include "draw_image.h" #include "find_match.h" #include "globals.h" #include "highlight.h" #include "render_image.h" #define LIST_WIDTH 300 static GtkWidget *draw_area = NULL; static GtkWidget *info_list = NULL; static guint info_x = 0; /* the current cell */ static guint info_y = 0; static gboolean ignore_selection = FALSE; gboolean info_draw_area_draw_cb(GtkWidget *widget, cairo_t *cr, gpointer data) { (void)data; struct IMAGE_INFO *inf = &(globals.image[info_y][info_x]); if (inf) { struct PIC_DB *db = inf->matches[inf->match_no]; if (db) { GError *gerror = NULL; GdkPixbuf *im = gdk_pixbuf_new_from_file(db->fname, &gerror); if (im) { GdkPixbuf *im2 = gdk_pixbuf_add_alpha(im, 0, 0, 0, 0); g_object_unref(im); if (im2) { GdkPixbuf *im3; gint width = gdk_pixbuf_get_width(im2); gint height = gdk_pixbuf_get_height(im2); if (width > height) { height = height * LIST_WIDTH / width; width = LIST_WIDTH; } else { width = width * LIST_WIDTH / height; height = LIST_WIDTH; } im3 = gdk_pixbuf_scale_simple(im2, width, height, GDK_INTERP_BILINEAR); g_object_unref(im2); if (im3) { gdk_cairo_set_source_pixbuf(cr, im3, 0, 0); gtk_widget_set_size_request(widget, width, height); g_object_unref(im3); } else { g_printerr("%s: failed to scale the pixbuf\n", __func__); } } else { g_printerr("%s: failed to to add alpha\n", __func__); } } else { g_printerr("%s: failed to make pixbuf from file\n", __func__); } } else { g_printerr("%s: no DB defined for match %u\n", __func__, inf->match_no); } } else { g_printerr("%s: no image info defined for cell(%u, %u)\n", __func__, info_y, info_x); } cairo_paint(cr); return FALSE; } static void set_highlight() { struct IMAGE_INFO *inf = &(globals.image[info_y][info_x]); if (inf) { if (globals.do_highlight & DO_HIGHLIGHT) { inf->do_highlight = TRUE; } } else { g_printerr("%s: no image info defined for cell(%u, %u)\n", __func__, info_y, info_x); } } static void set_highlight_dups() { /* find duplicates and mark them */ struct IMAGE_INFO *inf = &(globals.image[info_y][info_x]); if (inf) { struct PIC_DB *db = inf->matches[inf->match_no]; guint x; guint y; for (y = 0; y < globals.cur_opt.nPixH; y++) { for (x = 0; x < globals.cur_opt.nPixW; x++) { struct IMAGE_INFO *inf2; if (x == info_x && y == info_y) { continue; } inf2 = &(globals.image[y][x]); if (inf2) { struct PIC_DB *db2 = inf2->matches[inf2->match_no]; if (db == db2) { inf2->do_highlight = TRUE; } } } } } else { g_printerr("%s: no image info defined for cell(%u, %u)\n", __func__, info_y, info_x); } } static void clear_all_highlights(gboolean clear_current) { guint x; guint y; /* clear everyone */ for (y = 0; y < globals.cur_opt.nPixH; y++) { for (x = 0; x < globals.cur_opt.nPixW; x++) { struct IMAGE_INFO *inf; if (x == info_x && y == info_y && clear_current == FALSE) { continue; } inf = &(globals.image[y][x]); if (inf) { inf->do_highlight = FALSE; } } } } static void info_fill_list(void) { if (info_list) { struct IMAGE_INFO *inf = &(globals.image[info_y][info_x]); if (inf) { /* create a new store */ GtkListStore *store = gtk_list_store_new(1, G_TYPE_STRING); if (store) { int i; GtkTreeIter iter; GtkTreeSelection *select; ignore_selection = TRUE; /* fill it in */ for (i = 0; i < MAX_MATCHES; i++) { struct PIC_DB *db = inf->matches[i]; if (db) { gtk_list_store_append(store, &iter); gtk_list_store_set(store, &iter, 0, db->fname, -1); } } /* set the store as a model to the tree view */ gtk_tree_view_set_model(GTK_TREE_VIEW(info_list), GTK_TREE_MODEL(store)); /* * The tree view has acquired its own reference to the store, so we can * drop ours. That way the store will be freed automaitcally when the * tree view is destroyed */ g_object_unref(store); /* retrieve the tree view selection object */ select = gtk_tree_view_get_selection(GTK_TREE_VIEW(info_list)); if (select) { /* select a default row */ GtkTreePath *path = gtk_tree_path_new_from_indices(inf->match_no, -1); gtk_tree_selection_select_path(select, path); gtk_tree_path_free(path); } ignore_selection = FALSE; } } else { g_printerr("%s: no image info defined for cell(%u, %u)\n", __func__, info_y, info_x); } } else { g_printerr("%s: info_list is NULL\n", __func__); } } void info_prev_button_clicked_cb(GtkWidget *widget, gpointer data) { (void)widget; struct IMAGE_INFO *inf = &(globals.image[info_y][info_x]); if (inf) { GtkTreeSelection *select = gtk_tree_view_get_selection(GTK_TREE_VIEW(data)); if (select) { GtkTreePath *path = gtk_tree_path_new_from_indices(inf->match_no, -1); gtk_tree_selection_unselect_path(select, path); gtk_tree_path_free(path); /* the previous item in the list */ if (inf->match_no == 0) { inf->match_no = MAX_MATCHES - 1; } else { inf->match_no--; } ignore_selection = TRUE; path = gtk_tree_path_new_from_indices(inf->match_no, -1); if (path) { gtk_tree_selection_select_path(select, path); gtk_tree_view_scroll_to_cell(GTK_TREE_VIEW(data), path, NULL, FALSE, 0, 0); gtk_tree_path_free(path); } ignore_selection = FALSE; gtk_widget_queue_draw(draw_area); } else { g_printerr("%s: failed to retreive a selection\n", __func__); } /* finally, draw the new image */ change_small_image(info_x, info_y); /* clear and optionalls reset the highlites */ clear_all_highlights(FALSE); if (globals.do_highlight & DO_HIGHLIGHT) { set_highlight(); } if (globals.do_highlight & DO_HIGHLIGHT_DUPS) { set_highlight_dups(); } highlight_changed(); } else { g_printerr("%s: no image info defined for cell(%u, %u)\n", __func__, info_y, info_x); } } void info_next_button_clicked_cb(GtkWidget *widget, gpointer data) { (void)widget; struct IMAGE_INFO *inf = &(globals.image[info_y][info_x]); if (inf) { GtkTreeSelection *select = gtk_tree_view_get_selection(GTK_TREE_VIEW(data)); if (select) { GtkTreePath *path = gtk_tree_path_new_from_indices(inf->match_no, -1); gtk_tree_selection_unselect_path(select, path); gtk_tree_path_free(path); /* the previous item in the list */ if (inf->match_no == MAX_MATCHES - 1) { inf->match_no = 0; } else { inf->match_no++; } ignore_selection = TRUE; path = gtk_tree_path_new_from_indices(inf->match_no, -1); if (path) { gtk_tree_selection_select_path(select, path); gtk_tree_view_scroll_to_cell(GTK_TREE_VIEW(data), path, NULL, FALSE, 0, 0); gtk_tree_path_free(path); } ignore_selection = FALSE; if (draw_area) { gtk_widget_queue_draw(draw_area); } } else { g_printerr("%s: failed to retreive a selection\n", __func__); } /* finally, draw the new image */ change_small_image(info_x, info_y); /* clear and optionalls reset the highlites */ clear_all_highlights(FALSE); if (globals.do_highlight & DO_HIGHLIGHT) { set_highlight(); } if (globals.do_highlight & DO_HIGHLIGHT_DUPS) { set_highlight_dups(); } highlight_changed(); } else { g_printerr("%s: no image info defined for cell(%u, %u)\n", __func__, info_y, info_x); } } void info_tree_selection_changed_cb(GtkTreeSelection *selection, gpointer data) { (void)data; if (!ignore_selection) { struct IMAGE_INFO *inf = &(globals.image[info_y][info_x]); if (inf) { GtkTreeIter iter; GtkTreeModel *model; if (gtk_tree_selection_get_selected(selection, &model, &iter)) { if (model) { GtkTreePath *path = gtk_tree_model_get_path(model, &iter); if (path) { gint *row = gtk_tree_path_get_indices(path); if (row && (int)inf->match_no != row[0]) { /* store the new row */ inf->match_no = (guint)row[0]; /* finally, draw the new image */ change_small_image(info_x, info_y); /* clear and optionalls reset the highlites */ clear_all_highlights(FALSE); if (globals.do_highlight & DO_HIGHLIGHT) { set_highlight(); } if (globals.do_highlight & DO_HIGHLIGHT_DUPS) { set_highlight_dups(); } highlight_changed(); if (draw_area) { gtk_widget_queue_draw(draw_area); } } } else { g_printerr("%s: no path\n", __func__); } } else { g_printerr("%s: no model\n", __func__); } } } else { g_printerr("%s: no image info defined for cell(%u, %u)\n", __func__, info_y, info_x); } } } void info_highlight_toggled_cb(GtkWidget *widget, gpointer data) { struct IMAGE_INFO *inf; (void)data; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget))) { globals.do_highlight |= DO_HIGHLIGHT; } else { globals.do_highlight &= ~DO_HIGHLIGHT; } inf = &(globals.image[info_y][info_x]); if (inf) { if (globals.do_highlight & DO_HIGHLIGHT) { inf->do_highlight = TRUE; } else { inf->do_highlight = FALSE; } } else { g_printerr("%s: no image info defined for cell(%u, %u)\n", __func__, info_y, info_x); } highlight_changed(); if (globals.do_highlight) { start_highlight_timer(); } else { stop_highlight_timer(); } } void info_highlight_dup_toggled_cb(GtkWidget *widget, gpointer data) { (void)data; if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget))) { globals.do_highlight |= DO_HIGHLIGHT_DUPS; } else { globals.do_highlight &= ~DO_HIGHLIGHT_DUPS; } if (globals.do_highlight & DO_HIGHLIGHT_DUPS) { set_highlight_dups(); } else { clear_all_highlights(FALSE); } highlight_changed(); if (globals.do_highlight) { start_highlight_timer(); } else { stop_highlight_timer(); } } /* pops up a new window with all the options in it */ void info_popup(GtkWidget *dialog, guint x, guint y) { char buf[64]; if (dialog) { /* save the x and y coords */ info_x = x; info_y = y; /* set the coord label */ snprintf(buf, sizeof(buf), "Image coordinates: %ux%u", info_x, info_y); gtk_label_set_text(GTK_LABEL(find_child(dialog, "info_label")), buf); /* clear and optionalls reset the highlites */ clear_all_highlights(TRUE); if (globals.do_highlight & DO_HIGHLIGHT) { set_highlight(); } if (globals.do_highlight & DO_HIGHLIGHT_DUPS) { set_highlight_dups(); } highlight_changed(); if (info_list == NULL) { info_list = find_child(dialog, "info_tree_view"); if (info_list) { GtkCellRenderer *renderer = gtk_cell_renderer_text_new(); if (renderer) { gtk_tree_view_insert_column_with_attributes( GTK_TREE_VIEW(info_list), -1, "File", renderer, "text", 0, NULL); } } } info_fill_list(); if (draw_area == NULL) { draw_area = find_child(dialog, "info_draw_area"); } if (draw_area) { gtk_widget_queue_draw(draw_area); } gtk_widget_show(dialog); gtk_window_set_keep_above(GTK_WINDOW(dialog), TRUE); } } pixelize-2.0.0~git20220108.d1f9da9/src/main.c000066400000000000000000000076601416641057300201220ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* main.c by Paul Wilkins 1/2/2000 */ /* main.c by Paul Wilkins. * This file contains the main program. */ #include "cursor.h" #include "display.h" #include "globals.h" #include "menu.h" #include "pixelize.xpm" #include "pixelize_model.h" #include "status.h" int main(int argc, char *argv[]) { GOptionEntry entries[] = { {"in", 'i', 0, G_OPTION_ARG_STRING, &globals.in_fname, "Input file name", "file_name"}, {"out", 'o', 0, G_OPTION_ARG_STRING, &globals.out_fname, "Output file name", "file_name"}, {"mode", 'm', 0, G_OPTION_ARG_NONE, &globals.command_mode, "Command line mode", NULL}, {NULL}, }; /* initialize gtk with args */ if (gtk_init_with_args(&argc, &argv, "[image_file]", entries, NULL, NULL)) { GtkBuilder *builder; GError *error = NULL; if (argc > 2) { g_printerr("%s: Error: too many arguments\n", argv[0]); exit(1); } /* * if a file name was provided, save it the global struct */ if (argc == 2) { if (globals.in_fname == NULL) { globals.in_fname = g_strdup(argv[1]); } else { g_printerr("%s: Error: you provided 2 input files\n", argv[0]); exit(1); } } /* * check that we got all required argument if non interactive mode was * selected */ if (globals.command_mode && (globals.out_fname == NULL || globals.in_fname == NULL)) { g_printerr("%s: Error: Invalid arguments\n", argv[0]); g_printerr( "%s: you need to define an input file and and an ouput file in " "non interactive mode\n", argv[0]); exit(1); } builder = gtk_builder_new(); if (builder) { GdkPixbuf *logo = gdk_pixbuf_new_from_xpm_data((const char **)pixelize_xpm); GtkAboutDialog *about_dialog = NULL; if (gtk_builder_add_from_string(builder, gladestring, -1, &error) == 0) { g_printerr("%s: Error loading file: %s\n", argv[0], error->message); g_clear_error(&error); exit(1); } gtk_builder_connect_signals(builder, NULL); globals.topwin = GTK_WIDGET(gtk_builder_get_object(builder, "main_window")); if (globals.topwin == NULL) { g_printerr("%s: Error: failed to retrieve main window\n", argv[0]); exit(1); } gtk_window_set_icon(GTK_WINDOW(globals.topwin), logo); gtk_window_set_default_icon(logo); about_dialog = GTK_ABOUT_DIALOG(gtk_builder_get_object(builder, "about_dialog")); if (about_dialog) { gtk_about_dialog_set_logo(about_dialog, logo); } globals.draw_area = GTK_WIDGET(gtk_builder_get_object(builder, "draw_area")); if (globals.draw_area == NULL) { g_printerr("%s: Error: failed to retrieve draw_area \n", argv[0]); exit(1); } setup_status(globals.topwin); gtk_widget_show(globals.topwin); cursor_normal(); // gtk_window_maximize(GTK_WINDOW(globals.topwin)); g_thread_new("render", render_compute_thread, NULL); gtk_main(); return 0; } g_printerr("%s: Error: Can't create builder\n", argv[0]); exit(1); } else { g_printerr("%s: Error: in parameters\n", argv[0]); exit(1); } } pixelize-2.0.0~git20220108.d1f9da9/src/make_db.c000066400000000000000000000213361416641057300205540ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* make_db.c by Paul Wilkins 1/2/2000 */ #include #include struct PIX { int cnt; double r; double g; double b; }; #define MAX_SIZE 5 #define MAX_PATH_LEN 512 static struct PIC_DB *find_db(struct PIC_DB *head, char *file_name) { while (head) { if (strncmp(head->fname, file_name, strlen(head->fname)) == 0) { return head; } head = head->next; } return NULL; } int main(int argc, char **argv) { gboolean reinitialize = FALSE; GOptionEntry entries[] = { {"reset", 'r', 0, G_OPTION_ARG_NONE, &reinitialize, "Reinitialize database", NULL}, {NULL}, }; if (gtk_init_with_args(&argc, &argv, "[FILE...]", entries, NULL, NULL)) { guint i; guint j; guint n; guint size; GError *gerror; GdkPixbuf *pb; guint qh; guint qw; guint width; guint height; guint ww; guint hh; guchar *p; guchar *pixels; guint rowstride; guint n_channels; struct PIX ***quad; char *real_path_name; FILE *dbfp; struct PIC_DB *head = NULL; guint max_order = MAX_SIZE; /* Be nice and tell the user if they don't, to provide a file as an arg */ if (argc <= 1) { g_printerr( "make_db is a program that scans pictures and creates a file\n"); g_printerr( "called pic_db.dat. The file pic_db.dat is used by Pixelize\n"); g_printerr("when \"rendering\" images.\n"); g_printerr("\n"); g_printerr("Usage:\n %s image_files\n", argv[0]); exit(1); } if (access("pic_db.dat", F_OK) == -1) { /* DB file does not exist yet */ reinitialize = TRUE; } else if (access("pic_db.dat", W_OK | R_OK) == -1) { /* DB file cannot be read/written */ g_printerr("%s: Can't read/write pic_db.dat file\n", argv[0]); exit(1); } else if (!reinitialize) { /* we read the existing DB */ head = read_database(&max_order); if (head == NULL) { g_printerr("%s: failed to read/process existing pic_db.dat file\n", argv[0]); exit(1); } if (max_order < 3) { g_printerr("%s: maw_oder(%u) < 3 in existing pic_db.dat file\n", argv[0], max_order); exit(1); } } quad = g_malloc0((max_order + 1) * sizeof(struct PIX **)); if (quad == NULL) { perror("malloc"); exit(1); } for (i = 1; i <= max_order; i++) { quad[i] = g_malloc0((max_order + 1) * sizeof(struct PIX *)); if (quad[i] == NULL) { perror("malloc"); exit(1); } for (j = 0; j <= max_order; j++) { quad[i][j] = g_malloc0((max_order + 1) * sizeof(struct PIX)); if (quad[i][j] == NULL) { perror("malloc"); exit(1); } } } /* for each file on the command line */ for (n = 1; n < (guint)argc; n++) { struct PIC_DB *db = NULL; /* get the absolute path name for the file */ real_path_name = realpath(argv[n], NULL); if (real_path_name == NULL) { g_printerr("Error: can't get absolute file name for %s\n", argv[n]); continue; } /* look in the database if this file is already used */ if (find_db(head, real_path_name)) { g_printerr("%s: file %s is alreadty in the DB\n", argv[0], argv[n]); g_free(real_path_name); real_path_name = NULL; continue; } /* Load the image */ gerror = NULL; pb = gdk_pixbuf_new_from_file(real_path_name, &gerror); if (pb == NULL) { g_printerr("Error: Can't load image %s: %s\n", real_path_name, gerror->message); g_free(real_path_name); real_path_name = NULL; continue; } /* Suck the image's original width and height out of the Image structure */ width = gdk_pixbuf_get_width(pb); height = gdk_pixbuf_get_height(pb); pixels = gdk_pixbuf_get_pixels(pb); rowstride = gdk_pixbuf_get_rowstride(pb); n_channels = gdk_pixbuf_get_n_channels(pb); g_assert(gdk_pixbuf_get_colorspace(pb) == GDK_COLORSPACE_RGB); g_assert(gdk_pixbuf_get_bits_per_sample(pb) == 8); g_print("file %u: %s width: %u height: %u\n", n, real_path_name, width, height); db = malloc_db(strlen(real_path_name), max_order); if (db == NULL) { g_printerr("Error: Can't alloc db for %s\n", real_path_name); g_free(real_path_name); real_path_name = NULL; exit(1); } strcpy(db->fname, real_path_name); /* we can free up the file name now (allocated in realpath()) */ g_free(real_path_name); real_path_name = NULL; for (size = 1; size <= max_order; size++) { for (hh = 0; hh < size; hh++) { for (ww = 0; ww < size; ww++) { quad[size][ww][hh].cnt = 0; quad[size][ww][hh].r = 0.0; quad[size][ww][hh].g = 0.0; quad[size][ww][hh].b = 0.0; } } } /* generate the data for each size */ for (size = 3; size <= max_order; size++) { for (hh = 0; hh < height; hh++) { qh = (guint)((double)hh / (double)height * (double)size); if (qh >= size) { qh = size - 1; } for (ww = 0; ww < width; ww++) { qw = (int)((double)ww / (double)width * (double)size); if (qw >= size) { qw = size - 1; } p = pixels + hh * rowstride + ww * n_channels; quad[size][qw][qh].cnt++; quad[size][qw][qh].r += (double)(p[0]); quad[size][qw][qh].g += (double)(p[1]); quad[size][qw][qh].b += (double)(p[2]); } } } /* special case for size = 2 */ for (hh = 0; hh < 2; hh++) { for (ww = 0; ww < 2; ww++) { for (i = 0; i < 2; i++) { for (j = 0; j < 2; j++) { quad[2][ww][hh].cnt += quad[4][ww * 2 + i][hh * 2 + j].cnt; quad[2][ww][hh].r += quad[4][ww * 2 + i][hh * 2 + j].r; quad[2][ww][hh].g += quad[4][ww * 2 + i][hh * 2 + j].g; quad[2][ww][hh].b += quad[4][ww * 2 + i][hh * 2 + j].b; } } } } /* special case for size = 1 */ for (i = 0; i < 2; i++) { for (j = 0; j < 2; j++) { quad[1][0][0].cnt += quad[2][i][j].cnt; quad[1][0][0].r += quad[2][i][j].r; quad[1][0][0].g += quad[2][i][j].g; quad[1][0][0].b += quad[2][i][j].b; } } for (size = 1; size <= max_order; size++) { guint *p1 = db->data[size - 1]; for (hh = 0; hh < size; hh++) { for (ww = 0; ww < size; ww++) { p1[0] = (guint)(quad[size][ww][hh].r / quad[size][ww][hh].cnt); p1[1] = (guint)(quad[size][ww][hh].g / quad[size][ww][hh].cnt); p1[2] = (guint)(quad[size][ww][hh].b / quad[size][ww][hh].cnt); p1 += 3; } } } g_object_unref(pb); db->next = head; head = db; } /* free up the quad array */ for (i = 1; i <= max_order; i++) { for (j = 0; j <= max_order; j++) { g_free(quad[i][j]); } g_free(quad[i]); } g_free(quad); /* open the DB file */ if (NULL == (dbfp = fopen("pic_db.dat", "w+"))) { g_printerr("Error opening pic_db.dat for write\n"); exit(1); } /* write the max order */ fprintf(dbfp, "%u\n", max_order); /* write all files and related data */ while (head) { struct PIC_DB *db = head; fprintf(dbfp, "%s\n", head->fname); for (size = 1; size <= max_order; size++) { guint *p1 = db->data[size - 1]; for (hh = 0; hh < size; hh++) { for (ww = 0; ww < size; ww++) { fprintf(dbfp, "%03u %03u %03u\n", p1[0], p1[1], p1[2]); p1 += 3; } } } head = head->next; free_db(db, max_order); } /* close file */ fclose(dbfp); return 0; } else { g_printerr("%s: Error: in parameters\n", argv[0]); exit(1); } } pixelize-2.0.0~git20220108.d1f9da9/src/menu.c000066400000000000000000000102671416641057300201370ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* setup_menu.c by Paul Wilkins 1/2/2000 */ #include "menu.h" #include "cursor.h" #include "file_dialog.h" #include "globals.h" #include "options.h" #include "render.h" gpointer render_compute_thread(gpointer data) { (void)data; if (globals.in_fname && !globals.in_im_scaled) { open_image(); } if (globals.in_im_scaled) { /* compute the new image */ render(); } /* save it if a file name was provided */ if (globals.out_im && globals.out_fname) { save_image(); } /* Exit if we are in non interactive mode */ if (globals.command_mode) { gtk_main_quit(); } return NULL; } void options_menu_render_activate_cb(GtkMenuItem *menuitem, gpointer user_data) { (void)menuitem; (void)user_data; if (globals.in_im_scaled) { g_thread_new("render", render_compute_thread, NULL); } else { g_printerr("Error: No image loaded\n"); } } void file_menu_open_activate_cb(GtkMenuItem *menuitem, gpointer user_data) { (void)menuitem; GtkWidget *dialog = GTK_WIDGET(user_data); if (dialog) { gint res = gtk_dialog_run(GTK_DIALOG(dialog)); if (res == GTK_RESPONSE_ACCEPT) { GtkFileChooser *chooser = GTK_FILE_CHOOSER(dialog); if (chooser) { char *filename = gtk_file_chooser_get_filename(chooser); if (filename) { cursor_busy(); if (globals.in_fname) { g_free(globals.in_fname); } globals.in_fname = filename; if (globals.out_fname) { g_free(globals.out_fname); globals.out_fname = NULL; } open_image(); if (globals.in_im_scaled) { globals.show_rendered = FALSE; } if (globals.draw_area) { gtk_widget_queue_draw(globals.draw_area); } cursor_normal(); } } } gtk_widget_hide(dialog); } } void file_menu_save_activate_cb(GtkMenuItem *menuitem, gpointer user_data) { (void)menuitem; GtkWidget *dialog = GTK_WIDGET(user_data); if (dialog) { GtkFileChooser *chooser = GTK_FILE_CHOOSER(dialog); if (chooser) { gint res = gtk_dialog_run(GTK_DIALOG(dialog)); if (res == GTK_RESPONSE_ACCEPT) { char *filename = gtk_file_chooser_get_filename(chooser); if (filename) { cursor_busy(); if (globals.out_fname) { g_free(globals.out_fname); } globals.out_fname = filename; save_image(); cursor_normal(); } } } gtk_widget_hide(dialog); } } void about_menu_item_activate_cb(GtkMenuItem *menuitem, gpointer user_data) { (void)menuitem; GtkWidget *dialog = GTK_WIDGET(user_data); if (dialog) { gtk_dialog_run(GTK_DIALOG(dialog)); gtk_widget_hide(dialog); } else { g_printerr("Error: Can't get about dialog box\n"); } } void options_menu_configure_activate_cb(GtkMenuItem *menuitem, gpointer user_data) { (void)menuitem; GtkWidget *dialog = GTK_WIDGET(user_data); if (dialog) { /* save the previous values */ struct _ImageOptions save = globals.new_opt; refresh_options_win(dialog); gint res = gtk_dialog_run(GTK_DIALOG(dialog)); if (res == GTK_RESPONSE_ACCEPT) { } else { /* the user selected cancel, so we put back the previous velaues */ globals.new_opt = save; } gtk_widget_hide(dialog); } else { g_printerr("Error: Can't get options dialog box\n"); } } pixelize-2.0.0~git20220108.d1f9da9/src/options.c000066400000000000000000000164571416641057300206750ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* options.c by Paul Wilkins 1/2/2000 */ #include "options.h" #include "draw_image.h" #include "globals.h" #include static GtkWidget *optWindow = NULL; GtkWidget *find_child(GtkWidget *parent, const gchar *name) { if (g_ascii_strcasecmp(gtk_widget_get_name((GtkWidget *)parent), (gchar *)name) == 0) { return parent; } if (GTK_IS_BIN(parent)) { GtkWidget *child = gtk_bin_get_child(GTK_BIN(parent)); return find_child(child, name); } if (GTK_IS_CONTAINER(parent)) { GList *children = gtk_container_get_children(GTK_CONTAINER(parent)); while (children) { GtkWidget *widget = find_child(children->data, name); if (widget != NULL) { return widget; } children = g_list_next(children); } } return NULL; } void refresh_options_win(GtkWidget *dialog) { if (dialog) { char buf[8]; GtkWidget *ptr; if (optWindow == NULL) { optWindow = dialog; } ptr = find_child(optWindow, "pix_width"); if (ptr) { snprintf(buf, sizeof(buf), "%u", globals.new_opt.pixW); gtk_entry_set_text(GTK_ENTRY(ptr), buf); if (globals.new_opt.opt_alg == PIX_SIZE) { gtk_editable_set_editable(GTK_EDITABLE(ptr), TRUE); gtk_widget_set_sensitive(ptr, TRUE); } else { gtk_editable_set_editable(GTK_EDITABLE(ptr), FALSE); gtk_widget_set_sensitive(ptr, FALSE); } } else { g_printerr("Error: Unable to find pix_width entry\n"); } ptr = find_child(optWindow, "pix_heigth"); if (ptr) { snprintf(buf, sizeof(buf), "%u", globals.new_opt.pixH); gtk_entry_set_text(GTK_ENTRY(ptr), buf); if (globals.new_opt.opt_alg == PIX_SIZE) { gtk_editable_set_editable(GTK_EDITABLE(ptr), TRUE); gtk_widget_set_sensitive(ptr, TRUE); } else { gtk_editable_set_editable(GTK_EDITABLE(ptr), FALSE); gtk_widget_set_sensitive(ptr, FALSE); } } else { g_printerr("Error: Unable to find pix_heigth entry\n"); } ptr = find_child(optWindow, "n_pix_width"); if (ptr) { snprintf(buf, sizeof(buf), "%u", globals.new_opt.nPixW); gtk_entry_set_text(GTK_ENTRY(ptr), buf); if (globals.new_opt.opt_alg == PIX_SIZE) { gtk_editable_set_editable(GTK_EDITABLE(ptr), FALSE); gtk_widget_set_sensitive(ptr, FALSE); } else { gtk_editable_set_editable(GTK_EDITABLE(ptr), TRUE); gtk_widget_set_sensitive(ptr, TRUE); } } else { g_printerr("Error: Unable to find n_pix_width entry\n"); } ptr = find_child(optWindow, "n_pix_heigth"); if (ptr) { snprintf(buf, sizeof(buf), "%u", globals.new_opt.nPixH); gtk_entry_set_text(GTK_ENTRY(ptr), buf); if (globals.new_opt.opt_alg == PIX_SIZE) { gtk_editable_set_editable(GTK_EDITABLE(ptr), FALSE); gtk_widget_set_sensitive(ptr, FALSE); } else { gtk_editable_set_editable(GTK_EDITABLE(ptr), TRUE); gtk_widget_set_sensitive(ptr, TRUE); } } else { g_printerr("Error: Unable to find n_pix_heigth entry\n"); } ptr = find_child(optWindow, "proximity"); if (ptr) { snprintf(buf, sizeof(buf), "%u", globals.new_opt.proximity); gtk_entry_set_text(GTK_ENTRY(ptr), buf); } else { g_printerr("Error: Unable to find proximity entry\n"); } } else { g_printerr("Error: dialog is NULL\n"); } } void image_size_button_toggled_cb(GtkToggleButton *button, gpointer user_data) { (void)user_data; g_printerr("%s: enter\n", __func__); if (gtk_toggle_button_get_active(button)) { globals.new_opt.opt_alg = PIX_SIZE; } else { globals.new_opt.opt_alg = PIX_COUNT; } refresh_options_win(optWindow); } gboolean pix_width_focus_out_event_cb(GtkWidget *widget, GdkEvent *event, gpointer user_data) { (void)widget; (void)event; (void)user_data; const gchar *txt = gtk_entry_get_text(GTK_ENTRY(widget)); g_printerr("%s: enter\n", __func__); if (sscanf(txt, "%u", &globals.new_opt.pixW) == 1) { if (calc_dimensions(&globals.new_opt) == FALSE) { g_printerr("error: %s can't compute dimension\n", __func__); return FALSE; } } else { g_printerr("Error: cant make sense of %s for pix_width\n", txt); } refresh_options_win(optWindow); return FALSE; } gboolean pix_heigth_focus_out_event_cb(GtkWidget *widget, GdkEvent *event, gpointer user_data) { (void)widget; (void)event; (void)user_data; const gchar *txt = gtk_entry_get_text(GTK_ENTRY(widget)); g_printerr("%s: enter\n", __func__); if (sscanf(txt, "%u", &globals.new_opt.pixH) == 1) { if (calc_dimensions(&globals.new_opt) == FALSE) { g_printerr("error: %s can't compute dimension\n", __func__); return FALSE; } } else { g_printerr("Error: cant make sense of %s for pix_heigth\n", txt); } refresh_options_win(optWindow); return FALSE; } gboolean proximity_focus_out_event_cb(GtkWidget *widget, GdkEvent *event, gpointer user_data) { (void)widget; (void)event; (void)user_data; const gchar *txt = gtk_entry_get_text(GTK_ENTRY(widget)); g_printerr("%s: enter\n", __func__); if (sscanf(txt, "%u", &globals.new_opt.proximity) != 1) { g_printerr("Error: cant make sense of %s for proximity\n", txt); } refresh_options_win(optWindow); return FALSE; } gboolean n_pix_width_focus_out_event_cb(GtkWidget *widget, GdkEvent *event, gpointer user_data) { (void)widget; (void)event; (void)user_data; const gchar *txt = gtk_entry_get_text(GTK_ENTRY(widget)); g_printerr("%s: enter\n", __func__); if (sscanf(txt, "%u", &globals.new_opt.nPixW) == 1) { if (calc_dimensions(&globals.new_opt) == FALSE) { g_printerr("error: %s can't compute dimension\n", __func__); return FALSE; } } else { g_printerr("Error: cant make sense of %s for n_pix_width\n", txt); } refresh_options_win(optWindow); return FALSE; } gboolean n_pix_heigth_focus_out_event_cb(GtkWidget *widget, GdkEvent *event, gpointer user_data) { (void)widget; (void)event; (void)user_data; const gchar *txt = gtk_entry_get_text(GTK_ENTRY(widget)); g_printerr("%s: enter\n", __func__); if (sscanf(txt, "%u", &globals.new_opt.nPixH) == 1) { if (calc_dimensions(&globals.new_opt) == FALSE) { g_printerr("error: %s can't compute dimension\n", __func__); return FALSE; } } else { g_printerr("Error: cant make sense of %s for n_pix_heigth\n", txt); } refresh_options_win(optWindow); return FALSE; } pixelize-2.0.0~git20220108.d1f9da9/src/read_db.c000066400000000000000000000074211416641057300205510ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* read_db.c by Paul Wilkins 1/2/2000 */ #include "read_db.h" void free_db(struct PIC_DB *db, int n) { if (db) { if (db->fname) { g_free(db->fname); } if (db->data) { int i; for (i = 0; i < n; i++) { if (db->data[i]) { g_free(db->data[i]); } } g_free(db->data); } g_free(db); } } struct PIC_DB *malloc_db(int strlen, int n) { struct PIC_DB *db = g_malloc0(sizeof(struct PIC_DB)); if (db) { db->data = NULL; db->fname = g_malloc0((strlen + 1) * sizeof(char)); if (db->fname) { db->data = g_malloc0(n * sizeof(guint *)); if (db->data) { int i; for (i = 0; i < n; i++) { db->data[i] = NULL; } for (i = 0; i < n; i++) { db->data[i] = g_malloc0(3 * (i + 1) * (i + 1) * sizeof(guint)); if (db->data[i] == NULL) { perror("malloc"); free_db(db, n); db = NULL; break; } } } else { perror("malloc"); free_db(db, n); db = NULL; } } else { perror("malloc"); free_db(db, n); db = NULL; } } else { perror("malloc"); } return db; } void reset_db_data(struct PIC_DB *head) { struct PIC_DB *db; for (db = head; db != NULL; db = db->next) { db->refcnt = 0; db->done = FALSE; } } struct PIC_DB *read_database(guint *max_order) { FILE *dbfp = NULL; struct PIC_DB *head = NULL; dbfp = fopen("pic_db.dat", "r"); if (dbfp) { char line[1024]; if (fscanf(dbfp, "%u\n", max_order) == 1) { /* read in the db */ while (fscanf(dbfp, "%1023s\n", line) == 1) { guint len = strlen(line); struct PIC_DB *db = malloc_db(len, *max_order); if (db) { guint i; guint j; strcpy(db->fname, line); for (j = 0; j < *max_order; j++) { guint *p1 = db->data[j]; for (i = 0; i < (j + 1) * (j + 1); i++) { if (fscanf(dbfp, "%3u %3u %3u\n", &p1[0], &p1[1], &p1[2]) != 3) { g_printerr( "Error: can't read data from pic_db.dat for file %s\n", line); g_printerr("Error: is data base file corrupted ?\n"); exit(1); } p1 += 3; } } /* check the referenced file is present */ if (access(line, R_OK) != 0) { g_printerr("Error: file %s does not exist\n", line); g_printerr("Error: ignoring file %s\n", line); /* we free the db and we continue to the nexte file */ free_db(db, *max_order); } else { /* add db to the list */ db->next = head; /* new db head */ head = db; } } } } else { g_printerr("Error: can't read size from pic_db.dat\n"); } fclose(dbfp); } else { g_printerr("Error opening pic_db.dat for read\n"); g_printerr("Use the make_db(1) tool before running pixelize!\n"); } return head; } pixelize-2.0.0~git20220108.d1f9da9/src/render.c000066400000000000000000000264241416641057300204540ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* render.c by Paul Wilkins 1/2/2000 */ #include "render.h" #include "cursor.h" #include "display.h" #include "draw_image.h" #include "find_match.h" #include "globals.h" #include "render_image.h" #include "stats.h" #include "status.h" #include #define STATS_SIZE 6 struct PIX { int cnt; double r; double g; double b; }; static gboolean update_cursor_callback(gpointer data) { if (data) { cursor_normal(); } else { cursor_busy(); } return FALSE; } void average_image_area(struct PIX *avg, GdkPixbuf *im, guint x, guint y, guint w, guint h) { guint i; guint j; guint r; guint g; guint b; guint xx; guint yy; guchar *pixels; guchar *p; guint rowstride; guint n_channels; n_channels = gdk_pixbuf_get_n_channels(im); rowstride = gdk_pixbuf_get_rowstride(im); pixels = gdk_pixbuf_get_pixels(im); avg->r = 0.0; avg->g = 0.0; avg->b = 0.0; for (j = 0; j < h; j++) { yy = j + y; for (i = 0; i < w; i++) { xx = i + x; p = pixels + yy * rowstride + xx * n_channels; r = p[0]; g = p[1]; b = p[2]; avg->r += r; avg->g += g; avg->b += b; } } avg->cnt = w * h; avg->r /= (double)(w * h); avg->g /= (double)(w * h); avg->b /= (double)(w * h); } static double calc_stddev(GdkPixbuf *im, guint x, guint y, guint nPixW, guint nPixH) { double meanR; double stdR; double meanG; double stdG; double meanB; double stdB; double dataR[STATS_SIZE * STATS_SIZE]; double dataG[STATS_SIZE * STATS_SIZE]; double dataB[STATS_SIZE * STATS_SIZE]; double xoff = (double)x / (double)nPixW * (double)gdk_pixbuf_get_width(im); double yoff = (double)y / (double)nPixH * (double)gdk_pixbuf_get_height(im); guint n = 0; guint pyy = (int)yoff; guint h; for (h = 0; h < STATS_SIZE; h++) { guint yy = (int)(yoff + (double)(h + 1) * (double)gdk_pixbuf_get_height(im) / (double)nPixH / (double)STATS_SIZE); guint hh = yy - pyy; guint pxx = (int)xoff; guint w; for (w = 0; w < STATS_SIZE; w++) { guint xx = (int)(xoff + (double)(w + 1) * (double)gdk_pixbuf_get_width(im) / (double)nPixW / (double)STATS_SIZE); guint ww = xx - pxx; struct PIX avg; average_image_area(&avg, im, pxx, pyy, ww, hh); dataR[n] = avg.r; dataG[n] = avg.g; dataB[n] = avg.b; n++; pxx = xx; } pyy = yy; } calc_mead_std(dataR, n, &meanR, &stdR); calc_mead_std(dataG, n, &meanG, &stdG); calc_mead_std(dataB, n, &meanB, &stdB); return (stdR + stdG + stdB) / 3.0; } static void init_db(void) { static gboolean init = FALSE; if (init == FALSE) { /* read in the picture database */ globals.head = read_database(&(globals.max_order)); if (globals.head == NULL) { g_printerr("Error reading database.\n"); exit(1); } init = TRUE; } } static guint *gen_master_data(GdkPixbuf *im, guint x, guint y, guint nPixW, guint nPixH, guint order) { /* this must be free'd outside this function */ guint *data = g_malloc0(3 * order * order * sizeof(guint)); if (data) { double xoff = (double)x / (double)nPixW * (double)gdk_pixbuf_get_width(im); double yoff = (double)y / (double)nPixH * (double)gdk_pixbuf_get_height(im); guint pyy = (int)yoff; guint *p1 = data; guint h; for (h = 0; h < order; h++) { guint yy = (int)(yoff + (double)(h + 1) * (double)gdk_pixbuf_get_height(im) / (double)nPixH / (double)order); guint hh = yy - pyy; guint pxx = (int)xoff; guint w; for (w = 0; w < order; w++) { guint xx = (int)(xoff + (double)(w + 1) * (double)gdk_pixbuf_get_width(im) / (double)nPixW / (double)order); guint ww = xx - pxx; struct PIX avg; average_image_area(&avg, im, pxx, pyy, ww, hh); *p1++ = (int)avg.r; *p1++ = (int)avg.g; *p1++ = (int)avg.b; pxx = xx; } pyy = yy; } } else { perror("malloc"); exit(1); } return data; } static void free_image_data(void) { if (globals.image) { guint hh; /* free old image data */ for (hh = 0; hh < globals.cur_opt.nPixH; hh++) { if (globals.image[hh]) { guint ww; for (ww = 0; ww < globals.cur_opt.nPixW; ww++) { if (globals.image[hh][ww].matches) { g_free(globals.image[hh][ww].matches); } } g_free(globals.image[hh]); } } g_free(globals.image); globals.image = NULL; } } static gboolean image_borders_n(struct IMAGE_INFO **image, struct PIC_DB *match, guint n, guint cx, guint cy, guint maxx, guint maxy) { int x; int y; for (y = cy - n; y <= (int)(cy + n); y++) { if (y < 0 || y >= (int)maxy) { continue; } for (x = (int)cx - n; x <= (int)(cx + n); x++) { if (x < 0 || x >= (int)maxx) { continue; } if (x == (int)cx && y == (int)cy) { continue; } if (image[y][x].db == match) { return TRUE; } } } return FALSE; } static guint guess_order(double val, guint pixW, guint pixH, guint max_order) { guint order = (guint)(sqrt((double)(pixW * pixH)) / 9.0 + (val / 6.0)); if (order > max_order) { order = max_order; } return order; } int render(void) { guint i; guint j; guint pixW; guint pixH; guint nPixW; guint nPixH; guint proximity; GdkPixbuf *im; GdkPixbuf *out_im; guint ww; guint hh; struct PIC_DB **matches; if (globals.in_fname == NULL || globals.in_im_scaled == NULL) { g_printerr("Error: Open an Image first!\n"); return 0; } /* free the old data, if any */ free_image_data(); /* calculate the new images dimensions */ if (0 == calc_dimensions(&(globals.new_opt))) { g_printerr("Invalid option. Bye.\n"); return 0; } /* set the cursor */ /* We ask the main thread to change the cursor */ gdk_threads_add_idle(update_cursor_callback, (gpointer)0); /* copy the image rendering data from new_opt to cur_opt */ globals.cur_opt = globals.new_opt; if (globals.in_im_scaled != NULL) { g_object_unref(globals.in_im_scaled); globals.in_im_scaled = NULL; } /* scale the image */ if ((globals.in_im_scaled = gdk_pixbuf_scale_simple( globals.in_im, globals.cur_opt.pixW * globals.cur_opt.nPixW, globals.cur_opt.pixH * globals.cur_opt.nPixH, GDK_INTERP_BILINEAR)) == NULL) { g_printerr("Error: Unable to scale image: %s\n", globals.in_fname); return 0; } /* update the mode display info */ refresh_mode_display(); /* set our local copies of some of the globals */ im = globals.in_im_scaled; pixW = globals.cur_opt.pixW; pixH = globals.cur_opt.pixH; nPixW = globals.cur_opt.nPixW; nPixH = globals.cur_opt.nPixH; /* malloc the array to store the image info */ globals.image = g_malloc0(nPixH * sizeof(struct IMAGE_INFO *)); if (globals.image) { for (hh = 0; hh < nPixH; hh++) { globals.image[hh] = g_malloc0(nPixW * sizeof(struct IMAGE_INFO)); if (!globals.image[hh]) { perror("Malloc"); free_image_data(); return 0; } } } else { perror("Malloc"); return 0; } /* initialize the database if not already done */ init_db(); /* clear data stored in the database from the last render */ reset_db_data(globals.head); /* init the progress bar to 0 */ set_progress_indicator(0.0); /* from now on, we display the rendered picture */ globals.show_rendered = 1; /* go pix by pix through the image calculating images that match well */ for (hh = 0; hh < nPixH; hh++) { for (ww = 0; ww < nPixW; ww++) { guint *match_data; /* calc_stats */ double stddev = calc_stddev(im, ww, hh, nPixW, nPixH); /* depending on stddev, match to different orders */ guint order = guess_order(stddev, pixW, pixH, globals.max_order); /* generate the data to match to from the master image */ match_data = gen_master_data(im, ww, hh, nPixW, nPixH, order); if (match_data) { /* find the best matching picture for this "pixel" */ matches = find_match(order, match_data, globals.head); /* store the image we picked */ globals.image[hh][ww].matches = matches; /* we are done with it now */ g_free(match_data); } else { globals.image[hh][ww].matches = NULL; g_printerr("Error; no matches for x(%d), y(%d)\n", ww, hh); } /* update the progress bar */ set_progress_indicator((double)(hh * nPixW + ww + 1) / (double)(nPixH * nPixW)); } } /* go pix by pix through the image finding the best match */ for (j = 0; j < nPixH * nPixW; j++) { /* randomly pick an image to match */ hh = random() % nPixH; ww = random() % nPixW; /* find the next free image */ while (globals.image[hh][ww].db != NULL) { ww = (ww + 1) % nPixW; if (ww == 0) { hh = (hh + 1) % nPixH; } } matches = globals.image[hh][ww].matches; if (matches) { /* pick one of the (hopefully the best) matches to fill this spot */ proximity = globals.cur_opt.proximity; i = MAX_MATCHES; while (proximity > 0 && i == MAX_MATCHES) { for (i = 0; i < MAX_MATCHES && image_borders_n(globals.image, matches[i], proximity, ww, hh, nPixW, nPixH); i++) { /* do nothing */ } proximity--; } if (matches[i] == NULL) { /* probably only one file */ i = 0; } /* store the image we picked */ globals.image[hh][ww].db = matches[i]; if (matches[i]) { globals.image[hh][ww].db->refcnt++; globals.image[hh][ww].db->done = FALSE; } globals.image[hh][ww].match_no = i; } else { globals.image[hh][ww].db = NULL; globals.image[hh][ww].match_no = 0; g_printerr("Error; no matches for x(%d), y(%d)\n", ww, hh); } } /* render the image */ out_im = render_image(globals.image, nPixW, nPixH, pixW, pixH); if (out_im == NULL) { g_printerr("Error: Can't render image.\n"); } /* display it */ /* We ask the main thread to update the final picture */ gdk_threads_add_idle(update_gui_callback, globals.draw_area); /* set the cursor */ /* We ask the main thread to change the cursor */ gdk_threads_add_idle(update_cursor_callback, (gpointer)1); return 1; } pixelize-2.0.0~git20220108.d1f9da9/src/render_image.c000066400000000000000000000112601416641057300216060ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* render_image.c by Paul Wilkins 1/2/2000 */ #include "render_image.h" #include "display.h" #include "globals.h" #include "status.h" static void find_next(struct IMAGE_INFO **image, struct PIC_DB *db, guint *col, guint *row, guint nPixW, guint nPixH) { guint r; guint c; guint cl; cl = (*col) + 1; for (r = *row; r < nPixH; r++) { for (c = cl; c < nPixW; c++) { if (db == image[r][c].db) { *row = r; *col = c; return; } } cl = 0; } g_printerr("Error: Can't find next match\n"); exit(1); } void copy_image_RGB(GdkPixbuf *src, GdkPixbuf *dst, guint col, guint row) { gdk_pixbuf_copy_area(src, 0, // src_x 0, // src_y globals.cur_opt.pixW, // width globals.cur_opt.pixH, // height dst, col * globals.cur_opt.pixW, // dest_x row * globals.cur_opt.pixH // dest_y ); } GdkPixbuf *render_image(struct IMAGE_INFO **image, guint nPixW, guint nPixH, guint pixW, guint pixH) { guint width = nPixW * pixW; guint height = nPixH * pixH; GdkPixbuf *dest = gdk_pixbuf_new(GDK_COLORSPACE_RGB, TRUE, 8, width, height); if (dest) { guint ww; guint hh; guint count = 0; if (globals.out_im) { g_object_unref(globals.out_im); } globals.out_im = dest; gdk_pixbuf_copy_area(globals.in_im_scaled, 0, 0, width, height, dest, 0, 0); /* init the progress bar 0 */ set_progress_indicator(0.0); for (hh = 0; hh < nPixH; hh++) { for (ww = 0; ww < nPixW; ww++) { GdkPixbuf *im; GError *gerror; if (image[hh][ww].db) { /* skip this image if it has already been rendered */ if (image[hh][ww].db->done == TRUE) { continue; } image[hh][ww].db->done = TRUE; /* load the image */ gerror = NULL; im = gdk_pixbuf_new_from_file(image[hh][ww].db->fname, &gerror); if (im) { /* scale the image */ GdkPixbuf *scale_im = gdk_pixbuf_scale_simple(im, pixW, pixH, GDK_INTERP_BILINEAR); if (scale_im) { /* add an alpha channel */ GdkPixbuf *scale_im_alpha = gdk_pixbuf_add_alpha(scale_im, 0, 0, 0, 0); if (scale_im_alpha) { guint i; guint row; guint col; /* copy the image data into the output data */ for (i = 0; i < image[hh][ww].db->refcnt; i++) { if (i == 0) { row = hh; col = ww; } else { find_next(image, image[hh][ww].db, &col, &row, nPixW, nPixH); } copy_image_RGB(scale_im_alpha, dest, col, row); } g_object_unref(scale_im_alpha); } else { g_printerr("Error: Unable to add alpha to image %s\n", image[hh][ww].db->fname); } g_object_unref(scale_im); } else { g_printerr("Error: Unable to scale image %s\n", image[hh][ww].db->fname); } g_object_unref(im); } else { g_printerr("Error: Unable to open %s: %s\n", image[hh][ww].db->fname, gerror->message); } /* update the progress bar */ count += image[hh][ww].db->refcnt; set_progress_indicator((double)(count) / (double)(nPixH * nPixW)); /* We ask the main thread to update the current picture */ gdk_threads_add_idle(update_gui_callback, globals.draw_area); } else { g_printerr("Error: No DB entry for x(%d) y(%d)\n", ww, hh); } } } } return dest; } pixelize-2.0.0~git20220108.d1f9da9/src/stats.c000066400000000000000000000026241416641057300203270ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* stats.c by Paul Wilkins 1/2/2000 */ #include "stats.h" #include gboolean calc_mead_std(const double *data, int n, double *mean, double *std) { if (data && mean && std) { if (n == 0) { *std = 0.0; *mean = 0.0; } else if (n == 1) { *std = 0.0; *mean = data[0]; } else { int i; double sd = 0.0; double sum = 0.0; /* find the mean */ for (i = 0; i < n; i++) { sum += data[i]; } *mean = sum / (double)n; /* find the std */ for (i = 0; i < n; i++) { sd += (data[i] - *mean) * (data[i] - *mean); } *std = sqrt(sd / (double)(n - 1)); } return TRUE; } return FALSE; } pixelize-2.0.0~git20220108.d1f9da9/src/status.c000066400000000000000000000053621416641057300205160ustar00rootroot00000000000000/* Copyright (C) 2000 Paul Wilkins 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. */ /* status.c by Paul Wilkins 1/2/2000 */ #include "status.h" #include "display.h" #include "globals.h" static GtkWidget *progress_bar = NULL; void set_progress_indicator(double val) { static int last_percent = -1; /* make sure val is in the correct range */ if (val > 1) { val = 1; } else if (val < 0) { val = 0; } /* don't bother updating if we haven't changed by al least 1 percent */ if (last_percent != (int)(100.0 * val)) { last_percent = (int)(100.0 * val); /* we can update the progress bar if its is created */ if (progress_bar) { if (val == 1) { /* update the text */ gtk_progress_bar_set_text(GTK_PROGRESS_BAR(progress_bar), "Ready"); /* Reset the bar to 0 */ gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progress_bar), 0); } else if (val < 1 && val >= 0) { char text[4]; /* update the text */ snprintf(text, sizeof(text), "%d%%", (int)(100.0 * val)); gtk_progress_bar_set_text(GTK_PROGRESS_BAR(progress_bar), text); /* update the graph */ gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progress_bar), val); } /* force an update NOW */ /* We ask the main thread to update the progress bar */ gdk_threads_add_idle(update_gui_callback, progress_bar); } } } void refresh_mode_display() { if (globals.topwin) { char buf[256]; if (globals.cur_opt.opt_alg == PIX_SIZE) { snprintf(buf, sizeof(buf), "Pixelize - Size of images: %ux%u", globals.cur_opt.pixW, globals.cur_opt.pixH); } else { snprintf(buf, sizeof(buf), "Pixelize - Number of Images: %ux%u", globals.cur_opt.nPixW, globals.cur_opt.nPixH); } gtk_window_set_title(GTK_WINDOW(globals.topwin), buf); /* We ask the main thread to update the mode information */ gdk_threads_add_idle(update_gui_callback, globals.topwin); } } void setup_status(GtkWidget *dialog) { progress_bar = find_child(dialog, "progress_bar"); if (progress_bar) { set_progress_indicator(0.0); } } pixelize-2.0.0~git20220108.d1f9da9/tools/000077500000000000000000000000001416641057300173725ustar00rootroot00000000000000pixelize-2.0.0~git20220108.d1f9da9/tools/glade2c000077500000000000000000000031021416641057300206150ustar00rootroot00000000000000#!/usr/bin/python import xml.dom.minidom import sys, getopt class XmlWriter: def __init__(self): self.snippets = [] def write(self, data): if data.isspace(): return self.snippets.append(data) def __str__(self): return ''.join(self.snippets) if __name__ == "__main__": execname = sys.argv[0] inputfile = '' outputfile = '' stringname = 'gladestring' try: opts, args = getopt.getopt(sys.argv[1:], "hi:o:s:", ["ifile=", "ofile=", "stringname="]) except getopt.GetoptError: print (execname + ' -i -o [-s ]') sys.exit(2) for opt, arg in opts: if opt == '-h': print (execname + ' -i -o [-s ]') sys.exit() elif opt in ("-i", "--ifile"): inputfile = arg elif opt in ("-o", "--ofile"): outputfile = arg elif opt in ("-s", "--stringname"): stringname = arg if inputfile == '' or outputfile == '': print (execname + ' -i -o [-s ]') sys.exit(2) writer = XmlWriter() xml = xml.dom.minidom.parse(inputfile) xml.writexml(writer) strippedXml = ("%s" % (writer)).replace('"', '\\"') strippedXml = ("%s" % (strippedXml)).replace('\n', '\\n') byteCount = len(strippedXml) baseOffset = 0 stripSize = 64 output = open(outputfile, 'w') output.write("static const char *" + stringname + " = ") output.write('"%s";\n' % strippedXml) output.close()