[1.5] Fix remainings warnings on 1.5 branch
This commit is contained in:
parent
af2be2d456
commit
a05a9aa4ed
|
@ -830,7 +830,7 @@ opj_image_t* bmptoimage(const char *filename, opj_cparameters_t *parameters)
|
||||||
int *green = image->comps[1].data;
|
int *green = image->comps[1].data;
|
||||||
int *blue = image->comps[2].data;
|
int *blue = image->comps[2].data;
|
||||||
unsigned int offset = File_h.bfOffBits;
|
unsigned int offset = File_h.bfOffBits;
|
||||||
unsigned int line;
|
int line;
|
||||||
|
|
||||||
/* set image data */
|
/* set image data */
|
||||||
for(line = 0; line < h; ++line)
|
for(line = 0; line < h; ++line)
|
||||||
|
|
|
@ -63,8 +63,8 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
opj_cparameters_t parameters;
|
opj_cparameters_t parameters;
|
||||||
|
|
||||||
int subsampling_dx = parameters.subsampling_dx;
|
int subsampling_dx;
|
||||||
int subsampling_dy = parameters.subsampling_dy;
|
int subsampling_dy;
|
||||||
const char outputfile[] = "testempty2.j2k";
|
const char outputfile[] = "testempty2.j2k";
|
||||||
|
|
||||||
opj_image_cmptparm_t cmptparm;
|
opj_image_cmptparm_t cmptparm;
|
||||||
|
@ -81,6 +81,8 @@ int main(int argc, char *argv[])
|
||||||
opj_set_default_encoder_parameters(¶meters);
|
opj_set_default_encoder_parameters(¶meters);
|
||||||
parameters.cod_format = J2K_CFMT;
|
parameters.cod_format = J2K_CFMT;
|
||||||
puts(v);
|
puts(v);
|
||||||
|
subsampling_dx = parameters.subsampling_dx;
|
||||||
|
subsampling_dy = parameters.subsampling_dy;
|
||||||
cmptparm.prec = 8;
|
cmptparm.prec = 8;
|
||||||
cmptparm.bpp = 8;
|
cmptparm.bpp = 8;
|
||||||
cmptparm.sgnd = 0;
|
cmptparm.sgnd = 0;
|
||||||
|
|
Loading…
Reference in New Issue