Lines Matching refs:dataWidth
69 int dataWidth, int dataHeight,
72 data += pad*dataWidth;
74 edges += (pad*dataWidth + pad);
350 int dataWidth = width + 2*pad;
354 SkAutoFree storage(sk_calloc_throw(dataWidth*dataHeight*(sizeof(DFData) + 1)));
356 unsigned char* edgePtr = (unsigned char*)storage.get() + dataWidth*dataHeight*sizeof(DFData);
360 dataWidth, dataHeight,
364 init_distances(dataPtr, edgePtr, dataWidth, dataHeight);
369 DFData* currData = dataPtr+dataWidth+1; // skip outer buffer
370 unsigned char* currEdge = edgePtr+dataWidth+1;
373 for (int i = 1; i < dataWidth-1; ++i) {
376 F1(currData, dataWidth);
385 for (int i = 1; i < dataWidth-1; ++i) {
388 F2(currData, dataWidth);
394 currData += dataWidth+1;
395 currEdge += dataWidth+1;
399 currData = dataPtr+dataWidth*(dataHeight-2) - 1; // skip outer buffer
400 currEdge = edgePtr+dataWidth*(dataHeight-2) - 1;
403 for (int i = 1; i < dataWidth-1; ++i) {
406 B1(currData, dataWidth);
415 for (int i = 1; i < dataWidth-1; ++i) {
418 B2(currData, dataWidth);
424 currData -= dataWidth-1;
425 currEdge -= dataWidth-1;
429 currData = dataPtr + dataWidth+1;
430 currEdge = edgePtr + dataWidth+1;
433 for (int i = 1; i < dataWidth-1; ++i) {