Lines Matching refs:tilec
64 opj_tcd_tilecomp_t *tilec = &tile->comps[compno]; in tcd_dump() local
68 tilec->x0, tilec->y0, tilec->x1, tilec->y1, tilec->numresolutions); in tcd_dump()
69 for (resno = 0; resno < tilec->numresolutions; resno++) { in tcd_dump()
70 opj_tcd_resolution_t *res = &tilec->resolutions[resno]; in tcd_dump()
249 opj_tcd_tilecomp_t *tilec = &tcd_tile->comps[compno]; in opj_tcd_makelayer() local
251 for (resno = 0; resno < tilec->numresolutions; resno++) { in opj_tcd_makelayer()
252 opj_tcd_resolution_t *res = &tilec->resolutions[resno]; in opj_tcd_makelayer()
350 opj_tcd_tilecomp_t *tilec = &tcd_tile->comps[compno]; in opj_tcd_makelayer_fixed() local
353 for (j = 0; j < tilec->numresolutions; j++) { in opj_tcd_makelayer_fixed()
357 tilec->numresolutions * 3 + j * 3 + k] in opj_tcd_makelayer_fixed()
363 for (resno = 0; resno < tilec->numresolutions; resno++) { in opj_tcd_makelayer_fixed()
364 opj_tcd_resolution_t *res = &tilec->resolutions[resno]; in opj_tcd_makelayer_fixed()
466 opj_tcd_tilecomp_t *tilec = &tcd_tile->comps[compno]; in opj_tcd_rateallocate() local
467 tilec->numpix = 0; in opj_tcd_rateallocate()
469 for (resno = 0; resno < tilec->numresolutions; resno++) { in opj_tcd_rateallocate()
470 opj_tcd_resolution_t *res = &tilec->resolutions[resno]; in opj_tcd_rateallocate()
515 tilec->numpix += ((cblk->x1 - cblk->x0) * (cblk->y1 - cblk->y0)); in opj_tcd_rateallocate()
523 * ((OPJ_FLOAT64)(tilec->numpix)); in opj_tcd_rateallocate()
1505 opj_tcd_tilecomp_t* tilec = &(p_tcd->tcd_image->tiles->comps[compno]); in opj_tcd_decode_tile() local
1507 (tilec->resolutions[tilec->minimum_num_resolutions - 1]); in opj_tcd_decode_tile()
1533 tilec->data_size_needed = l_data_size; in opj_tcd_decode_tile()
1535 if (!opj_alloc_tile_component_data(tilec)) { in opj_tcd_decode_tile()
1547 opj_tcd_tilecomp_t* tilec = &(p_tcd->tcd_image->tiles->comps[compno]); in opj_tcd_decode_tile() local
1556 tilec->win_x0 = opj_uint_max( in opj_tcd_decode_tile()
1557 (OPJ_UINT32)tilec->x0, in opj_tcd_decode_tile()
1559 tilec->win_y0 = opj_uint_max( in opj_tcd_decode_tile()
1560 (OPJ_UINT32)tilec->y0, in opj_tcd_decode_tile()
1562 tilec->win_x1 = opj_uint_min( in opj_tcd_decode_tile()
1563 (OPJ_UINT32)tilec->x1, in opj_tcd_decode_tile()
1565 tilec->win_y1 = opj_uint_min( in opj_tcd_decode_tile()
1566 (OPJ_UINT32)tilec->y1, in opj_tcd_decode_tile()
1568 if (tilec->win_x1 < tilec->win_x0 || in opj_tcd_decode_tile()
1569 tilec->win_y1 < tilec->win_y0) { in opj_tcd_decode_tile()
1578 for (resno = 0; resno < tilec->numresolutions; ++resno) { in opj_tcd_decode_tile()
1579 opj_tcd_resolution_t *res = tilec->resolutions + resno; in opj_tcd_decode_tile()
1580 res->win_x0 = opj_uint_ceildivpow2(tilec->win_x0, in opj_tcd_decode_tile()
1581 tilec->numresolutions - 1 - resno); in opj_tcd_decode_tile()
1582 res->win_y0 = opj_uint_ceildivpow2(tilec->win_y0, in opj_tcd_decode_tile()
1583 tilec->numresolutions - 1 - resno); in opj_tcd_decode_tile()
1584 res->win_x1 = opj_uint_ceildivpow2(tilec->win_x1, in opj_tcd_decode_tile()
1585 tilec->numresolutions - 1 - resno); in opj_tcd_decode_tile()
1586 res->win_y1 = opj_uint_ceildivpow2(tilec->win_y1, in opj_tcd_decode_tile()
1587 tilec->numresolutions - 1 - resno); in opj_tcd_decode_tile()
1638 opj_tcd_tilecomp_t* tilec = &(p_tcd->tcd_image->tiles->comps[compno]); in opj_tcd_decode_tile() local
1640 opj_tcd_resolution_t *res = tilec->resolutions + image_comp->resno_decoded; in opj_tcd_decode_tile()
1645 opj_image_data_free(tilec->data_win); in opj_tcd_decode_tile()
1646 tilec->data_win = NULL; in opj_tcd_decode_tile()
1666 tilec->data_win = (OPJ_INT32*) opj_image_data_alloc(l_data_size); in opj_tcd_decode_tile()
1667 if (tilec->data_win == NULL) { in opj_tcd_decode_tile()
2707 opj_tcd_tilecomp_t *tilec = &(tcd->tcd_image->tiles->comps[compno]); in opj_tcd_is_subband_area_of_interest() local
2712 (OPJ_UINT32)tilec->x0, in opj_tcd_is_subband_area_of_interest()
2715 (OPJ_UINT32)tilec->y0, in opj_tcd_is_subband_area_of_interest()
2718 (OPJ_UINT32)tilec->x1, in opj_tcd_is_subband_area_of_interest()
2721 (OPJ_UINT32)tilec->y1, in opj_tcd_is_subband_area_of_interest()
2725 tilec->numresolutions - 1 : in opj_tcd_is_subband_area_of_interest()
2726 tilec->numresolutions - resno; in opj_tcd_is_subband_area_of_interest()
2780 opj_tcd_tilecomp_t* tilec = &(p_tcd->tcd_image->tiles->comps[compno]); in opj_tcd_is_whole_tilecomp_decoding() local
2785 (OPJ_UINT32)tilec->x0, in opj_tcd_is_whole_tilecomp_decoding()
2788 (OPJ_UINT32)tilec->y0, in opj_tcd_is_whole_tilecomp_decoding()
2791 (OPJ_UINT32)tilec->x1, in opj_tcd_is_whole_tilecomp_decoding()
2794 (OPJ_UINT32)tilec->y1, in opj_tcd_is_whole_tilecomp_decoding()
2797 OPJ_UINT32 shift = tilec->numresolutions - tilec->minimum_num_resolutions; in opj_tcd_is_whole_tilecomp_decoding()
2800 return (tcx0 >= (OPJ_UINT32)tilec->x0 && in opj_tcd_is_whole_tilecomp_decoding()
2801 tcy0 >= (OPJ_UINT32)tilec->y0 && in opj_tcd_is_whole_tilecomp_decoding()
2802 tcx1 <= (OPJ_UINT32)tilec->x1 && in opj_tcd_is_whole_tilecomp_decoding()
2803 tcy1 <= (OPJ_UINT32)tilec->y1 && in opj_tcd_is_whole_tilecomp_decoding()
2805 (((tcx0 - (OPJ_UINT32)tilec->x0) >> shift) == 0 && in opj_tcd_is_whole_tilecomp_decoding()
2806 ((tcy0 - (OPJ_UINT32)tilec->y0) >> shift) == 0 && in opj_tcd_is_whole_tilecomp_decoding()
2807 (((OPJ_UINT32)tilec->x1 - tcx1) >> shift) == 0 && in opj_tcd_is_whole_tilecomp_decoding()
2808 (((OPJ_UINT32)tilec->y1 - tcy1) >> shift) == 0))); in opj_tcd_is_whole_tilecomp_decoding()