From 8bc24912d1c0fd26a2be639eb76ea3d8c1f4c06b Mon Sep 17 00:00:00 2001 From: Mickael Savinaud Date: Thu, 25 Oct 2012 13:35:30 +0000 Subject: [PATCH] [trunk] style --- src/lib/openjp2/cio.h | 42 ++++++++++++++++++++++++++++-------------- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/src/lib/openjp2/cio.h b/src/lib/openjp2/cio.h index 32ab4da4..ca218cef 100644 --- a/src/lib/openjp2/cio.h +++ b/src/lib/openjp2/cio.h @@ -43,16 +43,6 @@ The functions in CIO.C have for goal to realize a byte input / output process. #include "opj_config.h" -/** @name Exported functions (see also openjpeg.h) */ -/*@{*/ -/* ----------------------------------------------------------------------- */ -/* ----------------------------------------------------------------------- */ -/*@}*/ - -/*@}*/ - - - /* ----------------------------------------------------------------------- */ #if defined(OPJ_BIG_ENDIAN) @@ -119,9 +109,6 @@ typedef struct opj_stream_private */ opj_stream_seek_fn m_seek_fn; - - - /** * Actual data stored into the stream if readed from. Data is read by chunk of fixed size. * you should never access this data directly. @@ -133,8 +120,14 @@ typedef struct opj_stream_private */ OPJ_BYTE * m_current_data; + /** + * FIXME DOC. + */ OPJ_OFF_T (* m_opj_skip)(struct opj_stream_private * ,OPJ_OFF_T , struct opj_event_mgr *); + /** + * FIXME DOC. + */ opj_bool (* m_opj_seek) (struct opj_stream_private * , OPJ_OFF_T , struct opj_event_mgr *); /** @@ -160,7 +153,9 @@ typedef struct opj_stream_private } opj_stream_private_t; - +/** @name Exported functions (see also openjpeg.h) */ +/*@{*/ +/* ----------------------------------------------------------------------- */ /** * Write some bytes to the given data buffer, this function is used in Big Endian cpus. * @param p_buffer pointer the data buffer to write data to. @@ -359,11 +354,30 @@ opj_bool opj_stream_seek (opj_stream_private_t * p_stream, OPJ_OFF_T p_size, str */ opj_bool opj_stream_has_seek (const opj_stream_private_t * p_stream); +/** + * FIXME DOC. + */ OPJ_SIZE_T opj_stream_default_read (void * p_buffer, OPJ_SIZE_T p_nb_bytes, void * p_user_data); + +/** + * FIXME DOC. + */ OPJ_SIZE_T opj_stream_default_write (void * p_buffer, OPJ_SIZE_T p_nb_bytes, void * p_user_data); + +/** + * FIXME DOC. + */ OPJ_OFF_T opj_stream_default_skip (OPJ_OFF_T p_nb_bytes, void * p_user_data); + +/** + * FIXME DOC. + */ opj_bool opj_stream_default_seek (OPJ_OFF_T p_nb_bytes, void * p_user_data); +/* ----------------------------------------------------------------------- */ +/*@}*/ + +/*@}*/ #endif /* __CIO_H */