diff options
| author | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2006-07-21 21:07:18 +0000 |
|---|---|---|
| committer | Mathieu Malaterre <mathieu.malaterre@gmail.com> | 2006-07-21 21:07:18 +0000 |
| commit | abe8e93c21b42a738a5035869d9550284a9eb09e (patch) | |
| tree | b0c961cdeaea7f4b65e743ad05912625d7a0ac3d /codec/convert.c | |
| parent | f222743e195963bd2db85627405f0f50102fe5b6 (diff) | |
ENH: Marking const char * what should be const char *. TODO need to fix code for imagetopgx.
Diffstat (limited to 'codec/convert.c')
| -rw-r--r-- | codec/convert.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/codec/convert.c b/codec/convert.c index d72f4377..94c2e6a4 100644 --- a/codec/convert.c +++ b/codec/convert.c @@ -97,7 +97,7 @@ typedef struct { DWORD biClrImportant; /* Number of important color (0: ALL) */ } BITMAPINFOHEADER_t; -opj_image_t* bmptoimage(char *filename, opj_cparameters_t *parameters) { +opj_image_t* bmptoimage(const char *filename, opj_cparameters_t *parameters) { int subsampling_dx = parameters->subsampling_dx; int subsampling_dy = parameters->subsampling_dy; @@ -460,7 +460,7 @@ opj_image_t* bmptoimage(char *filename, opj_cparameters_t *parameters) { return image; } -int imagetobmp(opj_image_t * image, char *outfile) { +int imagetobmp(opj_image_t * image, const char *outfile) { int w, wr, h, hr; int i, pad; FILE *fdest = NULL; @@ -656,7 +656,7 @@ unsigned int readuint(FILE * f, int bigendian) return (c4 << 24) + (c3 << 16) + (c2 << 8) + c1; } -opj_image_t* pgxtoimage(char *filename, opj_cparameters_t *parameters) { +opj_image_t* pgxtoimage(const char *filename, opj_cparameters_t *parameters) { FILE *f = NULL; int w, h, prec; int i, numcomps, max; @@ -833,7 +833,7 @@ PNM IMAGE FORMAT <<-- <<-- <<-- <<-- */ -opj_image_t* pnmtoimage(char *filename, opj_cparameters_t *parameters) { +opj_image_t* pnmtoimage(const char *filename, opj_cparameters_t *parameters) { int subsampling_dx = parameters->subsampling_dx; int subsampling_dy = parameters->subsampling_dy; @@ -932,13 +932,13 @@ opj_image_t* pnmtoimage(char *filename, opj_cparameters_t *parameters) { return image; } -int imagetopnm(opj_image_t * image, char *outfile) { +int imagetopnm(opj_image_t * image, const char *outfile) { int w, wr, wrr, h, hr, hrr, max; int i, compno; int adjust; FILE *fdest = NULL; char S2; - char *tmp = outfile; + const char *tmp = outfile; while (*tmp) { tmp++; |
