Searched refs:nbits (Results 1 – 2 of 2) sorted by relevance
/lvgl-latest/src/font/ |
D | lv_binfont_loader.c | 375 int nbits = header->advance_width_bits + 2 * header->xy_bits + 2 * header->wh_bits; in load_glyph() local 377 int bmp_size = next_offset - glyph_offset[i] - nbits / 8; in load_glyph() 406 int nbits = header->advance_width_bits + 2 * header->xy_bits + 2 * header->wh_bits; in load_glyph() local 408 read_bits(&bit_it, nbits, &res); in load_glyph() 418 int bmp_size = next_offset - glyph_offset[i] - nbits / 8; in load_glyph() 420 if(nbits % 8 == 0) { /*Fast path*/ in load_glyph() 432 glyph_bmp[cur_bmp_size + bmp_size - 1] = read_bits(&bit_it, 8 - nbits % 8, &res); in load_glyph() 438 … glyph_bmp[cur_bmp_size + bmp_size - 1] = glyph_bmp[cur_bmp_size + bmp_size - 1] << (nbits % 8); in load_glyph()
|
/lvgl-latest/src/libs/lodepng/ |
D | lodepng.c | 464 static void writeBits(LodePNGBitWriter * writer, unsigned value, size_t nbits) in writeBits() argument 466 if(nbits == 1) { /* compiler should statically compile this case if nbits == 1 */ in writeBits() 472 for(i = 0; i != nbits; ++i) { in writeBits() 479 static void writeBitsReversed(LodePNGBitWriter * writer, unsigned value, size_t nbits) in writeBitsReversed() argument 482 for(i = 0; i != nbits; ++i) { in writeBitsReversed() 484 WRITEBIT(writer, (unsigned char)((value >> (nbits - 1u - i)) & 1u)); in writeBitsReversed() 524 static LODEPNG_INLINE void ensureBits9(LodePNGBitReader * reader, size_t nbits) in ensureBits9() argument 537 (void)nbits; in ensureBits9() 541 static LODEPNG_INLINE void ensureBits17(LodePNGBitReader * reader, size_t nbits) in ensureBits17() argument 556 (void)nbits; in ensureBits17() [all …]
|