Lines Matching refs:wbytes

49 static unsigned int width = 8, wbytes, height = 16;  variable
264 hash = fnv_32_buf(bytes, wbytes * height, FNV1_32_INIT) % FONTCVT_NHASH; in add_glyph()
266 if (memcmp(gl->g_data, bytes, wbytes * height) == 0) { in add_glyph()
274 gl->g_data = xmalloc(wbytes * height); in add_glyph()
275 memcpy(gl->g_data, bytes, wbytes * height); in add_glyph()
361 s = wbytes * 8 - width; in split_row()
363 memcpy(left, line, wbytes); in split_row()
364 *(left + wbytes - 1) &= 0xFF << s; in split_row()
369 for (i = 0; i < wbytes; i++) { in split_row()
370 t = *(line + wbytes + i - 1); in split_row()
372 t |= *(line + wbytes + i) >> s; in split_row()
375 *(right + wbytes - 1) &= 0xFF << s; in split_row()
394 wbytes = howmany(width, 8); in set_width()
465 bytes = xmalloc(wbytes * height); in parse_bdf()
466 bytes_r = xmalloc(wbytes * height); in parse_bdf()
467 line = xmalloc(wbytes * 2); in parse_bdf()
491 memset(bytes, 0, wbytes * height); in parse_bdf()
492 memset(bytes_r, 0, wbytes * height); in parse_bdf()
511 memset(line, 0, wbytes * 2); in parse_bdf()
520 rshift_row(line, wbytes * 2, bbox - fbbox); in parse_bdf()
521 rv = split_row(bytes + i * wbytes, in parse_bdf()
522 bytes_r + i * wbytes, line, dwidth); in parse_bdf()
567 bytes = xmalloc(wbytes * height); in parse_hex()
568 bytes_r = xmalloc(wbytes * height); in parse_hex()
569 line = xmalloc(wbytes * 2); in parse_hex()
574 if (chars_per_row < wbytes * 2) in parse_hex()
582 gwbytes = wbytes; in parse_hex()
592 rv = split_row(bytes + i * wbytes, in parse_hex()
593 bytes_r + i * wbytes, line, gwidth); in parse_hex()
655 if ((i % wbytes) == 0) { in write_glyph_source()
690 if (cb(gl->g_data, wbytes * height, 1, fp) != 1) in write_glyphs()
804 size_t uncompressed_size = wbytes * height * glyph_unique; in write_fnt_source()