fixed minor bugs which were triggering warnings at compilation (different signedness, wrong pointer type, etc)
This commit is contained in:
parent
9dbbc6ca13
commit
bfd3fe8a4a
|
@ -5,6 +5,9 @@ What's New for OpenJPEG
|
||||||
! : changed
|
! : changed
|
||||||
+ : added
|
+ : added
|
||||||
|
|
||||||
|
September 10, 2009
|
||||||
|
* [antonin] fixed minor bugs which were triggering warnings at compilation (different signedness, wrong pointer type, etc)
|
||||||
|
|
||||||
September 8, 2009
|
September 8, 2009
|
||||||
* [antonin] openjpeg.c : fixed initialization of parameters->cp_disto_alloc/fixed_quality/fixed_alloc/tcp_numlayers because they were preventing to use the -q and -f options.
|
* [antonin] openjpeg.c : fixed initialization of parameters->cp_disto_alloc/fixed_quality/fixed_alloc/tcp_numlayers because they were preventing to use the -q and -f options.
|
||||||
|
|
||||||
|
|
|
@ -99,7 +99,7 @@ typedef struct tga_header
|
||||||
} tga_header;
|
} tga_header;
|
||||||
#pragma pack(pop) // Return to normal structure packing alignment.
|
#pragma pack(pop) // Return to normal structure packing alignment.
|
||||||
|
|
||||||
int tga_readheader(FILE *fp, int *bits_per_pixel, int *width, int *height, int *flip_image)
|
int tga_readheader(FILE *fp, uint32 *bits_per_pixel, uint32 *width, uint32 *height, int *flip_image)
|
||||||
{
|
{
|
||||||
int palette_size;
|
int palette_size;
|
||||||
tga_header tga ;
|
tga_header tga ;
|
||||||
|
|
|
@ -79,7 +79,7 @@ int write_index_file(opj_codestream_info_t *cstr_info, char *index) {
|
||||||
fprintf(stream, "%d %d\n", cstr_info->tw, cstr_info->th);
|
fprintf(stream, "%d %d\n", cstr_info->tw, cstr_info->th);
|
||||||
fprintf(stream, "%d\n", cstr_info->numcomps);
|
fprintf(stream, "%d\n", cstr_info->numcomps);
|
||||||
fprintf(stream, "%d\n", cstr_info->numlayers);
|
fprintf(stream, "%d\n", cstr_info->numlayers);
|
||||||
fprintf(stream, "%d\n", cstr_info->numdecompos);
|
fprintf(stream, "%d\n", cstr_info->numdecompos[0]); /* based on component 0 */
|
||||||
|
|
||||||
for (resno = cstr_info->numdecompos[0]; resno >= 0; resno--) {
|
for (resno = cstr_info->numdecompos[0]; resno >= 0; resno--) {
|
||||||
fprintf(stream, "[%d,%d] ",
|
fprintf(stream, "[%d,%d] ",
|
||||||
|
|
|
@ -260,16 +260,16 @@ int main(){
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("static short lut_nmsedec_sig[1 << T1_NMSEDEC_BITS] = {\n ");
|
printf("static short lut_nmsedec_sig[1 << T1_NMSEDEC_BITS] = {\n ");
|
||||||
dump_array16(&lut_nmsedec_sig, 1 << T1_NMSEDEC_BITS);
|
dump_array16(lut_nmsedec_sig, 1 << T1_NMSEDEC_BITS);
|
||||||
|
|
||||||
printf("static short lut_nmsedec_sig0[1 << T1_NMSEDEC_BITS] = {\n ");
|
printf("static short lut_nmsedec_sig0[1 << T1_NMSEDEC_BITS] = {\n ");
|
||||||
dump_array16(&lut_nmsedec_sig0, 1 << T1_NMSEDEC_BITS);
|
dump_array16(lut_nmsedec_sig0, 1 << T1_NMSEDEC_BITS);
|
||||||
|
|
||||||
printf("static short lut_nmsedec_ref[1 << T1_NMSEDEC_BITS] = {\n ");
|
printf("static short lut_nmsedec_ref[1 << T1_NMSEDEC_BITS] = {\n ");
|
||||||
dump_array16(&lut_nmsedec_ref, 1 << T1_NMSEDEC_BITS);
|
dump_array16(lut_nmsedec_ref, 1 << T1_NMSEDEC_BITS);
|
||||||
|
|
||||||
printf("static short lut_nmsedec_ref0[1 << T1_NMSEDEC_BITS] = {\n ");
|
printf("static short lut_nmsedec_ref0[1 << T1_NMSEDEC_BITS] = {\n ");
|
||||||
dump_array16(&lut_nmsedec_ref0, 1 << T1_NMSEDEC_BITS);
|
dump_array16(lut_nmsedec_ref0, 1 << T1_NMSEDEC_BITS);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue