diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-05-01 03:50:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-05-01 03:51:13 +0300 |
commit | c7041403d0e52a1ddffefb1db5713dbb8e6908c7 (patch) | |
tree | 3eccb37efa2c624af31b5f067e3d3b5242fc0eb4 /source/blender/compositor/operations/COM_DoubleEdgeMaskOperation.cpp | |
parent | 63f0e150edaeea26fbcc48f62597f4f5c71cc64a (diff) |
Cleanup: comments (long lines) in compositor
Diffstat (limited to 'source/blender/compositor/operations/COM_DoubleEdgeMaskOperation.cpp')
-rw-r--r-- | source/blender/compositor/operations/COM_DoubleEdgeMaskOperation.cpp | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/source/blender/compositor/operations/COM_DoubleEdgeMaskOperation.cpp b/source/blender/compositor/operations/COM_DoubleEdgeMaskOperation.cpp index cd1dae2c9b5..f872388e3c7 100644 --- a/source/blender/compositor/operations/COM_DoubleEdgeMaskOperation.cpp +++ b/source/blender/compositor/operations/COM_DoubleEdgeMaskOperation.cpp @@ -950,12 +950,16 @@ static void do_createEdgeLocationBuffer(unsigned int t, unsigned int rsl; // long used for finding fast 1.0/sqrt unsigned int gradientFillOffset; - unsigned int innerAccum = - 0; // for looping inner edge pixel indexes, represents current position from offset - unsigned int outerAccum = - 0; // for looping outer edge pixel indexes, represents current position from offset - unsigned int gradientAccum = - 0; // for looping gradient pixel indexes, represents current position from offset + + /* For looping inner edge pixel indexes, represents current position from offset. */ + unsigned int innerAccum = 0; + /* For looping outer edge pixel indexes, represents current position from offset. */ + unsigned int outerAccum = 0; + /* For looping gradient pixel indexes, represents current position from offset. */ + unsigned int gradientAccum = 0; + + /* */ + /* clang-format off */ /* * Here we compute the size of buffer needed to hold (row,col) coordinates * for each pixel previously determined to be either gradient, inner edge, @@ -1017,6 +1021,7 @@ static void do_createEdgeLocationBuffer(unsigned int t, * each iteration of the final gradient calculation than it is to deconstruct * a memory location into x,y pairs each round. */ + /* clang-format on */ gradientFillOffset = 0; // since there are likely "more" of these, put it first. :) *innerEdgeOffset = gradientFillOffset + gsz; // set start of inner edge indexes @@ -1025,7 +1030,7 @@ static void do_createEdgeLocationBuffer(unsigned int t, gradientAccum = gradientFillOffset; // each accumulator variable starts at its respective innerAccum = *innerEdgeOffset; // section's offset so when we start filling, each outerAccum = *outerEdgeOffset; // section fills up it's allocated space in gbuf - //uses dmin=row, rsl=col + // uses dmin=row, rsl=col for (x = 0, dmin = 0; x < t; x += rw, dmin++) { for (rsl = 0; rsl < rw; rsl++) { a = x + rsl; @@ -1187,7 +1192,7 @@ static void do_fillGradientBuffer(unsigned int rw, * Pixel Index = Pixel Column + ( Pixel Row * Row Width ) */ res[gbuf[gradientFillOffset + 1] + (gbuf[gradientFillOffset] * rw)] = - (idist / (idist + odist)); //set intensity + (idist / (idist + odist)); // set intensity } } |