Lines Matching defs:pixels
10969 unsigned char *pixels;
10995 unsigned char *pixels;
11571 nk_tt_ScaleForMappingEmToPixels(const struct nk_tt_fontinfo *info, float pixels)
11574 return pixels / (float)unitsPerEm;
11593 /* move to integral bboxes (treating pixels as little squares, what pixels get touched)? */
11762 /* covers 2+ pixels */
11934 result->pixels[j*result->stride + i] = (unsigned char) m;
12242 gbm.pixels = output;
12257 nk_tt_PackBegin(struct nk_tt_pack_context *spc, unsigned char *pixels,
12274 spc->pixels = pixels;
12283 if (pixels)
12284 NK_MEMSET(pixels, 0, (nk_size)(pw*ph)); /* background of 0 around pixels */
12305 nk_tt__h_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes,
12324 total += (unsigned int)(pixels[i] - buffer[i & NK_TT__OVER_MASK]);
12325 buffer[(i+kernel_width) & NK_TT__OVER_MASK] = pixels[i];
12326 pixels[i] = (unsigned char) (total / 2);
12331 total += (unsigned int)(pixels[i] - buffer[i & NK_TT__OVER_MASK]);
12332 buffer[(i+kernel_width) & NK_TT__OVER_MASK] = pixels[i];
12333 pixels[i] = (unsigned char) (total / 3);
12338 total += (unsigned int)pixels[i] - buffer[i & NK_TT__OVER_MASK];
12339 buffer[(i+kernel_width) & NK_TT__OVER_MASK] = pixels[i];
12340 pixels[i] = (unsigned char) (total / 4);
12345 total += (unsigned int)(pixels[i] - buffer[i & NK_TT__OVER_MASK]);
12346 buffer[(i+kernel_width) & NK_TT__OVER_MASK] = pixels[i];
12347 pixels[i] = (unsigned char) (total / 5);
12352 total += (unsigned int)(pixels[i] - buffer[i & NK_TT__OVER_MASK]);
12353 buffer[(i+kernel_width) & NK_TT__OVER_MASK] = pixels[i];
12354 pixels[i] = (unsigned char) (total / (unsigned int)kernel_width);
12360 NK_ASSERT(pixels[i] == 0);
12362 pixels[i] = (unsigned char) (total / (unsigned int)kernel_width);
12364 pixels += stride_in_bytes;
12368 nk_tt__v_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes,
12387 total += (unsigned int)(pixels[i*stride_in_bytes] - buffer[i & NK_TT__OVER_MASK]);
12388 buffer[(i+kernel_width) & NK_TT__OVER_MASK] = pixels[i*stride_in_bytes];
12389 pixels[i*stride_in_bytes] = (unsigned char) (total / 2);
12394 total += (unsigned int)(pixels[i*stride_in_bytes] - buffer[i & NK_TT__OVER_MASK]);
12395 buffer[(i+kernel_width) & NK_TT__OVER_MASK] = pixels[i*stride_in_bytes];
12396 pixels[i*stride_in_bytes] = (unsigned char) (total / 3);
12401 total += (unsigned int)(pixels[i*stride_in_bytes] - buffer[i & NK_TT__OVER_MASK]);
12402 buffer[(i+kernel_width) & NK_TT__OVER_MASK] = pixels[i*stride_in_bytes];
12403 pixels[i*stride_in_bytes] = (unsigned char) (total / 4);
12408 total += (unsigned int)(pixels[i*stride_in_bytes] - buffer[i & NK_TT__OVER_MASK]);
12409 buffer[(i+kernel_width) & NK_TT__OVER_MASK] = pixels[i*stride_in_bytes];
12410 pixels[i*stride_in_bytes] = (unsigned char) (total / 5);
12415 total += (unsigned int)(pixels[i*stride_in_bytes] - buffer[i & NK_TT__OVER_MASK]);
12416 buffer[(i+kernel_width) & NK_TT__OVER_MASK] = pixels[i*stride_in_bytes];
12417 pixels[i*stride_in_bytes] = (unsigned char) (total / (unsigned int)kernel_width);
12423 NK_ASSERT(pixels[i*stride_in_bytes] == 0);
12425 pixels[i*stride_in_bytes] = (unsigned char) (total / (unsigned int)kernel_width);
12427 pixels += 1;
12437 /* which shifts phase by (oversample - 1)/2 pixels in */
12523 nk_tt_MakeGlyphBitmapSubpixel(info, spc->pixels + r->x + r->y*spc->stride_in_bytes,
12529 nk_tt__h_prefilter(spc->pixels + r->x + r->y*spc->stride_in_bytes,
12533 nk_tt__v_prefilter(spc->pixels + r->x + r->y*spc->stride_in_bytes,
12863 baker->spc.pixels = (unsigned char*)image_memory;
12958 nk_byte *pixels;
12971 pixels = (nk_byte*)img_memory;
12976 pixels[off0] = (texture_data_mask[n] == white) ? 0xFF : 0x00;
12977 pixels[off1] = (texture_data_mask[n] == black) ? 0xFF : 0x00;
23549 float delta, pixels;
23550 pixels = in->mouse.delta.x;
23551 delta = pixels * inc_per_pixel;