diff -r 4b440fa03183 -r 766df7c9b90d src/lib/cache.h --- a/src/lib/cache.h Mon Dec 28 20:43:33 2009 +0200 +++ b/src/lib/cache.h Mon Dec 28 22:31:33 2009 +0200 @@ -48,8 +48,14 @@ /** Pixel format */ uint8_t bit_depth, color_type; + /** Number of png_color entries that follow */ + uint16_t num_palette; + /** Convenience field for number of bytes per row */ uint32_t row_bytes; + + /** Palette entries, up to 256 entries used */ + png_color palette[PNG_MAX_PALETTE_LENGTH]; }; /**