⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dicache.h

📁 浏览器的源代码,可移植到嵌入式设备.
💻 H
字号:
#ifndef __DICACHE_H__#define __DICACHE_H__#include "bitvec.h"#include "image.h"#include "cache.h"/* These will reflect the entry's "state" */typedef enum {   DIC_Empty,      /* Just created the entry */   DIC_SetParms,   /* Parameters set */   DIC_SetCmap,    /* Color map set */   DIC_Write,      /* Feeding the entry */   DIC_Close,      /* Whole image got! */   DIC_Abort       /* Image transfer aborted */} DicEntryState;typedef struct _DICacheEntry DICacheEntry;struct _DICacheEntry {   DilloUrl *url;          /* Image URL for this entry */   gint width, height;     /* As taken from image data */   DilloImgType type;      /* Image type */   guchar *cmap;           /* Color map */   guchar *ImageBuffer;    /* Decompressed buffer */   size_t TotalSize;       /* Amount of memory the image takes up */   gint Y;                 /* Current decoding row */   bitvec_t *BitVec;       /* Bit vector for decoded rows */   DicEntryState State;    /* Current status for this entry */   gint RefCount;          /* Reference Counter */   gint version;           /* Version number, used for different                              versions of the same URL image */   DICacheEntry *next;     /* Link to the next "newer" version */};void a_Dicache_init (void);DICacheEntry *a_Dicache_get_entry(const DilloUrl *Url);DICacheEntry *a_Dicache_add_entry(const DilloUrl *Url);void a_Dicache_callback(gint Op, CacheClient_t *Client);void a_Dicache_set_parms(DilloUrl *url, gint version, DilloImage *Image,                         gint width, gint height, DilloImgType type);void a_Dicache_set_cmap(DilloUrl *url, gint version, DilloImage *Image,                        const guchar *cmap, gint num_colors,                        gint num_colors_max, gint bg_index);void a_Dicache_write(DilloImage *Image, DilloUrl *url, gint version,                     const guchar *buf, gint x, gint Y);void a_Dicache_close(DilloUrl *url, gint version, CacheClient_t *Client);void a_Dicache_invalidate_entry(const DilloUrl *Url);DICacheEntry* a_Dicache_ref(const DilloUrl *Url, gint version);void a_Dicache_unref(const DilloUrl *Url, gint version);void a_Dicache_freeall(void);#endif /* __DICACHE_H__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -