/lvgl-3.4.0/src/extra/libs/bmp/ |
D | lv_bmp.c | 27 unsigned int bpp; member 99 uint16_t bpp; in decoder_info() local 100 memcpy(&bpp, headers + 28, 2); in decoder_info() 101 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-3.4.0/src/draw/sw/ |
D | lv_draw_sw_letter.c | 155 uint32_t bpp = g->bpp; in draw_letter_normal() local 158 if(bpp == 3) bpp = 4; in draw_letter_normal() 160 switch(bpp) { in draw_letter_normal() 190 if(prev_opa != opa || prev_bpp != bpp) { in draw_letter_normal() 198 prev_bpp = bpp; in draw_letter_normal() 204 int32_t width_bit = box_w * bpp; /*Letter width in bits*/ in draw_letter_normal() 213 uint32_t bit_ofs = (row_start * width_bit) + (col_start * bpp); in draw_letter_normal() 247 uint32_t col_bit_max = 8 - bpp; in draw_letter_normal() 248 uint32_t col_bit_row_ofs = (box_w + col_start - col_end) * bpp; in draw_letter_normal() 267 col_bit += bpp; in draw_letter_normal() [all …]
|
/lvgl-3.4.0/src/draw/sdl/ |
D | lv_draw_sdl_utils.c | 107 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()
|
D | lv_draw_sdl_utils.h | 47 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);
|
D | lv_draw_sdl_label.c | 110 lv_sdl_to_8bpp(buf, bmp, g.box_w, g.box_h, g.box_w, g.bpp); in lv_draw_sdl_draw_letter()
|
/lvgl-3.4.0/src/font/ |
D | lv_font_fmt_txt.c | 41 …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 …]
|
D | lv_font_fmt_txt.h | 185 uint16_t bpp : 4; member
|
D | lv_font.h | 46 uint8_t bpp: 4; /**< Bit-per-pixel: 1, 2, 4, 8*/ member
|
D | lv_font_unscii_16.c | 616 .bpp = 1,
|
D | lv_font_unscii_8.c | 452 .bpp = 1,
|
D | lv_font_montserrat_44.c | 10889 .bpp = 4,
|
D | lv_font_montserrat_10.c | 1627 .bpp = 4,
|
D | lv_font_montserrat_12.c | 1888 .bpp = 4,
|
/lvgl-3.4.0/src/extra/libs/png/ |
D | lodepng.c | 2798 size_t bpp = lodepng_get_bpp_lct(colortype, bitdepth); in lodepng_get_raw_size_lct() local 2800 return ((n / 8u) * bpp) + ((n & 7u) * bpp + 7u) / 8u; in lodepng_get_raw_size_lct() 2813 static size_t lodepng_get_raw_size_idat(unsigned w, unsigned h, unsigned bpp) { in lodepng_get_raw_size_idat() argument 2816 size_t line = ((size_t)(w / 8u) * bpp) + 1u + ((w & 7u) * bpp + 7u) / 8u; in lodepng_get_raw_size_idat() 2831 size_t bpp = LODEPNG_MAX(lodepng_get_bpp(pngcolor), lodepng_get_bpp(rawcolor)); in lodepng_pixel_overflow() local 2839 if(lodepng_mulofl((size_t)(w / 8u), bpp, &line)) return 1; in lodepng_pixel_overflow() 2840 if(lodepng_addofl(line, ((w & 7u) * bpp + 7u) / 8u, &line)) return 1; in lodepng_pixel_overflow() 3709 unsigned bpp = lodepng_get_bpp(mode_in); in lodepng_compute_color_stats() local 3710 unsigned bits_done = (stats->bits == 1 && bpp == 1) ? 1 : 0; in lodepng_compute_color_stats() 3713 if(bpp <= 8) maxnumcolors = LODEPNG_MIN(257, stats->numcolors + (1u << bpp)); in lodepng_compute_color_stats() [all …]
|
/lvgl-3.4.0/docs/overview/ |
D | font.md | 13 Fonts have a **bpp (bits per pixel)** property. It shows how many bits are used to describe a pixel… 14 This way, with higher *bpp*, the edges of the letter can be smoother. The possible *bpp* values are… 16 … *bpp* property also affects the amount of memory needed to store a font. For example, *bpp = 4* m… 58 …COMPRESSED` Same as normal 28 px font but stored as a [compressed font](#compress-fonts) with 3 bpp 67 The built-in fonts with *bpp = 4* contain the ASCII characters and use the [Montserrat](https://fon… 148 Compression is more effective with larger fonts and higher bpp. However, it's about 30% slower to r… 237 dsc_out->bpp = 2; /*Bits per pixel: 1/2/4/8*/ 249 * each pixel is represented by `bpp` bits */
|
/lvgl-3.4.0/src/extra/libs/freetype/ |
D | lv_freetype.c | 230 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-3.4.0/scripts/built_in_font/ |
D | built_in_font_gen.py | 61 …{} --format lvgl -o {} --force-fast-kern-format".format(subpx, compr, args.bpp, args.size, args.fo…
|
/lvgl-3.4.0/tests/src/test_cases/ |
D | test_font_loader.c | 79 TEST_ASSERT_EQUAL_INT_MESSAGE(dsc1->bpp, dsc2->bpp, "bpp"); in compare_fonts()
|
/lvgl-3.4.0/demos/stress/assets/ |
D | lv_font_montserrat_12_compr_az.c | 294 .bpp = 4,
|
D | lv_font_montserrat_16_compr_az.c | 332 .bpp = 4,
|
D | lv_font_montserrat_28_compr_az.c | 482 .bpp = 4,
|
/lvgl-3.4.0/demos/benchmark/assets/ |
D | lv_font_bechmark_montserrat_12_compr_az.c.c | 294 .bpp = 4,
|
D | lv_font_bechmark_montserrat_16_compr_az.c.c | 332 .bpp = 4,
|
D | lv_font_bechmark_montserrat_28_compr_az.c.c | 483 .bpp = 4,
|
/lvgl-3.4.0/tests/src/test_fonts/ |
D | font_3.c | 926 .bpp = 4,
|