Lines Matching full:cblk
93 jpc_dec_cblk_t *cblk, int dopartial, int maxlyrs);
153 jpc_dec_cblk_t *cblk;
174 cblk = prc->cblks; cblkcnt > 0;
175 --cblkcnt, ++cblk) {
177 band, cblk, 1, JPC_MAXLYRS)) {
191 jpc_dec_cblk_t *cblk, int dopartial, int maxlyrs)
205 if (!cblk->flags) {
207 if (!(cblk->flags = jas_matrix_create(jas_matrix_numrows(cblk->data) +
208 2, jas_matrix_numcols(cblk->data) + 2))) {
213 seg = cblk->segs.head;
214 while (seg && (seg != cblk->curseg || dopartial) && (maxlyrs < 0 ||
221 if (!cblk->mqdec) {
222 if (!(cblk->mqdec = jpc_mqdec_create(JPC_NUMCTXS, 0))) {
225 jpc_mqdec_setctxs(cblk->mqdec, JPC_NUMCTXS, jpc_mqctxs);
227 jpc_mqdec_setinput(cblk->mqdec, seg->stream);
228 jpc_mqdec_init(cblk->mqdec);
231 if (!cblk->nulldec) {
232 if (!(cblk->nulldec = jpc_bitstream_sopen(seg->stream, "r"))) {
240 if (cblk->numimsbs > band->numbps) {
245 if (cblk->numimsbs < ccp->roishift - band->numbps) {
250 bpno = band->roishift + band->numbps - 1 - (cblk->numimsbs +
251 (seg->passno + i - cblk->firstpassno + 2) / 3);
264 cblk->mqdec, bpno, band->orient,
266 cblk->flags, cblk->data) :
267 dec_rawsigpass(dec, cblk->nulldec, bpno,
269 cblk->flags, cblk->data);
273 dec_refpass(dec, cblk->mqdec, bpno,
275 cblk->flags, cblk->data) :
276 dec_rawrefpass(dec, cblk->nulldec, bpno,
278 cblk->flags, cblk->data);
282 ret = dec_clnpass(dec, cblk->mqdec, bpno,
285 JPC_COX_SEGSYM) != 0, cblk->flags,
286 cblk->data);
294 jpc_mqdec_setctxs(cblk->mqdec, JPC_NUMCTXS, jpc_mqctxs);
315 if ((ret = jpc_bitstream_inalign(cblk->nulldec, fillmask,
321 jpc_bitstream_close(cblk->nulldec);
322 cblk->nulldec = 0;
325 cblk->curseg = seg->next;
326 jpc_seglist_remove(&cblk->segs, seg);
328 seg = cblk->curseg;
331 assert(dopartial ? (!cblk->curseg) : 1);