Home
last modified time | relevance | path

Searched refs:nbits (Results 1 – 2 of 2) sorted by relevance

/lvgl-3.7.0/src/font/
Dlv_font_loader.c399 int nbits = header->advance_width_bits + 2 * header->xy_bits + 2 * header->wh_bits; in load_glyph() local
401 int bmp_size = next_offset - glyph_offset[i] - nbits / 8; in load_glyph()
430 int nbits = header->advance_width_bits + 2 * header->xy_bits + 2 * header->wh_bits; in load_glyph() local
432 read_bits(&bit_it, nbits, &res); in load_glyph()
442 int bmp_size = next_offset - glyph_offset[i] - nbits / 8; in load_glyph()
444 if(nbits % 8 == 0) { /*Fast path*/ in load_glyph()
456 glyph_bmp[cur_bmp_size + bmp_size - 1] = read_bits(&bit_it, 8 - nbits % 8, &res); in load_glyph()
462 … glyph_bmp[cur_bmp_size + bmp_size - 1] = glyph_bmp[cur_bmp_size + bmp_size - 1] << (nbits % 8); in load_glyph()
/lvgl-3.7.0/src/extra/libs/png/
Dlodepng.c428 static void writeBits(LodePNGBitWriter* writer, unsigned value, size_t nbits) { in writeBits() argument
429 if(nbits == 1) { /* compiler should statically compile this case if nbits == 1 */ in writeBits()
434 for(i = 0; i != nbits; ++i) { in writeBits()
441 static void writeBitsReversed(LodePNGBitWriter* writer, unsigned value, size_t nbits) { in writeBitsReversed() argument
443 for(i = 0; i != nbits; ++i) { in writeBitsReversed()
445 WRITEBIT(writer, (unsigned char)((value >> (nbits - 1u - i)) & 1u)); in writeBitsReversed()
490 static unsigned ensureBits9(LodePNGBitReader* reader, size_t nbits) { in ensureBits9() argument
501 return reader->bp + nbits <= reader->bitsize; in ensureBits9()
506 static unsigned ensureBits17(LodePNGBitReader* reader, size_t nbits) { in ensureBits17() argument
519 return reader->bp + nbits <= reader->bitsize; in ensureBits17()
[all …]