summaryrefslogtreecommitdiff
path: root/gdk-pixbuf/gdk-pixdata.c
Commit message (Collapse)AuthorAgeFilesLines
* docs: Update pixdata styleEmmanuele Bassi2021-03-211-54/+63
|
* docs: Generate the GdkPixdata API referenceEmmanuele Bassi2021-03-211-10/+23
| | | | Different introspection file, different API reference.
* Coding style fixupsFederico Mena Quintero2018-07-011-6/+6
|
* gdk-pixdata.c: Use the pixel getter APIFederico Mena Quintero2018-06-011-10/+13
|
* pixdata: Check for RLE pixdata lengthBastien Nocera2016-12-161-2/+32
| | | | | | | Avoid copying data from past the end of the pixdata when processing RLE-encoded pixdata. https://bugzilla.gnome.org/show_bug.cgi?id=775693
* pixdata: Avoid copying more data than availableBastien Nocera2016-12-161-0/+23
| | | | | | | | | | | | The problem we were encountering in bug 775693 wasn't that we were running past the end of the memory we just allocated, but that the length of the data we were given couldn't possibly match the dimensions of the image. This fixes running past the end of the given pixdata when the length is provided inside the structure. https://bugzilla.gnome.org/show_bug.cgi?id=775693
* Revert "pixdata: Prevent buffer overflow by checking for bounds before memcpy"Bastien Nocera2016-12-161-18/+1
| | | | | | | | The fix is incorrect. This reverts commit 9ae4723ec3fa631354e3d201c5435a7385c33d45. https://bugzilla.gnome.org/show_bug.cgi?id=775693
* pixdata: Add debug when decoding pixdataBastien Nocera2016-12-161-0/+7
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=775693
* pixdata: Prevent buffer overflow by checking for bounds before memcpyTobias Mueller2016-12-131-1/+18
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=775693
* Ignore deprecations in gdk-pixdata.cMatthias Clasen2015-08-231-1/+4
| | | | | All the function in this source file are deprecated, and they are using each other, so lets just ignore deprecations here.
* doc: Fix comment characters in GdkPixdata API docsBastien Nocera2014-10-211-1/+1
|
* lib: Deprecate GdkPixdataBastien Nocera2014-10-211-0/+13
| | | | | | | | GdkPixdata has a number of problems, including: - it doesn't use the original files, losing metadata - its RLE compression is ineffecient, even more so for lossy formats - the way it's implemented doesn't support data > 64 kB on Windows (See https://bugzilla.gnome.org/show_bug.cgi?id=603706)
* Add some missing nullability annotations.Evan Nemerson2014-05-161-2/+3
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=730161
* Drop markup from doc commentsMatthias Clasen2014-02-151-13/+13
| | | | | Switch to markdown for our inline markup needs, and turn off sgml mode for the docs.
* Updated FSF's addressDaniel Mustieles2014-01-311-3/+1
|
* Use g_try_malloc_n where it makes senseMatthias Clasen2013-12-181-1/+1
| | | | This lets us avoid some manual overflow checks.
* Documentation fixesMatthias Clasen2012-09-031-1/+1
| | | | | Patch by Rafał Mużyło, https://bugzilla.gnome.org/show_bug.cgi?id=676430
* Removed entities from the code markup as they are not being expandedXabier Rodriguez Calvar2012-07-301-1/+1
|
* Various annotation fixesMatthias Clasen2011-12-161-5/+8
| | | | Reported by Evan Nemerson in bug 659888.
* Documentation: Migrate from old tmpl files.Jon Nordby2011-03-061-0/+13
| | | | | | | This puts all the docs that existed in tmpl files when gdk-pixbuf was moved out of gtk into inline comments. Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=635643
* Add introspection annotationsJohan Dahlin2010-09-181-1/+1
|
* Replace the aliasing hacks by -Bsymbolic-functionsMatthias Clasen2010-07-091-4/+0
| | | | This is copying similar changes from glib.
* Make it compileMatthias Clasen2010-06-251-2/+2
|
* Cleanup some translation handlingMatthias Clasen2009-06-151-3/+4
| | | | | | | Use g_*gettext functions in gdk-pixbuf instead direct gettext calls to benefit from the maybe-dont-translate functionality in GLib. Also, replace a hand-rolled version by g_dpgettext2 in gtkbuilderparser.c. Fixes bug 585791.
* prevent RLE encoding of 1x1 pixel images, since the encoder comparison13:28:23 Tim Janik2008-09-231-1/+1
| | | | | | | | | | | 2008-09-23 13:28:23 Tim Janik <timj@imendio.com> * gdk-pixdata.c: prevent RLE encoding of 1x1 pixel images, since the encoder comparison operator requires at least 2 pixels, fixes #553374: Bug 553374 - gdk_pixdata_from_pixbuf fails for some images with use_rle set to TRUE svn path=/trunk/; revision=21497
* Include "config.h" instead of <config.h> Command used: find -nameJohan Dahlin2008-06-221-1/+1
| | | | | | | | | | | | 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
* Use g_set_error_literal where appropriate. Bug #538640.Christian Persch2008-06-191-9/+9
| | | | svn path=/trunk/; revision=20463
* CleanupsMatthias Clasen2006-10-081-29/+5
|
* Apply a cleanup patch by Kjartan Maraas (#341812)Matthias Clasen2006-10-081-2/+2
| | | | | | 2006-10-08 Matthias Clasen <mclasen@redhat.com> * Apply a cleanup patch by Kjartan Maraas (#341812)
* Commit a patch by Behdad to fix typos, omissions and other errors in theMatthias Clasen2006-09-101-1/+1
| | | | | | | | 2006-09-10 Matthias Clasen <mclasen@redhat.com> * Commit a patch by Behdad to fix typos, omissions and other errors in the symbol aliasing, and add checks for local PLT entries. (#354687, Behdad Esfahbod)
* Make PLT-reduction work with gcc4, and don't include everything inMatthias Clasen2005-03-141-1/+4
| | | | | | | | | | | | | | | | | 2005-03-14 Matthias Clasen <mclasen@redhat.com> Make PLT-reduction work with gcc4, and don't include everything in gdk-pixbuf-alias.h: * gdk-pixbuf.symbols: Group symbols by header and source file. * /makegdkpixbufalias.pl: Protect definitions by the same preprocessor symbols used to guard the headers. Move the alias declarations to a separate file which is produced when calling makegdkpixbufalias.pl -def * Makefile.am (gdk-pixbuf-aliasdef.c): Add a rule to generate this file. * *.c: Include gdk-pixbuf-alias.h after the other headers, include gdk-pixbuf-aliasdef.c at the bottom.
* Actually free the temporary pixbuf data.Matthias Clasen2004-08-241-2/+9
|
* Work around bugs in the runlength encoder by forcing rowstride * height toMatthias Clasen2004-08-241-1/+21
| | | | | | | | 2004-08-24 Matthias Clasen <mclasen@redhat.com> * gdk-pixdata.c (gdk_pixdata_from_pixbuf): Work around bugs in the runlength encoder by forcing rowstride * height to be divisible by bpp. (#150882)
* Add hidden aliases for exported symbols which are used internally in orderMatthias Clasen2004-08-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Tue Aug 10 23:53:59 2004 Matthias Clasen <maclas@gmx.de> Add hidden aliases for exported symbols which are used internally in order to get rid of many PLT entries. (#145519, Arjan van de Ven) * gdk/Makefile.am: Add rules to generate gdk_pixbuf.def and gdk-pixbuf-alias.h from gdk-pixbuf.symbols, and make make check check the abi with abicheck.sh. * gdk/gdk-pixbuf.symbols: New file. Definition of the gdk-pixbuf ABI. The file can be processed by cpp to filter out certain subsets of symbols. * gdk/abicheck.sh: New file. Script to check the actually symbols exported from libgdk_pibuf.2.0.so against the symbols found in gdk-pixbuf.symbols. * gdk/makegdkpixbufalias.pl: New file. Perl script to generate the header containing the alias definitions for internally used exported symbols from a list of symbols. * *.c: Include gdk-pixbuf-alias.h
* Fixes #136082 and #135265, patch by Morten Welinder.Federico Mena Quintero2004-03-061-0/+1
| | | | | | | | | | 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>
* Fix example in documentation comment. Fixes #130701.Federico Mena Quintero2004-01-071-1/+1
| | | | | | | 2004-01-06 Federico Mena Quintero <federico@ximian.com> * gdk-pixdata.c (gdk_pixbuf_new_from_inline): Fix example in documentation comment. Fixes #130701.
* Use ngettext for plurals (#123847).Christian Neumair2003-12-311-1/+3
|
* Add the correct alignment magic for Sun compiler and for GCC to get theOwen Taylor2003-08-181-0/+12
| | | | | | | | Mon Aug 18 10:25:29 2003 Owen Taylor <otaylor@redhat.com> * gdk-pixdata.c (gdk_pixdata_to_csource): Add the correct alignment magic for Sun compiler and for GCC to get the strings aligned. (Patch from Brian Cameron, #117217)
* Improve doc comment wording. (#119754, Doug Quale)Matthias Clasen2003-08-131-1/+1
| | | | | | | 2003-08-14 Matthias Clasen <maclas@gmx.de> * gdk-pixdata.c (gdk_pixdata_to_csource): Improve doc comment wording. (#119754, Doug Quale)
* Document data_length == -1, add an example. (#97290)Matthias Clasen2003-06-021-6/+12
| | | | | | | 2003-06-03 Matthias Clasen <maclas@gmx.de> * gdk-pixdata.c (gdk_pixbuf_new_from_inline): Document data_length == -1, add an example. (#97290)
* Remove dubious bitfields of unspecified signedness. (#112919, MortenMatthias Clasen2003-05-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-05-27 Matthias Clasen <maclas@gmx.de> * io-wbmp.c: Remove dubious bitfields of unspecified signedness. (#112919, Morten Welinder)gdk-p * gdk-pixdata.c (gdk_pixdata_to_csource): Replace all occurances of g_string_new ("") by g_string_new (NULL). (#106975, Morten Welinder) * gtk/gtkwindow-decorate.c: * gtk/gtktreeprivate.h: * gtk/gtkdnd.c: * gdk/win32/gdkwindow-win32.h: * gdk/linux-fb/gdkprivate-fb.h: * gdk/linux-fb/gdkkeyboard-fb.c: Remove dubious bitfields of unspecified signedness. (#112919, Morten Welinder) * gtk/queryimmodules.c (escape_string): * gtk/gtktextbtree.c (_gtk_text_btree_get_text): * gtk/gtksettings.c (_gtk_settings_parse_convert): * gtk/gtkrc.c (gtk_rc_parse_assignment): * gtk/gtkinputdialog.c (gtk_input_dialog_set_key): * gdk/x11/gdkdisplay-x11.c (escape_for_xmessage): Replace all occurances of g_string_new ("") by g_string_new (NULL). (#106975, Morten Welinder)
* Add a (gint32 *) => (guint32 *) cast. (#108615, Rick Jones)Owen Taylor2003-05-141-1/+1
| | | | | | | Wed May 14 18:24:50 2003 Owen Taylor <otaylor@redhat.com> * gdk-pixdata.c (gdk_pixdata_deserialize): Add a (gint32 *) => (guint32 *) cast. (#108615, Rick Jones)
* Support for separately installed loaders. (#77486)Matthias Clasen2002-10-031-1/+0
| | | | | | | | | | | | | | | | | * Makefile.am gdk-pixbuf-animation.c gdk-pixbuf-data.c gdk-pixbuf-io.c gdk-pixbuf-io.h gdk-pixbuf-loader.c gdk-pixbuf-loader.h gdk-pixbuf-private.h gdk-pixbuf.h gdk-pixdata.c io-ani-animation.h io-ani.c io-bmp.c io-gif-animation.c io-gif-animation.h io-gif.c io-ico.c io-jpeg.c io-png.c io-pnm.c io-ras.c io-tga.c io-tiff.c io-wbmp.c io-xbm.c io-xpm.c pixbufloader_ani.def pixbufloader_bmp.def pixbufloader_gif.def pixbufloader_ico.def pixbufloader_jpeg.def pixbufloader_png.def pixbufloader_pnm.def pixbufloader_ras.def pixbufloader_tga.def pixbufloader_tiff.def pixbufloader_wbmp.def pixbufloader_xbm.def pixbufloader_xpm.def test-gdk-pixbuf.c gdk-pixbuf-animation.h queryloaders.c: Support for separately installed loaders. (#77486)
* Patch from Andy Wingo to always escape ? to avoid accidentally generatingOwen Taylor2002-10-011-1/+1
| | | | | | | | Tue Oct 1 17:35:43 2002 Owen Taylor <otaylor@redhat.com> * gdkpixdata.c: Patch from Andy Wingo to always escape ? to avoid accidentally generating trigraphs in the output (#94631)
* free the result of gdk_pixdata_serialize() (bug #89411).Sven Neumann2002-07-311-15/+16
| | | | | | | 2002-07-31 Sven Neumann <sven@gimp.org> * gdk-pixdata.c (gdk_pixdata_to_csource): free the result of gdk_pixdata_serialize() (bug #89411).
* Fixes for #78258Owen Taylor2002-05-161-2/+2
| | | | | | | | | | | | | | | | Thu May 16 14:51:14 2002 Owen Taylor <otaylor@redhat.com> Fixes for #78258 * gtk/gtkrbtree.c demos/gtk-demo/editable-cells.c: Fix some 64-bit warning problems. (Patch from Matthias Clasen.) * gtk/gtkrbtree.c (_gtk_rbtree_debug_spew_helper): Surround a bunch of debug code with G_ENABLE_DEBUG. * configure.in demos/gtk-demo/main.c: Replace #ifndef G_OS_WIN32 with proper #ifdef HAVE_FLOCKFILE.
* Use {} not () to group around string assigned to char[]. (#72767, TomasOwen Taylor2002-02-271-2/+2
| | | | | | | | Wed Feb 27 18:33:04 2002 Owen Taylor <otaylor@redhat.com> * gdk-pixdata.c (gdk_pixdata_to_csource): Use {} not () to group around string assigned to char[]. (#72767, Tomas Ögren)
* More precise documentation about underscores and mnemonics. (#66380)Matthias Clasen2001-12-201-11/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gtk/gtklabel.c (gtk_label_new_with_mnemonic), gtk/gtkbutton.c (gtk_button_new_with_mnemonic): More precise documentation about underscores and mnemonics. (#66380) * gtk/gtktextiter.c (gtk_text_iter_backward_word_starts): Fix cyclic reference in docs. * gtk/gtklabel.c (gtk_label_set_justify): Correct documentation of default value. (#65402) * gtk/gtkmain.c (gtk_set_locale, gtk_disable_set_locale): Markup fixes. * gdk-pixbuf-io.c, gdk-pixbuf-animation.c, gdk-pixbuf-data.c, gdk-pixbuf-loader.c, gdk-pixbuf-scale.c, gdk-pixbuf-util.c, gdk-pixdata.c: Markup fixes. * gtk/text_widget.sgml: More precise wording. (#63388) * gtk/tmpl/gtksignal.sgml (GTK_SIGNAL_OFFSET): Add docs. * gtk/resources.sgml: Fix markup of mail URLs. * gtk/tmpl/gtkpaned.sgml, gtk/tmpl/gtkobject.sgml: Markup fixes. * gtk/tmpl/gtktoolbar.sgml (gtk_toolbar_{prepend,append}_element): Expand documentation. (#60471) * gtk/tmpl/gtkmain.sgml: Remove misleading information about gtk_set_locale(). (#65758)
* Remove assorted G_OBJECT casts where unnecessary.Sebastian Wilhelmi2001-12-131-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fix alignment problem in deserialization, (#65785, reported by HidetoshiOwen Taylor2001-11-301-15/+14
| | | | | | | Fri Nov 30 15:55:34 2001 Owen Taylor <otaylor@redhat.com> * gdk-pixdata.c (gdk_pixdata_deserialize): Fix alignment problem in deserialization, (#65785, reported by Hidetoshi Tajima)