• Home
  • Raw
  • Download

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()
914 OPJ_UINT32 tmp = ((OPJ_UINT32)opj_int_ceildivpow2(l_res->x1, in opj_tcd_init_tile()
916 if (tmp > (OPJ_UINT32)INT_MAX) { in opj_tcd_init_tile()
923 OPJ_UINT32 tmp = ((OPJ_UINT32)opj_int_ceildivpow2(l_res->y1, in opj_tcd_init_tile()
925 if (tmp > (OPJ_UINT32)INT_MAX) { in opj_tcd_init_tile()
933 l_res->pw = (l_res->x0 == l_res->x1) ? 0U : (OPJ_UINT32)(( in opj_tcd_init_tile()
935 l_res->ph = (l_res->y0 == l_res->y1) ? 0U : (OPJ_UINT32)(( in opj_tcd_init_tile()
939 if ((l_res->pw != 0U) && ((((OPJ_UINT32) - 1) / l_res->pw) < l_res->ph)) { in opj_tcd_init_tile()
945 if ((((OPJ_UINT32) - 1) / (OPJ_UINT32)sizeof(opj_tcd_precinct_t)) < in opj_tcd_init_tile()
950 l_nb_precinct_size = l_nb_precincts * (OPJ_UINT32)sizeof(opj_tcd_precinct_t); in opj_tcd_init_tile()
1084 l_current_precinct->cw = (OPJ_UINT32)((brcblkxend - tlcblkxstart) >> in opj_tcd_init_tile()
1086 l_current_precinct->ch = (OPJ_UINT32)((brcblkyend - tlcblkystart) >> in opj_tcd_init_tile()
1089 …if (l_current_precinct->cw && ((OPJ_UINT32)-1) / l_current_precinct->cw < l_current_precinct->ch) { in opj_tcd_init_tile()
1094 if ((((OPJ_UINT32) - 1) / (OPJ_UINT32)sizeof_block) < in opj_tcd_init_tile()
1100 l_nb_code_blocks_size = l_nb_code_blocks * (OPJ_UINT32)sizeof_block; in opj_tcd_init_tile()
1198 OPJ_BOOL opj_tcd_init_encode_tile(opj_tcd_t *p_tcd, OPJ_UINT32 p_tile_no, in opj_tcd_init_encode_tile()
1205 OPJ_BOOL opj_tcd_init_decode_tile(opj_tcd_t *p_tcd, OPJ_UINT32 p_tile_no, in opj_tcd_init_decode_tile()
1242 OPJ_UINT32 l_data_size; in opj_tcd_code_block_enc_allocate_data()
1248 l_data_size = 2 + (OPJ_UINT32)((p_code_block->x1 - p_code_block->x0) * in opj_tcd_code_block_enc_allocate_data()
1249 … (p_code_block->y1 - p_code_block->y0) * (OPJ_INT32)sizeof(OPJ_UINT32)); in opj_tcd_code_block_enc_allocate_data()
1299 OPJ_UINT32 l_current_max_segs = p_code_block->m_current_max_segs; in opj_tcd_code_block_dec_allocate()
1301 OPJ_UINT32 l_numchunksalloc = p_code_block->numchunksalloc; in opj_tcd_code_block_dec_allocate()
1302 OPJ_UINT32 i; in opj_tcd_code_block_dec_allocate()
1320 OPJ_UINT32 opj_tcd_get_decoded_tile_size(opj_tcd_t *p_tcd, in opj_tcd_get_decoded_tile_size()
1323 OPJ_UINT32 i; in opj_tcd_get_decoded_tile_size()
1324 OPJ_UINT32 l_data_size = 0; in opj_tcd_get_decoded_tile_size()
1328 OPJ_UINT32 l_size_comp, l_remaining; in opj_tcd_get_decoded_tile_size()
1329 OPJ_UINT32 l_temp; in opj_tcd_get_decoded_tile_size()
1335 OPJ_UINT32 w, h; in opj_tcd_get_decoded_tile_size()
1352 w = (OPJ_UINT32)(l_res->x1 - l_res->x0); in opj_tcd_get_decoded_tile_size()
1353 h = (OPJ_UINT32)(l_res->y1 - l_res->y0); in opj_tcd_get_decoded_tile_size()
1376 OPJ_UINT32 p_tile_no, in opj_tcd_encode_tile()
1378 OPJ_UINT32 * p_data_written, in opj_tcd_encode_tile()
1379 OPJ_UINT32 p_max_length, in opj_tcd_encode_tile()
1391 OPJ_UINT32 l_num_packs = 0; in opj_tcd_encode_tile()
1392 OPJ_UINT32 i; in opj_tcd_encode_tile()
1471 OPJ_UINT32 win_x0, in opj_tcd_decode_tile()
1472 OPJ_UINT32 win_y0, in opj_tcd_decode_tile()
1473 OPJ_UINT32 win_x1, in opj_tcd_decode_tile()
1474 OPJ_UINT32 win_y1, in opj_tcd_decode_tile()
1475 OPJ_UINT32 numcomps_to_decode, in opj_tcd_decode_tile()
1476 const OPJ_UINT32 *comps_indices, in opj_tcd_decode_tile()
1478 OPJ_UINT32 p_max_length, in opj_tcd_decode_tile()
1479 OPJ_UINT32 p_tile_no, in opj_tcd_decode_tile()
1484 OPJ_UINT32 l_data_read; in opj_tcd_decode_tile()
1485 OPJ_UINT32 compno; in opj_tcd_decode_tile()
1545 if (SIZE_MAX / sizeof(OPJ_UINT32) < l_data_size) { in opj_tcd_decode_tile()
1550 l_data_size *= sizeof(OPJ_UINT32); in opj_tcd_decode_tile()
1565 OPJ_UINT32 resno; in opj_tcd_decode_tile()
1576 (OPJ_UINT32)tilec->x0, in opj_tcd_decode_tile()
1579 (OPJ_UINT32)tilec->y0, in opj_tcd_decode_tile()
1582 (OPJ_UINT32)tilec->x1, in opj_tcd_decode_tile()
1585 (OPJ_UINT32)tilec->y1, in opj_tcd_decode_tile()
1614 OPJ_UINT32 resno, compno, numprec = 0; in opj_tcd_decode_tile()
1615 for (compno = 0; compno < (OPJ_UINT32) p_cstr_info->numcomps; compno++) { in opj_tcd_decode_tile()
1726 OPJ_UINT32 p_dest_length in opj_tcd_update_tile_data()
1729 OPJ_UINT32 i, j, k, l_data_size = 0; in opj_tcd_update_tile_data()
1733 OPJ_UINT32 l_size_comp, l_remaining; in opj_tcd_update_tile_data()
1734 OPJ_UINT32 l_stride, l_width, l_height; in opj_tcd_update_tile_data()
1750 l_width = (OPJ_UINT32)(l_res->x1 - l_res->x0); in opj_tcd_update_tile_data()
1751 l_height = (OPJ_UINT32)(l_res->y1 - l_res->y0); in opj_tcd_update_tile_data()
1752 l_stride = (OPJ_UINT32)(l_tilec->resolutions[l_tilec->minimum_num_resolutions - in opj_tcd_update_tile_data()
1849 OPJ_UINT32 compno, resno, bandno, precno; in opj_tcd_free_tile()
1855 OPJ_UINT32 l_nb_resolutions, l_nb_precincts; in opj_tcd_free_tile()
1883 l_nb_resolutions = l_tile_comp->resolutions_size / (OPJ_UINT32)sizeof( in opj_tcd_free_tile()
1891 l_nb_precincts = l_band->precincts_data_size / (OPJ_UINT32)sizeof( in opj_tcd_free_tile()
1936 OPJ_UINT32 * p_data_read, in opj_tcd_t2_decode()
1937 OPJ_UINT32 p_max_src_size, in opj_tcd_t2_decode()
1971 OPJ_UINT32 compno; in opj_tcd_t1_decode()
2010 OPJ_UINT32 compno; in opj_tcd_dwt_decode()
2044 OPJ_UINT32 l_samples, i; in opj_tcd_mct_decode()
2057 l_samples = (OPJ_UINT32)((res_comp0->x1 - res_comp0->x0) * in opj_tcd_mct_decode()
2191 OPJ_UINT32 compno; in opj_tcd_dc_level_shift_decode()
2197 OPJ_UINT32 l_width, l_height, i, j; in opj_tcd_dc_level_shift_decode()
2200 OPJ_UINT32 l_stride; in opj_tcd_dc_level_shift_decode()
2222 l_width = (OPJ_UINT32)(l_res->x1 - l_res->x0); in opj_tcd_dc_level_shift_decode()
2223 l_height = (OPJ_UINT32)(l_res->y1 - l_res->y0); in opj_tcd_dc_level_shift_decode()
2224 l_stride = (OPJ_UINT32)( in opj_tcd_dc_level_shift_decode()
2284 OPJ_UINT32 cblkno, l_nb_code_blocks; in opj_tcd_code_block_dec_deallocate()
2294 l_nb_code_blocks = p_precinct->block_size / (OPJ_UINT32)sizeof( in opj_tcd_code_block_dec_deallocate()
2326 OPJ_UINT32 cblkno, l_nb_code_blocks; in opj_tcd_code_block_enc_deallocate()
2330 l_nb_code_blocks = p_precinct->block_size / (OPJ_UINT32)sizeof( in opj_tcd_code_block_enc_deallocate()
2361 OPJ_UINT32 i; in opj_tcd_get_encoded_tile_size()
2365 OPJ_UINT32 l_size_comp, l_remaining; in opj_tcd_get_encoded_tile_size()
2392 OPJ_UINT32 compno; in opj_tcd_dc_level_shift_encode()
2436 OPJ_UINT32 i; in opj_tcd_mct_encode()
2490 OPJ_UINT32 compno; in opj_tcd_dwt_encode()
2514 OPJ_UINT32 l_mct_numcomps = 0U; in opj_tcd_t1_encode()
2548 OPJ_UINT32 * p_data_written, in opj_tcd_t2_encode()
2549 OPJ_UINT32 p_max_dest_size, in opj_tcd_t2_encode()
2587 OPJ_UINT32 p_max_dest_size, in opj_tcd_rate_allocate_encode()
2592 OPJ_UINT32 l_nb_written = 0; in opj_tcd_rate_allocate_encode()
2619 OPJ_UINT32 i; in opj_tcd_copy_tile_data()
2624 OPJ_UINT32 l_size_comp, l_remaining; in opj_tcd_copy_tile_data()
2709 OPJ_UINT32 compno, in opj_tcd_is_subband_area_of_interest()
2710 OPJ_UINT32 resno, in opj_tcd_is_subband_area_of_interest()
2711 OPJ_UINT32 bandno, in opj_tcd_is_subband_area_of_interest()
2712 OPJ_UINT32 band_x0, in opj_tcd_is_subband_area_of_interest()
2713 OPJ_UINT32 band_y0, in opj_tcd_is_subband_area_of_interest()
2714 OPJ_UINT32 band_x1, in opj_tcd_is_subband_area_of_interest()
2715 OPJ_UINT32 band_y1) in opj_tcd_is_subband_area_of_interest()
2725 OPJ_UINT32 filter_margin = (tcd->tcp->tccps[compno].qmfbid == 1) ? 2 : 3; in opj_tcd_is_subband_area_of_interest()
2730 OPJ_UINT32 tcx0 = opj_uint_max( in opj_tcd_is_subband_area_of_interest()
2731 (OPJ_UINT32)tilec->x0, in opj_tcd_is_subband_area_of_interest()
2733 OPJ_UINT32 tcy0 = opj_uint_max( in opj_tcd_is_subband_area_of_interest()
2734 (OPJ_UINT32)tilec->y0, in opj_tcd_is_subband_area_of_interest()
2736 OPJ_UINT32 tcx1 = opj_uint_min( in opj_tcd_is_subband_area_of_interest()
2737 (OPJ_UINT32)tilec->x1, in opj_tcd_is_subband_area_of_interest()
2739 OPJ_UINT32 tcy1 = opj_uint_min( in opj_tcd_is_subband_area_of_interest()
2740 (OPJ_UINT32)tilec->y1, in opj_tcd_is_subband_area_of_interest()
2743 OPJ_UINT32 nb = (resno == 0) ? in opj_tcd_is_subband_area_of_interest()
2748 OPJ_UINT32 x0b = bandno & 1; in opj_tcd_is_subband_area_of_interest()
2749 OPJ_UINT32 y0b = bandno >> 1; in opj_tcd_is_subband_area_of_interest()
2750 OPJ_UINT32 tbx0 = (nb == 0) ? tcx0 : in opj_tcd_is_subband_area_of_interest()
2753 OPJ_UINT32 tby0 = (nb == 0) ? tcy0 : in opj_tcd_is_subband_area_of_interest()
2756 OPJ_UINT32 tbx1 = (nb == 0) ? tcx1 : in opj_tcd_is_subband_area_of_interest()
2759 OPJ_UINT32 tby1 = (nb == 0) ? tcy1 : in opj_tcd_is_subband_area_of_interest()
2797 OPJ_UINT32 compno) in opj_tcd_is_whole_tilecomp_decoding()
2803 OPJ_UINT32 tcx0 = opj_uint_max( in opj_tcd_is_whole_tilecomp_decoding()
2804 (OPJ_UINT32)tilec->x0, in opj_tcd_is_whole_tilecomp_decoding()
2806 OPJ_UINT32 tcy0 = opj_uint_max( in opj_tcd_is_whole_tilecomp_decoding()
2807 (OPJ_UINT32)tilec->y0, in opj_tcd_is_whole_tilecomp_decoding()
2809 OPJ_UINT32 tcx1 = opj_uint_min( in opj_tcd_is_whole_tilecomp_decoding()
2810 (OPJ_UINT32)tilec->x1, in opj_tcd_is_whole_tilecomp_decoding()
2812 OPJ_UINT32 tcy1 = opj_uint_min( in opj_tcd_is_whole_tilecomp_decoding()
2813 (OPJ_UINT32)tilec->y1, in opj_tcd_is_whole_tilecomp_decoding()
2816 OPJ_UINT32 shift = tilec->numresolutions - tilec->minimum_num_resolutions; in opj_tcd_is_whole_tilecomp_decoding()
2819 return (tcx0 >= (OPJ_UINT32)tilec->x0 && in opj_tcd_is_whole_tilecomp_decoding()
2820 tcy0 >= (OPJ_UINT32)tilec->y0 && in opj_tcd_is_whole_tilecomp_decoding()
2821 tcx1 <= (OPJ_UINT32)tilec->x1 && in opj_tcd_is_whole_tilecomp_decoding()
2822 tcy1 <= (OPJ_UINT32)tilec->y1 && in opj_tcd_is_whole_tilecomp_decoding()
2824 (((tcx0 - (OPJ_UINT32)tilec->x0) >> shift) == 0 && in opj_tcd_is_whole_tilecomp_decoding()
2825 ((tcy0 - (OPJ_UINT32)tilec->y0) >> shift) == 0 && in opj_tcd_is_whole_tilecomp_decoding()
2826 (((OPJ_UINT32)tilec->x1 - tcx1) >> shift) == 0 && in opj_tcd_is_whole_tilecomp_decoding()
2827 (((OPJ_UINT32)tilec->y1 - tcy1) >> shift) == 0))); in opj_tcd_is_whole_tilecomp_decoding()