Home
last modified time | relevance | path

Searched refs:bpp (Results 1 – 25 of 54) sorted by relevance

123

/lvgl-latest/src/extra/libs/bmp/
Dlv_bmp.c27 unsigned int bpp; member
98 uint16_t bpp; in decoder_info() local
99 memcpy(&bpp, headers + 28, 2); in decoder_info()
100 header->cf = bpp == 32 ? LV_IMG_CF_TRUE_COLOR_ALPHA : LV_IMG_CF_TRUE_COLOR; in decoder_info()
151 memcpy(&b.bpp, header + 28, 2); in decoder_open()
152 b.row_size_bytes = ((b.bpp * b.px_width + 31) / 32) * 4; in decoder_open()
155 if(LV_COLOR_DEPTH == 32 && (b.bpp != 32 && b.bpp != 24)) { in decoder_open()
156 LV_LOG_WARN("LV_COLOR_DEPTH == 32 but bpp is %d (should be 32 or 24)", b.bpp); in decoder_open()
159 else if(LV_COLOR_DEPTH == 16 && b.bpp != 16) { in decoder_open()
160 LV_LOG_WARN("LV_COLOR_DEPTH == 16 but bpp is %d (should be 16)", b.bpp); in decoder_open()
[all …]
/lvgl-latest/src/draw/sw/
Dlv_draw_sw_letter.c171 uint32_t bpp = g->bpp; in draw_letter_normal() local
174 if(bpp == 3) bpp = 4; in draw_letter_normal()
177 if(bpp == LV_IMGFONT_BPP) { //is imgfont in draw_letter_normal()
194 switch(bpp) { in draw_letter_normal()
224 if(prev_opa != opa || prev_bpp != bpp) { in draw_letter_normal()
232 prev_bpp = bpp; in draw_letter_normal()
238 int32_t width_bit = box_w * bpp; /*Letter width in bits*/ in draw_letter_normal()
247 uint32_t bit_ofs = (row_start * width_bit) + (col_start * bpp); in draw_letter_normal()
281 uint32_t col_bit_max = 8 - bpp; in draw_letter_normal()
282 uint32_t col_bit_row_ofs = (box_w + col_start - col_end) * bpp; in draw_letter_normal()
[all …]
/lvgl-latest/src/draw/renesas/
Dlv_gpu_d2_draw_label.c50 uint32_t bpp = g->bpp; in draw_letter_normal() local
53 if(bpp == 3) bpp = 4; in draw_letter_normal()
56 if(bpp == LV_IMGFONT_BPP) { //is imgfont in draw_letter_normal()
73 switch(bpp) { in draw_letter_normal()
103 if(prev_opa != opa || prev_bpp != bpp) { in draw_letter_normal()
111 prev_bpp = bpp; in draw_letter_normal()
117 int32_t width_bit = box_w * bpp; /*Letter width in bits*/ in draw_letter_normal()
126 uint32_t bit_ofs = (row_start * width_bit) + (col_start * bpp); in draw_letter_normal()
160 uint32_t col_bit_max = 8 - bpp; in draw_letter_normal()
161 uint32_t col_bit_row_ofs = (box_w + col_start - col_end) * bpp; in draw_letter_normal()
[all …]
Dlv_gpu_d2_ra6m3.c490 int bpp = lv_port_gpu_cf_bpp(src_cf_val); local
508 if(0 < bpp && bpp < 8) {
509 pitch = (w + (8 - bpp)) & (~(8 - bpp));
/lvgl-latest/src/draw/sdl/
Dlv_draw_sdl_utils.c107 SDL_Palette * lv_sdl_alloc_palette_for_bpp(const uint8_t * mapping, uint8_t bpp) in lv_sdl_alloc_palette_for_bpp() argument
109 SDL_assert(bpp >= 1 && bpp <= 8); in lv_sdl_alloc_palette_for_bpp()
110 int color_cnt = 1 << bpp; in lv_sdl_alloc_palette_for_bpp()
139 …lv_sdl_to_8bpp(uint8_t * dest, const uint8_t * src, int width, int height, int stride, uint8_t bpp) in lv_sdl_to_8bpp() argument
146 switch(bpp) { in lv_sdl_to_8bpp()
168 curbit = 8 - bpp; in lv_sdl_to_8bpp()
169 uint8_t src_byte = src[cur * bpp / 8]; in lv_sdl_to_8bpp()
173 curbit -= bpp; 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 …v_sdl_to_8bpp(uint8_t * dest, const uint8_t * src, int width, int height, int stride, uint8_t bpp);
Dlv_draw_sdl_label.c126 lv_sdl_to_8bpp(buf, bmp, g.box_w, g.box_h, g.box_w, g.bpp); in lv_draw_sdl_draw_letter()
/lvgl-latest/src/font/
Dlv_font_fmt_txt.c41 …mpress(const uint8_t * in, uint8_t * out, lv_coord_t w, lv_coord_t h, uint8_t bpp, bool prefilter);
45 static inline void rle_init(const uint8_t * in, uint8_t bpp);
103 switch(fdsc->bpp) { in lv_font_get_bitmap_fmt_txt()
128 (uint8_t)fdsc->bpp, prefilter); in lv_font_get_bitmap_fmt_txt()
184 dsc_out->bpp = (uint8_t)fdsc->bpp; in lv_font_get_glyph_dsc_fmt_txt()
356 static void decompress(const uint8_t * in, uint8_t * out, lv_coord_t w, lv_coord_t h, uint8_t bpp, … in decompress() argument
359 uint8_t wr_size = bpp; in decompress()
360 if(bpp == 3) wr_size = 4; in decompress()
362 rle_init(in, bpp); in decompress()
378 bits_write(out, wrp, line_buf1[x], bpp); in decompress()
[all …]
Dlv_font_fmt_txt.h185 uint16_t bpp : 4; member
Dlv_font.c123 dsc_out->bpp = 1; in lv_font_get_glyph_dsc()
Dlv_font.h49 uint8_t bpp: 4; /**< Bit-per-pixel: 1, 2, 4, 8*/ member
Dlv_font_unscii_16.c611 .bpp = 1,
Dlv_font_unscii_8.c447 .bpp = 1,
Dlv_font_montserrat_20.c3187 .bpp = 4,
/lvgl-latest/src/extra/libs/png/
Dlodepng.c2796 size_t bpp = lodepng_get_bpp_lct(colortype, bitdepth); in lodepng_get_raw_size_lct() local
2798 return ((n / 8u) * bpp) + ((n & 7u) * bpp + 7u) / 8u; in lodepng_get_raw_size_lct()
2811 static size_t lodepng_get_raw_size_idat(unsigned w, unsigned h, unsigned bpp) { in lodepng_get_raw_size_idat() argument
2814 size_t line = ((size_t)(w / 8u) * bpp) + 1u + ((w & 7u) * bpp + 7u) / 8u; in lodepng_get_raw_size_idat()
2829 size_t bpp = LODEPNG_MAX(lodepng_get_bpp(pngcolor), lodepng_get_bpp(rawcolor)); in lodepng_pixel_overflow() local
2837 if(lodepng_mulofl((size_t)(w / 8u), bpp, &line)) return 1; in lodepng_pixel_overflow()
2838 if(lodepng_addofl(line, ((w & 7u) * bpp + 7u) / 8u, &line)) return 1; in lodepng_pixel_overflow()
3707 unsigned bpp = lodepng_get_bpp(mode_in); in lodepng_compute_color_stats() local
3708 unsigned bits_done = (stats->bits == 1 && bpp == 1) ? 1 : 0; in lodepng_compute_color_stats()
3711 if(bpp <= 8) maxnumcolors = LODEPNG_MIN(257, stats->numcolors + (1u << bpp)); in lodepng_compute_color_stats()
[all …]
/lvgl-latest/docs/overview/
Dfont.md9 Fonts have a **bpp (bits per pixel)** property. It shows how many bits are used to describe a pixel…
10 This way, with higher *bpp*, the edges of the letter can be smoother. The possible *bpp* values are…
12 … *bpp* property also affects the amount of memory needed to store a font. For example, *bpp = 4* m…
54 …COMPRESSED` Same as normal 28 px font but stored as a [compressed font](#compress-fonts) with 3 bpp
63 The built-in fonts with *bpp = 4* contain the ASCII characters and use the [Montserrat](https://fon…
146 Compression is more effective with larger fonts and higher bpp. However, it's about 30% slower to r…
235 dsc_out->bpp = 2; /*Bits per pixel: 1/2/4/8*/
247 * each pixel is represented by `bpp` bits */
/lvgl-latest/src/extra/libs/freetype/
Dlv_freetype.c230 dsc_out->bpp = 8; /*Bit per pixel: 1/2/4/8*/ in get_bold_glyph()
245 dsc_out->bpp = 0; in get_glyph_dsc_cb_cache()
303 dsc_out->bpp = 8; /*Bit per pixel: 1/2/4/8*/ in get_glyph_dsc_cb_cache()
322 dsc_out->bpp = 8; /*Bit per pixel: 1/2/4/8*/ in get_glyph_dsc_cb_cache()
470 dsc_out->bpp = 0; in get_glyph_dsc_cb_nocache()
517 dsc_out->bpp = 8; /*Bit per pixel: 1/2/4/8*/ in get_glyph_dsc_cb_nocache()
/lvgl-latest/scripts/built_in_font/
Dbuilt_in_font_gen.py61 …{} --format lvgl -o {} --force-fast-kern-format".format(subpx, compr, args.bpp, args.size, args.fo…
/lvgl-latest/tests/src/test_cases/
Dtest_font_loader.c93 TEST_ASSERT_EQUAL_INT_MESSAGE(dsc1->bpp, dsc2->bpp, "bpp"); in compare_fonts()
/lvgl-latest/src/extra/others/imgfont/
Dlv_imgfont.c119 dsc_out->bpp = LV_IMGFONT_BPP; /* is image identifier */ in imgfont_get_glyph_dsc()
/lvgl-latest/demos/benchmark/assets/
Dlv_font_bechmark_montserrat_12_compr_az.c.c294 .bpp = 4,
Dlv_font_bechmark_montserrat_16_compr_az.c.c332 .bpp = 4,
Dlv_font_bechmark_montserrat_28_compr_az.c.c483 .bpp = 4,
/lvgl-latest/src/extra/libs/tiny_ttf/
Dlv_tiny_ttf.c96 dsc_out->bpp = 0; in ttf_get_glyph_dsc_cb()
125 dsc_out->bpp = 8; /*Bits per pixel: 1/2/4/8*/ in ttf_get_glyph_dsc_cb()
/lvgl-latest/tests/src/test_fonts/
Dfont_3.c926 .bpp = 4,

123