Mercurial > hg > wm
comparison Fotopoulos/cast-hart.c @ 13:cbecc570129d
cleanup warnings
author | Peter Meerwald <pmeerw@cosy.sbg.ac.at> |
---|---|
date | Mon, 30 Jun 2008 15:43:16 +0200 |
parents | be303a3f5ea8 |
children |
comparison
equal
deleted
inserted
replaced
12:6f5fea21a43c | 13:cbecc570129d |
---|---|
17 #include <string.h> | 17 #include <string.h> |
18 #include <math.h> | 18 #include <math.h> |
19 #include <float.h> | 19 #include <float.h> |
20 #include <getopt.h> | 20 #include <getopt.h> |
21 #include "common.h" | 21 #include "common.h" |
22 #include "pgm.h" | |
22 | 23 |
23 int height, width; | 24 int height, width; |
24 | 25 |
25 void add_watermark(double **in, int N, int coeff_start, int wm_length, int wm_key, double wm_alpha) | 26 void add_watermark(double **in, int N, int coeff_start, int wm_length, int wm_key, double wm_alpha) |
26 { | 27 { |
27 int row, col, count; | 28 int row, col, count; |
28 long int elem, L, M, temp, seed; | 29 long int elem, L, M, seed; |
29 double a; | 30 double a; |
30 count = 0; | 31 count = 0; |
31 elem = 0; | 32 elem = 0; |
32 M = coeff_start; | 33 M = coeff_start; |
33 L = wm_length; | 34 L = wm_length; |
106 | 107 |
107 freematrix_d(image_i, height); | 108 freematrix_d(image_i, height); |
108 freematrix_d(image_d, height); | 109 freematrix_d(image_d, height); |
109 fclose(in); | 110 fclose(in); |
110 fclose(out); | 111 fclose(out); |
111 | 112 exit(EXIT_SUCCESS); |
112 } | 113 } |