summaryrefslogtreecommitdiff
path: root/src/lib/openjp2/raw.h
diff options
context:
space:
mode:
authorMickael Savinaud <savmickael@users.noreply.github.com>2012-10-24 13:18:12 +0000
committerMickael Savinaud <savmickael@users.noreply.github.com>2012-10-24 13:18:12 +0000
commit9166d595e6c074ec0398c594a1cc46a587b0784c (patch)
treecf1128f3e8506ef797eeb2928960c69af707a281 /src/lib/openjp2/raw.h
parentf1061c8763f33da8f98743eba983a1ee1946ea37 (diff)
[trunk] use new opj prefix and type with raw functions
Diffstat (limited to 'src/lib/openjp2/raw.h')
-rw-r--r--src/lib/openjp2/raw.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/lib/openjp2/raw.h b/src/lib/openjp2/raw.h
index 3c4b372f..6ae62396 100644
--- a/src/lib/openjp2/raw.h
+++ b/src/lib/openjp2/raw.h
@@ -45,19 +45,19 @@ RAW encoding operations
*/
typedef struct opj_raw {
/** temporary buffer where bits are coded or decoded */
- unsigned char c;
+ OPJ_BYTE c;
/** number of bits already read or free to write */
- unsigned int ct;
+ OPJ_UINT32 ct;
/** maximum length to decode */
- unsigned int lenmax;
+ OPJ_UINT32 lenmax;
/** length decoded */
- unsigned int len;
+ OPJ_UINT32 len;
/** pointer to the current position in the buffer */
- unsigned char *bp;
+ OPJ_BYTE *bp;
/** pointer to the start of the buffer */
- unsigned char *start;
+ OPJ_BYTE *start;
/** pointer to the end of the buffer */
- unsigned char *end;
+ OPJ_BYTE *end;
} opj_raw_t;
/** @name Exported functions */
@@ -67,31 +67,31 @@ typedef struct opj_raw {
Create a new RAW handle
@return Returns a new RAW handle if successful, returns NULL otherwise
*/
-opj_raw_t* raw_create(void);
+opj_raw_t* opj_raw_create(void);
/**
Destroy a previously created RAW handle
@param raw RAW handle to destroy
*/
-void raw_destroy(opj_raw_t *raw);
+void opj_raw_destroy(opj_raw_t *raw);
/**
Return the number of bytes written/read since initialisation
@param raw RAW handle to destroy
@return Returns the number of bytes already encoded
*/
-int raw_numbytes(opj_raw_t *raw);
+OPJ_UINT32 opj_raw_numbytes(opj_raw_t *raw);
/**
Initialize the decoder
@param raw RAW handle
@param bp Pointer to the start of the buffer from which the bytes will be read
@param len Length of the input buffer
*/
-void raw_init_dec(opj_raw_t *raw, unsigned char *bp, int len);
+void opj_raw_init_dec(opj_raw_t *raw, OPJ_BYTE *bp, OPJ_UINT32 len);
/**
Decode a symbol using raw-decoder. Cfr p.506 TAUBMAN
@param raw RAW handle
@return Returns the decoded symbol (0 or 1)
*/
-int raw_decode(opj_raw_t *raw);
+OPJ_UINT32 opj_raw_decode(opj_raw_t *raw);
/* ----------------------------------------------------------------------- */
/*@}*/