diff options
Diffstat (limited to 'jni/filters/redEyeMath.c')
-rw-r--r-- | jni/filters/redEyeMath.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jni/filters/redEyeMath.c b/jni/filters/redEyeMath.c index 26f3f76a4..d0885631e 100644 --- a/jni/filters/redEyeMath.c +++ b/jni/filters/redEyeMath.c @@ -32,6 +32,7 @@ int isRed(unsigned char *src, int p) { void findPossible(unsigned char *src, unsigned char *mask, int iw, int ih, short *rect) { + (void)ih; int recX = rect[0], recY = rect[1], recW = rect[2], recH = rect[3]; int y, x; @@ -53,6 +54,7 @@ void findPossible(unsigned char *src, unsigned char *mask, int iw, int ih, void findReds(unsigned char *src, unsigned char *mask, int iw, int ih, short *rect) { + (void)ih; int recX = rect[0], recY = rect[1], recW = rect[2], recH = rect[3]; int y, x; @@ -70,6 +72,7 @@ void findReds(unsigned char *src, unsigned char *mask, int iw, int ih, void dialateMaskIfRed(unsigned char *src, int iw, int ih, unsigned char *mask, unsigned char *out, short *rect) { + (void)ih; int recX = rect[0], recY = rect[1], recW = rect[2], recH = rect[3]; int y, x; @@ -111,7 +114,6 @@ void filterRedEye(unsigned char *src, unsigned char *dest, int iw, int ih, short int recX = rect[0], recY = rect[1], recW = rect[2], recH = rect[3]; unsigned char *mask1 = (unsigned char *) malloc(recW * recH); unsigned char *mask2 = (unsigned char *)malloc(recW*recH); - int QUE_LEN = 100; int y, x, i; rect[0] = MAX(rect[0],0); |