2004-09-04 20:41:28 +04:00
|
|
|
/*
|
|
|
|
* This file is part of NetSurf, http://netsurf.sourceforge.net/
|
|
|
|
* Licensed under the GNU General Public License,
|
2005-06-23 21:22:28 +04:00
|
|
|
* http://www.opensource.org/licenses/gpl-license
|
2004-09-04 20:41:28 +04:00
|
|
|
* Copyright 2004 James Bursa <bursa@users.sourceforge.net>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NETSURF_RISCOS_BITMAP_H_
|
|
|
|
#define _NETSURF_RISCOS_BITMAP_H_
|
|
|
|
|
2005-06-23 21:22:28 +04:00
|
|
|
#include "oslib/osspriteop.h"
|
2006-02-21 23:49:12 +03:00
|
|
|
#include "netsurf/image/bitmap.h"
|
2005-06-23 21:22:28 +04:00
|
|
|
|
2004-09-04 20:41:28 +04:00
|
|
|
struct osspriteop_area;
|
|
|
|
|
|
|
|
struct bitmap {
|
2004-10-18 01:16:00 +04:00
|
|
|
int width;
|
|
|
|
int height;
|
2006-02-22 04:58:19 +03:00
|
|
|
|
|
|
|
unsigned int state;
|
|
|
|
|
|
|
|
void *private_word;
|
|
|
|
void (*invalidate)(struct bitmap *bitmap, void *private_word);
|
2005-06-23 21:22:28 +04:00
|
|
|
|
|
|
|
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 */
|
|
|
|
|
2004-09-04 20:41:28 +04:00
|
|
|
};
|
|
|
|
|
2005-12-31 07:29:00 +03:00
|
|
|
struct bitmap *bitmap_create_file(char *file);
|
2006-03-24 06:44:37 +03:00
|
|
|
void bitmap_overlay_sprite(struct bitmap *bitmap, const osspriteop_header *s);
|
2005-06-23 21:22:28 +04:00
|
|
|
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;
|
|
|
|
|
2006-01-02 05:52:53 +03:00
|
|
|
/** Maximum amount of memory for direct images
|
|
|
|
*/
|
|
|
|
extern unsigned int bitmap_direct_size;
|
|
|
|
|
|
|
|
/** Total size of compressed area
|
|
|
|
*/
|
|
|
|
extern unsigned int bitmap_compressed_size;
|
|
|
|
|
2004-09-04 20:41:28 +04:00
|
|
|
#endif
|