Lines Matching refs:wbytes
55 static unsigned int width = 8, wbytes, height = 16;
180 hash = fnv_32_buf(bytes, wbytes * height, FNV1_32_INIT) % FONTCVT_NHASH;
182 if (memcmp(gl->g_data, bytes, wbytes * height) == 0) {
190 gl->g_data = xmalloc(wbytes * height);
191 memcpy(gl->g_data, bytes, wbytes * height);
251 s = wbytes * 8 - width;
253 memcpy(left, line, wbytes);
254 *(left + wbytes - 1) &= 0xFF << s;
259 for (i = 0; i < wbytes; i++) {
260 t = *(line + wbytes + i - 1);
262 t |= *(line + wbytes + i) >> s;
265 *(right + wbytes - 1) &= 0xFF << s;
284 wbytes = howmany(width, 8);
355 bytes = xmalloc(wbytes * height);
356 bytes_r = xmalloc(wbytes * height);
357 line = xmalloc(wbytes * 2);
381 memset(bytes, 0, wbytes * height);
382 memset(bytes_r, 0, wbytes * height);
401 memset(line, 0, wbytes * 2);
410 rshift_row(line, wbytes * 2, bbox - fbbox);
411 rv = split_row(bytes + i * wbytes,
412 bytes_r + i * wbytes, line, dwidth);
455 bytes = xmalloc(wbytes * height);
456 bytes_r = xmalloc(wbytes * height);
457 line = xmalloc(wbytes * 2);
462 if (chars_per_row < wbytes * 2)
470 gwbytes = wbytes;
480 rv = split_row(bytes + i * wbytes,
481 bytes_r + i * wbytes, line, gwidth);
540 if (fwrite(gl->g_data, wbytes * height, 1, fp) != 1)