diff options
| author | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2010-03-24 11:20:45 +0000 |
|---|---|---|
| committer | Francois-Olivier Devaux <fodevaux@users.noreply.github.com> | 2010-03-24 11:20:45 +0000 |
| commit | 54214fb65fdc7af6b505ed0b924ea5d44d861ebf (patch) | |
| tree | a069760c32f43d0a506963eb3f8b5b2e08e8aace /codec/convert.c | |
| parent | 3ecae15da2f4f42531d007c65997248c616e40f3 (diff) | |
Code improvements using 'g++-4.4.0' to trace the code (v1.4). Thanks to Winfried for this patch.
Diffstat (limited to 'codec/convert.c')
| -rw-r--r-- | codec/convert.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/codec/convert.c b/codec/convert.c index a9ffb0da..182477b3 100644 --- a/codec/convert.c +++ b/codec/convert.c @@ -1463,7 +1463,7 @@ int imagetotif(opj_image_t * image, const char *outfile) { unsigned char *dat8; int i, ssize; ssize = TIFFStripSize(tif); - dat8 = buf; + dat8 = (unsigned char*)buf; if (image->comps[0].prec == 8){ for (i=0; i<ssize-2; i+=3) { // 8 bits per pixel int r = 0,g = 0,b = 0; @@ -1658,7 +1658,7 @@ int imagetotif(opj_image_t * image, const char *outfile) { for (strip = 0; strip < TIFFNumberOfStrips(tif); strip++) { unsigned char *dat8; int i; - dat8 = buf; + dat8 = (unsigned char*)buf; if (image->comps[0].prec == 8){ for (i=0; i<TIFFStripSize(tif); i+=1) { // 8 bits per pixel if(index < imgsize){ @@ -1799,7 +1799,7 @@ opj_image_t* tiftoimage(const char *filename, opj_cparameters_t *parameters) unsigned char *dat8; int i, ssize; ssize = TIFFReadEncodedStrip(tif, strip, buf, strip_size); - dat8 = buf; + dat8 = (unsigned char*)buf; if (Info.tiBps==12){ for (i=0; i<ssize; i+=9) { /*12 bits per pixel*/ @@ -1895,7 +1895,7 @@ opj_image_t* tiftoimage(const char *filename, opj_cparameters_t *parameters) unsigned char *dat8; int i, ssize; ssize = TIFFReadEncodedStrip(tif, strip, buf, strip_size); - dat8 = buf; + dat8 = (unsigned char*)buf; if (Info.tiBps==12){ for (i=0; i<ssize; i+=3) { /* 12 bits per pixel*/ |
