| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
#ifndef LV_G2D_BUF_MAP_H |
| 14 |
#define LV_G2D_BUF_MAP_H |
| 15 |
|
| 16 |
#ifdef __cplusplus |
| 17 |
extern "C" { |
| 18 |
#endif |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
#include "../../../lv_conf_internal.h" |
| 25 |
|
| 26 |
#if LV_USE_G2D |
| 27 |
#if LV_USE_DRAW_G2D || LV_USE_ROTATE_G2D |
| 28 |
|
| 29 |
#include "../../../misc/lv_array.h" |
| 30 |
#include <string.h> |
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
typedef struct lv_map_item { |
| 42 |
|
| 43 |
void * key; |
| 44 |
struct g2d_buf * value; |
| 45 |
} lv_map_item_t; |
| 46 |
|
| 47 |
|
| 48 |
typedef struct lv_buf_map { |
| 49 |
lv_map_item_t ** items; |
| 50 |
lv_array_t ** overflow_list; |
| 51 |
|
| 52 |
int size; |
| 53 |
int count; |
| 54 |
} lv_buf_map_t; |
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
|
| 60 |
void g2d_create_buf_map(void); |
| 61 |
|
| 62 |
void g2d_free_buf_map(void); |
| 63 |
|
| 64 |
void g2d_insert_buf_map(void * key, struct g2d_buf * value); |
| 65 |
|
| 66 |
struct g2d_buf * g2d_search_buf_map(void * key); |
| 67 |
|
| 68 |
void g2d_free_item(void * key); |
| 69 |
|
| 70 |
void g2d_print_table(void); |
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
#endif |
| 77 |
#endif |
| 78 |
|
| 79 |
#ifdef __cplusplus |
| 80 |
} |
| 81 |
#endif |
| 82 |
|
| 83 |
#endif |