Caching icon theme information, revisited
Federico Mena Quintero
federico at ximian.com
Wed Dec 1 23:26:21 EET 2004
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
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.
More information about the xdg