+// NEW codestream
+
+/**
+Tile-component coding parameters
+*/
+typedef struct opj_tccp_info
+{
+ /** component index */
+ OPJ_UINT32 compno;
+ /** coding style */
+ OPJ_UINT32 csty;
+ /** number of resolutions */
+ OPJ_UINT32 numresolutions;
+ /** code-blocks width */
+ OPJ_UINT32 cblkw;
+ /** code-blocks height */
+ OPJ_UINT32 cblkh;
+ /** code-block coding style */
+ OPJ_UINT32 cblksty;
+ /** discrete wavelet transform identifier */
+ OPJ_UINT32 qmfbid;
+ /** quantisation style */
+ OPJ_UINT32 qntsty;
+ /** stepsizes used for quantization */
+ //FIXME opj_stepsize_t stepsizes[J2K_MAXBANDS];
+ /** number of guard bits */
+ OPJ_UINT32 numgbits;
+ /** Region Of Interest shift */
+ OPJ_INT32 roishift;
+ /** precinct width */
+ OPJ_UINT32 prcw[J2K_MAXRLVLS];
+ /** precinct height */
+ OPJ_UINT32 prch[J2K_MAXRLVLS];
+}
+opj_tccp_info_t;
+
+typedef struct opj_tile_v2_info {
+
+ /** number (index) of tile */
+ int tileno;
+
+ /** start position */
+ int start_pos;
+ /** end position of the header */
+ int end_header;
+ /** end position */
+ int end_pos;
+
+ /** add fixed_quality */
+ int numpix;
+ /** add fixed_quality */
+ double distotile;
+
+ /** coding style */
+ OPJ_UINT32 csty;
+ /** progression order */
+ OPJ_PROG_ORDER prg;
+ /** number of layers */
+ OPJ_UINT32 numlayers;
+ /** multi-component transform identifier */
+ OPJ_UINT32 mct;
+ /** rates of layers */
+ OPJ_FLOAT32 rates[100];
+
+ /** precinct number for each resolution level (width) */
+ int pw[33];
+ /** precinct number for each resolution level (height) */
+ int ph[33];
+ /** precinct size (in power of 2), in X for each resolution level */
+ int pdx[33];
+ /** precinct size (in power of 2), in Y for each resolution level */
+ int pdy[33];
+ /** information concerning packets inside tile */
+ opj_packet_info_t *packet;
+
+
+ /** number of tile parts */
+ int num_tps;
+ /** information concerning tile parts */
+ opj_tp_info_t *tp;
+
+ /** information concerning tile component parameters*/
+ opj_tccp_info_t *tccp_info;
+
+ /** value of thresh for each layer by tile cfr. Marcela */
+ double *thresh;
+} opj_tile_info_v2_t;
+
+/**
+Index structure of the codestream
+*/
+typedef struct opj_codestream_info_v2 {
+ /* Basic image info */
+ /** image width */
+ int image_w;
+ /** image height */
+ int image_h;
+ /** numbers of component */
+ int numcomps;
+
+ /* Codestream Info */
+ /** progression order */
+ OPJ_PROG_ORDER prog;
+ /** number of layer */
+ int numlayers;
+
+ /** tile origin in x */
+ int tx0;
+ /** tile origin in y */
+ int ty0;
+ /** tile size in x */
+ int tdx;
+ /** tile size in y */
+ int tdy;
+ /** number of tiles in X */
+ int tw;
+ /** number of tiles in Y */
+ int th;
+
+ /** number of decomposition for each component */
+ int *numdecompos;
+
+ /** maximum distortion reduction on the whole image (add for Marcela) */
+ double D_max;
+ /** packet number */
+ int packno;
+ /** writing the packet in the index with t2_encode_packets */
+ int index_write;
+
+
+
+/* UniPG>> */
+ /** number of markers */
+ int marknum;
+ /** list of markers */
+ opj_marker_info_t *marker;
+ /** actual size of markers array */
+ int maxmarknum;
+/* <<UniPG */
+
+ /** main header position */
+ int main_head_start;
+ /** main header position */
+ int main_head_end;
+ /** codestream's size */
+ int codestream_size;
+
+ /** information regarding tiles inside image */
+ opj_tile_info_v2_t *tile;
+} opj_codestream_info_v2_t;
+
+
+/*
+==========================================================
+ Metadata from the JP2file
+==========================================================
+*/
+
+/**
+Info structure of the file
+*/
+typedef struct opj_jp2_metadata {
+ /** */
+ OPJ_INT32 empty_fields;
+
+} opj_jp2_metadata_t;
+
+/*
+==========================================================
+ Information on the JPEG2000 file
+==========================================================
+*/
+
+/**
+Info structure of the file
+*/
+typedef struct opj_file_info {
+ /** file format */
+ OPJ_INT32 file_format;
+ /** file info level*/
+ OPJ_INT32 file_info_flag;
+ /** image info*/
+ opj_image_header_t img_info;
+ /** codestream info */
+ opj_codestream_info_v2_t codestream_info;
+ /** file info */
+ opj_jp2_metadata_t jp2_metadata;
+
+} opj_file_info_t;
+
+
+