Home
last modified time | relevance | path

Searched refs:uint8_t (Results 1 – 25 of 272) sorted by relevance

1234567891011

/lvgl-latest/src/extra/libs/sjpg/
Dtjpgd.h21 typedef uint8_t jd_yuv_t;
50 uint8_t* dptr; /* Current data read ptr */
51 uint8_t* inbuf; /* Bit stream input buffer */
52 uint8_t dbit; /* Number of bits availavble in wreg or reading bit mask */
53 uint8_t scale; /* Output scaling ratio */
54 uint8_t msx, msy; /* MCU size in unit of block (width, height) */
55 uint8_t qtid[3]; /* Quantization table ID of each component, Y, Cb, Cr */
56 uint8_t ncomp; /* Number of color components 1:grayscale, 3:color */
60 uint8_t* huffbits[2][2]; /* Huffman bit distribution tables [id][dcac] */
62 uint8_t* huffdata[2][2]; /* Huffman decoded data tables [id][dcac] */
[all …]
Dlv_sjpg.c80 uint8_t * img_cache_buff;
83 uint8_t * raw_sjpg_data; //Used when type==SJPEG_IO_SOURCE_C_ARRAY.
89 uint8_t * sjpeg_data;
96uint8_t ** frame_base_array; //to save base address of each split frames upto sjpeg_total_f…
98 uint8_t * frame_cache;
99 uint8_t * workb; //JPG work buffer for jpeg library
110 lv_coord_t len, uint8_t * buf);
112 static size_t input_func(JDEC * jd, uint8_t * buff, size_t ndata);
113 static int is_jpg(const uint8_t * raw_data, size_t len);
160 uint8_t * raw_sjpeg_data = (uint8_t *)img_dsc->data; in decoder_info()
[all …]
/lvgl-latest/src/extra/libs/qrcode/
Dqrcodegen.h120 uint8_t *data;
169 bool qrcodegen_encodeText(const char *text, uint8_t tempBuffer[], uint8_t qrcode[],
191 bool qrcodegen_encodeBinary(uint8_t dataAndTemp[], size_t dataLen, uint8_t qrcode[],
210 enum qrcodegen_Ecc ecl, uint8_t tempBuffer[], uint8_t qrcode[]);
229 int minVersion, int maxVersion, int mask, bool boostEcl, uint8_t tempBuffer[], uint8_t qrcode[]);
266 struct qrcodegen_Segment qrcodegen_makeBytes(const uint8_t data[], size_t len, uint8_t buf[]);
272 struct qrcodegen_Segment qrcodegen_makeNumeric(const char *digits, uint8_t buf[]);
280 struct qrcodegen_Segment qrcodegen_makeAlphanumeric(const char *text, uint8_t buf[]);
287 struct qrcodegen_Segment qrcodegen_makeEci(long assignVal, uint8_t buf[]);
298 int qrcodegen_getSize(const uint8_t qrcode[]);
[all …]
Dqrcodegen.c55 testable void appendBitsToBuffer(unsigned int val, int numBits, uint8_t buffer[], int *bitLen);
57 testable void addEccAndInterleave(uint8_t data[], int version, enum qrcodegen_Ecc ecl, uint8_t resu…
61 testable void calcReedSolomonGenerator(int degree, uint8_t result[]);
62 testable void calcReedSolomonRemainder(const uint8_t data[], int dataLen,
63 const uint8_t generator[], int degree, uint8_t result[]);
64 testable uint8_t finiteFieldMultiply(uint8_t x, uint8_t y);
66 testable void initializeFunctionModules(int version, uint8_t qrcode[]);
67 static void drawWhiteFunctionModules(uint8_t qrcode[], int version);
68 static void drawFormatBits(enum qrcodegen_Ecc ecl, enum qrcodegen_Mask mask, uint8_t qrcode[]);
69 testable int getAlignmentPatternPositions(int version, uint8_t result[7]);
[all …]
Dlv_qrcode.c104 uint8_t * qr0 = lv_mem_alloc(qrcodegen_BUFFER_LEN_FOR_VERSION(qr_version)); in lv_qrcode_update()
106 uint8_t * data_tmp = lv_mem_alloc(qrcodegen_BUFFER_LEN_FOR_VERSION(qr_version)); in lv_qrcode_update()
126 uint8_t * buf_u8 = (uint8_t *)imgdsc->data + 8; /*+8 skip the palette*/ in lv_qrcode_update()
134 uint8_t b = 0; in lv_qrcode_update()
135 uint8_t p = 0; in lv_qrcode_update()
170 const uint8_t * row_ori = buf_u8 + row_byte_cnt * y; in lv_qrcode_update()
172 lv_memcpy((uint8_t *)buf_u8 + row_byte_cnt * (y + s), row_ori, row_byte_cnt); in lv_qrcode_update()
195 uint8_t * buf = lv_mem_alloc(buf_size); in lv_qrcode_constructor()
/lvgl-latest/src/misc/
Dlv_color.h104 # define LV_COLOR_SET_R1(c, v) (c).ch.red = (uint8_t)((v) & 0x1)
105 # define LV_COLOR_SET_G1(c, v) (c).ch.green = (uint8_t)((v) & 0x1)
106 # define LV_COLOR_SET_B1(c, v) (c).ch.blue = (uint8_t)((v) & 0x1)
115 # define LV_COLOR_MAKE1(r8, g8, b8) {(uint8_t)((b8 >> 7) | (g8 >> 7) | (r8 >> 7))}
117 # define LV_COLOR_SET_R8(c, v) (c).ch.red = (uint8_t)((v) & 0x7U)
118 # define LV_COLOR_SET_G8(c, v) (c).ch.green = (uint8_t)((v) & 0x7U)
119 # define LV_COLOR_SET_B8(c, v) (c).ch.blue = (uint8_t)((v) & 0x3U)
128 # define LV_COLOR_MAKE8(r8, g8, b8) {{(uint8_t)((b8 >> 6) & 0x3U), (uint8_t)((g8 >> 5) & 0x7U), (ui…
130 # define LV_COLOR_SET_R16(c, v) (c).ch.red = (uint8_t)((v) & 0x1FU)
132 # define LV_COLOR_SET_G16(c, v) (c).ch.green = (uint8_t)((v) & 0x3FU)
[all …]
Dlv_mem.h42 uint8_t used_pct; /**< Percentage used*/
43 uint8_t frag_pct; /**< Amount of fragmentation*/
49 uint8_t used : 1;
153 static inline void lv_memset(void * dst, uint8_t v, size_t len) in lv_memset()
195 uint8_t * d8 = (uint8_t *)dst; in lv_memcpy_small()
196 const uint8_t * s8 = (const uint8_t *)src; in lv_memcpy_small()
214 void /* LV_ATTRIBUTE_FAST_MEM */ lv_memset(void * dst, uint8_t v, size_t len);
Dlv_style.h94 typedef uint8_t lv_blend_mode_t;
106 typedef uint8_t lv_text_decor_t;
121 typedef uint8_t lv_border_side_t;
132 typedef uint8_t lv_grad_dir_t;
144 typedef uint8_t lv_dither_mode_t;
151 uint8_t frac; /**< The stop position in 1/255 unit */
157 uint8_t stops_count; /**< The number of used stops in the array */
293 typedef uint8_t lv_style_res_t;
329 uint8_t * values_and_props;
334 uint8_t has_group;
[all …]
Dlv_mem.c283 for(uint8_t i = 0; i < LV_MEM_BUF_MAX_NUM; i++) { in lv_mem_buf_get()
307 for(uint8_t i = 0; i < LV_MEM_BUF_MAX_NUM; i++) { in lv_mem_buf_get()
335 for(uint8_t i = 0; i < LV_MEM_BUF_MAX_NUM; i++) { in lv_mem_buf_release()
350 for(uint8_t i = 0; i < LV_MEM_BUF_MAX_NUM; i++) { in lv_mem_buf_free_all()
369 uint8_t * d8 = dst; in lv_memcpy()
370 const uint8_t * s8 = src; in lv_memcpy()
413 d8 = (uint8_t *)d32; in lv_memcpy()
414 s8 = (const uint8_t *)s32; in lv_memcpy()
429 void LV_ATTRIBUTE_FAST_MEM lv_memset(void * dst, uint8_t v, size_t len) in lv_memset()
432 uint8_t * d8 = (uint8_t *)dst; in lv_memset()
[all …]
Dlv_txt.h48 typedef uint8_t lv_text_flag_t;
57 typedef uint8_t lv_text_cmd_state_t;
66 typedef uint8_t lv_text_align_t;
167 uint8_t i; in _lv_txt_is_break_char()
195 extern uint8_t (*_lv_txt_encoded_size)(const char *);
/lvgl-latest/src/extra/libs/gif/
Dgifdec.h11 uint8_t colors[0x100 * 3];
16 uint8_t tindex;
17 uint8_t disposal;
27 uint8_t is_file;
38 uint16_t tw, uint16_t th, uint8_t cw, uint8_t ch,
39 uint8_t fg, uint8_t bg
44 uint8_t bgindex;
45 uint8_t *canvas, *frame;
52 void gd_render_frame(gd_GIF *gif, uint8_t *buffer);
/lvgl-latest/src/font/
Dlv_font_fmt_txt.c41 …static void decompress(const uint8_t * in, uint8_t * out, lv_coord_t w, lv_coord_t h, uint8_t bpp,…
42 static inline void decompress_line(uint8_t * out, lv_coord_t w);
43 static inline uint8_t get_bits(const uint8_t * in, uint32_t bit_pos, uint8_t len);
44 static inline void bits_write(uint8_t * out, uint32_t bit_pos, uint8_t val, uint8_t len);
45 static inline void rle_init(const uint8_t * in, uint8_t bpp);
46 static inline uint8_t rle_next(void);
54 static const uint8_t * rle_in;
55 static uint8_t rle_bpp;
56 static uint8_t rle_prev_v;
57 static uint8_t rle_cnt;
[all …]
Dlv_font_fmt_txt.h34 uint8_t box_w; /**< Width of the glyph's bounding box*/
35 uint8_t box_h; /**< Height of the glyph's bounding box*/
56 typedef uint8_t lv_font_fmt_txt_cmap_type_t;
141 …const uint8_t * left_class_mapping; /*Map the glyph_ids to classes: index -> glyph_id -> class_i…
142 …const uint8_t * right_class_mapping; /*Map the glyph_ids to classes: index -> glyph_id -> class_i…
143 uint8_t left_class_cnt;
144 uint8_t right_class_cnt;
162 const uint8_t * glyph_bitmap;
210 const uint8_t * lv_font_get_bitmap_fmt_txt(const lv_font_t * font, uint32_t letter);
Dlv_font_loader.c23 uint8_t byte_value;
39 uint8_t index_to_loc_format;
40 uint8_t glyph_id_format;
41 uint8_t advance_width_format;
42 uint8_t bits_per_pixel;
43 uint8_t xy_bits;
44 uint8_t wh_bits;
45 uint8_t advance_width_bits;
46 uint8_t compression_id;
47 uint8_t subpixels_mode;
[all …]
Dlv_font.h49 uint8_t bpp: 4; /**< Bit-per-pixel: 1, 2, 4, 8*/
50 uint8_t is_placeholder: 1; /** Glyph is missing. But placeholder will still be displayed */
61 typedef uint8_t lv_font_subpx_t;
69 const uint8_t * (*get_glyph_bitmap)(const struct _lv_font_t *, uint32_t);
74 uint8_t subpx : 2; /**< An element of `lv_font_subpx_t`*/
96 const uint8_t * lv_font_get_glyph_bitmap(const lv_font_t * font_p, uint32_t letter);
/lvgl-latest/src/hal/
Dlv_hal_indev.h96 void (*feedback_cb)(struct _lv_indev_drv_t *, uint8_t);
109 uint8_t scroll_limit;
112 uint8_t scroll_throw;
115 uint8_t gesture_min_velocity;
118 uint8_t gesture_limit;
133 uint8_t long_pr_sent : 1;
134 uint8_t reset_query : 1;
135 uint8_t disabled : 1;
136 uint8_t wait_until_release : 1;
159 uint8_t gesture_sent : 1;
/lvgl-latest/src/draw/
Dlv_img_buf.c44 uint8_t * buf_u8 = (uint8_t *)dsc->data; in lv_img_buf_get_px_color()
48 uint8_t px_size = lv_img_cf_get_px_size(dsc->header.cf) >> 3; in lv_img_buf_get_px_color()
57 uint8_t bit = x & 0x7; in lv_img_buf_get_px_color()
68 uint8_t bit = (x & 0x3) * 2; in lv_img_buf_get_px_color()
79 uint8_t bit = (x & 0x1) * 4; in lv_img_buf_get_px_color()
102 uint8_t * buf_u8 = (uint8_t *)dsc->data; in lv_img_buf_get_px_alpha()
109 uint8_t bit = x & 0x7; in lv_img_buf_get_px_alpha()
116 uint8_t px_opa = (buf_u8[px] & (1 << (7 - bit))) >> (7 - bit); in lv_img_buf_get_px_alpha()
120 const uint8_t opa_table[4] = {0, 85, 170, 255}; /*Opacity mapping with bpp = 2*/ in lv_img_buf_get_px_alpha()
122 uint8_t bit = (x & 0x3) * 2; in lv_img_buf_get_px_alpha()
[all …]
Dlv_draw_mask.h42 typedef uint8_t lv_draw_mask_res_t;
52 static inline uint8_t lv_draw_mask_get_cnt(void) in lv_draw_mask_get_cnt()
76 typedef uint8_t lv_draw_mask_type_t;
93 typedef uint8_t lv_draw_mask_line_side_t;
131 uint8_t flat : 1;
135 uint8_t inv: 1;
154 uint8_t * buf;
173 uint8_t outer: 1;
297 uint8_t /* LV_ATTRIBUTE_FAST_MEM */ lv_draw_mask_get_cnt(void);
/lvgl-latest/src/draw/sdl/
Dlv_draw_sdl_utils.c33 extern const uint8_t _lv_bpp1_opa_table[2];
34 extern const uint8_t _lv_bpp2_opa_table[4];
35 extern const uint8_t _lv_bpp4_opa_table[16];
36 extern const uint8_t _lv_bpp8_opa_table[256];
107 SDL_Palette * lv_sdl_alloc_palette_for_bpp(const uint8_t * mapping, uint8_t bpp) in lv_sdl_alloc_palette_for_bpp()
139 void lv_sdl_to_8bpp(uint8_t * dest, const uint8_t * src, int width, int height, int stride, uint8_t in lv_sdl_to_8bpp()
144 uint8_t opa_mask; in lv_sdl_to_8bpp()
145 const uint8_t * opa_table; in lv_sdl_to_8bpp()
169 uint8_t src_byte = src[cur * bpp / 8]; in lv_sdl_to_8bpp()
171 uint8_t src_bits = opa_mask & (src_byte >> curbit); in lv_sdl_to_8bpp()
Dlv_draw_sdl_utils.h47 SDL_Palette * lv_sdl_alloc_palette_for_bpp(const uint8_t * mapping, uint8_t bpp);
54 void lv_sdl_to_8bpp(uint8_t * dest, const uint8_t * src, int width, int height, int stride, uint8_t
/lvgl-latest/tests/src/test_cases/
Dtest_font_loader.c113 (uint8_t *)cmaps1->unicode_list, in compare_fonts()
114 (uint8_t *)cmaps2->unicode_list, in compare_fonts()
125 uint8_t * ids1 = (uint8_t *)cmaps1->glyph_id_ofs_list; in compare_fonts()
126 uint8_t * ids2 = (uint8_t *)cmaps2->glyph_id_ofs_list; in compare_fonts()
144 (uint8_t *)kern1->left_class_mapping, in compare_fonts()
145 (uint8_t *)kern2->left_class_mapping, in compare_fonts()
150 (uint8_t *)kern1->right_class_mapping, in compare_fonts()
151 (uint8_t *)kern2->right_class_mapping, in compare_fonts()
156 (uint8_t *)kern1->class_pair_values, in compare_fonts()
157 (uint8_t *)kern2->class_pair_values, in compare_fonts()
[all …]
/lvgl-latest/src/extra/widgets/chart/
Dlv_chart.h45 typedef uint8_t lv_chart_type_t;
54 typedef uint8_t lv_chart_update_mode_t;
66 typedef uint8_t lv_chart_axis_t;
76 uint8_t hidden : 1;
77 uint8_t x_ext_buf_assigned : 1;
78 uint8_t y_ext_buf_assigned : 1;
79 uint8_t x_axis_sec : 1;
80 uint8_t y_axis_sec : 1;
89 uint8_t pos_set: 1; /*1: pos is set; 0: point_id is set*/
182 void lv_chart_set_div_line_count(lv_obj_t * obj, uint8_t hdiv, uint8_t vdiv);
/lvgl-latest/src/extra/widgets/span/
Dlv_span.h34 typedef uint8_t lv_span_overflow_t;
41 typedef uint8_t lv_span_mode_t;
47 uint8_t static_flag : 1;/* the text is static flag */
58 uint8_t mode : 2; /* details see lv_span_mode_t */
59 uint8_t overflow : 1; /* details see lv_span_overflow_t */
60 uint8_t refresh : 1; /* the spangroup need refresh cache_w and cache_h */
/lvgl-latest/src/widgets/
Dlv_img.h49 uint8_t src_type : 2; /*See: lv_img_src_t*/
50 uint8_t cf : 5; /*Color format from `lv_img_color_format_t`*/
51 uint8_t antialias : 1; /*Apply anti-aliasing in transformations (rotate, zoom)*/
52 uint8_t obj_size_mode: 2; /*Image size mode when image size and object size is different.*/
72 typedef uint8_t lv_img_size_mode_t;
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_transform.c50 static void argb_no_aa(const uint8_t * src, lv_coord_t src_w, lv_coord_t src_h, lv_coord_t src_stri…
52 int32_t x_end, lv_color_t * cbuf, uint8_t * abuf);
54 static void rgb_no_aa(const uint8_t * src, lv_coord_t src_w, lv_coord_t src_h, lv_coord_t src_strid…
56 int32_t x_end, lv_color_t * cbuf, uint8_t * abuf, lv_img_cf_t cf);
59 static void rgb565a8_no_aa(const uint8_t * src, lv_coord_t src_w, lv_coord_t src_h, lv_coord_t src_…
61 int32_t x_end, lv_color_t * cbuf, uint8_t * abuf);
64 static void argb_and_rgb_aa(const uint8_t * src, lv_coord_t src_w, lv_coord_t src_h, lv_coord_t src…
66 int32_t x_end, lv_color_t * cbuf, uint8_t * abuf, lv_img_cf_t cf);
160 static void rgb_no_aa(const uint8_t * src, lv_coord_t src_w, lv_coord_t src_h, lv_coord_t src_strid… in rgb_no_aa()
162 int32_t x_end, lv_color_t * cbuf, uint8_t * abuf, lv_img_cf_t cf) in rgb_no_aa()
[all …]

1234567891011