37#ifndef NETSURF_IMAGE_IMAGE_CACHE_H_
38#define NETSURF_IMAGE_IMAGE_CACHE_H_
Declaration of content enumerations.
content_type
The type of a content.
nserror
Enumeration of error codes.
struct bitmap *() image_cache_convert_fn(struct content *content)
struct bitmap * image_cache_get_bitmap(const struct content *c)
Obtain a bitmap from a content converting from source if neccessary.
content_type image_cache_content_type(void)
void * image_cache_get_internal(const struct content *c, void *context)
void image_cache_destroy(struct content *c)
nserror image_cache_remove(struct content *content)
bool image_cache_redraw(struct content *c, struct content_redraw_data *data, const struct rect *clip, const struct redraw_context *ctx)
Generic content redraw callback.
bool image_cache_speculate(struct content *c)
Decide if a content should be speculatively converted.
int image_cache_snentryf(char *string, size_t size, unsigned int entryn, const char *fmt)
Fill a buffer with information about a cache entry using a format.
nserror image_cache_add(struct content *content, struct bitmap *bitmap, image_cache_convert_fn *convert)
adds an image content to be cached.
struct bitmap * image_cache_find_bitmap(struct content *c)
Obtain a bitmap from a content with no conversion.
nserror image_cache_fini(void)
bool image_cache_is_opaque(struct content *c)
int image_cache_snsummaryf(char *string, size_t size, const char *fmt)
Fill a buffer with information about the image cache using a format.
nserror image_cache_init(const struct image_cache_parameters *image_cache_parameters)
Initialise the image cache.
RISC OS wimp toolkit bitmap.
parameters to content redraw
Content which corresponds to a single URL.
size_t speculative_small
The speculative conversion "small" size.
unsigned int bg_clean_time
How frequently the background cache clean process is run (ms)
size_t limit
The target upper bound for the image cache size.
size_t hysteresis
The hysteresis allowed round the target size.
static nserror clip(const struct redraw_context *ctx, const struct rect *clip)
Sets a clip rectangle for subsequent plot operations.