summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/pixops
Commit message (Collapse)AuthorAgeFilesLines
* Make GTK+ use an external gdk-pixbufMatthias Clasen2010-06-2613-4477/+0
|
* Fix a few C99ismsMatthias Clasen2010-01-171-9/+15
| | | | Reported in bug 606761.
* Avoid an FPE for ludicrous scale valuesMatthias Clasen2010-01-081-4/+13
| | | | ...just bail out early.
* Add git.mk to generate .gitignore filesBehdad Esfahbod2009-05-041-0/+2
| | | | Add four new doc templates that were not in repository.
* Minor fix for GTK+ mediaLib code.Brian Cameron2009-04-291-4/+1
| | | | | | | | After doing some performance analysis, it was found that the GTK+ mediaLib code triggers unnecessary lazy loading of dependent libraries. The current code uses RTLD_DEFAULT, RTLD_PROBE, RTLD_NEXT, and RTLD_SELF. However, RTLD_PROBE is all that is necessary, and avoids triggering the lazy loading. So this commit fixes the code to just use RTLD_PROBE. (Bug 580678)
* define -DGDK_PIXBUF_DISABLE_DEPRECATED in the global CFLAGS.Michael Natterer2008-08-121-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-08-12 Michael Natterer <mitch@imendio.com> * configure.in: define -DGDK_PIXBUF_DISABLE_DEPRECATED in the global CFLAGS. * gdk-pixbuf/Makefile.am: make the contents gdk-pixbuf-marshal.h visible for GDK_PIXBUF_COMPILATION. * contrib/gdk-pixbuf-xlib/Makefile.am * demos/Makefile.am * demos/gtk-demo/Makefile.am * gdk-pixbuf/pixops/Makefile.am * gdk/Makefile.am * gdk/x11/Makefile.am * gtk/Makefile.am * gtk/tests/Makefile.am * gtk/theme-bits/Makefile.am * modules/engines/ms-windows/Makefile.am * modules/engines/pixbuf/Makefile.am * modules/input/Makefile.am * perf/Makefile.am * tests/Makefile.am: remove -DDGDK_PIXBUF_DISABLE_DEPRECATED here. svn path=/trunk/; revision=21096
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-222-2/+2
| | | | | | | | | | | | 2008-06-21 Johan Dahlin <jdahlin@async.com.br> * *.[ch]: Include "config.h" instead of <config.h> Command used: find -name \*.[ch]|xargs perl -p -i -e 's/^#include <config.h>/#include "config.h"/g' Rubberstamped by Mitch and Tim svn path=/trunk/; revision=20669
* Remove all .cvsignore files.Michael Natterer2007-12-131-8/+0
| | | | svn path=/trunk/; revision=19169
* call g_test_init() from gtk_test_init().15:39:40 Tim Janik2007-11-221-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-11-22 15:39:40 Tim Janik <timj@imendio.com> * gtk/gtktestutils.c: call g_test_init() from gtk_test_init(). * gtk/tests/testing.c: use g_test_add_func() to register tests and use g_test_run() to run the tests to integrate with the testing framework. * gtk/tests/Makefile.am: removed exemplary testing rules. * Makefile.am, gtk/tests/Makefile.am, gtk/Makefile.am: * gtk/xdgmime/Makefile.am, gtk/theme-bits/Makefile.am: * tests/Makefile.am, docs/reference/gdk-pixbuf/Makefile.am: * docs/reference/gdk/Makefile.am, docs/reference/gtk/Makefile.am: * docs/reference/Makefile.am, docs/tools/Makefile.am: * docs/tutorial/Makefile.am, docs/faq/Makefile.am, docs/Makefile.am: * gdk-pixbuf/pixops/Makefile.am, gdk-pixbuf/Makefile.am: * demos/gtk-demo/Makefile.am, demos/Makefile.am: * modules/input/Makefile.am, modules/printbackends/file/Makefile.am: * modules/printbackends/test/Makefile.am, modules/printbackends/Makefile.am: * modules/printbackends/cups/Makefile.am, modules/printbackends/lpr/Makefile.am: * modules/engines/ms-windows/Theme/gtk-2.0/Makefile.am: * modules/engines/ms-windows/Theme/Makefile.am: * modules/engines/ms-windows/Makefile.am: * modules/engines/Makefile.am, modules/engines/pixbuf/Makefile.am: * modules/Makefile.am, m4macros/Makefile.am, perf/Makefile.am: * contrib/Makefile.am, contrib/gdk-pixbuf-xlib/Makefile.am: * gdk/directfb/Makefile.am, gdk/linux-fb/Makefile.am: * gdk/quartz/Makefile.am, gdk/win32/rc/Makefile.am: * gdk/win32/Makefile.am, gdk/x11/Makefile.am, gdk/Makefile.am: include $(top_srcdir)/Makefile.decl, adapted EXTRA_DIST assignments. svn path=/trunk/; revision=19033
* Use GDK_PIXBUF_DEP_LIBS instead of GDK_PIXBUF_EXTRA_LIBS here, too.Tor Lillqvist2007-07-041-1/+1
| | | | | | | | | | 2007-07-04 Tor Lillqvist <tml@novell.com> * pixops/Makefile.am (timescale_LDADD): Use GDK_PIXBUF_DEP_LIBS instead of GDK_PIXBUF_EXTRA_LIBS here, too. svn path=/trunk/; revision=18381
* Add Sun mediaLib support so that hardware acceleration via mediaLib isBrian Cameron2007-05-164-225/+1163
| | | | | | | | | | | | | | | | | | 2007-05-16 Brian Cameron <brian.cameron@sun.com> * acconfig.h, configure.in, gdk/Makefile.am, gdkprivate.h, gdkrgb.c, gdkdraw.c, gdk-pixbuf/gdk-pixbuf-scale.c, gdk-pixbuf/pixops/Makefile.am, gdk-pixbuf/pixops/pixops.[ch], gdk-pixbuf/pixops/timescale.c: Add Sun mediaLib support so that hardware acceleration via mediaLib is enabled if mediaLib is detected via configure. Enhancement request #344813. I was given permission to commit in the bug report by Matthias Clasen. * gdk/medialib.[ch]: New files added for mediaLib support. * docs/reference/gdk-pixbuf/tmpl/scaling.sgml, docs/reference/gdk/tmpl/rgb.sgml, gdk/gdkdraw.c: Add docs for mediaLib support. svn path=/trunk/; revision=17855
* CleanupsMatthias Clasen2006-10-081-4/+5
|
* NetBSD portability fixes. (#346374, Thomas Klausner)Matthias Clasen2006-07-024-4/+4
| | | | | * pixops/*.S: NetBSD portability fixes. (#346374, Thomas Klausner)
* If major.minor of required and available glib versions are the same, addBehdad Esfahbod2006-01-291-1/+0
| | | | | | | | | 2006-01-28 Behdad Esfahbod <behdad@gnome.org> * configure.in: If major.minor of required and available glib versions are the same, add -DG_DISABLE_DEPRECATED to GLIB_CFLAGS. (bug #328617) * */Makefile.am: Remove hardcoded -DG_DISABLE_DEPRECATED.
* Add a cast to avoid compiler warnings.Matthias Clasen2005-08-301-1/+1
| | | | | | | | | | | | | | | 2005-08-30 Matthias Clasen <mclasen@redhat.com> * io-png.c (png_save_to_callback_write_func): Add a cast to avoid compiler warnings. * pixops/timescale.c (main): Declare src_buf, dest_buf as unsigned to avoid compiler warnings. * gdk-pixbuf-io.h: Declare the prefix and mask members of GdkPixbufModulePattern as char*, to avoid compiler warnings. * io-ani.c (ani_load_chunk): Use g_try_new() in some places.
* Correct copyright informationMatthias Clasen2005-07-128-8/+8
|
* Add copyright and license informationMatthias Clasen2005-07-128-0/+144
|
* Add necessary protectionMatthias Clasen2005-02-284-9/+20
|
* Add .note.GNU-stack sections to Mark these as not requiring an executableMatthias Clasen2005-02-284-0/+9
| | | | | | | 2005-02-28 Matthias Clasen <mclasen@redhat.com> * pixops/*.S: Add .note.GNU-stack sections to Mark these as not requiring an executable stack.
* Really fix the math to make the vectors sum up to 1, makingMatthias Clasen2005-01-021-2/+2
| | | | | | | | 2005-01-02 Matthias Clasen <mclasen@redhat.com> * pixops/pixops.c (bilinear_box_make_weights): Really fix the math to make the vectors sum up to 1, making GDK_INTERP_HYPER work again. (#162703, Dennis Nezic)
* Fix a mixup in the handling of dest_channels. (#111922, ChristopheMatthias Clasen2004-08-221-19/+18
| | | | | | | Sun Aug 22 03:20:56 2004 Matthias Clasen <maclas@gmx.de> * pixops/pixops.c (pixops_scale_nearest): Fix a mixup in the handling of dest_channels. (#111922, Christophe Fergeau)
* Remove C99-isms. (#149967, Vincent Noel)Matthias Clasen2004-08-121-7/+14
| | | | | | 2004-08-12 Matthias Clasen <mclasen@redhat.com> * pixops/pixops.c: Remove C99-isms. (#149967, Vincent Noel)
* underscore prefix the mmx implementations, in order to not export them.Matthias Clasen2004-08-116-83/+87
| | | | | | | | | | | | | 2004-08-11 Matthias Clasen <mclasen@redhat.com> * pixops/pixops-internal.h: * pixops/pixops.c: * pixops/*.S: underscore prefix the mmx implementations, in order to not export them. * gdk-pixbuf.symbols: Remove the mmx pixops implementations. * abicheck.sh: No need to define INCLUDE_MMX_SYMBOLS any more.
* Correct the math to calculate bilinear weights. (#112412, Brian Cameron)Matthias Clasen2004-07-031-2/+2
| | | | | | | Sat Jul 3 00:41:44 2004 Matthias Clasen <maclas@gmx.de> * pixops/pixops.c (bilinear_box_make_weights): Correct the math to calculate bilinear weights. (#112412, Brian Cameron)
* _-prefix the nonstatic pixops_... functions. (#142233, Morten Welinder)Matthias Clasen2004-05-103-121/+121
| | | | | | | | | | 2004-05-10 Matthias Clasen <mclasen@redhat.com> * pixops/timescale.c: * pixops/pixops.c: * pixops/pixops.h: * gdk-pixbuf-scale.c: _-prefix the nonstatic pixops_... functions. (#142233, Morten Welinder)
* Fixes #136082 and #135265, patch by Morten Welinder.Federico Mena Quintero2004-03-062-1/+2
| | | | | | | | | | 2004-03-05 Federico Mena Quintero <federico@ximian.com> Fixes #136082 and #135265, patch by Morten Welinder. * configure.in: Use AC_SYS_LARGEFILE. * */*.c: #include <config.h>
* Split correction into multiple pieces if no single weight is large enoughMatthias Clasen2003-07-171-10/+13
| | | | | | | 2003-07-18 Matthias Clasen <maclas@gmx.de> * pixops/pixops.c (correct_total): Split correction into multiple pieces if no single weight is large enough to apply the unsplit correction. (#117431, problem reported by Tomas Ă–gren)
* Patch from James Henstridge to update to automake-1.7 (#109542)Owen Taylor2003-05-061-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tue May 6 16:50:52 2003 Owen Taylor <otaylor@redhat.com> Patch from James Henstridge to update to automake-1.7 (#109542) * autogen.sh: update to call newer tools. * configure.in: various updates, to use M4 macros to put variables that change each release at the top. Use AC_HELP_STRING to format help strings. Use AC_CONFIG_COMMANDS to generate gdkconfig.h. * Makefile.am: require Automake 1.7. Remove gdk-2.0.pc and gtk+-2.0.pc on uninstall. Pass --enable-gtk-doc to configure during distcheck. * docs/reference/*/Makefile.am: simplify to use the gtk-doc.make makefile fragment. * */Makefile.am: don't use STRIP_BEGIN/STRIP_END. Use BUILT_SOURCES where appropriate. Build generated files in builddir rather than srcdir. Fix uninstall and distclean targets to satisfy distcheck. === * gdk/*/Makefile.am: Remove the hacks to get gdkenumtypes.h built first, since we are now using BUILT_SOURCES. * gdk/Makefile.am: Remove an outdated comment about gdk_headers. * demos/gtk-demo/Makefile.am: Fix srcdir != buildd problem with geninclude.pl. * configure.in: Update versions to 2.3.0.
* Exploit the fact that all our filters are separable to simplify theOwen Taylor2003-04-013-346/+395
| | | | | | | | | | | | Tue Apr 1 15:33:51 2003 Owen Taylor <otaylor@redhat.com> * pixops/pixops.c (make_weights): Exploit the fact that all our filters are separable to simplify the calculation of the weight tables. (Based on a patch from Brian Cameron.) * pixops/Makefile.am pixbuf-transform-math.ltx: Add a short article describing how the math in pixops.c works.
* Use correct DLL and import library names, with GTK_API_VERSION in name,Tor Lillqvist2003-01-052-42/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-01-05 Tor Lillqvist <tml@iki.fi> * gtk-zip.sh.in: Use correct DLL and import library names, with GTK_API_VERSION in name, not GTK_MAJOR_VERSION.GTK_MINOR_VERSION. (DEVZIP): Add gdk-pixbuf-query-loaders.exe. * configure.in: Improve check for dimm.h. * configure.in: Set SOEXT to 'so' on Unix, 'dll' on Win32. Used in gdk-pixbuf/Makefile.am. * gdk-pixbuf/makefile.mingw.in * gdk-pixbuf/pixops/makefile.mingw.in * gdk/makefile.mingw.in * gdk/win32/makefile.mingw.in * gtk/makefile.mingw.in: Remove. Not maintained anyway. * gdk-pixbuf/Makefile.am * gdk-pixbuf/pixops/Makefile.am * gdk/Makefile.am * gdk/win32/Makefile.am * gtk/Makefile.am * configure.in: Remove makefile.mingw{,.in} from here, too. * README.win32: Updates. Don't mention the now removed makefile.mingw files. * gdk/gdk.def * gtk/gtk.def: Add a couple of missing entries. * gdk/gdkkeynames.c: Include <string.h> for strcmp() and memcpy(). * gdk/win32/gdkevents-win32.c: Move dimm.h header clash workaround earlier. * gdk/win32/rc/Makefile.am: Add hack to help build/win32/lt-compile-resource decide which kind of libtool object file to produce.
* Don't use .type on Cygwin, either (#91597, Masahiro Sakai).Tor Lillqvist2002-09-284-4/+4
| | | | | | | 2002-09-28 Tor Lillqvist <tml@iki.fi> * pixops/*.S: Don't use .type on Cygwin, either (#91597, Masahiro Sakai).
* added makefile.msc to EXTRA_DISTHans Breuer2002-09-141-1/+2
| | | | | | 2002-09-14 Hans Breuer <hans@breuer.org> * pixops/Makefile.am : added makefile.msc to EXTRA_DIST
* Fix problem where when no alpha was involved, we scaled rather thanOwen Taylor2002-06-131-1/+7
| | | | | | | | | | Thu Jun 13 18:11:11 2002 Owen Taylor <otaylor@redhat.com> * pixops/pixops.c: Fix problem where when no alpha was involved, we scaled rather than composited, but then went ahead and composited anyways. (#76958, Patch from Matthias Clasen). Needs to be merged to GNOME 1.4 gdk-pixbuf
* Patch from Matthias Clasen to fix some typos (#77246)Owen Taylor2002-05-161-9/+8
| | | | | | | Thu May 16 15:17:30 2002 Owen Taylor <otaylor@redhat.com> * pixops/pixops.c: Patch from Matthias Clasen to fix some typos (#77246)
* Move the call to correct_total() to the right spot. (#72732)Matthias Clasen2002-02-281-2/+2
| | | | | * pixops/pixops.c (tile_make_weights): Move the call to correct_total() to the right spot. (#72732)
* New function to make sure that the weights sum up to the correct totalMatthias Clasen2002-02-151-9/+28
| | | | | | | | * pixops/pixops.c (correct_total): New function to make sure that the weights sum up to the correct total without introducing negative weights. (tile_make_weights, bilinear_make_fast_weights, bilinear_make_weights): Use correct_total.
* Fix handing of overall alpha.Owen Taylor2002-02-111-3/+3
| | | | | | | Mon Feb 11 14:31:53 2002 Owen Taylor <otaylor@redhat.com> * pixops/pixops.c (bilinear_make_weights): Fix handing of overall alpha.
* Force all weight arrays to sum exactly to 65535. (Fixes #70971, reportedOwen Taylor2002-02-091-6/+26
| | | | | | | | | | Fri Feb 8 23:11:15 2002 Owen Taylor <otaylor@redhat.com> * pixops/pixops.c: Force all weight arrays to sum exactly to 65535. (Fixes #70971, reported by Federico Mena Quintero) * Makefile.am (libgdk_pixbuf_1_3_la_DEPENDENCIES): Add libpixops.la.
* Fix comment; PixopsInterpType -> GdkInterpType.Federico Mena Quintero2002-02-081-1/+1
| | | | | | 2002-02-08 Federico Mena Quintero <federico@ximian.com> * pixops/pixops.h: Fix comment; PixopsInterpType -> GdkInterpType.
* Fix integer overflow for the values passed to the pixel functions.Owen Taylor2002-01-111-4/+4
| | | | | | | Fri Jan 11 18:05:07 2002 Owen Taylor <otaylor@redhat.com> * pixops/pixops.c: Fix integer overflow for the values passed to the pixel functions. (#55148)
* Remove meaningless FIXME.Owen Taylor2002-01-115-21/+41
| | | | | | | | | | | | | | Fri Jan 11 17:53:58 2002 Owen Taylor <otaylor@redhat.com> * pixops/pixops.c (pixops_scale_nearest): Remove meaningless FIXME. * pixops/pixops.c (pixops_process): Comment the computation of run_end_index and fix some edge cases. * pixops/{scale_line_22_33_mmx.S, composite_line_22_4a4_mmx.S: composite_line_color_22_4a4_mmx.S}: Handle the case where dest <= dest_end properly. (#52001)
* Replace some hardcoded values with the SUBSAMPLEOwen Taylor2002-01-101-6/+6
| | | | | | | Thu Jan 10 16:48:30 2002 Owen Taylor <otaylor@redhat.com> * pixops/pixops.c: Replace some hardcoded values with the SUBSAMPLE
* Fix and uncomment non-MMX version.Owen Taylor2002-01-043-24/+129
| | | | | | | | | | | | | | | | Thu Jan 3 19:31:58 2002 Owen Taylor <otaylor@redhat.com> * pixops/pixops.c (scale_line_22_33): Fix and uncomment non-MMX version. * pixops/pixops.c (pixops_composite_nearest): Remove a division. * pixops/pixops.c (pixops_composite): Add some docs about the parameters. * pixops/README: Add notes about the correct algorithms for alpha compositing and how to implement them quickly.
* Remove assorted G_OBJECT casts where unnecessary.Sebastian Wilhelmi2001-12-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-12-13 Sebastian Wilhelmi <wilhelmi@ira.uka.de> * gdk-pixbuf-animation.c, gdk-pixbuf-loader.c, gdk-pixpuf.c, io-gif-animation.c, io-gif.c, io-tiff.c, test-loaders.c: Remove assorted G_OBJECT casts where unnecessary. * gdk-pixbuf-loader.c: Call g_object_ref and g_object_unref instead of gdk_pixbuf_animation_ref and gdk_pixbuf_animation_unref resp. * gdk-pixbuf-csource.c, io-bmp.c, io-gif-animation.c, io-ico.c, io-jpeg.c, io-png.c, io-pnm.c, io-ras.c, io-tga.c, io-wbmp.c, io-xbm.c, io-xpm.c, test-gdk-pixbuf.c: Dito for gdk_pixbuf_ref and gdk_pixbuf_unref. * Makefile.am, pixops/Makefile.am: Compile everything with -DG_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED * gdk-pixdata.c: Use g_ascii_strup() instead of g_strup(). * io-xpm.c: Use g_ascii_strcasecmp() instead of g_strcasecmp(). * demos/testpixbuf-drawable.c, demos/testpixbuf-save.c, demos/testpixbuf-scale.c, demos/testpixbuf.c: Call g_object_ref and g_object_unref instead of gdk_pixbuf_ref and gdk_pixbuf_unref resp.
* use g_strcasecmp(), some poor platforms don't have strcasecmp()Hans Breuer2001-11-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-10-28 Hans Breuer <hans@breuer.org> * gtk/gtkfontsel.c : use g_strcasecmp(), some poor platforms don't have strcasecmp() * gtk/gtktextview.c : to fix crashing on e.g. TextView::find need to remove the idle funcs in gtk_text_view_destroy (). To reduce code duplication wrap it in its own function and use it in gtk_text_view_unrealize () and gtk_text_view_destroy_layout () * gdk/win32/gdkdrawable-win32.c : implement the finalize method like the X11 version does, allow to set_colormap NULL * gdk/win32/gdkwindow-win32.c : adapt GdkWindowImplWin32:: set_colormap, also some adaption to X11 version : (gdk_window_hide) call _gdk_window_clear_update_area (gdk_window_reparent) call _gdk_window_init_position * gdk/win32/gdkwindow-win32.c (gdk_window_set_geometry_hints) : call gdk_window_resize() after all hints are set, because the window resizing process (WM_GETMINMAXINFO) takes all of them into account * gdk/win32/gdkfont-win32.c : make gdk_font_equal return a gboolean * gdk/win32/gdkvisual-win32.c : register GdkVisual with sizeof (GdkVisualPrivate) * gdk/gdk.def gtk/gtk.def : upated externals * gdk/makefile.msc gdk/win32/makefile.msc gdk-pixbuf/makefile.msc gdk-pixbuf/pixops/makefile.msc gtk/makefile.msc.in tests/makefile.msc : from now on use make.msc from $(TOP)/glib/build/win32 * gtk/stock-icons/makefile.msc : add stock_missing_image
* Mirror GdkInterpType to PixopsInterpType to avoid including gdk-pixbufOwen Taylor2001-09-174-34/+39
| | | | | | | Mon Sep 17 11:49:02 2001 Owen Taylor <otaylor@redhat.com> * pixops/*: Mirror GdkInterpType to PixopsInterpType to avoid including gdk-pixbuf headers.
* applied some simple but effective optimizations toSven Neumann2001-08-191-48/+67
| | | | | | | 2001-08-19 Sven Neumann <sven@gimp.org> * pixops/pixops.c: applied some simple but effective optimizations to pixops_composite_nearest() and pixops_composite_color_nearest().
* new file use it to complete the buildHans Breuer2001-07-301-0/+65
| | | | | | | 2001-07-30 Hans Breuer <hans@breuer.org> * pixops/makefile.msc : new file * makefile.msc : use it to complete the build
* Add missing <stdlib.h> include. Add ifdef so we compile without warningsDarin Adler2001-07-181-0/+2
| | | | | | | | | | | | | * gdk-pixbuf-csource.c: Add missing <stdlib.h> include. * io-png.c: (setup_png_transformations): Add ifdef so we compile without warnings with G_DISABLE_CHECKS on. * io-pnm.c: (gdk_pixbuf__pnm_image_load_increment): Add a missing const. * io-wbmp.c: (getin), (get_mbi): Add a missing const. * io-xbm.c: (gdk_pixbuf__xbm_image_load_real): Get rid of some unused locals and add an initial value to quiet the compiler's unintialized variable warning. * pixops/pixops.c: Put an ifdef around some dead code.
* Switch over to the new include flags AC_SUBST(). (Problem pointed out byOwen Taylor2001-07-051-1/+7
| | | | | | | | Thu Jul 5 10:17:15 2001 Owen Taylor <otaylor@redhat.com> * pixops/Makefile.am (noinst_LTLIBRARIES): Switch over to the new include flags AC_SUBST(). (Problem pointed out by Mikael Hermansson.)