Lines Matching refs:pi

420     jpc_pi_t *pi;  in jpc_dec_decodepkts()  local
424 pi = tile->pi; in jpc_dec_decodepkts()
441 if ((ret = jpc_pi_next(pi))) { in jpc_dec_decodepkts()
451 jas_stream_getrwcount(in), jpc_pi_prg(pi), jpc_pi_cmptno(pi), in jpc_dec_decodepkts()
452 jpc_pi_rlvlno(pi), jpc_pi_prcno(pi), jpc_pi_lyrno(pi)); in jpc_dec_decodepkts()
454 if (jpc_dec_decodepkt(dec, pkthdrstream, in, jpc_pi_cmptno(pi), jpc_pi_rlvlno(pi), in jpc_dec_decodepkts()
455 jpc_pi_prcno(pi), jpc_pi_lyrno(pi))) { in jpc_dec_decodepkts()
466 jpc_pi_t *pi; in jpc_dec_pi_create() local
477 if (!(pi = jpc_pi_create0())) { in jpc_dec_pi_create()
480 pi->numcomps = dec->numcomps; in jpc_dec_pi_create()
481 if (!(pi->picomps = jas_alloc2(pi->numcomps, sizeof(jpc_picomp_t)))) { in jpc_dec_pi_create()
482 jpc_pi_destroy(pi); in jpc_dec_pi_create()
485 for (compno = 0, picomp = pi->picomps; compno < pi->numcomps; ++compno, in jpc_dec_pi_create()
490 for (compno = 0, tcomp = tile->tcomps, picomp = pi->picomps; in jpc_dec_pi_create()
491 compno < pi->numcomps; ++compno, ++tcomp, ++picomp) { in jpc_dec_pi_create()
495 jpc_pi_destroy(pi); in jpc_dec_pi_create()
508 jpc_pi_destroy(pi); in jpc_dec_pi_create()
514 pi->maxrlvls = 0; in jpc_dec_pi_create()
515 for (compno = 0, tcomp = tile->tcomps, picomp = pi->picomps, cmpt = in jpc_dec_pi_create()
516 dec->cmpts; compno < pi->numcomps; ++compno, ++tcomp, ++picomp, in jpc_dec_pi_create()
530 if (pi->maxrlvls < tcomp->numrlvls) { in jpc_dec_pi_create()
531 pi->maxrlvls = tcomp->numrlvls; in jpc_dec_pi_create()
535 pi->numlyrs = tile->cp->numlyrs; in jpc_dec_pi_create()
536 pi->xstart = tile->xstart; in jpc_dec_pi_create()
537 pi->ystart = tile->ystart; in jpc_dec_pi_create()
538 pi->xend = tile->xend; in jpc_dec_pi_create()
539 pi->yend = tile->yend; in jpc_dec_pi_create()
541 pi->picomp = 0; in jpc_dec_pi_create()
542 pi->pirlvl = 0; in jpc_dec_pi_create()
543 pi->x = 0; in jpc_dec_pi_create()
544 pi->y = 0; in jpc_dec_pi_create()
545 pi->compno = 0; in jpc_dec_pi_create()
546 pi->rlvlno = 0; in jpc_dec_pi_create()
547 pi->prcno = 0; in jpc_dec_pi_create()
548 pi->lyrno = 0; in jpc_dec_pi_create()
549 pi->xstep = 0; in jpc_dec_pi_create()
550 pi->ystep = 0; in jpc_dec_pi_create()
552 pi->pchgno = -1; in jpc_dec_pi_create()
554 pi->defaultpchg.prgord = tile->cp->prgord; in jpc_dec_pi_create()
555 pi->defaultpchg.compnostart = 0; in jpc_dec_pi_create()
556 pi->defaultpchg.compnoend = pi->numcomps; in jpc_dec_pi_create()
557 pi->defaultpchg.rlvlnostart = 0; in jpc_dec_pi_create()
558 pi->defaultpchg.rlvlnoend = pi->maxrlvls; in jpc_dec_pi_create()
559 pi->defaultpchg.lyrnoend = pi->numlyrs; in jpc_dec_pi_create()
560 pi->pchg = 0; in jpc_dec_pi_create()
562 pi->valid = 0; in jpc_dec_pi_create()
564 return pi; in jpc_dec_pi_create()