Lines Matching refs:comp
274 Jpeg2000Component *comp,
363 cblk->coord[0][0] += comp->reslevel[reslevelno-1].coord[0][1] -
364 comp->reslevel[reslevelno-1].coord[0][0];
365 cblk->coord[0][1] += comp->reslevel[reslevelno-1].coord[0][1] -
366 comp->reslevel[reslevelno-1].coord[0][0];
369 cblk->coord[1][0] += comp->reslevel[reslevelno-1].coord[1][1] -
370 comp->reslevel[reslevelno-1].coord[1][0];
371 cblk->coord[1][1] += comp->reslevel[reslevelno-1].coord[1][1] -
372 comp->reslevel[reslevelno-1].coord[1][0];
390 Jpeg2000Component *comp,
414 ff_jpeg2000_ceildivpow2(comp->coord_o[i][j],
430 ff_jpeg2000_ceildivpow2(comp->coord_o[i][j] -
456 ret = init_prec(avctx, band, reslevel, comp, codsty,
466 int ff_jpeg2000_init_component(Jpeg2000Component *comp,
480 if (ret = ff_jpeg2000_dwt_init(&comp->dwt, comp->coord,
485 if (av_image_check_size(comp->coord[0][1] - comp->coord[0][0],
486 comp->coord[1][1] - comp->coord[1][0], 0, avctx))
488 csize = (comp->coord[0][1] - comp->coord[0][0]) *
489 (comp->coord[1][1] - comp->coord[1][0]);
490 if (comp->coord[0][1] - comp->coord[0][0] > 32768 ||
491 comp->coord[1][1] - comp->coord[1][0] > 32768) {
497 csize += AV_INPUT_BUFFER_PADDING_SIZE / sizeof(*comp->f_data);
498 comp->i_data = NULL;
499 comp->f_data = av_calloc(csize, sizeof(*comp->f_data));
500 if (!comp->f_data)
503 csize += AV_INPUT_BUFFER_PADDING_SIZE / sizeof(*comp->i_data);
504 comp->f_data = NULL;
505 comp->i_data = av_calloc(csize, sizeof(*comp->i_data));
506 if (!comp->i_data)
509 comp->reslevel = av_calloc(codsty->nreslevels, sizeof(*comp->reslevel));
510 if (!comp->reslevel)
515 Jpeg2000ResLevel *reslevel = comp->reslevel + reslevelno;
523 ff_jpeg2000_ceildivpow2(comp->coord_o[i][j], declvl - 1);
566 comp, codsty, qntsty,
576 void ff_jpeg2000_reinit(Jpeg2000Component *comp, Jpeg2000CodingStyle *codsty)
580 Jpeg2000ResLevel *rlevel = comp->reslevel + reslevelno;
597 void ff_jpeg2000_cleanup(Jpeg2000Component *comp, Jpeg2000CodingStyle *codsty)
601 comp->reslevel && reslevelno < codsty->nreslevels;
605 if (!comp->reslevel)
608 reslevel = comp->reslevel + reslevelno;
643 ff_dwt_destroy(&comp->dwt);
644 av_freep(&comp->reslevel);
645 av_freep(&comp->i_data);
646 av_freep(&comp->f_data);