summaryrefslogtreecommitdiff
path: root/src/lib/openjp2/raw.c
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.c
parentf1061c8763f33da8f98743eba983a1ee1946ea37 (diff)
[trunk] use new opj prefix and type with raw functions
Diffstat (limited to 'src/lib/openjp2/raw.c')
-rw-r--r--src/lib/openjp2/raw.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/openjp2/raw.c b/src/lib/openjp2/raw.c
index 3d231bfd..1702d36f 100644
--- a/src/lib/openjp2/raw.c
+++ b/src/lib/openjp2/raw.c
@@ -42,22 +42,22 @@
==========================================================
*/
-opj_raw_t* raw_create(void) {
+opj_raw_t* opj_raw_create(void) {
opj_raw_t *raw = (opj_raw_t*)opj_malloc(sizeof(opj_raw_t));
return raw;
}
-void raw_destroy(opj_raw_t *raw) {
+void opj_raw_destroy(opj_raw_t *raw) {
if(raw) {
opj_free(raw);
}
}
-int raw_numbytes(opj_raw_t *raw) {
+OPJ_UINT32 opj_raw_numbytes(opj_raw_t *raw) {
return raw->bp - raw->start;
}
-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) {
raw->start = bp;
raw->lenmax = len;
raw->len = 0;
@@ -65,8 +65,8 @@ void raw_init_dec(opj_raw_t *raw, unsigned char *bp, int len) {
raw->ct = 0;
}
-int raw_decode(opj_raw_t *raw) {
- int d;
+OPJ_UINT32 opj_raw_decode(opj_raw_t *raw) {
+ OPJ_UINT32 d;
if (raw->ct == 0) {
raw->ct = 8;
if (raw->len == raw->lenmax) {