babl r248 - in trunk: . babl
- From: ok svn gnome org
- To: svn-commits-list gnome org
- Subject: babl r248 - in trunk: . babl
- Date: Sun, 11 Nov 2007 14:12:24 +0000 (GMT)
Author: ok
Date: 2007-11-11 14:12:24 +0000 (Sun, 11 Nov 2007)
New Revision: 248
ViewCVS link: http://svn.gnome.org/viewcvs/babl?rev=248&view=rev
Modified:
trunk/ChangeLog
trunk/babl/babl-classes.h
trunk/babl/babl-format.c
trunk/babl/babl-image.c
trunk/babl/babl-memory.c
Log:
Keep a cache of the linear version of BablImage's needed for
BablFormats around. This reduces the constant overhead for
conversions.
* babl/babl-classes.h: added .image_template field to BablFormat.
* babl/babl-format.c: (format_new): make .image_template NULL by
defualt.
* babl/babl-image.c: (babl_image_from_linear): use .image_template if
available instead of creating our own BablImage from scratch.
* babl/babl-memory.c: (babl_free): special case freeing of BablImage
and BablFormat to do the extra juggling needed for the image_template
cache.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]