Optimize opj_t1_update_flags()
[openjpeg.git] / src / lib / openjpip / boxheader_manager.h
index f8e48f392ab9f84cc3413da2e709264cb29cdc2d..b43b447c9621aa476052c4684b48e3b9216314ba 100644 (file)
@@ -1,8 +1,8 @@
 /*
- * $Id: boxheader_manager.h 44 2011-02-15 12:32:29Z kaori $
+ * $Id$
  *
- * Copyright (c) 2002-2011, Communications and Remote Sensing Laboratory, Universite catholique de Louvain (UCL), Belgium
- * Copyright (c) 2002-2011, Professor Benoit Macq
+ * Copyright (c) 2002-2014, Universite catholique de Louvain (UCL), Belgium
+ * Copyright (c) 2002-2014, Professor Benoit Macq
  * Copyright (c) 2010-2011, Kaori Hagihara
  * All rights reserved.
  *
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#ifndef        BOXHEADER_MANAGER_H_
-# define       BOXHEADER_MANAGER_H_
+#ifndef     BOXHEADER_MANAGER_H_
+# define    BOXHEADER_MANAGER_H_
 
+#include "openjpeg.h"
 #include "byte_manager.h"
 #include "box_manager.h"
 
 /** box header parameters*/
-typedef struct boxheader_param{
-  Byte_t  headlen;              /**< header length  8 or 16*/
-  Byte8_t length;               /**< length of the reference Box*/
-  char    type[4];              /**< type of information in the DBox*/
-  struct boxheader_param *next; /**< pointer to the next header box*/
+typedef struct boxheader_param {
+    Byte_t  headlen;              /**< header length  8 or 16*/
+    Byte8_t length;               /**< length of the reference Box*/
+    char    type[4];              /**< type of information in the DBox*/
+    struct boxheader_param *next; /**< pointer to the next header box*/
 } boxheader_param_t;
 
 
@@ -50,7 +51,7 @@ typedef struct boxheader_param{
  * @param[in] offset Box offset
  * @return           pointer to the structure of generate box header parameters
  */
-boxheader_param_t * gene_boxheader( int fd, OPJ_OFF_T offset);
+boxheader_param_t * gene_boxheader(int fd, OPJ_OFF_T offset);
 
 /**
  * generate a child box header at the given offset
@@ -59,13 +60,14 @@ boxheader_param_t * gene_boxheader( int fd, OPJ_OFF_T offset);
  * @param[in] offset   offset from DBox first byte of superbox
  * @return             pointer to the structure of generate box header parameters
  */
-boxheader_param_t * gene_childboxheader( box_param_t *superbox, OPJ_OFF_T offset);
+boxheader_param_t * gene_childboxheader(box_param_t *superbox,
+                                        OPJ_OFF_T offset);
 
 /**
  * print box header parameters
  *
  * @param[in] boxheader boxheader pointer
  */
-void print_boxheader( boxheader_param_t *boxheader);
+void print_boxheader(boxheader_param_t *boxheader);
 
-#endif             /* !BOXHEADER_MANAGER_H_ */
+#endif      /* !BOXHEADER_MANAGER_H_ */