[gimp/metadata-browser] contrast-retinex: Delete redundant assignment and move variable to local block
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] contrast-retinex: Delete redundant assignment and move variable to local block
- Date: Fri, 2 Dec 2011 02:10:31 +0000 (UTC)
commit 26304ac41b4e093400c721e5669ee58b0cc68858
Author: Mukund Sivaraman <muks banu com>
Date: Thu Oct 6 19:39:59 2011 +0530
contrast-retinex: Delete redundant assignment and move variable to local block
plug-ins/common/contrast-retinex.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/common/contrast-retinex.c b/plug-ins/common/contrast-retinex.c
index 52d20fa..7cc563f 100644
--- a/plug-ins/common/contrast-retinex.c
+++ b/plug-ins/common/contrast-retinex.c
@@ -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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]