Go to the source code of this file.
|
void | cache_rebuild_bmpcache_linked_list (RDPCLIENT *This, uint8 id, sint16 *idx, int count) |
|
void | cache_bump_bitmap (RDPCLIENT *This, uint8 id, uint16 idx, int bump) |
|
void | cache_evict_bitmap (RDPCLIENT *This, uint8 id) |
|
HBITMAP | cache_get_bitmap (RDPCLIENT *This, uint8 id, uint16 idx) |
|
void | cache_put_bitmap (RDPCLIENT *This, uint8 id, uint16 idx, HBITMAP bitmap) |
|
void | cache_save_state (RDPCLIENT *This) |
|
FONTGLYPH * | cache_get_font (RDPCLIENT *This, uint8 font, uint16 character) |
|
void | cache_put_font (RDPCLIENT *This, uint8 font, uint16 character, uint16 offset, uint16 baseline, uint16 width, uint16 height, HGLYPH pixmap) |
|
DATABLOB * | cache_get_text (RDPCLIENT *This, uint8 cache_id) |
|
void | cache_put_text (RDPCLIENT *This, uint8 cache_id, void *data, int length) |
|
uint8 * | cache_get_desktop (RDPCLIENT *This, uint32 offset, int cx, int cy, int bytes_per_pixel) |
|
void | cache_put_desktop (RDPCLIENT *This, uint32 offset, int cx, int cy, int scanline, int bytes_per_pixel, uint8 *data) |
|
HCURSOR | cache_get_cursor (RDPCLIENT *This, uint16 cache_idx) |
|
void | cache_put_cursor (RDPCLIENT *This, uint16 cache_idx, HCURSOR cursor) |
|
◆ BUMP_COUNT
◆ IS_PERSISTENT
#define IS_PERSISTENT |
( |
|
id | ) |
(This->pstcache_fd[id] > 0) |
◆ IS_SET
◆ NOT_SET
◆ NUM_ELEMENTS
◆ TO_TOP
◆ cache_bump_bitmap()
Definition at line 89 of file cache.c.
96 if (
This->cache.bmpcache_mru[
id] ==
idx)
99 DEBUG_RDP5((
"bump bitmap: id=%d, idx=%d, bump=%d\n",
id,
idx, bump));
101 n_idx =
This->cache.bmpcache[
id][
idx].next;
102 p_idx =
This->cache.bmpcache[
id][
idx].previous;
107 --
This->cache.bmpcache_count[
id];
109 This->cache.bmpcache[
id][p_idx].next = n_idx;
111 This->cache.bmpcache_lru[
id] = n_idx;
113 This->cache.bmpcache[
id][n_idx].previous = p_idx;
115 This->cache.bmpcache_mru[
id] = p_idx;
120 n_idx =
This->cache.bmpcache_lru[
id];
125 for (
n = 0;
n < bump &&
IS_SET(n_idx);
n++)
128 n_idx =
This->cache.bmpcache[
id][p_idx].next;
133 p_idx =
This->cache.bmpcache_mru[
id];
138 ++
This->cache.bmpcache_count[
id];
139 This->cache.bmpcache[
id][
idx].previous = p_idx;
140 This->cache.bmpcache[
id][
idx].next = n_idx;
143 This->cache.bmpcache[
id][p_idx].next =
idx;
148 This->cache.bmpcache[
id][n_idx].previous =
idx;
#define IS_PERSISTENT(id)
◆ cache_evict_bitmap()
Definition at line 155 of file cache.c.
164 n_idx =
This->cache.bmpcache[
id][
idx].next;
165 DEBUG_RDP5((
"evict bitmap: id=%d idx=%d n_idx=%d bmp=0x%x\n",
id,
idx, n_idx,
166 This->cache.bmpcache[
id][
idx].bitmap));
169 --
This->cache.bmpcache_count[
id];
170 This->cache.bmpcache[
id][
idx].bitmap = 0;
172 This->cache.bmpcache_lru[
id] = n_idx;
void pstcache_touch_bitmap(uint8 cache_id, uint16 cache_idx, uint32 stamp)
#define IS_PERSISTENT(id)
void ui_destroy_bitmap(RD_HBITMAP bmp)
◆ cache_get_bitmap()
Definition at line 180 of file cache.c.
189 return This->cache.bmpcache[
id][
idx].bitmap;
194 return This->cache.volatile_bc[
id];
197 error(
"get bitmap %d:%d\n",
id,
idx);
RD_BOOL pstcache_load_bitmap(uint8 cache_id, uint16 cache_idx)
void cache_bump_bitmap(uint8 id, uint16 idx, int bump)
#define NUM_ELEMENTS(array)
#define IS_PERSISTENT(id)
◆ cache_get_cursor()
Definition at line 381 of file cache.c.
392 error(
"get cursor %d\n", cache_idx);
#define NUM_ELEMENTS(array)
◆ cache_get_desktop()
Definition at line 336 of file cache.c.
GLenum GLuint GLenum GLsizei length
_Out_opt_ int _Out_opt_ int * cy
◆ cache_get_font()
Definition at line 262 of file cache.c.
268 glyph = &
This->cache.fontcache[
font][character];
273 error(
"get font %d:%d\n",
font, character);
#define NUM_ELEMENTS(array)
◆ cache_get_text()
◆ cache_put_bitmap()
Definition at line 203 of file cache.c.
209 old =
This->cache.bmpcache[
id][
idx].bitmap;
226 old =
This->cache.volatile_bc[
id];
233 error(
"put bitmap %d:%d\n",
id,
idx);
#define BMPCACHE2_C2_CELLS
void cache_bump_bitmap(uint8 id, uint16 idx, int bump)
#define NUM_ELEMENTS(array)
#define IS_PERSISTENT(id)
void cache_evict_bitmap(uint8 id)
void ui_destroy_bitmap(RD_HBITMAP bmp)
◆ cache_put_cursor()
Definition at line 398 of file cache.c.
404 old =
This->cache.cursorcache[cache_idx];
412 error(
"put cursor %d\n", cache_idx);
#define NUM_ELEMENTS(array)
void ui_destroy_cursor(RD_HCURSOR cursor)
◆ cache_put_desktop()
Definition at line 354 of file cache.c.
363 cx *= bytes_per_pixel;
GLenum GLuint GLenum GLsizei length
_Out_opt_ int _Out_opt_ int * cy
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
#define memcpy(s1, s2, n)
◆ cache_put_font()
Definition at line 279 of file cache.c.
286 glyph = &
This->cache.fontcache[
font][character];
298 error(
"put font %d:%d\n",
font, character);
GLint GLint GLsizei width
#define NUM_ELEMENTS(array)
GLint GLint GLsizei GLsizei height
void ui_destroy_glyph(RD_HGLYPH glyph)
◆ cache_put_text()
Definition at line 316 of file cache.c.
324 text = &
This->cache.textcache[cache_id];
GLenum GLuint GLenum GLsizei length
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
#define memcpy(s1, s2, n)
◆ cache_rebuild_bmpcache_linked_list()
Definition at line 43 of file cache.c.
49 while (--
n >= 0 &&
This->cache.bmpcache[
id][
idx[
n]].bitmap ==
NULL);
65 while (--
n >= 0 &&
This->cache.bmpcache[
id][
idx[
n]].bitmap ==
NULL);
70 This->cache.bmpcache[
id][n_idx].previous =
idx[
n];
77 This->cache.bmpcache_lru[
id] = n_idx;
79 if (
c !=
This->cache.bmpcache_count[
id])
81 error(
"Oops. %d in bitmap cache linked list, %d in ui cache...\n",
c,
82 This->cache.bmpcache_count[
id]);
GLuint GLuint GLsizei count
◆ cache_save_state()
Definition at line 239 of file cache.c.
247 DEBUG_RDP5((
"Saving cache state for bitmap cache %d...",
id));
#define NUM_ELEMENTS(array)
void pstcache_touch_bitmap(uint8 cache_id, uint16 cache_idx, uint32 stamp)
#define IS_PERSISTENT(id)