Searched refs:unrelaxed (Results 1 – 1 of 1) sorted by relevance
/AliOS-Things-master/components/SDL2/src/gfx/Test/ |
A D | LaplaceRelaxation.c | 136 double *unrelaxed, *relaxed, *currelax; in Draw() local 178 unrelaxed = (double *)malloc(relaxsize); in Draw() 180 if ((grayscale == NULL) || (map == NULL) || (unrelaxed == NULL) || (relaxed == NULL)) in Draw() 187 memset(unrelaxed, 0, relaxsize); in Draw() 248 memcpy(unrelaxed, relaxed, relaxsize); in Draw() 253 c1 = GetPotential(map, grayscale, unrelaxed, x, y-1, picture->w, picture->h); in Draw() 255 c2 = GetPotential(map, grayscale, unrelaxed, x, y+1, picture->w, picture->h); in Draw() 257 c3 = GetPotential(map, grayscale, unrelaxed, x-1, y, picture->w, picture->h); in Draw() 259 c4 = GetPotential(map, grayscale, unrelaxed, x+1, y, picture->w, picture->h); in Draw() 324 free(unrelaxed); in Draw()
|
Completed in 3 milliseconds