• Home
  • Raw
  • Download

Lines Matching refs:bp

189     assert(mqc->bp >= mqc->start - 1);  in opj_mqc_byteout()
190 if (*mqc->bp == 0xff) { in opj_mqc_byteout()
191 mqc->bp++; in opj_mqc_byteout()
192 *mqc->bp = (OPJ_BYTE)(mqc->c >> 20); in opj_mqc_byteout()
197 mqc->bp++; in opj_mqc_byteout()
198 *mqc->bp = (OPJ_BYTE)(mqc->c >> 19); in opj_mqc_byteout()
202 (*mqc->bp)++; in opj_mqc_byteout()
203 if (*mqc->bp == 0xff) { in opj_mqc_byteout()
205 mqc->bp++; in opj_mqc_byteout()
206 *mqc->bp = (OPJ_BYTE)(mqc->c >> 20); in opj_mqc_byteout()
210 mqc->bp++; in opj_mqc_byteout()
211 *mqc->bp = (OPJ_BYTE)(mqc->c >> 19); in opj_mqc_byteout()
276 const ptrdiff_t diff = mqc->bp - mqc->start; in opj_mqc_numbytes()
283 void opj_mqc_init_enc(opj_mqc_t *mqc, OPJ_BYTE *bp) in opj_mqc_init_enc() argument
295 mqc->bp = bp - 1; in opj_mqc_init_enc()
300 assert(*(mqc->bp) != 0xff); in opj_mqc_init_enc()
302 mqc->start = bp; in opj_mqc_init_enc()
326 if (*mqc->bp != 0xff) { in opj_mqc_flush()
328 mqc->bp++; in opj_mqc_flush()
339 assert(mqc->bp >= mqc->start); in opj_mqc_bypass_init_enc()
349 assert(mqc->bp[-1] != 0xff); in opj_mqc_bypass_init_enc()
360 *mqc->bp = (OPJ_BYTE)mqc->c; in opj_mqc_bypass_enc()
363 if (*mqc->bp == 0xff) { in opj_mqc_bypass_enc()
366 mqc->bp++; in opj_mqc_bypass_enc()
374 (mqc->ct == 7 && (erterm || mqc->bp[-1] != 0xff))) ? 1 : 0; in opj_mqc_bypass_get_extra_bytes()
385 if (mqc->ct < 7 || (mqc->ct == 7 && (erterm || mqc->bp[-1] != 0xff))) { in opj_mqc_bypass_flush_enc()
396 *mqc->bp = (OPJ_BYTE)mqc->c; in opj_mqc_bypass_flush_enc()
398 mqc->bp++; in opj_mqc_bypass_flush_enc()
399 } else if (mqc->ct == 7 && mqc->bp[-1] == 0xff) { in opj_mqc_bypass_flush_enc()
402 mqc->bp --; in opj_mqc_bypass_flush_enc()
404 mqc->bp[-1] == 0x7f && mqc->bp[-2] == 0xff) { in opj_mqc_bypass_flush_enc()
409 mqc->bp -= 2; in opj_mqc_bypass_flush_enc()
412 assert(mqc->bp[-1] != 0xff); in opj_mqc_bypass_flush_enc()
454 mqc->bp --; in opj_mqc_restart_init_enc()
455 assert(mqc->bp >= mqc->start - 1); in opj_mqc_restart_init_enc()
456 assert(*mqc->bp != 0xff); in opj_mqc_restart_init_enc()
457 if (*mqc->bp == 0xff) { in opj_mqc_restart_init_enc()
473 if (*mqc->bp != 0xff) { in opj_mqc_erterm_enc()
489 OPJ_BYTE *bp, in opj_mqc_init_dec_common() argument
496 mqc->start = bp; in opj_mqc_init_dec_common()
497 mqc->end = bp + len; in opj_mqc_init_dec_common()
505 mqc->bp = bp; in opj_mqc_init_dec_common()
507 void opj_mqc_init_dec(opj_mqc_t *mqc, OPJ_BYTE *bp, OPJ_UINT32 len, in opj_mqc_init_dec() argument
515 opj_mqc_init_dec_common(mqc, bp, len, extra_writable_bytes); in opj_mqc_init_dec()
521 mqc->c = (OPJ_UINT32)(*mqc->bp << 16); in opj_mqc_init_dec()
531 void opj_mqc_raw_init_dec(opj_mqc_t *mqc, OPJ_BYTE *bp, OPJ_UINT32 len, in opj_mqc_raw_init_dec() argument
534 opj_mqc_init_dec_common(mqc, bp, len, extra_writable_bytes); in opj_mqc_raw_init_dec()