/*
* $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 BYTE_MANAGER_H_
-#define BYTE_MANAGER_H_
+#ifndef BYTE_MANAGER_H_
+#define BYTE_MANAGER_H_
#include <stddef.h>
-#include "opj_stdint.h"
+#include <stdint.h>
+#include "openjpeg.h"
typedef uint8_t Byte_t;
typedef uint16_t Byte2_t;
typedef uint32_t Byte4_t;
* @param[in] size Byte length
* @return pointer to the fetched data
*/
-Byte_t * fetch_bytes( int fd, OPJ_OFF_T offset, OPJ_SIZE_T size);
+Byte_t * fetch_bytes(int fd, OPJ_OFF_T offset, OPJ_SIZE_T size);
/**
* @param[in] offset start Byte position
* @return fetched codes
*/
-Byte_t fetch_1byte( int fd, OPJ_OFF_T offset);
+Byte_t fetch_1byte(int fd, OPJ_OFF_T offset);
/**
* fetch a 2-byte big endian Byte codes in file stream
* @param[in] offset start Byte position
* @return fetched codes
*/
-Byte2_t fetch_2bytebigendian( int fd, OPJ_OFF_T offset);
+Byte2_t fetch_2bytebigendian(int fd, OPJ_OFF_T offset);
/**
* fetch a 4-byte big endian Byte codes in file stream
* @param[in] offset start Byte position
* @return fetched codes
*/
-Byte4_t fetch_4bytebigendian( int fd, OPJ_OFF_T offset);
+Byte4_t fetch_4bytebigendian(int fd, OPJ_OFF_T offset);
/**
* fetch a 8-byte big endian Byte codes in file stream
* @param[in] offset start Byte position
* @return fetched codes
*/
-Byte8_t fetch_8bytebigendian( int fd, OPJ_OFF_T offset);
+Byte8_t fetch_8bytebigendian(int fd, OPJ_OFF_T offset);
/**
* @param[in] buf Byte codes
* @return resolved number
*/
-Byte2_t big2( Byte_t *buf);
+Byte2_t big2(Byte_t *buf);
/**
* convert 4-byte big endian Byte codes to number
* @param[in] buf Byte codes
* @return resolved number
*/
-Byte4_t big4( Byte_t *buf);
+Byte4_t big4(Byte_t *buf);
/**
* convert 8-byte big endian Byte codes to number
* @param[in] buf Byte codes
* @return resolved number
*/
-Byte8_t big8( Byte_t *buf);
+Byte8_t big8(Byte_t *buf);
/**
* modify 4Byte code in a codestream
- *
+ *
* @param[in] code code value
* @param[out] stream modifying codestream
*/
-void modify_4Bytecode( Byte4_t code, Byte_t *stream);
+void modify_4Bytecode(Byte4_t code, Byte_t *stream);
/**
* Get file size
* @param[in] fd file discriptor
* @return file size
*/
-OPJ_OFF_T get_filesize( int fd);
+OPJ_OFF_T get_filesize(int fd);
-#endif /* !BYTE_MANAGER_H_ */
+#endif /* !BYTE_MANAGER_H_ */