X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Fimages%2Fdistance-field.cpp;h=63a5150b9c0364e6ce6319cd5dbe48f18b73e630;hb=refs%2Ftags%2Fsubmit%2Ftizen%2F20180716.055223;hp=6e4346dbb7c9a6e8bb4c8c55ebb41f01bf59a82c;hpb=0e7af4e7ad32c026530d0576e1eb0e4929ea4825;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/devel-api/images/distance-field.cpp b/dali/devel-api/images/distance-field.cpp old mode 100644 new mode 100755 index 6e4346d..63a5150 --- a/dali/devel-api/images/distance-field.cpp +++ b/dali/devel-api/images/distance-field.cpp @@ -84,8 +84,9 @@ const float MAX_DISTANCE( 1e20 ); */ void DistanceTransform( float *source, float* dest, unsigned int length ) { - int parabolas[length]; // Locations of parabolas in lower envelope - float edge[length + 1]; // Locations of boundaries between parabolas + std::vector parabolas(length); // Locations of parabolas in lower envelope + std::vector edge(length + 1); // Locations of boundaries between parabolas + int rightmost(0); // Index of rightmost parabola in lower envelope parabolas[0] = 0;