1 
2 #if defined(LV_LVGL_H_INCLUDE_SIMPLE)
3 #include "lvgl.h"
4 #elif defined(LV_BUILD_TEST)
5 #include "../lvgl.h"
6 #else
7 #include "lvgl/lvgl.h"
8 #endif
9 
10 
11 #ifndef LV_ATTRIBUTE_MEM_ALIGN
12 #define LV_ATTRIBUTE_MEM_ALIGN
13 #endif
14 
15 #ifndef LV_ATTRIBUTE_TEST_RGB565A8_LZ4_ALIGN1
16 #define LV_ATTRIBUTE_TEST_RGB565A8_LZ4_ALIGN1
17 #endif
18 
19 static const
20 LV_ATTRIBUTE_MEM_ALIGN LV_ATTRIBUTE_LARGE_CONST LV_ATTRIBUTE_TEST_RGB565A8_LZ4_ALIGN1
21 uint8_t test_RGB565A8_LZ4_align1_map[] = {
22 
23     0x02,0x00,0x00,0x00,0x9d,0x07,0x00,0x00,0xec,0x31,0x00,0x00,0x2f,0xe0,0x07,0x02,
24     0x00,0x7b,0x1f,0x00,0x01,0x00,0x76,0x00,0x1a,0x01,0x0f,0x8d,0x00,0x76,0x0f,0x8e,
25     0x00,0x06,0x1b,0xff,0x01,0x00,0x0f,0xb2,0x00,0x2e,0x1f,0xf8,0x02,0x00,0x0e,0x0f,
26     0x8e,0x00,0x26,0x1b,0x1f,0x02,0x00,0x0f,0xac,0x00,0x10,0x01,0x6e,0x00,0x0f,0x02,
27     0x00,0x08,0x01,0x20,0x00,0x0f,0x1c,0x01,0x1f,0x0a,0x88,0x00,0x06,0x02,0x00,0x08,
28     0x6a,0x00,0x04,0x16,0x00,0x07,0x14,0x00,0x1f,0xf8,0x20,0x01,0x0a,0x02,0x20,0x00,
29     0x0f,0xaa,0x01,0x1e,0x04,0x68,0x00,0x0f,0x02,0x00,0x01,0x06,0x7c,0x00,0x04,0x1e,
30     0x00,0x06,0x12,0x00,0x06,0x72,0x00,0x0f,0x02,0x00,0x00,0x05,0x1c,0x00,0x0f,0x1c,
31     0x01,0x1d,0x04,0x68,0x00,0x0f,0x02,0x00,0x01,0x06,0x68,0x00,0x04,0x1e,0x00,0x06,
32     0x12,0x00,0x05,0x8e,0x00,0x0e,0x3e,0x02,0x0f,0x8e,0x00,0x26,0x04,0x66,0x00,0x0f,
33     0x02,0x00,0x05,0x04,0x7e,0x00,0x04,0x20,0x00,0x04,0x10,0x00,0x09,0x8e,0x00,0x01,
34     0x0f,0x00,0x05,0x02,0x00,0x0f,0x8e,0x00,0x50,0x0f,0x02,0x00,0x00,0x08,0x76,0x00,
35     0x06,0x20,0x01,0x0a,0x18,0x00,0x0f,0x38,0x02,0x1c,0x04,0xf4,0x00,0x0f,0x02,0x00,
36     0x05,0x0f,0x86,0x00,0x00,0x04,0x02,0x00,0x0d,0x7a,0x00,0x0b,0x30,0x01,0x01,0x34,
37     0x01,0x04,0x38,0x02,0x0b,0x5f,0x04,0x11,0xff,0x2e,0x00,0x0d,0x02,0x00,0x0f,0x86,
38     0x00,0x05,0x04,0x02,0x00,0x02,0x31,0x00,0x04,0x0e,0x00,0x06,0x12,0x00,0x0f,0x7a,
39     0x00,0x00,0x0c,0x9e,0x00,0x0f,0x8e,0x00,0x44,0x02,0x86,0x00,0x06,0x02,0x00,0x01,
40     0x8c,0x00,0x02,0x6e,0x00,0x08,0x82,0x00,0x0f,0x14,0x00,0x02,0x0f,0x1c,0x01,0x3f,
41     0x06,0x88,0x00,0x02,0x02,0x00,0x02,0x79,0x00,0x07,0x54,0x03,0x0f,0x38,0x02,0x10,
42     0x0f,0xaa,0x01,0x37,0x02,0x84,0x00,0x06,0x02,0x00,0x0f,0x8e,0x00,0x00,0x08,0x02,
43     0x00,0x02,0x9e,0x00,0x02,0x08,0x00,0x05,0xc6,0x02,0x0f,0x8e,0x00,0x58,0x0c,0x02,
44     0x00,0x02,0x8a,0x00,0x0f,0x38,0x02,0x20,0x0e,0xfa,0x00,0x08,0x02,0x00,0x02,0xf3,
45     0x00,0x08,0x12,0x00,0x07,0xc8,0x02,0x04,0x76,0x00,0x0f,0x02,0x00,0x01,0x05,0x1c,
46     0x00,0x0f,0x38,0x02,0x1b,0x0e,0x6c,0x00,0x08,0x02,0x00,0x02,0x69,0x00,0x08,0x12,
47     0x00,0x0d,0x8e,0x00,0x0f,0x02,0x00,0x05,0x02,0x92,0x00,0x0f,0xaa,0x01,0x1c,0x0f,
48     0x90,0x00,0x09,0x02,0x1e,0x00,0x0c,0x22,0x00,0x02,0x12,0x00,0x03,0xc6,0x02,0x0f,
49     0x02,0x00,0x09,0x09,0xaa,0x01,0x0f,0x02,0x00,0x1b,0x02,0xf6,0x00,0x06,0x02,0x00,
50     0x0f,0x3e,0x00,0x10,0x0f,0x16,0x01,0x05,0x06,0x02,0x00,0x07,0x1c,0x01,0x0f,0x02,
51     0x00,0x73,0x04,0x38,0x02,0x0f,0x02,0x00,0x73,0x0f,0x8e,0x00,0xff,0xff,0xff,0xff,
52     0xff,0xff,0xff,0xff,0xff,0xff,0xff,0x18,0xff,0x2d,0xfe,0x07,0xfc,0x07,0xfa,0x07,
53     0xf8,0x07,0xf6,0x07,0xf4,0x07,0xf2,0x07,0xef,0x07,0xed,0x07,0xeb,0x07,0xe9,0x07,
54     0xe7,0x07,0xe5,0x07,0xe2,0x07,0xe0,0x07,0xe0,0x0f,0xe0,0x27,0xe0,0x37,0xe0,0x47,
55     0xe0,0x57,0xe0,0x67,0xe0,0x77,0xe0,0x87,0xe0,0x9f,0xe0,0xaf,0xe0,0xbf,0xe0,0xcf,
56     0xe0,0xdf,0xe0,0xef,0xe0,0xff,0x02,0x00,0x2f,0x04,0x24,0x0c,0x04,0xa6,0x0b,0x08,
57     0x8e,0x00,0x1f,0xf1,0x8e,0x00,0xff,0x09,0x0f,0xaa,0x01,0x7b,0x0f,0x8e,0x00,0xff,
58     0x98,0x08,0x54,0x03,0x1f,0xe4,0xe2,0x03,0x7a,0x0f,0x8e,0x00,0xff,0x08,0x1f,0xe6,
59     0x1c,0x01,0x70,0x06,0xe2,0x03,0x0f,0x8e,0x00,0x71,0x06,0xc6,0x02,0x0f,0x8e,0x00,
60     0x71,0x04,0x1c,0x01,0x1f,0xe8,0x8e,0x00,0x66,0x0f,0x02,0x00,0x73,0x04,0xc4,0x07,
61     0x0f,0x02,0x00,0x73,0x0f,0x8e,0x00,0x7f,0x0f,0x02,0x00,0x79,0x0c,0xf0,0x18,0x0f,
62     0x02,0x00,0x25,0x0f,0xec,0x01,0x32,0x0f,0x47,0x00,0x38,0x0c,0xc8,0x00,0x0f,0xa0,
63     0x00,0x0d,0x0c,0x30,0x00,0x12,0xff,0x8e,0x00,0x0c,0x17,0x00,0x03,0x47,0x00,0x83,
64     0x3f,0x96,0xd6,0xf9,0xf9,0xd6,0x96,0x3f,0x0f,0x00,0x06,0x02,0x00,0x0c,0x68,0x1c,
65     0x0f,0x47,0x00,0x09,0x24,0x1a,0x93,0x5e,0x00,0x22,0x93,0x1a,0x42,0x00,0x41,0x6a,
66     0xdf,0xdf,0x6a,0x0a,0x00,0x24,0xff,0x00,0x1b,0x00,0x01,0x02,0x00,0x0f,0x47,0x00,
67     0x09,0x21,0x1a,0xa7,0x23,0x00,0x01,0x02,0x00,0x12,0xa7,0x48,0x00,0x44,0xdf,0xff,
68     0xff,0xdf,0x47,0x00,0x01,0x08,0x00,0x02,0x02,0x00,0x0f,0x47,0x00,0x0a,0x05,0x8c,
69     0x00,0x51,0xff,0xff,0xff,0xff,0x93,0x31,0x00,0x09,0x47,0x00,0x02,0x19,0x00,0x02,
70     0x8c,0x00,0x0f,0x8e,0x00,0x07,0x11,0x3f,0x23,0x00,0x05,0x02,0x00,0x01,0x20,0x01,
71     0x08,0xd5,0x00,0x05,0x90,0x00,0x03,0x0c,0x00,0x11,0xff,0x4b,0x00,0x0a,0x02,0x00,
72     0x4a,0x00,0x00,0x00,0x96,0x12,0x00,0x11,0x96,0x8f,0x00,0x04,0x02,0x00,0x02,0x3b,
73     0x00,0x01,0x22,0x00,0x01,0x45,0x00,0x01,0x43,0x00,0x0f,0xaa,0x01,0x02,0x11,0xd6,
74     0x25,0x00,0x05,0x02,0x00,0x14,0xd6,0x42,0x00,0x01,0x02,0x00,0x03,0x47,0x00,0x08,
75     0x0a,0x00,0x0f,0x47,0x00,0x04,0x15,0xf9,0x42,0x00,0x01,0x02,0x00,0xb7,0xf9,0x00,
76     0x00,0x00,0x40,0xac,0xf2,0xf2,0xac,0x40,0x00,0x3d,0x00,0x06,0x02,0x00,0x0f,0x47,
77     0x00,0x17,0x87,0x40,0xd3,0xff,0xff,0xff,0xff,0xd3,0x40,0x47,0x00,0x0f,0x8e,0x00,
78     0x0f,0x0e,0xd5,0x00,0x11,0xac,0x97,0x00,0x26,0xff,0xac,0x47,0x00,0x05,0xa8,0x01,
79     0x0f,0x8e,0x00,0x07,0x0e,0x63,0x01,0x12,0xf2,0x47,0x00,0x15,0xf2,0x47,0x00,0x01,
80     0x27,0x01,0x0f,0x63,0x01,0x0c,0x0e,0xf1,0x01,0x0c,0x47,0x00,0x02,0x56,0x00,0x03,
81     0xac,0x01,0x0f,0x1c,0x01,0x05,0x0e,0x7f,0x02,0x0b,0xd5,0x00,0x02,0x8c,0x00,0x04,
82     0x71,0x01,0x0f,0x47,0x00,0x06,0x0d,0x0d,0x03,0x0a,0x63,0x01,0x04,0x8c,0x00,0x03,
83     0x90,0x00,0x0f,0x47,0x00,0x06,0x0e,0x9b,0x03,0x08,0xf1,0x01,0x02,0x88,0x00,0x04,
84     0x02,0x00,0x03,0x47,0x00,0x0f,0x02,0x00,0x04,0x0f,0x29,0x04,0x07,0x02,0x86,0x00,
85     0x06,0x02,0x00,0x02,0x7f,0x02,0x0f,0x02,0x00,0x30,0x01,0x42,0x03,0x0f,0x02,0x00,
86     0x2f,0x05,0x47,0x00,0x54,0x12,0x28,0x33,0x26,0x08,0x50,0x00,0x06,0xb0,0x00,0x0f,
87     0x02,0x00,0x12,0x04,0x47,0x00,0xb4,0x35,0x95,0xdd,0xff,0xff,0xff,0xff,0xfa,0xc4,
88     0x5c,0x01,0x4a,0x00,0x0f,0x02,0x00,0x1b,0x01,0x8e,0x00,0x16,0xb2,0x74,0x00,0x2f,
89     0xbb,0x0b,0x40,0x00,0x1b,0x03,0x02,0x00,0x01,0x47,0x00,0x71,0xe9,0xff,0xff,0xff,
90     0xff,0xfe,0xfa,0x4d,0x00,0x13,0xa9,0x19,0x00,0x0f,0x02,0x00,0x1b,0x01,0x47,0x00,
91     0x81,0xe5,0xff,0xff,0xe5,0x49,0x09,0x03,0x3c,0xda,0x00,0x1f,0x2b,0x41,0x00,0x1b,
92     0x02,0x02,0x00,0x01,0x47,0x00,0xe2,0xe1,0xff,0xff,0xa3,0x00,0x00,0x00,0x00,0x44,
93     0xff,0xff,0xff,0xff,0x6f,0x19,0x00,0xa4,0x00,0x00,0x14,0x76,0xbb,0xdd,0xe6,0xd3,
94     0x9e,0x37,0x10,0x00,0x0f,0x02,0x00,0x09,0x01,0x47,0x00,0xe3,0xbe,0xdc,0xdc,0x6b,
95     0x00,0x00,0x00,0x00,0x09,0xff,0xff,0xff,0xff,0x89,0x2f,0x00,0x21,0x53,0xf8,0xe5,
96     0x00,0x33,0xff,0xfe,0x7b,0x11,0x00,0x0f,0x02,0x00,0x09,0x01,0x47,0x00,0x02,0x02,
97     0x00,0x82,0x0e,0x14,0x14,0xff,0xff,0xff,0xff,0x90,0x0e,0x00,0xbf,0x00,0x6c,0xff,
98     0xff,0xe0,0x8b,0x83,0xda,0xff,0xff,0xff,0x90,0x00,0x10,0x02,0x47,0x00,0x42,0x01,
99     0x52,0xa3,0xe2,0x62,0x01,0x06,0x47,0x00,0xb3,0x68,0xff,0xff,0x40,0x00,0x00,0x13,
100     0xf1,0xff,0xff,0x8c,0x59,0x00,0x0a,0x02,0x00,0x02,0xaf,0x04,0x01,0x73,0x04,0x03,
101     0x47,0x00,0x22,0x1d,0xca,0xc0,0x00,0x01,0x02,0x00,0x04,0x8e,0x00,0xba,0x41,0xa4,
102     0xa4,0x12,0x00,0x00,0x00,0xc5,0xff,0xff,0xa8,0x40,0x00,0x0f,0x02,0x00,0x01,0x51,
103     0xff,0xff,0x00,0x00,0x0d,0xa2,0x01,0x48,0xe7,0xc1,0xb8,0xb8,0x8e,0x00,0x82,0x00,
104     0x00,0x12,0x55,0x7a,0x8c,0x90,0xe4,0x39,0x05,0x01,0x02,0x00,0x51,0x14,0x5e,0x7e,
105     0x6c,0x1e,0x0a,0x00,0x0c,0x02,0x00,0xb3,0xff,0xff,0x00,0x00,0x79,0xff,0xff,0xff,
106     0xff,0x79,0x03,0xbc,0x03,0x04,0x8e,0x00,0x31,0x01,0x81,0xf7,0x9e,0x00,0x06,0x47,
107     0x00,0x7c,0x12,0xf7,0xfe,0xe1,0xfc,0xf9,0x42,0x43,0x00,0x01,0xbc,0x04,0x81,0xff,
108     0x00,0x00,0xbb,0xff,0xff,0xff,0xd4,0x0f,0x00,0x08,0x8e,0x00,0x86,0x82,0xff,0xff,
109     0xff,0xbc,0x8d,0x88,0xe2,0x47,0x00,0x71,0x13,0xff,0x7e,0x00,0x5d,0xff,0xb4,0x2a,
110     0x00,0x0f,0x1c,0x01,0x00,0xa7,0xd1,0xff,0xff,0xff,0xc8,0x00,0x00,0x00,0x00,0x2a,
111     0x47,0x00,0x96,0x03,0xf3,0xff,0xff,0x8e,0x00,0x00,0x00,0xc0,0x47,0x00,0x73,0x02,
112     0x22,0x49,0x61,0x84,0xff,0xcf,0x47,0x00,0x09,0x02,0x00,0xf2,0x04,0xff,0xff,0x00,
113     0x00,0xb5,0xff,0xff,0xff,0xff,0x70,0x18,0x1f,0x6c,0xec,0xff,0xff,0xff,0xff,0x94,
114     0x20,0x00,0x96,0x19,0xff,0xff,0xff,0x56,0x00,0x00,0x03,0xd4,0x47,0x00,0x72,0x10,
115     0xcc,0xff,0xde,0xd9,0xff,0xd0,0x20,0x00,0x0a,0x02,0x00,0x53,0xff,0xff,0x00,0x00,
116     0x64,0x04,0x01,0x02,0x02,0x00,0xf3,0x04,0xfb,0xdc,0x4c,0x00,0x00,0x00,0x00,0x07,
117     0xf7,0xff,0xff,0xd4,0x58,0x5f,0xc5,0xff,0xff,0xff,0xc1,0xe3,0x20,0x55,0x6c,0xff,
118     0xa4,0x00,0x30,0x47,0x00,0x0d,0xf1,0x01,0x22,0x04,0xc2,0x41,0x00,0x31,0xff,0xb3,
119     0xc5,0x09,0x00,0x11,0x64,0x6a,0x00,0x11,0x95,0x0c,0x00,0x71,0xff,0xe1,0xff,0xff,
120     0xff,0xff,0x0c,0x12,0x00,0x81,0x64,0xff,0xd5,0x64,0xbe,0xff,0xdf,0x26,0x0d,0x00,
121     0x0a,0x02,0x00,0x01,0x7f,0x02,0xa1,0x0a,0x92,0xf6,0xff,0xff,0xff,0xf3,0x83,0x05,
122     0x72,0x3b,0x00,0x02,0x47,0x00,0x86,0x07,0x97,0xfa,0xff,0xff,0xeb,0x5c,0x60,0x47,
123     0x00,0x82,0x09,0xbc,0xff,0xfb,0x83,0xf9,0xff,0x9c,0x42,0x00,0x0d,0x8e,0x00,0x7d,
124     0x00,0x00,0x00,0x0a,0x3b,0x4e,0x3c,0x6a,0x04,0x41,0x0e,0x37,0x31,0x06,0x1e,0x00,
125     0x05,0x02,0x00,0x25,0x14,0x0f,0x0b,0x00,0x0a,0x02,0x00,0x01,0x8e,0x00,0x0f,0x02,
126     0x00,0x2f,0x02,0x49,0x05,0x0f,0x02,0x00,0x0c,0xf1,0x0f,0xfb,0xf2,0xe9,0xe1,0xd9,
127     0xd0,0xc7,0xbf,0xb6,0xae,0xa5,0x9d,0x94,0x8c,0x83,0x7a,0x71,0x69,0x60,0x58,0x4f,
128     0x47,0x3e,0x36,0x2d,0x25,0x1c,0x13,0x0b,0x02,0x45,0x02,0x01,0xac,0x06,0x0f,0x02,
129     0x00,0x0c,0x81,0xfb,0xf2,0xea,0xe1,0xd8,0xd0,0xc8,0xbe,0x47,0x00,0xbf,0x8b,0x83,
130     0x7a,0x72,0x69,0x60,0x58,0x50,0x47,0x3e,0x35,0x47,0x00,0x1e,0xa4,0xe9,0xe1,0xd8,
131     0xd0,0xc7,0xbe,0xb6,0xad,0xa5,0x9c,0x47,0x00,0x01,0x8e,0x00,0x1f,0x24,0x8e,0x00,
132     0x1a,0x32,0xfa,0xf3,0xea,0x47,0x00,0x66,0xae,0xa5,0x9d,0x94,0x8b,0x82,0x8e,0x00,
133     0x3f,0x24,0x1c,0x14,0xd5,0x00,0x1e,0x03,0x1c,0x01,0x03,0x47,0x00,0x1f,0x4f,0xd5,
134     0x00,0x21,0x01,0x8e,0x00,0x32,0xbf,0xb6,0xad,0x1c,0x01,0x35,0x71,0x69,0x61,0x63,
135     0x01,0x1f,0x0a,0x63,0x01,0x19,0x03,0xaa,0x01,0x87,0xad,0xa5,0x9d,0x94,0x8c,0x82,
136     0x7a,0x72,0x47,0x00,0x0f,0xd5,0x00,0x1a,0x57,0xe9,0xe1,0xd9,0xd0,0xc8,0x63,0x01,
137     0x03,0x8e,0x00,0x5f,0x24,0x1c,0x14,0x0a,0x03,0xf1,0x01,0x1a,0x03,0x38,0x02,0x4f,
138     0x9c,0x94,0x8c,0x83,0x8e,0x00,0x25,0x61,0xfa,0xf2,0xea,0xe1,0xd9,0xcf,0x63,0x01,
139     0x01,0xf1,0x01,0x01,0x1c,0x01,0x5f,0x46,0x3e,0x35,0x2d,0x24,0x1c,0x01,0x1a,0x18,
140     0xfa,0xc6,0x02,0x04,0xaa,0x01,0x21,0x46,0x3f,0x47,0x00,0x0f,0x1c,0x01,0x1c,0x01,
141     0xf1,0x01,0x41,0xad,0xa5,0x9d,0x93,0xd5,0x00,0x4f,0x60,0x58,0x50,0x46,0x7f,0x02,
142     0x1f,0x01,0x0d,0x03,0x01,0xd5,0x00,0x01,0x54,0x03,0x07,0x63,0x01,0x0f,0x54,0x03,
143     0x1d,0x0a,0x63,0x01,0x51,0x60,0x57,0x50,0x47,0x3f,0x8e,0x00,0x06,0x38,0x02,0x0f,
144     0x02,0x00,0x30,0x0f,0x70,0x04,0x38,0x0f,0x02,0x00,0x30,0x0f,0x6a,0x04,0x0c,0x0f,
145     0x02,0x00,0x11,0x50,0xff,0xff,0xff,0xff,0xff,
146 
147 };
148 
149 const lv_image_dsc_t test_RGB565A8_LZ4_align1 = {
150   .header.magic = LV_IMAGE_HEADER_MAGIC,
151   .header.cf = LV_COLOR_FORMAT_RGB565A8,
152   .header.flags = 0 | LV_IMAGE_FLAGS_COMPRESSED,
153   .header.w = 71,
154   .header.h = 60,
155   .header.stride = 142,
156   .data_size = sizeof(test_RGB565A8_LZ4_align1_map),
157   .data = test_RGB565A8_LZ4_align1_map,
158 };
159 
160