Home | History | Annotate | Download | only in libopenjpeg20

Lines Matching full:cblk

85                                                         opj_tcd_cblk_t *cblk = &prec->cblks[cblkno];
86 fprintf(fd, " cblk {\n");
89 cblk->x0, cblk->y0, cblk->x1, cblk->y1);
243 opj_tcd_cblk_enc_t *cblk = &prc->cblks.enc[cblkno];
244 opj_tcd_layer_t *layer = &cblk->layers[layno];
248 cblk->numpassesinlayers = 0;
251 n = cblk->numpassesinlayers;
253 for (passno = cblk->numpassesinlayers; passno < cblk->totalpasses; passno++) {
256 opj_tcd_pass_t *pass = &cblk->passes[passno];
262 dr = pass->rate - cblk->passes[n - 1].rate;
263 dd = pass->distortiondec - cblk->passes[n - 1].distortiondec;
275 layer->numpasses = n - cblk->numpassesinlayers;
282 if (cblk->numpassesinlayers == 0) {
283 layer->len = cblk->passes[n - 1].rate;
284 layer->data = cblk->data;
285 layer->disto = cblk->passes[n - 1].distortiondec;
287 layer->len = cblk->passes[n - 1].rate - cblk->passes[cblk->numpassesinlayers - 1].rate;
288 layer->data = cblk->data + cblk->passes[cblk->numpassesinlayers - 1].rate;
289 layer->disto = cblk->passes[n - 1].distortiondec - cblk->passes[cblk->numpassesinlayers - 1].distortiondec;
295 cblk->numpassesinlayers = n;
336 opj_tcd_cblk_enc_t *cblk = &prc->cblks.enc[cblkno];
337 opj_tcd_layer_t *layer = &cblk->layers[layno];
339 OPJ_INT32 imsb = (OPJ_INT32)(tcd->image->comps[compno].prec - cblk->numbps); /* number of bit-plan equal to zero */
360 cblk->numpassesinlayers = 0;
363 n = cblk->numpassesinlayers;
364 if (cblk->numpassesinlayers == 0) {
366 n = 3 * (OPJ_UINT32)value - 2 + cblk->numpassesinlayers;
368 n = cblk->numpassesinlayers;
371 n = 3 * (OPJ_UINT32)value + cblk->numpassesinlayers;
374 layer->numpasses = n - cblk->numpassesinlayers;
379 if (cblk->numpassesinlayers == 0) {
380 layer->len = cblk->passes[n - 1].rate;
381 layer->data = cblk->data;
383 layer->len = cblk->passes[n - 1].rate - cblk->passes[cblk->numpassesinlayers - 1].rate;
384 layer->data = cblk->data + cblk->passes[cblk->numpassesinlayers - 1].rate;
388 cblk->numpassesinlayers = n;
432 opj_tcd_cblk_enc_t *cblk = &prc->cblks.enc[cblkno];
434 for (passno = 0; passno < cblk->totalpasses; passno++) {
435 opj_tcd_pass_t *pass = &cblk->passes[passno];
443 dr = (OPJ_INT32)(pass->rate - cblk->passes[passno - 1].rate);
444 dd = pass->distortiondec - cblk->passes[passno - 1].distortiondec;
462 tcd_tile->numpix += ((cblk->x1 - cblk->x0) * (cblk->y1 - cblk->y0));
463 tilec->numpix += ((cblk->x1 - cblk->x0) * (cblk->y1 - cblk->y0));