Lines Matching defs:cblk
332 prec->cblk = NULL;
336 prec->cblk = av_calloc(nb_codeblocks, sizeof(*prec->cblk));
337 if (!prec->cblk)
340 Jpeg2000Cblk *cblk = prec->cblk + cblkno;
347 cblk->coord[0][0] = FFMAX(Cx0, prec->coord[0][0]);
352 cblk->coord[1][0] = FFMAX(Cy0, prec->coord[1][0]);
355 cblk->coord[0][1] = FFMIN(Cx0 + (1 << band->log2_cblk_width),
359 cblk->coord[1][1] = FFMIN(Cy0 + (1 << band->log2_cblk_height),
363 cblk->coord[0][0] += comp->reslevel[reslevelno-1].coord[0][1] -
365 cblk->coord[0][1] += comp->reslevel[reslevelno-1].coord[0][1] -
369 cblk->coord[1][0] += comp->reslevel[reslevelno-1].coord[1][1] -
371 cblk->coord[1][1] += comp->reslevel[reslevelno-1].coord[1][1] -
375 cblk->lblock = 3;
376 cblk->length = 0;
377 cblk->npasses = 0;
379 cblk->layers = av_calloc(codsty->nlayers, sizeof(*cblk->layers));
380 if (!cblk->layers)
588 Jpeg2000Cblk *cblk = prec->cblk + cblkno;
589 cblk->length = 0;
590 cblk->lblock = 3;
623 if (prec->cblk) {
626 Jpeg2000Cblk *cblk = &prec->cblk[cblkno];
627 av_freep(&cblk->data);
628 av_freep(&cblk->passes);
629 av_freep(&cblk->lengthinc);
630 av_freep(&cblk->data_start);
631 av_freep(&cblk->layers);
633 av_freep(&prec->cblk);