Lines Matching refs:l_tilec

689 OPJ_BOOL opj_alloc_tile_component_data(opj_tcd_tilecomp_t *l_tilec)  in opj_alloc_tile_component_data()  argument
691 if ((l_tilec->data == 00) || in opj_alloc_tile_component_data()
692 ((l_tilec->data_size_needed > l_tilec->data_size) && in opj_alloc_tile_component_data()
693 (l_tilec->ownsData == OPJ_FALSE))) { in opj_alloc_tile_component_data()
694 l_tilec->data = (OPJ_INT32 *) opj_image_data_alloc(l_tilec->data_size_needed); in opj_alloc_tile_component_data()
695 if (!l_tilec->data && l_tilec->data_size_needed != 0) { in opj_alloc_tile_component_data()
699 l_tilec->data_size = l_tilec->data_size_needed; in opj_alloc_tile_component_data()
700 l_tilec->ownsData = OPJ_TRUE; in opj_alloc_tile_component_data()
701 } else if (l_tilec->data_size_needed > l_tilec->data_size) { in opj_alloc_tile_component_data()
703 opj_image_data_free(l_tilec->data); in opj_alloc_tile_component_data()
704 l_tilec->data = (OPJ_INT32 *) opj_image_data_alloc(l_tilec->data_size_needed); in opj_alloc_tile_component_data()
705 if (! l_tilec->data) { in opj_alloc_tile_component_data()
706 l_tilec->data_size = 0; in opj_alloc_tile_component_data()
707 l_tilec->data_size_needed = 0; in opj_alloc_tile_component_data()
708 l_tilec->ownsData = OPJ_FALSE; in opj_alloc_tile_component_data()
712 l_tilec->data_size = l_tilec->data_size_needed; in opj_alloc_tile_component_data()
713 l_tilec->ownsData = OPJ_TRUE; in opj_alloc_tile_component_data()
730 opj_tcd_tilecomp_t *l_tilec = 00; in opj_tcd_init_tile() local
760 l_tilec = l_tile->comps; in opj_tcd_init_tile()
803 l_tilec->x0 = opj_int_ceildiv(l_tile->x0, (OPJ_INT32)l_image_comp->dx); in opj_tcd_init_tile()
804 l_tilec->y0 = opj_int_ceildiv(l_tile->y0, (OPJ_INT32)l_image_comp->dy); in opj_tcd_init_tile()
805 l_tilec->x1 = opj_int_ceildiv(l_tile->x1, (OPJ_INT32)l_image_comp->dx); in opj_tcd_init_tile()
806 l_tilec->y1 = opj_int_ceildiv(l_tile->y1, (OPJ_INT32)l_image_comp->dy); in opj_tcd_init_tile()
807 l_tilec->compno = compno; in opj_tcd_init_tile()
810 l_tilec->numresolutions = l_tccp->numresolutions; in opj_tcd_init_tile()
812 l_tilec->minimum_num_resolutions = 1; in opj_tcd_init_tile()
814 l_tilec->minimum_num_resolutions = l_tccp->numresolutions - in opj_tcd_init_tile()
821 if (l_tilec->x0 >= l_tilec->x1 || l_tilec->y0 >= l_tilec->y1) { in opj_tcd_init_tile()
827 OPJ_SIZE_T w = (OPJ_SIZE_T)(l_tilec->x1 - l_tilec->x0); in opj_tcd_init_tile()
828 OPJ_SIZE_T h = (OPJ_SIZE_T)(l_tilec->y1 - l_tilec->y0); in opj_tcd_init_tile()
843 l_tilec->data_size_needed = l_tile_data_size; in opj_tcd_init_tile()
846 l_data_size = l_tilec->numresolutions * (OPJ_UINT32)sizeof( in opj_tcd_init_tile()
849 opj_image_data_free(l_tilec->data_win); in opj_tcd_init_tile()
850 l_tilec->data_win = NULL; in opj_tcd_init_tile()
851 l_tilec->win_x0 = 0; in opj_tcd_init_tile()
852 l_tilec->win_y0 = 0; in opj_tcd_init_tile()
853 l_tilec->win_x1 = 0; in opj_tcd_init_tile()
854 l_tilec->win_y1 = 0; in opj_tcd_init_tile()
856 if (l_tilec->resolutions == 00) { in opj_tcd_init_tile()
857 l_tilec->resolutions = (opj_tcd_resolution_t *) opj_malloc(l_data_size); in opj_tcd_init_tile()
858 if (! l_tilec->resolutions) { in opj_tcd_init_tile()
862 l_tilec->resolutions_size = l_data_size; in opj_tcd_init_tile()
863 memset(l_tilec->resolutions, 0, l_data_size); in opj_tcd_init_tile()
864 } else if (l_data_size > l_tilec->resolutions_size) { in opj_tcd_init_tile()
866 l_tilec->resolutions, l_data_size); in opj_tcd_init_tile()
869 opj_free(l_tilec->resolutions); in opj_tcd_init_tile()
870 l_tilec->resolutions = NULL; in opj_tcd_init_tile()
871 l_tilec->resolutions_size = 0; in opj_tcd_init_tile()
874 l_tilec->resolutions = new_resolutions; in opj_tcd_init_tile()
876 memset(((OPJ_BYTE*) l_tilec->resolutions) + l_tilec->resolutions_size, 0, in opj_tcd_init_tile()
877 l_data_size - l_tilec->resolutions_size); in opj_tcd_init_tile()
878 l_tilec->resolutions_size = l_data_size; in opj_tcd_init_tile()
881 l_level_no = l_tilec->numresolutions; in opj_tcd_init_tile()
882 l_res = l_tilec->resolutions; in opj_tcd_init_tile()
891 for (resno = 0; resno < l_tilec->numresolutions; ++resno) { in opj_tcd_init_tile()
900 l_res->x0 = opj_int_ceildivpow2(l_tilec->x0, (OPJ_INT32)l_level_no); in opj_tcd_init_tile()
901 l_res->y0 = opj_int_ceildivpow2(l_tilec->y0, (OPJ_INT32)l_level_no); in opj_tcd_init_tile()
902 l_res->x1 = opj_int_ceildivpow2(l_tilec->x1, (OPJ_INT32)l_level_no); in opj_tcd_init_tile()
903 l_res->y1 = opj_int_ceildivpow2(l_tilec->y1, (OPJ_INT32)l_level_no); in opj_tcd_init_tile()
964 l_band->x0 = opj_int_ceildivpow2(l_tilec->x0, (OPJ_INT32)l_level_no); in opj_tcd_init_tile()
965 l_band->y0 = opj_int_ceildivpow2(l_tilec->y0, (OPJ_INT32)l_level_no); in opj_tcd_init_tile()
966 l_band->x1 = opj_int_ceildivpow2(l_tilec->x1, (OPJ_INT32)l_level_no); in opj_tcd_init_tile()
967 l_band->y1 = opj_int_ceildivpow2(l_tilec->y1, (OPJ_INT32)l_level_no); in opj_tcd_init_tile()
975 l_band->x0 = opj_int64_ceildivpow2(l_tilec->x0 - ((OPJ_INT64)l_x0b << in opj_tcd_init_tile()
977 l_band->y0 = opj_int64_ceildivpow2(l_tilec->y0 - ((OPJ_INT64)l_y0b << in opj_tcd_init_tile()
979 l_band->x1 = opj_int64_ceildivpow2(l_tilec->x1 - ((OPJ_INT64)l_x0b << in opj_tcd_init_tile()
981 l_band->y1 = opj_int64_ceildivpow2(l_tilec->y1 - ((OPJ_INT64)l_y0b << in opj_tcd_init_tile()
1173 ++l_tilec; in opj_tcd_init_tile()
1712 opj_tcd_tilecomp_t * l_tilec = 00; in opj_tcd_update_tile_data() local
1722 l_tilec = p_tcd->tcd_image->tiles->comps; in opj_tcd_update_tile_data()
1729 l_res = l_tilec->resolutions + l_img_comp->resno_decoded; in opj_tcd_update_tile_data()
1733 l_stride = (OPJ_UINT32)(l_tilec->resolutions[l_tilec->minimum_num_resolutions - in opj_tcd_update_tile_data()
1735l_tilec->resolutions[l_tilec->minimum_num_resolutions - 1].x0) - l_width; in opj_tcd_update_tile_data()
1736 l_src_data = l_tilec->data; in opj_tcd_update_tile_data()
1741 l_src_data = l_tilec->data_win; in opj_tcd_update_tile_data()
1819 ++l_tilec; in opj_tcd_update_tile_data()
2345 opj_tcd_tilecomp_t * l_tilec = 00; in opj_tcd_get_encoded_tile_size() local
2348 l_tilec = p_tcd->tcd_image->tiles->comps; in opj_tcd_get_encoded_tile_size()
2362 l_data_size += l_size_comp * ((OPJ_SIZE_T)(l_tilec->x1 - l_tilec->x0) * in opj_tcd_get_encoded_tile_size()
2363 (OPJ_SIZE_T)(l_tilec->y1 - l_tilec->y0)); in opj_tcd_get_encoded_tile_size()
2365 ++l_tilec; in opj_tcd_get_encoded_tile_size()
2604 opj_tcd_tilecomp_t * l_tilec = 00; in opj_tcd_copy_tile_data() local
2613 l_tilec = p_tcd->tcd_image->tiles->comps; in opj_tcd_copy_tile_data()
2618 l_nb_elem = (OPJ_SIZE_T)(l_tilec->x1 - l_tilec->x0) * in opj_tcd_copy_tile_data()
2619 (OPJ_SIZE_T)(l_tilec->y1 - l_tilec->y0); in opj_tcd_copy_tile_data()
2632 OPJ_INT32 * l_dest_ptr = l_tilec->data; in opj_tcd_copy_tile_data()
2648 OPJ_INT32 * l_dest_ptr = l_tilec->data; in opj_tcd_copy_tile_data()
2666 OPJ_INT32 * l_dest_ptr = l_tilec->data; in opj_tcd_copy_tile_data()
2678 ++l_tilec; in opj_tcd_copy_tile_data()