static void t2_putcommacode(opj_bio_t *bio, int n);
-static OPJ_UINT32 t2_getcommacode(opj_bio_t *bio);
+static OPJ_UINT32 opj_t2_getcommacode(opj_bio_t *bio);
/**
Variable length code for signalling delta Zil (truncation point)
@param bio Bit Input/Output component
/* ----------------------------------------------------------------------- */
/* #define RESTART 0x04 */
-
+// TODO MSD->LHE
static void t2_putcommacode(opj_bio_t *bio, int n) {
while (--n >= 0) {
bio_write(bio, 1, 1);
bio_write(bio, 0, 1);
}
-static OPJ_UINT32 t2_getcommacode(opj_bio_t *bio)
+static OPJ_UINT32 opj_t2_getcommacode(opj_bio_t *bio)
{
OPJ_UINT32 n = 0;
while (bio_read(bio, 1)) {
}
/* number of coding passes */
cblk->numnewpasses = t2_getnumpasses(bio);
- increment = t2_getcommacode(bio);
+ increment = opj_t2_getcommacode(bio);
/* length indicator increment */
cblk->numlenbits += increment;
segno = 0;
/* number of coding passes */
l_cblk->numnewpasses = t2_getnumpasses(l_bio);
- l_increment = t2_getcommacode(l_bio);
+ l_increment = opj_t2_getcommacode(l_bio);
/* length indicator increment */
l_cblk->numlenbits += l_increment;