mirror of https://github.com/GNOME/gimp.git
contrast-retinex: Delete redundant assignment and move variable to local block
This commit is contained in:
parent
db40cca290
commit
030695b8d0
|
@ -613,7 +613,6 @@ MSRCR (guchar *src, gint width, gint height, gint bytes, gboolean preview_mode)
|
|||
gint scale,row,col;
|
||||
gint i,j;
|
||||
gint size;
|
||||
gint pos;
|
||||
gint channel;
|
||||
guchar *psrc = NULL; /* backup pointer for src buffer */
|
||||
gfloat *dst = NULL; /* float buffer for algorithm */
|
||||
|
@ -683,9 +682,10 @@ MSRCR (guchar *src, gint width, gint height, gint bytes, gboolean preview_mode)
|
|||
The recursive filtering algorithm needs different coefficients according
|
||||
to the selected scale (~ = standard deviation of Gaussian).
|
||||
*/
|
||||
pos = 0;
|
||||
for (channel = 0; channel < 3; channel++)
|
||||
{
|
||||
gint pos;
|
||||
|
||||
for (i = 0, pos = channel; i < channelsize ; i++, pos += bytes)
|
||||
{
|
||||
/* 0-255 => 1-256 */
|
||||
|
|
Loading…
Reference in New Issue