summaryrefslogtreecommitdiff
path: root/riscos/bitmap.h
diff options
context:
space:
mode:
authorRichard Wilson <rjw@netsurf-browser.org>2005-06-23 17:22:28 +0000
committerRichard Wilson <rjw@netsurf-browser.org>2005-06-23 17:22:28 +0000
commitb88a81b9d9570c3219dc924c3dd2b424d99ee4c3 (patch)
tree9c82002745ad96d5c7ef88e3824f77b3956254ea /riscos/bitmap.h
parentede57892c6ceb1ecc9c75cbc21d22ce92704ebd4 (diff)
downloadnetsurf-b88a81b9d9570c3219dc924c3dd2b424d99ee4c3.tar.gz
netsurf-b88a81b9d9570c3219dc924c3dd2b424d99ee4c3.tar.bz2
[project @ 2005-06-23 17:22:28 by rjw]
Allow images to be unloaded to disk or compressed in memory. Provide thumbnails in all tree windows (hotlist, history). Optimise the application initialisation times. Part 1 of 2. svn path=/import/netsurf/; revision=1761
Diffstat (limited to 'riscos/bitmap.h')
-rw-r--r--riscos/bitmap.h31
1 files changed, 28 insertions, 3 deletions
diff --git a/riscos/bitmap.h b/riscos/bitmap.h
index 7a5fbf5c7..2ce8f04a9 100644
--- a/riscos/bitmap.h
+++ b/riscos/bitmap.h
@@ -1,20 +1,45 @@
/*
* This file is part of NetSurf, http://netsurf.sourceforge.net/
* Licensed under the GNU General Public License,
- * http://www.opensource.org/licenses/gpl-license
+ * http://www.opensource.org/licenses/gpl-license
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>
*/
#ifndef _NETSURF_RISCOS_BITMAP_H_
#define _NETSURF_RISCOS_BITMAP_H_
+#include "oslib/osspriteop.h"
+
struct osspriteop_area;
struct bitmap {
int width;
int height;
- bool opaque;
- osspriteop_area sprite_area;
+ bool opaque;
+ bool modified;
+ bool persistent;
+
+ osspriteop_area *sprite_area; /** Uncompressed data, or NULL */
+ char *compressed; /** Compressed data, or NULL */
+ char filename[12]; /** Data filename, or '/0' */
+
+ struct bitmap *previous; /** Previous bitmap */
+ struct bitmap *next; /** Next bitmap */
+
};
+struct bitmap *bitmap_create_file(int width, int height, char *file);
+void bitmap_initialise_memory(void);
+void bitmap_quit(void);
+void bitmap_maintain(void);
+
+/** Whether maintenance of the pool states is needed
+*/
+extern bool bitmap_maintenance;
+
+/** Whether maintenance of the pool is high priority
+*/
+extern bool bitmap_maintenance_priority;
+
+
#endif