Fixed an historical bug in t1.c that leaded to the inclusion of useless 0xFF in the...
[openjpeg.git] / libopenjpeg / tcd.h
index 986d976fccca216a5061f6baa72b329fd91484cb..9a3503f46d591aaca2a597b2090378c2721c23d7 100644 (file)
@@ -1,9 +1,10 @@
 /*
+ * Copyright (c) 2002-2007, Communications and Remote Sensing Laboratory, Universite catholique de Louvain (UCL), Belgium
+ * Copyright (c) 2002-2007, Professor Benoit Macq
  * Copyright (c) 2001-2003, David Janssens
  * Copyright (c) 2002-2003, Yannick Verschueren
- * Copyright (c) 2003-2005, Francois Devaux and Antonin Descampe
- * Copyright (c) 2005, Herv� Drolon, FreeImage Team
- * Copyright (c) 2002-2005, Communications and remote sensing Laboratory, Universite catholique de Louvain, Belgium
+ * Copyright (c) 2003-2007, Francois-Olivier Devaux and Antonin Descampe
+ * Copyright (c) 2005, Herve Drolon, FreeImage Team
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
@@ -157,6 +158,14 @@ typedef struct opj_tcd_image {
 Tile coder/decoder
 */
 typedef struct opj_tcd {
+       /** Position of the tilepart flag in Progression order*/
+       int tp_pos;
+       /** Current tile part number*/
+       int cur_tp_num;
+       /** Total number of tileparts of the current tile*/
+       int cur_totnum_tp;
+       /** Current Packet iterator number */
+       int cur_pino;
        /** codec context */
        opj_common_ptr cinfo;
 
@@ -172,6 +181,8 @@ typedef struct opj_tcd {
        opj_tcp_t *tcp;
        /** current encoded/decoded tile */
        int tcd_tileno;
+       /** Packet iterator*/
+       opj_pi_iterator_t *pi;
 } opj_tcd_t;
 
 /** @name Exported functions */