1 /**
2  * @file lv_font_fmt_txt_private.h
3  *
4  */
5 
6 #ifndef LV_FONT_FMT_TXT_PRIVATE_H
7 #define LV_FONT_FMT_TXT_PRIVATE_H
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
13 /*********************
14  *      INCLUDES
15  *********************/
16 
17 #include "lv_font_fmt_txt.h"
18 
19 /*********************
20  *      DEFINES
21  *********************/
22 
23 /**********************
24  *      TYPEDEFS
25  **********************/
26 
27 #if LV_USE_FONT_COMPRESSED
28 typedef enum {
29     RLE_STATE_SINGLE = 0,
30     RLE_STATE_REPEATED,
31     RLE_STATE_COUNTER,
32 } lv_font_fmt_rle_state_t;
33 
34 typedef struct {
35     uint32_t rdp;
36     const uint8_t * in;
37     uint8_t bpp;
38     uint8_t prev_v;
39     uint8_t count;
40     lv_font_fmt_rle_state_t state;
41 } lv_font_fmt_rle_t;
42 #endif
43 
44 /**********************
45  * GLOBAL PROTOTYPES
46  **********************/
47 
48 /**********************
49  *      MACROS
50  **********************/
51 
52 #ifdef __cplusplus
53 } /*extern "C"*/
54 #endif
55 
56 #endif /*LV_FONT_FMT_TXT_PRIVATE_H*/
57