Lines Matching refs:l_tilec
626 OPJ_BOOL opj_alloc_tile_component_data(opj_tcd_tilecomp_t *l_tilec) in opj_alloc_tile_component_data() argument
628 …if ((l_tilec->data == 00) || ((l_tilec->data_size_needed > l_tilec->data_size) && (l_tilec->ownsDa… in opj_alloc_tile_component_data()
629 l_tilec->data = (OPJ_INT32 *) opj_malloc(l_tilec->data_size_needed); in opj_alloc_tile_component_data()
630 if (! l_tilec->data ) { in opj_alloc_tile_component_data()
634 l_tilec->data_size = l_tilec->data_size_needed; in opj_alloc_tile_component_data()
635 l_tilec->ownsData = OPJ_TRUE; in opj_alloc_tile_component_data()
637 else if (l_tilec->data_size_needed > l_tilec->data_size) { in opj_alloc_tile_component_data()
638 OPJ_INT32 * new_data = (OPJ_INT32 *) opj_realloc(l_tilec->data, l_tilec->data_size_needed); in opj_alloc_tile_component_data()
642 opj_free(l_tilec->data); in opj_alloc_tile_component_data()
643 l_tilec->data = NULL; in opj_alloc_tile_component_data()
644 l_tilec->data_size = 0; in opj_alloc_tile_component_data()
645 l_tilec->data_size_needed = 0; in opj_alloc_tile_component_data()
646 l_tilec->ownsData = OPJ_FALSE; in opj_alloc_tile_component_data()
649 l_tilec->data = new_data; in opj_alloc_tile_component_data()
651 l_tilec->data_size = l_tilec->data_size_needed; in opj_alloc_tile_component_data()
652 l_tilec->ownsData = OPJ_TRUE; in opj_alloc_tile_component_data()
667 opj_tcd_tilecomp_t *l_tilec = 00; in opj_tcd_init_tile() local
697 l_tilec = l_tile->comps; in opj_tcd_init_tile()
732 l_tilec->x0 = opj_int_ceildiv(l_tile->x0, (OPJ_INT32)l_image_comp->dx); in opj_tcd_init_tile()
733 l_tilec->y0 = opj_int_ceildiv(l_tile->y0, (OPJ_INT32)l_image_comp->dy); in opj_tcd_init_tile()
734 l_tilec->x1 = opj_int_ceildiv(l_tile->x1, (OPJ_INT32)l_image_comp->dx); in opj_tcd_init_tile()
735 l_tilec->y1 = opj_int_ceildiv(l_tile->y1, (OPJ_INT32)l_image_comp->dy); in opj_tcd_init_tile()
737 if (l_tilec->x0 >= l_tilec->x1 || l_tilec->y0 >= l_tilec->y1) { in opj_tcd_init_tile()
742 l_data_size = (OPJ_UINT32)(l_tilec->x1 - l_tilec->x0); in opj_tcd_init_tile()
743 if ((((OPJ_UINT32)-1) / l_data_size) < (OPJ_UINT32)(l_tilec->y1 - l_tilec->y0)) { in opj_tcd_init_tile()
747 l_data_size = l_data_size * (OPJ_UINT32)(l_tilec->y1 - l_tilec->y0); in opj_tcd_init_tile()
754 l_tilec->numresolutions = l_tccp->numresolutions; in opj_tcd_init_tile()
756 l_tilec->minimum_num_resolutions = 1; in opj_tcd_init_tile()
759 … l_tilec->minimum_num_resolutions = l_tccp->numresolutions - l_cp->m_specific_param.m_dec.m_reduce; in opj_tcd_init_tile()
762 l_tilec->data_size_needed = l_data_size; in opj_tcd_init_tile()
763 if (p_tcd->m_is_decoder && !opj_alloc_tile_component_data(l_tilec)) { in opj_tcd_init_tile()
768 l_data_size = l_tilec->numresolutions * (OPJ_UINT32)sizeof(opj_tcd_resolution_t); in opj_tcd_init_tile()
770 if (l_tilec->resolutions == 00) { in opj_tcd_init_tile()
771 l_tilec->resolutions = (opj_tcd_resolution_t *) opj_malloc(l_data_size); in opj_tcd_init_tile()
772 if (! l_tilec->resolutions ) { in opj_tcd_init_tile()
776 l_tilec->resolutions_size = l_data_size; in opj_tcd_init_tile()
777 memset(l_tilec->resolutions,0,l_data_size); in opj_tcd_init_tile()
779 else if (l_data_size > l_tilec->resolutions_size) { in opj_tcd_init_tile()
780 …opj_tcd_resolution_t* new_resolutions = (opj_tcd_resolution_t *) opj_realloc(l_tilec->resolutions,… in opj_tcd_init_tile()
783 opj_free(l_tilec->resolutions); in opj_tcd_init_tile()
784 l_tilec->resolutions = NULL; in opj_tcd_init_tile()
785 l_tilec->resolutions_size = 0; in opj_tcd_init_tile()
788 l_tilec->resolutions = new_resolutions; in opj_tcd_init_tile()
790 …memset(((OPJ_BYTE*) l_tilec->resolutions)+l_tilec->resolutions_size,0,l_data_size - l_tilec->resol… in opj_tcd_init_tile()
791 l_tilec->resolutions_size = l_data_size; in opj_tcd_init_tile()
794 l_level_no = l_tilec->numresolutions - 1; in opj_tcd_init_tile()
795 l_res = l_tilec->resolutions; in opj_tcd_init_tile()
805 for (resno = 0; resno < l_tilec->numresolutions; ++resno) { in opj_tcd_init_tile()
812 l_res->x0 = opj_int_ceildivpow2(l_tilec->x0, (OPJ_INT32)l_level_no); in opj_tcd_init_tile()
813 l_res->y0 = opj_int_ceildivpow2(l_tilec->y0, (OPJ_INT32)l_level_no); in opj_tcd_init_tile()
814 l_res->x1 = opj_int_ceildivpow2(l_tilec->x1, (OPJ_INT32)l_level_no); in opj_tcd_init_tile()
815 l_res->y1 = opj_int_ceildivpow2(l_tilec->y1, (OPJ_INT32)l_level_no); in opj_tcd_init_tile()
870 l_band->x0 = opj_int_ceildivpow2(l_tilec->x0, (OPJ_INT32)l_level_no); in opj_tcd_init_tile()
871 l_band->y0 = opj_int_ceildivpow2(l_tilec->y0, (OPJ_INT32)l_level_no); in opj_tcd_init_tile()
872 l_band->x1 = opj_int_ceildivpow2(l_tilec->x1, (OPJ_INT32)l_level_no); in opj_tcd_init_tile()
873 l_band->y1 = opj_int_ceildivpow2(l_tilec->y1, (OPJ_INT32)l_level_no); in opj_tcd_init_tile()
882 …l_band->x0 = opj_int64_ceildivpow2(l_tilec->x0 - ((OPJ_INT64)l_x0b << l_level_no), (OPJ_INT32)(l_l… in opj_tcd_init_tile()
883 …l_band->y0 = opj_int64_ceildivpow2(l_tilec->y0 - ((OPJ_INT64)l_y0b << l_level_no), (OPJ_INT32)(l_l… in opj_tcd_init_tile()
884 …l_band->x1 = opj_int64_ceildivpow2(l_tilec->x1 - ((OPJ_INT64)l_x0b << l_level_no), (OPJ_INT32)(l_l… in opj_tcd_init_tile()
885 …l_band->y1 = opj_int64_ceildivpow2(l_tilec->y1 - ((OPJ_INT64)l_y0b << l_level_no), (OPJ_INT32)(l_l… in opj_tcd_init_tile()
1057 ++l_tilec; in opj_tcd_init_tile()
1385 opj_tcd_tilecomp_t * l_tilec = 00; in opj_tcd_update_tile_data() local
1395 l_tilec = p_tcd->tcd_image->tiles->comps; in opj_tcd_update_tile_data()
1401 l_res = l_tilec->resolutions + l_img_comp->resno_decoded; in opj_tcd_update_tile_data()
1404 l_stride = (OPJ_UINT32)(l_tilec->x1 - l_tilec->x0) - l_width; in opj_tcd_update_tile_data()
1419 const OPJ_INT32 * l_src_ptr = l_tilec->data; in opj_tcd_update_tile_data()
1443 const OPJ_INT32 * l_src_ptr = l_tilec->data; in opj_tcd_update_tile_data()
1469 OPJ_INT32 * l_src_ptr = l_tilec->data; in opj_tcd_update_tile_data()
1484 ++l_tilec; in opj_tcd_update_tile_data()
1901 opj_tcd_tilecomp_t * l_tilec = 00; in opj_tcd_get_encoded_tile_size() local
1904 l_tilec = p_tcd->tcd_image->tiles->comps; in opj_tcd_get_encoded_tile_size()
1918 …l_data_size += l_size_comp * (OPJ_UINT32)((l_tilec->x1 - l_tilec->x0) * (l_tilec->y1 - l_tilec->y0… in opj_tcd_get_encoded_tile_size()
1920 ++l_tilec; in opj_tcd_get_encoded_tile_size()
2156 opj_tcd_tilecomp_t * l_tilec = 00; in opj_tcd_copy_tile_data() local
2165 l_tilec = p_tcd->tcd_image->tiles->comps; in opj_tcd_copy_tile_data()
2170 l_nb_elem = (OPJ_UINT32)((l_tilec->x1 - l_tilec->x0) * (l_tilec->y1 - l_tilec->y0)); in opj_tcd_copy_tile_data()
2184 OPJ_INT32 * l_dest_ptr = l_tilec->data; in opj_tcd_copy_tile_data()
2202 OPJ_INT32 * l_dest_ptr = l_tilec->data; in opj_tcd_copy_tile_data()
2222 OPJ_INT32 * l_dest_ptr = l_tilec->data; in opj_tcd_copy_tile_data()
2234 ++l_tilec; in opj_tcd_copy_tile_data()