summaryrefslogtreecommitdiff
path: root/libopenjpeg/t1.c
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2011-05-18 11:02:27 +0000
committerAntonin Descampe <antonin@gmail.com>2011-05-18 11:02:27 +0000
commit88f43b15fab0c75c10635c9e3d6381e5d716b8e9 (patch)
treedd05218cd57a6d2de5bfc10db1e777f84e31d314 /libopenjpeg/t1.c
parent0c9f6a3ac9ede04eb6faf96b7d7a9586c551a9c2 (diff)
defined new type "opj_bool", and new constants OPJ_FALSE and OPJ_TRUE, to avoid having to deal with "stdbool.h" (patch from Winfried)
Diffstat (limited to 'libopenjpeg/t1.c')
-rw-r--r--libopenjpeg/t1.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libopenjpeg/t1.c b/libopenjpeg/t1.c
index 49300747..1794ac22 100644
--- a/libopenjpeg/t1.c
+++ b/libopenjpeg/t1.c
@@ -1103,7 +1103,7 @@ static double t1_getwmsedec(
return wmsedec;
}
-static bool allocate_buffers(
+static opj_bool allocate_buffers(
opj_t1_t *t1,
int w,
int h)
@@ -1115,7 +1115,7 @@ static bool allocate_buffers(
opj_aligned_free(t1->data);
t1->data = (int*) opj_aligned_malloc(datasize * sizeof(int));
if(!t1->data){
- return false;
+ return OPJ_FALSE;
}
t1->datasize=datasize;
}
@@ -1128,7 +1128,7 @@ static bool allocate_buffers(
opj_aligned_free(t1->flags);
t1->flags = (flag_t*) opj_aligned_malloc(flagssize * sizeof(flag_t));
if(!t1->flags){
- return false;
+ return OPJ_FALSE;
}
t1->flagssize=flagssize;
}
@@ -1137,7 +1137,7 @@ static bool allocate_buffers(
t1->w=w;
t1->h=h;
- return true;
+ return OPJ_TRUE;
}
/** mod fixed_quality */