Added some fields in the codestream_info structure: they are used to record the position of single tile parts. Changed also the write_index function in the codec, to reflect the presence of this new information.

This commit is contained in:
Giuseppe Baruffa
2007-09-04 14:19:55 +00:00
parent 564e16d5ce
commit d3d2a36fbc
4 changed files with 94 additions and 4 deletions

View File

@@ -628,6 +628,16 @@ typedef struct opj_tile_info {
int nbpix;
/** add fixed_quality */
double distotile;
/* UniPG>> */
/** number of tile parts */
int num_tps;
/** start position of tile part */
int *tp_start_pos;
/** end position of tile part header */
int *tp_end_header;
/** end position of tile part */
int *tp_end_pos;
/* << UniPG */
} opj_tile_info_t;
/**
@@ -666,6 +676,10 @@ typedef struct opj_codestream_info {
int layer;
/** number of decomposition */
int decomposition;
/* UniPG>> */
/** main header position */
int main_head_start;
/* <<UniPG */
/** main header position */
int main_head_end;
/** codestream's size */