Lines Matching full:8
20 #define MSB_BIT_MASK(x) (BIT_MASK(x) << (8 - x))
52 /** Number of pixels per tile, typically 8 */
74 (fptr->width * fptr->height / 8U); in get_glyph_ptr()
81 return glyph_ptr[x * (fptr->height / 8U) + y]; in get_glyph_byte()
92 * a byte is interpreted as 8 pixels ordered vertically among each other.
119 * by separating per 8-line boundaries. in draw_char_vtmono()
123 const size_t fb_index = (fb_y / 8U) * fb->x_res + fb_x; in draw_char_vtmono()
124 const size_t offset = y % 8; in draw_char_vtmono()
125 const uint8_t bottom_lines = ((offset + fptr->height) % 8); in draw_char_vtmono()
143 next_byte = get_glyph_byte(glyph_ptr, fptr, g_x, g_y / 8); in draw_char_vtmono()
145 byte = get_glyph_byte(glyph_ptr, fptr, g_x, g_y / 8); in draw_char_vtmono()
146 next_byte = get_glyph_byte(glyph_ptr, fptr, g_x, (g_y + 8) / 8); in draw_char_vtmono()
151 * Extract the necessary 8 bits from the combined 2 tiles of glyphs. in draw_char_vtmono()
153 byte = ((byte << 8) | next_byte) >> (offset); in draw_char_vtmono()
159 bg_mask = BIT_MASK(8 - offset); in draw_char_vtmono()
168 byte = ((next_byte << 8) | byte) >> (8 - offset); in draw_char_vtmono()
170 bg_mask = BIT_MASK(8 - offset) << offset; in draw_char_vtmono()
179 if (((fptr->height - g_y) < 8) && (bottom_lines != 0)) { in draw_char_vtmono()
200 g_y += (8 - offset); in draw_char_vtmono()
201 } else if ((fptr->height - g_y) >= 8) { in draw_char_vtmono()
202 g_y += 8; in draw_char_vtmono()
215 const size_t index = ((y / 8) * fb->x_res); in draw_point()
216 uint8_t m = BIT(y % 8); in draw_point()
275 if (fptr->height % 8) { in draw_text()
372 * by separating per 8-line boundaries. in cfb_invert_area()
375 const size_t index = ((j / 8) * fb->x_res) + i; in cfb_invert_area()
380 * between the start line or end line and the 8-line boundary. in cfb_invert_area()
382 if ((j % 8) > 0) { in cfb_invert_area()
383 uint8_t m = BIT_MASK((j % 8)); in cfb_invert_area()
388 * drawing within 8 lines from the start line in cfb_invert_area()
390 if (remains < 8) { in cfb_invert_area()
391 m |= BIT_MASK((8 - (j % 8) + remains)) in cfb_invert_area()
392 << ((j % 8) + remains); in cfb_invert_area()
400 j += 7 - (j % 8); in cfb_invert_area()
401 } else if (remains >= 8) { in cfb_invert_area()
406 uint8_t m = BIT_MASK(8 - remains) << (remains); in cfb_invert_area()
428 for (size_t i = 0; i < fb->x_res * fb->y_res / 8U; i++) { in cfb_invert()
579 fb->ppt = 8U; in cfb_framebuffer_init()