Accepting "j2c" as format for Encoding and Decoding. Modification in image_to_j2k.c.

Modified imagetotif() to read images with signed data. Modification in convert.c.
This commit is contained in:
Parvatha Elangovan
2007-04-10 16:23:48 +00:00
parent 0930d9886b
commit dbd132dca8
5 changed files with 115 additions and 59 deletions

View File

@@ -603,9 +603,11 @@ int t2_encode_packets(opj_t2_t* t2,int tileno, opj_tcd_tile_t *tile, int maxlaye
}
}
if (e == -999) break;
if (comp_len > cp->max_comp_size){
e = -999;
break;
if (cp->max_comp_size){
if (comp_len > cp->max_comp_size){
e = -999;
break;
}
}
}
if (e == -999) break;