Lines Matching refs:dataWidth
78 int dataWidth, int dataHeight, in init_glyph_data() argument
81 data += pad*dataWidth; in init_glyph_data()
83 edges += (pad*dataWidth + pad); in init_glyph_data()
360 int dataWidth = width + 2*pad; in generate_distance_field_from_image() local
364 UniqueVoidPtr storage(sk_calloc_throw(dataWidth*dataHeight*(sizeof(DFData) + 1))); in generate_distance_field_from_image()
366 unsigned char* edgePtr = (unsigned char*)storage.get() + dataWidth*dataHeight*sizeof(DFData); in generate_distance_field_from_image()
370 dataWidth, dataHeight, in generate_distance_field_from_image()
374 init_distances(dataPtr, edgePtr, dataWidth, dataHeight); in generate_distance_field_from_image()
379 DFData* currData = dataPtr+dataWidth+1; // skip outer buffer in generate_distance_field_from_image()
380 unsigned char* currEdge = edgePtr+dataWidth+1; in generate_distance_field_from_image()
383 for (int i = 1; i < dataWidth-1; ++i) { in generate_distance_field_from_image()
386 F1(currData, dataWidth); in generate_distance_field_from_image()
395 for (int i = 1; i < dataWidth-1; ++i) { in generate_distance_field_from_image()
398 F2(currData, dataWidth); in generate_distance_field_from_image()
404 currData += dataWidth+1; in generate_distance_field_from_image()
405 currEdge += dataWidth+1; in generate_distance_field_from_image()
409 currData = dataPtr+dataWidth*(dataHeight-2) - 1; // skip outer buffer in generate_distance_field_from_image()
410 currEdge = edgePtr+dataWidth*(dataHeight-2) - 1; in generate_distance_field_from_image()
413 for (int i = 1; i < dataWidth-1; ++i) { in generate_distance_field_from_image()
416 B1(currData, dataWidth); in generate_distance_field_from_image()
425 for (int i = 1; i < dataWidth-1; ++i) { in generate_distance_field_from_image()
428 B2(currData, dataWidth); in generate_distance_field_from_image()
434 currData -= dataWidth-1; in generate_distance_field_from_image()
435 currEdge -= dataWidth-1; in generate_distance_field_from_image()
439 currData = dataPtr + dataWidth+1; in generate_distance_field_from_image()
440 currEdge = edgePtr + dataWidth+1; in generate_distance_field_from_image()
443 for (int i = 1; i < dataWidth-1; ++i) { in generate_distance_field_from_image()