예제 #1
0
static int bio_getbit(opj_bio_t *bio) {
	if (bio->ct == 0) {
		bio_bytein(bio);
	}
	bio->ct--;
	return (bio->buf >> bio->ct) & 1;
}
예제 #2
0
파일: bio.c 프로젝트: VgaCich/vgasoft
/// <summary>
/// </summary>
void bio_inalign() {
    bio_ct=0;
    if ((bio_buf&0xff)==0xff) {
        bio_bytein();
        bio_ct=0;
    }
}
예제 #3
0
파일: bio.c 프로젝트: VgaCich/vgasoft
/// <summary>
/// Read bit.
/// </summary>
int bio_getbit() {
    if (bio_ct==0) {
        bio_bytein();
    }
    bio_ct--;
    return (bio_buf>>bio_ct)&1;
}
예제 #4
0
/// <summary>
/// </summary>
int bio_inalign() {
    bio_ct=0;
    if ((bio_buf&0xff)==0xff) {
       if( bio_bytein()) return 1;
        bio_ct=0;
    }
    return 0;
}
예제 #5
0
int bio_inalign(opj_bio_t *bio) {
	bio->ct = 0;
	if ((bio->buf & 0xff) == 0xff) {
		if (bio_bytein(bio)) {
			return 1;
		}
		bio->ct = 0;
	}
	return 0;
}
예제 #6
0
bool bio_inalign(opj_bio_t *bio) {
	bio->ct = 0;
	if ((bio->buf & 0xff) == 0xff) {
		if (bio_bytein(bio)) {
			return true;
		}
		bio->ct = 0;
	}
	return false;
}