1 /**
2  * @file lv_draw_sw_private.h
3  *
4  */
5 
6 #ifndef LV_DRAW_SW_PRIVATE_H
7 #define LV_DRAW_SW_PRIVATE_H
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 /*********************
14  *      INCLUDES
15  *********************/
16 
17 #include "lv_draw_sw.h"
18 #include "../lv_draw_private.h"
19 
20 #if LV_USE_DRAW_SW
21 
22 /*********************
23  *      DEFINES
24  *********************/
25 
26 /**********************
27  *      TYPEDEFS
28  **********************/
29 
30 /**********************
31  *      TYPEDEFS
32  **********************/
33 
34 struct _lv_draw_sw_unit_t {
35     lv_draw_unit_t base_unit;
36     lv_draw_task_t * task_act;
37 #if LV_USE_OS
38     lv_thread_sync_t sync;
39     lv_thread_t thread;
40     volatile bool inited;
41     volatile bool exit_status;
42 #endif
43     uint32_t idx;
44 };
45 
46 #if LV_DRAW_SW_SHADOW_CACHE_SIZE
47 typedef struct {
48     uint8_t cache[LV_DRAW_SW_SHADOW_CACHE_SIZE * LV_DRAW_SW_SHADOW_CACHE_SIZE];
49     int32_t cache_size;
50     int32_t cache_r;
51 } lv_draw_sw_shadow_cache_t;
52 #endif
53 
54 /**********************
55  * GLOBAL PROTOTYPES
56  **********************/
57 
58 /**********************
59  *      MACROS
60  **********************/
61 
62 #endif /* LV_USE_DRAW_SW */
63 
64 #ifdef __cplusplus
65 } /*extern "C"*/
66 #endif
67 
68 #endif /*LV_DRAW_SW_PRIVATE_H*/
69