Lines Matching refs:pixels

470                                 unsigned char *pixels, int pw, int ph,  // bitmap to be filled in
521 STBTT_DEF int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int width, int heigh…
613 unsigned char *pixels; member
671 STBTT_DEF float stbtt_ScaleForPixelHeight(const stbtt_fontinfo *info, float pixels);
679 STBTT_DEF float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels);
810 unsigned char *pixels; member
1546 STBTT_DEF float stbtt_ScaleForMappingEmToPixels(const stbtt_fontinfo *info, float pixels) in stbtt_ScaleForMappingEmToPixels() argument
1549 return pixels / unitsPerEm; in stbtt_ScaleForMappingEmToPixels()
1851 STBTT_memcpy(result->pixels + j * result->stride, scanline, result->w); in stbtt__rasterize_sorted_edges()
2131 result->pixels[j*result->stride + i] = (unsigned char) m; in stbtt__rasterize_sorted_edges()
2441 gbm.pixels = NULL; // in case we error in stbtt_GetGlyphBitmapSubpixel()
2449 gbm.pixels = (unsigned char *) STBTT_malloc(gbm.w * gbm.h, info->userdata); in stbtt_GetGlyphBitmapSubpixel()
2450 if (gbm.pixels) { in stbtt_GetGlyphBitmapSubpixel()
2457 return gbm.pixels; in stbtt_GetGlyphBitmapSubpixel()
2473 gbm.pixels = output; in stbtt_MakeGlyphBitmapSubpixel()
2517 unsigned char *pixels, int pw, int ph, // bitmap to be filled in in stbtt_BakeFontBitmap() argument
2526 STBTT_memset(pixels, 0, pw*ph); // background of 0 around pixels in stbtt_BakeFontBitmap()
2545 stbtt_MakeGlyphBitmap(&f, pixels+x+y*pw, gw,gh,pw, scale,scale, g); in stbtt_BakeFontBitmap()
2663 STBTT_DEF int stbtt_PackBegin(stbtt_pack_context *spc, unsigned char *pixels, int pw, int ph, int s… in stbtt_PackBegin() argument
2678 spc->pixels = pixels; in stbtt_PackBegin()
2688 if (pixels) in stbtt_PackBegin()
2689 STBTT_memset(pixels, 0, pw*ph); // background of 0 around pixels in stbtt_PackBegin()
2712 static void stbtt__h_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned i… in stbtt__h_prefilter() argument
2728 total += pixels[i] - buffer[i & STBTT__OVER_MASK]; in stbtt__h_prefilter()
2729 buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; in stbtt__h_prefilter()
2730 pixels[i] = (unsigned char) (total / 2); in stbtt__h_prefilter()
2735 total += pixels[i] - buffer[i & STBTT__OVER_MASK]; in stbtt__h_prefilter()
2736 buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; in stbtt__h_prefilter()
2737 pixels[i] = (unsigned char) (total / 3); in stbtt__h_prefilter()
2742 total += pixels[i] - buffer[i & STBTT__OVER_MASK]; in stbtt__h_prefilter()
2743 buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; in stbtt__h_prefilter()
2744 pixels[i] = (unsigned char) (total / 4); in stbtt__h_prefilter()
2749 total += pixels[i] - buffer[i & STBTT__OVER_MASK]; in stbtt__h_prefilter()
2750 buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; in stbtt__h_prefilter()
2751 pixels[i] = (unsigned char) (total / 5); in stbtt__h_prefilter()
2756 total += pixels[i] - buffer[i & STBTT__OVER_MASK]; in stbtt__h_prefilter()
2757 buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i]; in stbtt__h_prefilter()
2758 pixels[i] = (unsigned char) (total / kernel_width); in stbtt__h_prefilter()
2764 STBTT_assert(pixels[i] == 0); in stbtt__h_prefilter()
2766 pixels[i] = (unsigned char) (total / kernel_width); in stbtt__h_prefilter()
2769 pixels += stride_in_bytes; in stbtt__h_prefilter()
2773 static void stbtt__v_prefilter(unsigned char *pixels, int w, int h, int stride_in_bytes, unsigned i… in stbtt__v_prefilter() argument
2789 total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; in stbtt__v_prefilter()
2790 buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; in stbtt__v_prefilter()
2791 pixels[i*stride_in_bytes] = (unsigned char) (total / 2); in stbtt__v_prefilter()
2796 total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; in stbtt__v_prefilter()
2797 buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; in stbtt__v_prefilter()
2798 pixels[i*stride_in_bytes] = (unsigned char) (total / 3); in stbtt__v_prefilter()
2803 total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; in stbtt__v_prefilter()
2804 buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; in stbtt__v_prefilter()
2805 pixels[i*stride_in_bytes] = (unsigned char) (total / 4); in stbtt__v_prefilter()
2810 total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; in stbtt__v_prefilter()
2811 buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; in stbtt__v_prefilter()
2812 pixels[i*stride_in_bytes] = (unsigned char) (total / 5); in stbtt__v_prefilter()
2817 total += pixels[i*stride_in_bytes] - buffer[i & STBTT__OVER_MASK]; in stbtt__v_prefilter()
2818 buffer[(i+kernel_width) & STBTT__OVER_MASK] = pixels[i*stride_in_bytes]; in stbtt__v_prefilter()
2819 pixels[i*stride_in_bytes] = (unsigned char) (total / kernel_width); in stbtt__v_prefilter()
2825 STBTT_assert(pixels[i*stride_in_bytes] == 0); in stbtt__v_prefilter()
2827 pixels[i*stride_in_bytes] = (unsigned char) (total / kernel_width); in stbtt__v_prefilter()
2830 pixels += 1; in stbtt__v_prefilter()
2915 spc->pixels + r->x + r->y*spc->stride_in_bytes, in stbtt_PackFontRangesRenderIntoRects()
2925 stbtt__h_prefilter(spc->pixels + r->x + r->y*spc->stride_in_bytes, in stbtt_PackFontRangesRenderIntoRects()
2930 stbtt__v_prefilter(spc->pixels + r->x + r->y*spc->stride_in_bytes, in stbtt_PackFontRangesRenderIntoRects()