Changed the way the image structure is allocated when the decoding parameters include some resolutions to discard. This should have a significant impact for the decoding of huge images when some resolutions are discarder (-r parameter)

Warning: The output image size is now reduced when discarding resolutions !
This commit is contained in:
Francois-Olivier Devaux
2007-10-12 15:04:34 +00:00
parent ab0473aa42
commit 1f11a4fe90
5 changed files with 123 additions and 118 deletions

View File

@@ -586,7 +586,6 @@ int t2_encode_packets(opj_t2_t* t2,int tileno, opj_tcd_tile_t *tile, int maxlaye
unsigned char *c = dest;
int e = 0;
int compno;
int comp_len = 0;
opj_pi_iterator_t *pi = NULL;
int poc;
opj_image_t *image = t2->image;