Exemplo n.º 1
0
OPJ_UINT32 opj_bio_getbit(opj_bio_t *bio) {
	if (bio->ct == 0) {
		opj_bio_bytein(bio); /* TODO_MSD: check this line */
	}
	bio->ct--;
	return (bio->buf >> bio->ct) & 1;
}
Exemplo n.º 2
0
static uint32_t opj_bio_getbit(opj_bio_t *bio)
{
    if (bio->ct == 0) {
        opj_bio_bytein(bio); /* MSD: why not check the return value of this function ? */
    }
    bio->ct--;
    return (bio->buf >> bio->ct) & 1;
}
Exemplo n.º 3
0
opj_bool opj_bio_inalign(opj_bio_t *bio) {
	bio->ct = 0;
	if ((bio->buf & 0xff) == 0xff) {
		if (! opj_bio_bytein(bio)) {
			return OPJ_FALSE;
		}
		bio->ct = 0;
	}
	return OPJ_TRUE;
}
Exemplo n.º 4
0
bool opj_bio_inalign(opj_bio_t *bio)
{
    if ((bio->buf & 0xff) == 0xff) {
        if (! opj_bio_bytein(bio)) {
            return false;
        }
    }
    bio->ct = 0;
    return true;
}