Lines Matching refs:OPJ_UINT32
114 static INLINE OPJ_BOOL opj_tcd_init_tile(opj_tcd_t *p_tcd, OPJ_UINT32 p_tile_no,
156 OPJ_UINT32 * p_data_read,
157 OPJ_UINT32 p_max_src_size,
182 OPJ_UINT32 * p_data_written,
183 OPJ_UINT32 p_max_dest_size,
189 OPJ_UINT32 p_max_dest_size,
195 OPJ_UINT32 compno);
228 OPJ_UINT32 layno; in opj_tcd_rateallocate_fixed()
237 OPJ_UINT32 layno, in opj_tcd_makelayer()
239 OPJ_UINT32 final) in opj_tcd_makelayer()
241 OPJ_UINT32 compno, resno, bandno, precno, cblkno; in opj_tcd_makelayer()
242 OPJ_UINT32 passno; in opj_tcd_makelayer()
268 OPJ_UINT32 n; in opj_tcd_makelayer()
281 OPJ_UINT32 dr; in opj_tcd_makelayer()
337 void opj_tcd_makelayer_fixed(opj_tcd_t *tcd, OPJ_UINT32 layno, in opj_tcd_makelayer_fixed()
338 OPJ_UINT32 final) in opj_tcd_makelayer_fixed()
340 OPJ_UINT32 compno, resno, bandno, precno, cblkno; in opj_tcd_makelayer_fixed()
343 OPJ_UINT32 i, j, k; in opj_tcd_makelayer_fixed()
380 OPJ_UINT32 n; in opj_tcd_makelayer_fixed()
409 n = 3 * (OPJ_UINT32)value - 2 + cblk->numpassesinlayers; in opj_tcd_makelayer_fixed()
414 n = 3 * (OPJ_UINT32)value + cblk->numpassesinlayers; in opj_tcd_makelayer_fixed()
444 OPJ_UINT32 * p_data_written, in opj_tcd_rateallocate()
445 OPJ_UINT32 len, in opj_tcd_rateallocate()
449 OPJ_UINT32 compno, resno, bandno, precno, cblkno, layno; in opj_tcd_rateallocate()
450 OPJ_UINT32 passno; in opj_tcd_rateallocate()
542 OPJ_UINT32 maxlen = tcd_tcp->rates[layno] > 0.0f ? opj_uint_min((( in opj_tcd_rateallocate()
543 OPJ_UINT32) ceil(tcd_tcp->rates[layno])), len) : len; in opj_tcd_rateallocate()
546 OPJ_UINT32 i; in opj_tcd_rateallocate()
720 static INLINE OPJ_BOOL opj_tcd_init_tile(opj_tcd_t *p_tcd, OPJ_UINT32 p_tile_no, in opj_tcd_init_tile()
724 OPJ_UINT32(*l_gain_ptr)(OPJ_UINT32) = 00; in opj_tcd_init_tile()
725 OPJ_UINT32 compno, resno, bandno, precno, cblkno; in opj_tcd_init_tile()
737 OPJ_UINT32 p, q; in opj_tcd_init_tile()
738 OPJ_UINT32 l_level_no; in opj_tcd_init_tile()
739 OPJ_UINT32 l_pdx, l_pdy; in opj_tcd_init_tile()
740 OPJ_UINT32 l_gain; in opj_tcd_init_tile()
742 OPJ_UINT32 l_tx0, l_ty0; in opj_tcd_init_tile()
746 OPJ_UINT32 l_nb_precincts; in opj_tcd_init_tile()
748 OPJ_UINT32 l_nb_precinct_size; in opj_tcd_init_tile()
750 OPJ_UINT32 l_nb_code_blocks; in opj_tcd_init_tile()
752 OPJ_UINT32 l_nb_code_blocks_size; in opj_tcd_init_tile()
754 OPJ_UINT32 l_data_size; in opj_tcd_init_tile()
837 if (SIZE_MAX / sizeof(OPJ_UINT32) < l_tile_data_size) { in opj_tcd_init_tile()
841 l_tile_data_size = l_tile_data_size * sizeof(OPJ_UINT32); in opj_tcd_init_tile()
846 l_data_size = l_tilec->numresolutions * (OPJ_UINT32)sizeof( in opj_tcd_init_tile()
894 OPJ_UINT32 cbgwidthexpn, cbgheightexpn; in opj_tcd_init_tile()
895 OPJ_UINT32 cblkwidthexpn, cblkheightexpn; in opj_tcd_init_tile()
917 l_res->pw = (l_res->x0 == l_res->x1) ? 0U : (OPJ_UINT32)(( in opj_tcd_init_tile()
919 l_res->ph = (l_res->y0 == l_res->y1) ? 0U : (OPJ_UINT32)(( in opj_tcd_init_tile()
923 if ((l_res->pw != 0U) && ((((OPJ_UINT32) - 1) / l_res->pw) < l_res->ph)) { in opj_tcd_init_tile()
929 if ((((OPJ_UINT32) - 1) / (OPJ_UINT32)sizeof(opj_tcd_precinct_t)) < in opj_tcd_init_tile()
934 l_nb_precinct_size = l_nb_precincts * (OPJ_UINT32)sizeof(opj_tcd_precinct_t); in opj_tcd_init_tile()
1068 l_current_precinct->cw = (OPJ_UINT32)((brcblkxend - tlcblkxstart) >> in opj_tcd_init_tile()
1070 l_current_precinct->ch = (OPJ_UINT32)((brcblkyend - tlcblkystart) >> in opj_tcd_init_tile()
1072 …if (l_current_precinct->cw && ((OPJ_UINT32)-1) / l_current_precinct->cw < l_current_precinct->ch) { in opj_tcd_init_tile()
1078 if (((OPJ_UINT32)-1) / (OPJ_UINT32)sizeof_block < l_nb_code_blocks) { in opj_tcd_init_tile()
1081 l_nb_code_blocks_size = l_nb_code_blocks * (OPJ_UINT32)sizeof_block; in opj_tcd_init_tile()
1179 OPJ_BOOL opj_tcd_init_encode_tile(opj_tcd_t *p_tcd, OPJ_UINT32 p_tile_no, in opj_tcd_init_encode_tile()
1186 OPJ_BOOL opj_tcd_init_decode_tile(opj_tcd_t *p_tcd, OPJ_UINT32 p_tile_no, in opj_tcd_init_decode_tile()
1223 OPJ_UINT32 l_data_size; in opj_tcd_code_block_enc_allocate_data()
1229 l_data_size = 2 + (OPJ_UINT32)((p_code_block->x1 - p_code_block->x0) * in opj_tcd_code_block_enc_allocate_data()
1230 … (p_code_block->y1 - p_code_block->y0) * (OPJ_INT32)sizeof(OPJ_UINT32)); in opj_tcd_code_block_enc_allocate_data()
1280 OPJ_UINT32 l_current_max_segs = p_code_block->m_current_max_segs; in opj_tcd_code_block_dec_allocate()
1282 OPJ_UINT32 l_numchunksalloc = p_code_block->numchunksalloc; in opj_tcd_code_block_dec_allocate()
1283 OPJ_UINT32 i; in opj_tcd_code_block_dec_allocate()
1301 OPJ_UINT32 opj_tcd_get_decoded_tile_size(opj_tcd_t *p_tcd, in opj_tcd_get_decoded_tile_size()
1304 OPJ_UINT32 i; in opj_tcd_get_decoded_tile_size()
1305 OPJ_UINT32 l_data_size = 0; in opj_tcd_get_decoded_tile_size()
1309 OPJ_UINT32 l_size_comp, l_remaining; in opj_tcd_get_decoded_tile_size()
1310 OPJ_UINT32 l_temp; in opj_tcd_get_decoded_tile_size()
1316 OPJ_UINT32 w, h; in opj_tcd_get_decoded_tile_size()
1333 w = (OPJ_UINT32)(l_res->x1 - l_res->x0); in opj_tcd_get_decoded_tile_size()
1334 h = (OPJ_UINT32)(l_res->y1 - l_res->y0); in opj_tcd_get_decoded_tile_size()
1357 OPJ_UINT32 p_tile_no, in opj_tcd_encode_tile()
1359 OPJ_UINT32 * p_data_written, in opj_tcd_encode_tile()
1360 OPJ_UINT32 p_max_length, in opj_tcd_encode_tile()
1372 OPJ_UINT32 l_num_packs = 0; in opj_tcd_encode_tile()
1373 OPJ_UINT32 i; in opj_tcd_encode_tile()
1452 OPJ_UINT32 win_x0, in opj_tcd_decode_tile()
1453 OPJ_UINT32 win_y0, in opj_tcd_decode_tile()
1454 OPJ_UINT32 win_x1, in opj_tcd_decode_tile()
1455 OPJ_UINT32 win_y1, in opj_tcd_decode_tile()
1456 OPJ_UINT32 numcomps_to_decode, in opj_tcd_decode_tile()
1457 const OPJ_UINT32 *comps_indices, in opj_tcd_decode_tile()
1459 OPJ_UINT32 p_max_length, in opj_tcd_decode_tile()
1460 OPJ_UINT32 p_tile_no, in opj_tcd_decode_tile()
1465 OPJ_UINT32 l_data_read; in opj_tcd_decode_tile()
1466 OPJ_UINT32 compno; in opj_tcd_decode_tile()
1526 if (SIZE_MAX / sizeof(OPJ_UINT32) < l_data_size) { in opj_tcd_decode_tile()
1531 l_data_size *= sizeof(OPJ_UINT32); in opj_tcd_decode_tile()
1546 OPJ_UINT32 resno; in opj_tcd_decode_tile()
1557 (OPJ_UINT32)tilec->x0, in opj_tcd_decode_tile()
1560 (OPJ_UINT32)tilec->y0, in opj_tcd_decode_tile()
1563 (OPJ_UINT32)tilec->x1, in opj_tcd_decode_tile()
1566 (OPJ_UINT32)tilec->y1, in opj_tcd_decode_tile()
1595 OPJ_UINT32 resno, compno, numprec = 0; in opj_tcd_decode_tile()
1596 for (compno = 0; compno < (OPJ_UINT32) p_cstr_info->numcomps; compno++) { in opj_tcd_decode_tile()
1707 OPJ_UINT32 p_dest_length in opj_tcd_update_tile_data()
1710 OPJ_UINT32 i, j, k, l_data_size = 0; in opj_tcd_update_tile_data()
1714 OPJ_UINT32 l_size_comp, l_remaining; in opj_tcd_update_tile_data()
1715 OPJ_UINT32 l_stride, l_width, l_height; in opj_tcd_update_tile_data()
1731 l_width = (OPJ_UINT32)(l_res->x1 - l_res->x0); in opj_tcd_update_tile_data()
1732 l_height = (OPJ_UINT32)(l_res->y1 - l_res->y0); 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()
1830 OPJ_UINT32 compno, resno, bandno, precno; in opj_tcd_free_tile()
1836 OPJ_UINT32 l_nb_resolutions, l_nb_precincts; in opj_tcd_free_tile()
1864 l_nb_resolutions = l_tile_comp->resolutions_size / (OPJ_UINT32)sizeof( in opj_tcd_free_tile()
1872 l_nb_precincts = l_band->precincts_data_size / (OPJ_UINT32)sizeof( in opj_tcd_free_tile()
1917 OPJ_UINT32 * p_data_read, in opj_tcd_t2_decode()
1918 OPJ_UINT32 p_max_src_size, in opj_tcd_t2_decode()
1952 OPJ_UINT32 compno; in opj_tcd_t1_decode()
1991 OPJ_UINT32 compno; in opj_tcd_dwt_decode()
2025 OPJ_UINT32 l_samples, i; in opj_tcd_mct_decode()
2038 l_samples = (OPJ_UINT32)((res_comp0->x1 - res_comp0->x0) * in opj_tcd_mct_decode()
2172 OPJ_UINT32 compno; in opj_tcd_dc_level_shift_decode()
2178 OPJ_UINT32 l_width, l_height, i, j; in opj_tcd_dc_level_shift_decode()
2181 OPJ_UINT32 l_stride; in opj_tcd_dc_level_shift_decode()
2203 l_width = (OPJ_UINT32)(l_res->x1 - l_res->x0); in opj_tcd_dc_level_shift_decode()
2204 l_height = (OPJ_UINT32)(l_res->y1 - l_res->y0); in opj_tcd_dc_level_shift_decode()
2205 l_stride = (OPJ_UINT32)( in opj_tcd_dc_level_shift_decode()
2265 OPJ_UINT32 cblkno, l_nb_code_blocks; in opj_tcd_code_block_dec_deallocate()
2275 l_nb_code_blocks = p_precinct->block_size / (OPJ_UINT32)sizeof( in opj_tcd_code_block_dec_deallocate()
2307 OPJ_UINT32 cblkno, l_nb_code_blocks; in opj_tcd_code_block_enc_deallocate()
2311 l_nb_code_blocks = p_precinct->block_size / (OPJ_UINT32)sizeof( in opj_tcd_code_block_enc_deallocate()
2342 OPJ_UINT32 i; in opj_tcd_get_encoded_tile_size()
2346 OPJ_UINT32 l_size_comp, l_remaining; in opj_tcd_get_encoded_tile_size()
2373 OPJ_UINT32 compno; in opj_tcd_dc_level_shift_encode()
2417 OPJ_UINT32 i; in opj_tcd_mct_encode()
2471 OPJ_UINT32 compno; in opj_tcd_dwt_encode()
2495 OPJ_UINT32 l_mct_numcomps = 0U; in opj_tcd_t1_encode()
2529 OPJ_UINT32 * p_data_written, in opj_tcd_t2_encode()
2530 OPJ_UINT32 p_max_dest_size, in opj_tcd_t2_encode()
2568 OPJ_UINT32 p_max_dest_size, in opj_tcd_rate_allocate_encode()
2573 OPJ_UINT32 l_nb_written = 0; in opj_tcd_rate_allocate_encode()
2600 OPJ_UINT32 i; in opj_tcd_copy_tile_data()
2605 OPJ_UINT32 l_size_comp, l_remaining; in opj_tcd_copy_tile_data()
2690 OPJ_UINT32 compno, in opj_tcd_is_subband_area_of_interest()
2691 OPJ_UINT32 resno, in opj_tcd_is_subband_area_of_interest()
2692 OPJ_UINT32 bandno, in opj_tcd_is_subband_area_of_interest()
2693 OPJ_UINT32 band_x0, in opj_tcd_is_subband_area_of_interest()
2694 OPJ_UINT32 band_y0, in opj_tcd_is_subband_area_of_interest()
2695 OPJ_UINT32 band_x1, in opj_tcd_is_subband_area_of_interest()
2696 OPJ_UINT32 band_y1) in opj_tcd_is_subband_area_of_interest()
2706 OPJ_UINT32 filter_margin = (tcd->tcp->tccps[compno].qmfbid == 1) ? 2 : 3; in opj_tcd_is_subband_area_of_interest()
2711 OPJ_UINT32 tcx0 = opj_uint_max( in opj_tcd_is_subband_area_of_interest()
2712 (OPJ_UINT32)tilec->x0, in opj_tcd_is_subband_area_of_interest()
2714 OPJ_UINT32 tcy0 = opj_uint_max( in opj_tcd_is_subband_area_of_interest()
2715 (OPJ_UINT32)tilec->y0, in opj_tcd_is_subband_area_of_interest()
2717 OPJ_UINT32 tcx1 = opj_uint_min( in opj_tcd_is_subband_area_of_interest()
2718 (OPJ_UINT32)tilec->x1, in opj_tcd_is_subband_area_of_interest()
2720 OPJ_UINT32 tcy1 = opj_uint_min( in opj_tcd_is_subband_area_of_interest()
2721 (OPJ_UINT32)tilec->y1, in opj_tcd_is_subband_area_of_interest()
2724 OPJ_UINT32 nb = (resno == 0) ? in opj_tcd_is_subband_area_of_interest()
2729 OPJ_UINT32 x0b = bandno & 1; in opj_tcd_is_subband_area_of_interest()
2730 OPJ_UINT32 y0b = bandno >> 1; in opj_tcd_is_subband_area_of_interest()
2731 OPJ_UINT32 tbx0 = (nb == 0) ? tcx0 : in opj_tcd_is_subband_area_of_interest()
2734 OPJ_UINT32 tby0 = (nb == 0) ? tcy0 : in opj_tcd_is_subband_area_of_interest()
2737 OPJ_UINT32 tbx1 = (nb == 0) ? tcx1 : in opj_tcd_is_subband_area_of_interest()
2740 OPJ_UINT32 tby1 = (nb == 0) ? tcy1 : in opj_tcd_is_subband_area_of_interest()
2778 OPJ_UINT32 compno) in opj_tcd_is_whole_tilecomp_decoding()
2784 OPJ_UINT32 tcx0 = opj_uint_max( in opj_tcd_is_whole_tilecomp_decoding()
2785 (OPJ_UINT32)tilec->x0, in opj_tcd_is_whole_tilecomp_decoding()
2787 OPJ_UINT32 tcy0 = opj_uint_max( in opj_tcd_is_whole_tilecomp_decoding()
2788 (OPJ_UINT32)tilec->y0, in opj_tcd_is_whole_tilecomp_decoding()
2790 OPJ_UINT32 tcx1 = opj_uint_min( in opj_tcd_is_whole_tilecomp_decoding()
2791 (OPJ_UINT32)tilec->x1, in opj_tcd_is_whole_tilecomp_decoding()
2793 OPJ_UINT32 tcy1 = opj_uint_min( 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()