src/lib/cache.h
changeset 6 766df7c9b90d
parent 2 05de54150a4c
child 7 997906f5fd2d
--- 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];
 };
 
 /**