comparison Meerwald/dwt.c @ 8:f83ef905a63d

fixing many warnings increase capacity for coordinates in bruyn fix some uninit. variables
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Tue, 22 Apr 2008 13:36:05 +0200
parents acb6967ee76d
children 1906e659edd0
comparison
equal deleted inserted replaced
7:2b350281f8b0 8:f83ef905a63d
276 filterlength = j - i + 1; 276 filterlength = j - i + 1;
277 for (k = 0; k < filterlength; k++) 277 for (k = 0; k < filterlength; k++)
278 switch (which) { 278 switch (which) {
279 case FILTERG: 279 case FILTERG:
280 case FILTERGi: 280 case FILTERGi:
281 filter[k] = (double) (((i+1 & 0x01) * 2) - 1) * tf[i++]; 281 filter[k] = (double) ((((i+1) & 0x01) * 2) - 1) * tf[i++];
282 break; 282 break;
283 case FILTERH: 283 case FILTERH:
284 case FILTERHi: 284 case FILTERHi:
285 filter[k] = tf[j--]; 285 filter[k] = tf[j--];
286 break; 286 break;
291 while (k < 2 * (n + 1)) 291 while (k < 2 * (n + 1))
292 filter[k++] = 0.0; 292 filter[k++] = 0.0;
293 293
294 return filterlength; 294 return filterlength;
295 } 295 }
296
297
298 296
299 void dwt_param_filter(double alpha[], int param_len[]) { 297 void dwt_param_filter(double alpha[], int param_len[]) {
300 FilterGH filter; 298 FilterGH filter;
301 int i; 299 int i;
302 int param_len_sum = 0; 300 int param_len_sum = 0;

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.