[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xdg
Subject:    Re: Caching icon theme information, revisited
From:       Federico Mena Quintero <federico () ximian ! com>
Date:       2004-12-01 21:26:21
Message-ID: 1101936381.9312.47.camel () cacharro ! xalalinux ! org
[Download RAW message or body]

On Wed, 2004-12-01 at 15:14 -0600, Federico Mena Quintero wrote:

> the cache.  That data should be in some form that is readily useful to
> applications:  GTK+ and GdkPixbuf would prefer pixels in RGBA ordering.

To clarify size and endianness, that's 8 bits per channel, and the
on-disk layout is RGBA in sequence.

GdkPixbuf uses top-to-bottom, left-to-right image data, and each row can
have some padding at the end so that all rows are spaced equally apart
in memory.

Each icon could then have something like

4	CARD32		width in pixels
4	CARD32		height in pixels
4	CARD32		rowstride in bytes
n	CARD8		image data

where "n" is rowstride * height.  Rowstride is at least width*4, to
account for each RGBA pixel plus padding.

  Federico


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic