Lines Matching refs:spc

12257 nk_tt_PackBegin(struct nk_tt_pack_context *spc, unsigned char *pixels,
12272 spc->width = pw;
12273 spc->height = ph;
12274 spc->pixels = pixels;
12275 spc->pack_info = context;
12276 spc->nodes = nodes;
12277 spc->padding = padding;
12278 spc->stride_in_bytes = (stride_in_bytes != 0) ? stride_in_bytes : pw;
12279 spc->h_oversample = 1;
12280 spc->v_oversample = 1;
12288 nk_tt_PackEnd(struct nk_tt_pack_context *spc, struct nk_allocator *alloc)
12290 alloc->free(alloc->userdata, spc->nodes);
12291 alloc->free(alloc->userdata, spc->pack_info);
12294 nk_tt_PackSetOversampling(struct nk_tt_pack_context *spc,
12300 spc->h_oversample = h_oversample;
12302 spc->v_oversample = v_oversample;
12443 nk_tt_PackFontRangesGatherRects(struct nk_tt_pack_context *spc,
12455 ranges[i].h_oversample = (unsigned char) spc->h_oversample;
12456 ranges[i].v_oversample = (unsigned char) spc->v_oversample;
12464 nk_tt_GetGlyphBitmapBoxSubpixel(info,glyph, scale * (float)spc->h_oversample,
12465 scale * (float)spc->v_oversample, 0,0, &x0,&y0,&x1,&y1);
12466 rects[k].w = (nk_rp_coord) (x1-x0 + spc->padding + (int)spc->h_oversample-1);
12467 rects[k].h = (nk_rp_coord) (y1-y0 + spc->padding + (int)spc->v_oversample-1);
12474 nk_tt_PackFontRangesRenderIntoRects(struct nk_tt_pack_context *spc,
12480 int old_h_over = (int)spc->h_oversample;
12481 int old_v_over = (int)spc->v_oversample;
12492 spc->h_oversample = ranges[i].h_oversample;
12493 spc->v_oversample = ranges[i].v_oversample;
12495 recip_h = 1.0f / (float)spc->h_oversample;
12496 recip_v = 1.0f / (float)spc->v_oversample;
12498 sub_x = nk_tt__oversample_shift((int)spc->h_oversample);
12499 sub_y = nk_tt__oversample_shift((int)spc->v_oversample);
12512 nk_rp_coord pad = (nk_rp_coord) spc->padding;
12521 nk_tt_GetGlyphBitmapBox(info, glyph, scale * (float)spc->h_oversample,
12522 (scale * (float)spc->v_oversample), &x0,&y0,&x1,&y1);
12523 nk_tt_MakeGlyphBitmapSubpixel(info, spc->pixels + r->x + r->y*spc->stride_in_bytes,
12524 (int)(r->w - spc->h_oversample+1), (int)(r->h - spc->v_oversample+1),
12525 spc->stride_in_bytes, scale * (float)spc->h_oversample,
12526 scale * (float)spc->v_oversample, 0,0, glyph, alloc);
12528 if (spc->h_oversample > 1)
12529 nk_tt__h_prefilter(spc->pixels + r->x + r->y*spc->stride_in_bytes,
12530 r->w, r->h, spc->stride_in_bytes, (int)spc->h_oversample);
12532 if (spc->v_oversample > 1)
12533 nk_tt__v_prefilter(spc->pixels + r->x + r->y*spc->stride_in_bytes,
12534 r->w, r->h, spc->stride_in_bytes, (int)spc->v_oversample);
12552 spc->h_oversample = (unsigned int)old_h_over;
12553 spc->v_oversample = (unsigned int)old_v_over;
12601 struct nk_tt_pack_context spc;
12763 nk_tt_PackBegin(&baker->spc, 0, (int)*width, (int)max_height, 0, 1, alloc);
12777 nk_tt_PackSetOversampling(&baker->spc, 1, 1);
12778 nk_rp_pack_rects((struct nk_rp_context*)baker->spc.pack_info, &custom_space, 1);
12820 nk_tt_PackSetOversampling(&baker->spc, cfg->oversample_h, cfg->oversample_v);
12821 n = nk_tt_PackFontRangesGatherRects(&baker->spc, &tmp->info,
12823 nk_rp_pack_rects((struct nk_rp_context*)baker->spc.pack_info, tmp->rects, (int)n);
12863 baker->spc.pixels = (unsigned char*)image_memory;
12864 baker->spc.height = (int)height;
12870 nk_tt_PackSetOversampling(&baker->spc, cfg->oversample_h, cfg->oversample_v);
12871 nk_tt_PackFontRangesRenderIntoRects(&baker->spc, &tmp->info, tmp->ranges,
12874 } nk_tt_PackEnd(&baker->spc, &baker->alloc);