diff options
| author | Antonin Descampe <antonin@gmail.com> | 2005-11-01 10:15:34 +0000 |
|---|---|---|
| committer | Antonin Descampe <antonin@gmail.com> | 2005-11-01 10:15:34 +0000 |
| commit | 8f3bd54c3dd0403aae45abccdcc850eab5faeb6a (patch) | |
| tree | 7a8c3aa95f4990d26a65eff5f515fd22deb24577 /libopenjpeg/dwt.c | |
| parent | 18a9bcb882b9af492714ff122a6b403961a2dfb3 (diff) | |
Changes proposed by Mathieu Malaterre from the GDCM project... Thanks a lot Mathieu
- '//' replaced by '/* */'
- inclusion of int.h in int.c
- inclusion of j2k.h in int.h in order to export symbols
- adding (void) var when a variable is declared but not used
- some explicit cast
- CLOCKS_PER_SEC is declared as float in bcc55, so there is a need to cast it to int for the modulo operation
- some variables changed from float -> double
Diffstat (limited to 'libopenjpeg/dwt.c')
| -rw-r--r-- | libopenjpeg/dwt.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/libopenjpeg/dwt.c b/libopenjpeg/dwt.c index 895cd391..66ee3827 100644 --- a/libopenjpeg/dwt.c +++ b/libopenjpeg/dwt.c @@ -55,8 +55,6 @@ #include "fix.h" #include "tcd.h" #include <stdlib.h> -//#include <stdio.h> -//#include <math.h> #define S(i) a[(i)*2] #define D(i) a[(1+(i)*2)] @@ -110,8 +108,8 @@ void dwt_deinterleave_v(int *a, int *b, int dn, int sn, int x, int cas) { /* </summary> */ void dwt_interleave_h(int *a, int *b, int dn, int sn, int cas) { int i; -// for (i=0; i<sn; i++) b[2*i+cas]=a[i]; -// for (i=0; i<dn; i++) b[2*i+1-cas]=a[(sn+i)]; +/* for (i=0; i<sn; i++) b[2*i+cas]=a[i];*/ +/* for (i=0; i<dn; i++) b[2*i+1-cas]=a[(sn+i)];*/ int* ai; int* bi; ai=a; @@ -131,8 +129,8 @@ void dwt_interleave_h(int *a, int *b, int dn, int sn, int cas) { /* </summary> */ void dwt_interleave_v(int *a, int *b, int dn, int sn, int x, int cas) { int i; -// for (i=0; i<sn; i++) b[2*i+cas]=a[i*x]; -// for (i=0; i<dn; i++) b[2*i+1-cas]=a[(sn+i)*x]; +/* for (i=0; i<sn; i++) b[2*i+cas]=a[i*x];*/ +/* for (i=0; i<dn; i++) b[2*i+1-cas]=a[(sn+i)*x];*/ int* ai; int* bi; ai=a; @@ -529,6 +527,7 @@ void dwt_decode_real(tcd_tilecomp_t * tilec, int stop) /* </summary> */ int dwt_getgain_real(int orient) { + (void)orient; return 0; } |
