[trunk] modify output type of t2_getcommacode
This commit is contained in:
parent
f8fc214b11
commit
d47b8fef18
|
@ -38,7 +38,8 @@
|
||||||
/*@{*/
|
/*@{*/
|
||||||
|
|
||||||
static void t2_putcommacode(opj_bio_t *bio, int n);
|
static void t2_putcommacode(opj_bio_t *bio, int n);
|
||||||
static int t2_getcommacode(opj_bio_t *bio);
|
|
||||||
|
static OPJ_UINT32 t2_getcommacode(opj_bio_t *bio);
|
||||||
/**
|
/**
|
||||||
Variable length code for signalling delta Zil (truncation point)
|
Variable length code for signalling delta Zil (truncation point)
|
||||||
@param bio Bit Input/Output component
|
@param bio Bit Input/Output component
|
||||||
|
@ -186,10 +187,11 @@ static void t2_putcommacode(opj_bio_t *bio, int n) {
|
||||||
bio_write(bio, 0, 1);
|
bio_write(bio, 0, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int t2_getcommacode(opj_bio_t *bio) {
|
static OPJ_UINT32 t2_getcommacode(opj_bio_t *bio)
|
||||||
int n;
|
{
|
||||||
for (n = 0; bio_read(bio, 1); n++) {
|
OPJ_UINT32 n = 0;
|
||||||
;
|
while (bio_read(bio, 1)) {
|
||||||
|
++n;
|
||||||
}
|
}
|
||||||
return n;
|
return n;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue