diff options
author | Matthias Clasen <mclasen@redhat.com> | 2005-07-22 04:37:27 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2005-07-22 04:37:27 +0000 |
commit | 804083681e077becd98adb3d86f58c68025e3074 (patch) | |
tree | c2cce929e2c45ca1552b9f5b914d61c24c2f1708 /docs | |
parent | 9c002e4abc1942610dc98b827f05e46bf6948634 (diff) | |
download | gdk-pixbuf-804083681e077becd98adb3d86f58c68025e3074.tar.gz |
Interpret patterns where the first byte of the mask is '*' as unanchored.
2005-07-22 Matthias Clasen <mclasen@redhat.com>
* gdk-pixbuf-io.c (format_check): Interpret patterns where
the first byte of the mask is '*' as unanchored. (#311011)
(gdk_pixbuf_new_from_file): Use the first 256 bytes for
sniffing the file format.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/ChangeLog | 5 | ||||
-rw-r--r-- | docs/reference/gdk-pixbuf/tmpl/module_interface.sgml | 15 |
2 files changed, 15 insertions, 5 deletions
diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index a423a0e2a..0fc148de1 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,8 @@ +2005-07-22 Matthias Clasen <mclasen@redhat.com> + + * gdk-pixbuf/tmpl/module_interface.sgml: Document unanchored + patterns. + 2005-07-21 Federico Mena Quintero <federico@ximian.com> * gtk/tmpl/gtkfilechooserdialog.sgml (dialog): Expand the Save diff --git a/docs/reference/gdk-pixbuf/tmpl/module_interface.sgml b/docs/reference/gdk-pixbuf/tmpl/module_interface.sgml index ac12c39e3..e06b0d325 100644 --- a/docs/reference/gdk-pixbuf/tmpl/module_interface.sgml +++ b/docs/reference/gdk-pixbuf/tmpl/module_interface.sgml @@ -204,14 +204,19 @@ operations. <!-- ##### STRUCT GdkPixbufModulePattern ##### --> <para> The signature of a module is a set of prefixes. Prefixes are encoded as -pairs of ordinary strings, where the second string, if not %NULL, must be -of the same length as the first one and may contain ' ', '!', 'x', 'z', -and 'n' to indicate bytes that must be matched, not matched, -"don't-care"-bytes, zeros and non-zeros. +pairs of ordinary strings, where the second string, called the mask, if +not %NULL, must be of the same length as the first one and may contain +' ', '!', 'x', 'z', and 'n' to indicate bytes that must be matched, +not matched, "don't-care"-bytes, zeros and non-zeros. Each prefix has an associated integer that describes the relevance of the prefix, with 0 meaning a mismatch and 100 a "perfect match". </para> - +<para> +Starting with &gdk-pixbuf; 2.8, the first byte of the mask may be '*', +indicating an unanchored pattern that matches not only at the beginning, +but also in the middle. Versions prior to 2.8 will interpret the '*' +like an 'x'. +</para> <para> The signature of a module is stored as an array of #GdkPixbufModulePattern<!-- -->s. The array is terminated by a pattern |