Go to the source code of this file.
|
void | pstcache_touch_bitmap (RDPCLIENT *This, uint8 cache_id, uint16 cache_idx, uint32 stamp) |
|
BOOL | pstcache_load_bitmap (RDPCLIENT *This, uint8 cache_id, uint16 cache_idx) |
|
BOOL | pstcache_save_bitmap (RDPCLIENT *This, uint8 cache_id, uint16 cache_idx, uint8 *key, uint8 width, uint8 height, uint16 length, uint8 *data) |
|
int | pstcache_enumerate (RDPCLIENT *This, uint8 id, HASH_KEY *keylist) |
|
BOOL | pstcache_init (RDPCLIENT *This, uint8 cache_id) |
|
◆ IS_PERSISTENT
#define IS_PERSISTENT |
( |
|
id | ) |
(id < 8 && This->pstcache_fd[id] > 0) |
◆ MAX_CELL_SIZE
#define MAX_CELL_SIZE 0x1000 /* pixels */ |
◆ pstcache_enumerate()
Definition at line 104 of file pstcache.c.
116 if (
This->pstcache_enumerated)
119 DEBUG_RDP5((
"Persistent bitmap cache enumeration... "));
132 if (
This->bitmap_cache_precache && cellhdr.
stamp &&
This->server_depth > 8)
136 for (
n =
idx;
n > 0 && cellhdr.
stamp < mru_stamp[
n - 1];
n--)
138 mru_idx[
n] = mru_idx[
n - 1];
139 mru_stamp[
n] = mru_stamp[
n - 1];
143 mru_stamp[
n] = cellhdr.
stamp;
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
RD_BOOL pstcache_load_bitmap(uint8 cache_id, uint16 cache_idx)
#define IS_PERSISTENT(id)
void cache_rebuild_bmpcache_linked_list(uint8 id, sint16 *idx, int count)
int rd_read_file(int fd, void *ptr, int len)
#define memcpy(s1, s2, n)
#define BMPCACHE2_NUM_PSTCELLS
int rd_lseek_file(int fd, int offset)
◆ pstcache_init()
Definition at line 160 of file pstcache.c.
165 if (
This->pstcache_enumerated)
168 This->pstcache_fd[cache_id] = 0;
170 if (!(
This->bitmap_cache &&
This->bitmap_cache_persist_enable))
175 DEBUG((
"failed to get/make cache directory!\n"));
179 This->pstcache_Bpp = (
This->server_depth + 7) / 8;
189 warning(
"Persistent bitmap caching is disabled. (The file is already in use)\n");
194 This->pstcache_fd[cache_id] =
fd;
void rd_close_file(int fd)
#define sprintf(buf, format,...)
int rd_open_file(char *filename)
RD_BOOL rd_pstcache_mkdir(void)
RD_BOOL rd_lock_file(int fd, int start, int len)
◆ pstcache_load_bitmap()
Definition at line 46 of file pstcache.c.
53 if (!
This->bitmap_cache_persist_enable)
59 fd =
This->pstcache_fd[cache_id];
70 DEBUG((
"Load bitmap from disk: id=%d, idx=%d, bmp=0x%x)\n", cache_id, cache_idx,
bitmap));
RD_HBITMAP ui_create_bitmap(int width, int height, uint8 *data)
#define IS_PERSISTENT(id)
void cache_put_bitmap(uint8 id, uint16 idx, RD_HBITMAP bitmap)
int rd_read_file(int fd, void *ptr, int len)
#define BMPCACHE2_NUM_PSTCELLS
int rd_lseek_file(int fd, int offset)
◆ pstcache_save_bitmap()
Definition at line 79 of file pstcache.c.
94 fd =
This->pstcache_fd[cache_id];
GLint GLint GLsizei width
GLenum GLuint GLenum GLsizei length
#define IS_PERSISTENT(id)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
#define memcpy(s1, s2, n)
GLint GLint GLsizei GLsizei height
int rd_write_file(int fd, void *ptr, int len)
#define BMPCACHE2_NUM_PSTCELLS
int rd_lseek_file(int fd, int offset)
◆ pstcache_touch_bitmap()
Definition at line 32 of file pstcache.c.
39 fd =
This->pstcache_fd[cache_id];
#define IS_PERSISTENT(id)
int rd_write_file(int fd, void *ptr, int len)
#define BMPCACHE2_NUM_PSTCELLS
int rd_lseek_file(int fd, int offset)
◆ zero_key
const uint8 zero_key[] = { 0, 0, 0, 0, 0, 0, 0, 0 } |