• Home
  • Raw
  • Download

Lines Matching refs:OPJ_UINT32

198     OPJ_UINT32 p_id);
232 OPJ_UINT32 p_tile_no, OPJ_UINT32 p_first_comp_no, OPJ_UINT32 p_second_comp_no);
247 OPJ_UINT32 p_tile_no,
248 OPJ_UINT32 p_comp_no,
250 OPJ_UINT32 * p_header_size,
262 static OPJ_UINT32 opj_j2k_get_SPCod_SPCoc_size(opj_j2k_t *p_j2k,
263 OPJ_UINT32 p_tile_no,
264 OPJ_UINT32 p_comp_no);
275 OPJ_UINT32 compno,
277 OPJ_UINT32 * p_header_size,
289 static OPJ_UINT32 opj_j2k_get_SQcd_SQcc_size(opj_j2k_t *p_j2k,
290 OPJ_UINT32 p_tile_no,
291 OPJ_UINT32 p_comp_no);
304 OPJ_UINT32 p_tile_no, OPJ_UINT32 p_first_comp_no, OPJ_UINT32 p_second_comp_no);
319 OPJ_UINT32 p_tile_no,
320 OPJ_UINT32 p_comp_no,
322 OPJ_UINT32 * p_header_size,
328 static void opj_j2k_update_tlm(opj_j2k_t * p_j2k, OPJ_UINT32 p_tile_part_size);
341 OPJ_UINT32 compno,
343 OPJ_UINT32 * p_header_size,
368 OPJ_UINT32 p_tile_index,
378 OPJ_UINT32* l_size_comp,
379 OPJ_UINT32* l_width,
380 OPJ_UINT32* l_height,
381 OPJ_UINT32* l_offset_x,
382 OPJ_UINT32* l_offset_y,
383 OPJ_UINT32* l_image_width,
384 OPJ_UINT32* l_stride,
385 OPJ_UINT32* l_tile_offset);
402 OPJ_UINT32 * p_data_written,
403 OPJ_UINT32 p_total_data_size,
409 OPJ_UINT32 * p_data_written,
410 OPJ_UINT32 p_total_data_size,
474 OPJ_UINT32 p_header_size,
497 OPJ_UINT32 p_header_size,
519 OPJ_UINT32 p_header_size,
532 OPJ_UINT32 p_first_comp_no, OPJ_UINT32 p_second_comp_no);
543 OPJ_UINT32 p_comp_no,
557 OPJ_UINT32 p_comp_no,
559 OPJ_UINT32 * p_data_written,
567 static OPJ_UINT32 opj_j2k_get_max_coc_size(opj_j2k_t *p_j2k);
578 OPJ_UINT32 p_header_size,
601 OPJ_UINT32 p_header_size,
614 OPJ_UINT32 p_first_comp_no, OPJ_UINT32 p_second_comp_no);
625 OPJ_UINT32 p_comp_no,
639 OPJ_UINT32 p_comp_no,
641 OPJ_UINT32 * p_data_written,
647 static OPJ_UINT32 opj_j2k_get_max_qcc_size(opj_j2k_t *p_j2k);
658 OPJ_UINT32 p_header_size,
680 OPJ_UINT32 * p_data_written,
685 static OPJ_UINT32 opj_j2k_get_max_poc_size(opj_j2k_t *p_j2k);
697 OPJ_UINT32 p_header_size,
703 static OPJ_UINT32 opj_j2k_get_max_toc_size(opj_j2k_t *p_j2k);
710 static OPJ_UINT32 opj_j2k_get_specific_header_sizes(opj_j2k_t *p_j2k);
722 OPJ_UINT32 p_header_size,
734 OPJ_UINT32 p_header_size,
758 OPJ_UINT32 p_header_size,
770 OPJ_UINT32 p_header_size,
785 OPJ_UINT32 p_header_size,
806 OPJ_UINT32 p_header_size,
842 OPJ_UINT32 p_total_data_size,
843 OPJ_UINT32 * p_data_written,
861 OPJ_UINT32 p_header_size,
862 OPJ_UINT32* p_tile_no,
863 OPJ_UINT32* p_tot_len,
864 OPJ_UINT32* p_current_part,
865 OPJ_UINT32* p_num_parts,
877 OPJ_UINT32 p_header_size,
893 OPJ_UINT32 * p_data_written,
894 OPJ_UINT32 p_total_data_size,
909 static void opj_j2k_update_tlm(opj_j2k_t * p_j2k, OPJ_UINT32 p_tile_part_size) in opj_j2k_update_tlm()
931 OPJ_UINT32 p_tile_no,
932 OPJ_UINT32 p_comp_no,
933 OPJ_UINT32 nb_comps,
947 OPJ_UINT32 p_header_size,
1004 OPJ_UINT32 type, OPJ_OFF_T pos, OPJ_UINT32 len) ;
1013 static OPJ_BOOL opj_j2k_add_tlmarker(OPJ_UINT32 tileno,
1014 … opj_codestream_index_t *cstr_index, OPJ_UINT32 type, OPJ_OFF_T pos,
1015 OPJ_UINT32 len);
1029 OPJ_UINT32 *output_marker,
1055 OPJ_UINT32 p_header_size,
1081 OPJ_UINT32 p_header_size,
1105 OPJ_UINT32 p_header_size,
1109 OPJ_UINT32 p_index);
1112 void * p_dest_data, OPJ_UINT32 p_nb_elem);
1114 void * p_dest_data, OPJ_UINT32 p_nb_elem);
1116 void * p_dest_data, OPJ_UINT32 p_nb_elem);
1118 void * p_dest_data, OPJ_UINT32 p_nb_elem);
1121 void * p_dest_data, OPJ_UINT32 p_nb_elem);
1123 void * p_dest_data, OPJ_UINT32 p_nb_elem);
1125 void * p_dest_data, OPJ_UINT32 p_nb_elem);
1127 void * p_dest_data, OPJ_UINT32 p_nb_elem);
1130 void * p_dest_data, OPJ_UINT32 p_nb_elem);
1132 void * p_dest_data, OPJ_UINT32 p_nb_elem);
1134 void * p_dest_data, OPJ_UINT32 p_nb_elem);
1136 void * p_dest_data, OPJ_UINT32 p_nb_elem);
1169 OPJ_UINT32 p_header_size,
1231 OPJ_UINT32 p_nb_pocs,
1232 OPJ_UINT32 p_nb_resolutions,
1233 OPJ_UINT32 numcomps,
1234 OPJ_UINT32 numlayers,
1246 static OPJ_UINT32 opj_j2k_get_num_tp(opj_cp_t *cp, OPJ_UINT32 pino,
1247 OPJ_UINT32 tileno);
1263 OPJ_UINT32 * p_nb_tiles,
1296 *p_stream, OPJ_UINT32 tile_no, OPJ_BOOL* p_correction_needed,
1321 static const OPJ_UINT32 MCT_ELEMENT_SIZE [] = {
1329 void * p_dest_data, OPJ_UINT32 p_nb_elem);
1354 OPJ_UINT32 id;
1356 OPJ_UINT32 states;
1360 OPJ_UINT32 p_header_size,
1403 void * p_dest_data, OPJ_UINT32 p_nb_elem) in opj_j2k_read_int16_to_float()
1407 OPJ_UINT32 i; in opj_j2k_read_int16_to_float()
1408 OPJ_UINT32 l_temp; in opj_j2k_read_int16_to_float()
1420 void * p_dest_data, OPJ_UINT32 p_nb_elem) in opj_j2k_read_int32_to_float()
1424 OPJ_UINT32 i; in opj_j2k_read_int32_to_float()
1425 OPJ_UINT32 l_temp; in opj_j2k_read_int32_to_float()
1437 void * p_dest_data, OPJ_UINT32 p_nb_elem) in opj_j2k_read_float32_to_float()
1441 OPJ_UINT32 i; in opj_j2k_read_float32_to_float()
1454 void * p_dest_data, OPJ_UINT32 p_nb_elem) in opj_j2k_read_float64_to_float()
1458 OPJ_UINT32 i; in opj_j2k_read_float64_to_float()
1471 void * p_dest_data, OPJ_UINT32 p_nb_elem) in opj_j2k_read_int16_to_int32()
1475 OPJ_UINT32 i; in opj_j2k_read_int16_to_int32()
1476 OPJ_UINT32 l_temp; in opj_j2k_read_int16_to_int32()
1488 void * p_dest_data, OPJ_UINT32 p_nb_elem) in opj_j2k_read_int32_to_int32()
1492 OPJ_UINT32 i; in opj_j2k_read_int32_to_int32()
1493 OPJ_UINT32 l_temp; in opj_j2k_read_int32_to_int32()
1505 void * p_dest_data, OPJ_UINT32 p_nb_elem) in opj_j2k_read_float32_to_int32()
1509 OPJ_UINT32 i; in opj_j2k_read_float32_to_int32()
1522 void * p_dest_data, OPJ_UINT32 p_nb_elem) in opj_j2k_read_float64_to_int32()
1526 OPJ_UINT32 i; in opj_j2k_read_float64_to_int32()
1539 void * p_dest_data, OPJ_UINT32 p_nb_elem) in opj_j2k_write_float_to_int16()
1543 OPJ_UINT32 i; in opj_j2k_write_float_to_int16()
1544 OPJ_UINT32 l_temp; in opj_j2k_write_float_to_int16()
1547 l_temp = (OPJ_UINT32) * (l_src_data++); in opj_j2k_write_float_to_int16()
1556 void * p_dest_data, OPJ_UINT32 p_nb_elem) in opj_j2k_write_float_to_int32()
1560 OPJ_UINT32 i; in opj_j2k_write_float_to_int32()
1561 OPJ_UINT32 l_temp; in opj_j2k_write_float_to_int32()
1564 l_temp = (OPJ_UINT32) * (l_src_data++); in opj_j2k_write_float_to_int32()
1573 void * p_dest_data, OPJ_UINT32 p_nb_elem) in opj_j2k_write_float_to_float()
1577 OPJ_UINT32 i; in opj_j2k_write_float_to_float()
1590 void * p_dest_data, OPJ_UINT32 p_nb_elem) in opj_j2k_write_float_to_float64()
1594 OPJ_UINT32 i; in opj_j2k_write_float_to_float64()
1618 OPJ_UINT32 p_nb_pocs, in opj_j2k_check_poc_val()
1619 OPJ_UINT32 p_nb_resolutions, in opj_j2k_check_poc_val()
1620 OPJ_UINT32 p_num_comps, in opj_j2k_check_poc_val()
1621 OPJ_UINT32 p_num_layers, in opj_j2k_check_poc_val()
1624 OPJ_UINT32* packet_array; in opj_j2k_check_poc_val()
1625 OPJ_UINT32 index, resno, compno, layno; in opj_j2k_check_poc_val()
1626 OPJ_UINT32 i; in opj_j2k_check_poc_val()
1627 OPJ_UINT32 step_c = 1; in opj_j2k_check_poc_val()
1628 OPJ_UINT32 step_r = p_num_comps * step_c; in opj_j2k_check_poc_val()
1629 OPJ_UINT32 step_l = p_nb_resolutions * step_r; in opj_j2k_check_poc_val()
1631 OPJ_UINT32 layno0 = 0; in opj_j2k_check_poc_val()
1633 packet_array = (OPJ_UINT32*) opj_calloc(step_l * p_num_layers, in opj_j2k_check_poc_val()
1634 sizeof(OPJ_UINT32)); in opj_j2k_check_poc_val()
1649 OPJ_UINT32 res_index = index + p_pocs->compno0 * step_c; in opj_j2k_check_poc_val()
1653 OPJ_UINT32 comp_index = res_index + layno0 * step_l; in opj_j2k_check_poc_val()
1671 OPJ_UINT32 l_last_layno1 = (p_pocs - 1)->layno1 ; in opj_j2k_check_poc_val()
1678 OPJ_UINT32 res_index = index + p_pocs->compno0 * step_c; in opj_j2k_check_poc_val()
1682 OPJ_UINT32 comp_index = res_index + layno0 * step_l; in opj_j2k_check_poc_val()
1722 static OPJ_UINT32 opj_j2k_get_num_tp(opj_cp_t *cp, OPJ_UINT32 pino, in opj_j2k_get_num_tp()
1723 OPJ_UINT32 tileno) in opj_j2k_get_num_tp()
1727 OPJ_UINT32 tpnum = 1; in opj_j2k_get_num_tp()
1781 OPJ_UINT32 * p_nb_tiles, in opj_j2k_calculate_tp()
1786 OPJ_UINT32 pino, tileno; in opj_j2k_calculate_tp()
1787 OPJ_UINT32 l_nb_tiles; in opj_j2k_calculate_tp()
1840 OPJ_UINT32 cur_totnum_tp = 0; in opj_j2k_calculate_tp()
1845 OPJ_UINT32 tp_num = opj_j2k_get_num_tp(cp, pino, tileno); in opj_j2k_calculate_tp()
1906 OPJ_UINT32 l_marker; in opj_j2k_read_soc()
1945 OPJ_UINT32 i; in opj_j2k_write_siz()
1946 OPJ_UINT32 l_size_len; in opj_j2k_write_siz()
2049 OPJ_UINT32 p_header_size, in opj_j2k_read_siz()
2053 OPJ_UINT32 i; in opj_j2k_read_siz()
2054 OPJ_UINT32 l_nb_comp; in opj_j2k_read_siz()
2055 OPJ_UINT32 l_nb_comp_remain; in opj_j2k_read_siz()
2056 OPJ_UINT32 l_remaining_size; in opj_j2k_read_siz()
2057 OPJ_UINT32 l_nb_tiles; in opj_j2k_read_siz()
2058 OPJ_UINT32 l_tmp, l_tx1, l_ty1; in opj_j2k_read_siz()
2059 OPJ_UINT32 l_prec0, l_sgnd0; in opj_j2k_read_siz()
2091 opj_read_bytes(p_header_data, (OPJ_UINT32*) &l_image->x1, 4); /* Xsiz */ in opj_j2k_read_siz()
2093 opj_read_bytes(p_header_data, (OPJ_UINT32*) &l_image->y1, 4); /* Ysiz */ in opj_j2k_read_siz()
2095 opj_read_bytes(p_header_data, (OPJ_UINT32*) &l_image->x0, 4); /* X0siz */ in opj_j2k_read_siz()
2097 opj_read_bytes(p_header_data, (OPJ_UINT32*) &l_image->y0, 4); /* Y0siz */ in opj_j2k_read_siz()
2099 opj_read_bytes(p_header_data, (OPJ_UINT32*) &l_cp->tdx, in opj_j2k_read_siz()
2102 opj_read_bytes(p_header_data, (OPJ_UINT32*) &l_cp->tdy, in opj_j2k_read_siz()
2105 opj_read_bytes(p_header_data, (OPJ_UINT32*) &l_cp->tx0, in opj_j2k_read_siz()
2108 opj_read_bytes(p_header_data, (OPJ_UINT32*) &l_cp->ty0, in opj_j2k_read_siz()
2111 opj_read_bytes(p_header_data, (OPJ_UINT32*) &l_tmp, in opj_j2k_read_siz()
2156 OPJ_UINT32 siz_w, siz_h; in opj_j2k_read_siz()
2227 OPJ_UINT32 tmp; in opj_j2k_read_siz()
2248 l_img_comp->dx = (OPJ_UINT32)tmp; /* should be between 1 and 255 */ in opj_j2k_read_siz()
2251 l_img_comp->dy = (OPJ_UINT32)tmp; /* should be between 1 and 255 */ in opj_j2k_read_siz()
2469 OPJ_UINT32 l_comment_size; in opj_j2k_write_com()
2470 OPJ_UINT32 l_total_com_size; in opj_j2k_write_com()
2480 l_comment_size = (OPJ_UINT32)strlen(l_comment); in opj_j2k_write_com()
2531 OPJ_UINT32 p_header_size, in opj_j2k_read_com()
2554 OPJ_UINT32 l_code_size, l_remaining_size; in opj_j2k_write_cod()
2593 opj_write_bytes(l_current_data, (OPJ_UINT32)l_tcp->prg, 1); /* SGcod (A) */ in opj_j2k_write_cod()
2633 OPJ_UINT32 p_header_size, in opj_j2k_read_cod()
2638 OPJ_UINT32 i; in opj_j2k_read_cod()
2639 OPJ_UINT32 l_tmp; in opj_j2k_read_cod()
2679 if ((l_tcp->csty & ~(OPJ_UINT32)(J2K_CP_CSTY_PRT | J2K_CP_CSTY_SOP | in opj_j2k_read_cod()
2739 l_image->numcomps * sizeof(OPJ_UINT32)); in opj_j2k_read_cod()
2753 OPJ_UINT32 p_comp_no, in opj_j2k_write_coc()
2757 OPJ_UINT32 l_coc_size, l_remaining_size; in opj_j2k_write_coc()
2758 OPJ_UINT32 l_comp_room; in opj_j2k_write_coc()
2804 OPJ_UINT32 p_first_comp_no, OPJ_UINT32 p_second_comp_no) in opj_j2k_compare_coc()
2825 OPJ_UINT32 p_comp_no, in opj_j2k_write_coc_in_memory()
2827 OPJ_UINT32 * p_data_written, in opj_j2k_write_coc_in_memory()
2833 OPJ_UINT32 l_coc_size, l_remaining_size; in opj_j2k_write_coc_in_memory()
2836 OPJ_UINT32 l_comp_room; in opj_j2k_write_coc_in_memory()
2874 static OPJ_UINT32 opj_j2k_get_max_coc_size(opj_j2k_t *p_j2k) in opj_j2k_get_max_coc_size()
2876 OPJ_UINT32 i, j; in opj_j2k_get_max_coc_size()
2877 OPJ_UINT32 l_nb_comp; in opj_j2k_get_max_coc_size()
2878 OPJ_UINT32 l_nb_tiles; in opj_j2k_get_max_coc_size()
2879 OPJ_UINT32 l_max = 0; in opj_j2k_get_max_coc_size()
2904 OPJ_UINT32 p_header_size, in opj_j2k_read_coc()
2911 OPJ_UINT32 l_comp_room; in opj_j2k_read_coc()
2912 OPJ_UINT32 l_comp_no; in opj_j2k_read_coc()
2966 OPJ_UINT32 l_qcd_size, l_remaining_size; in opj_j2k_write_qcd()
3031 OPJ_UINT32 p_header_size, in opj_j2k_read_qcd()
3058 OPJ_UINT32 p_comp_no, in opj_j2k_write_qcc()
3063 OPJ_UINT32 l_qcc_size, l_remaining_size; in opj_j2k_write_qcc()
3103 OPJ_UINT32 p_first_comp_no, OPJ_UINT32 p_second_comp_no) in opj_j2k_compare_qcc()
3110 OPJ_UINT32 p_comp_no, in opj_j2k_write_qcc_in_memory()
3112 OPJ_UINT32 * p_data_written, in opj_j2k_write_qcc_in_memory()
3116 OPJ_UINT32 l_qcc_size, l_remaining_size; in opj_j2k_write_qcc_in_memory()
3159 static OPJ_UINT32 opj_j2k_get_max_qcc_size(opj_j2k_t *p_j2k) in opj_j2k_get_max_qcc_size()
3173 OPJ_UINT32 p_header_size, in opj_j2k_read_qcc()
3177 OPJ_UINT32 l_num_comp, l_comp_no; in opj_j2k_read_qcc()
3207 static OPJ_UINT32 backup_compno = 0; in opj_j2k_read_qcc()
3256 OPJ_UINT32 l_nb_comp; in opj_j2k_write_poc()
3257 OPJ_UINT32 l_nb_poc; in opj_j2k_write_poc()
3258 OPJ_UINT32 l_poc_size; in opj_j2k_write_poc()
3259 OPJ_UINT32 l_written_size = 0; in opj_j2k_write_poc()
3261 OPJ_UINT32 l_poc_room; in opj_j2k_write_poc()
3308 OPJ_UINT32 * p_data_written, in opj_j2k_write_poc_in_memory()
3312 OPJ_UINT32 i; in opj_j2k_write_poc_in_memory()
3314 OPJ_UINT32 l_nb_comp; in opj_j2k_write_poc_in_memory()
3315 OPJ_UINT32 l_nb_poc; in opj_j2k_write_poc_in_memory()
3316 OPJ_UINT32 l_poc_size; in opj_j2k_write_poc_in_memory()
3321 OPJ_UINT32 l_poc_room; in opj_j2k_write_poc_in_memory()
3375 opj_write_bytes(l_current_data, (OPJ_UINT32)l_current_poc->prg, in opj_j2k_write_poc_in_memory()
3380 l_current_poc->layno1 = (OPJ_UINT32)opj_int_min((OPJ_INT32) in opj_j2k_write_poc_in_memory()
3382 l_current_poc->resno1 = (OPJ_UINT32)opj_int_min((OPJ_INT32) in opj_j2k_write_poc_in_memory()
3384 l_current_poc->compno1 = (OPJ_UINT32)opj_int_min((OPJ_INT32) in opj_j2k_write_poc_in_memory()
3393 static OPJ_UINT32 opj_j2k_get_max_poc_size(opj_j2k_t *p_j2k) in opj_j2k_get_max_poc_size()
3396 OPJ_UINT32 l_nb_tiles = 0; in opj_j2k_get_max_poc_size()
3397 OPJ_UINT32 l_max_poc = 0; in opj_j2k_get_max_poc_size()
3398 OPJ_UINT32 i; in opj_j2k_get_max_poc_size()
3413 static OPJ_UINT32 opj_j2k_get_max_toc_size(opj_j2k_t *p_j2k) in opj_j2k_get_max_toc_size()
3415 OPJ_UINT32 i; in opj_j2k_get_max_toc_size()
3416 OPJ_UINT32 l_nb_tiles; in opj_j2k_get_max_toc_size()
3417 OPJ_UINT32 l_max = 0; in opj_j2k_get_max_toc_size()
3432 static OPJ_UINT32 opj_j2k_get_specific_header_sizes(opj_j2k_t *p_j2k) in opj_j2k_get_specific_header_sizes()
3434 OPJ_UINT32 l_nb_bytes = 0; in opj_j2k_get_specific_header_sizes()
3435 OPJ_UINT32 l_nb_comps; in opj_j2k_get_specific_header_sizes()
3436 OPJ_UINT32 l_coc_bytes, l_qcc_bytes; in opj_j2k_get_specific_header_sizes()
3466 OPJ_UINT32 p_header_size, in opj_j2k_read_poc()
3470 OPJ_UINT32 i, l_nb_comp, l_tmp; in opj_j2k_read_poc()
3472 OPJ_UINT32 l_old_poc_nb, l_current_poc_nb, l_current_poc_remaining; in opj_j2k_read_poc()
3473 OPJ_UINT32 l_chunk_size, l_comp_room; in opj_j2k_read_poc()
3557 OPJ_UINT32 p_header_size, in opj_j2k_read_crg()
3561 OPJ_UINT32 l_nb_comp; in opj_j2k_read_crg()
3599 OPJ_UINT32 p_header_size, in opj_j2k_read_tlm()
3603 OPJ_UINT32 l_Ztlm, l_Stlm, l_ST, l_SP, l_tot_num_tp_remaining, l_quotient, in opj_j2k_read_tlm()
3660 OPJ_UINT32 p_header_size, in opj_j2k_read_plm()
3733 OPJ_UINT32 p_header_size, in opj_j2k_read_plt()
3737 OPJ_UINT32 l_Zplt, l_tmp, l_packet_len = 0, i; in opj_j2k_read_plt()
3788 OPJ_UINT32 p_header_size, in opj_j2k_read_ppm()
3792 OPJ_UINT32 l_Z_ppm; in opj_j2k_read_ppm()
3814 OPJ_UINT32 l_newCount = l_Z_ppm + 1U; /* can't overflow, l_Z_ppm is UINT8 */ in opj_j2k_read_ppm()
3824 OPJ_UINT32 l_newCount = l_Z_ppm + 1U; /* can't overflow, l_Z_ppm is UINT8 */ in opj_j2k_read_ppm()
3865 OPJ_UINT32 i, l_ppm_data_size, l_N_ppm_remaining; in opj_j2k_merge_ppm()
3881 OPJ_UINT32 l_N_ppm; in opj_j2k_merge_ppm()
3882 OPJ_UINT32 l_data_size = p_cp->ppm_markers[i].m_data_size; in opj_j2k_merge_ppm()
3937 OPJ_UINT32 l_N_ppm; in opj_j2k_merge_ppm()
3938 OPJ_UINT32 l_data_size = p_cp->ppm_markers[i].m_data_size; in opj_j2k_merge_ppm()
4005 OPJ_UINT32 p_header_size, in opj_j2k_read_ppt()
4011 OPJ_UINT32 l_Z_ppt; in opj_j2k_read_ppt()
4040 OPJ_UINT32 l_newCount = l_Z_ppt + 1U; /* can't overflow, l_Z_ppt is UINT8 */ in opj_j2k_read_ppt()
4050 OPJ_UINT32 l_newCount = l_Z_ppt + 1U; /* can't overflow, l_Z_ppt is UINT8 */ in opj_j2k_read_ppt()
4090 OPJ_UINT32 i, l_ppt_data_size; in opj_j2k_merge_ppt()
4147 OPJ_UINT32 l_tlm_size; in opj_j2k_write_tlm()
4204 OPJ_UINT32 p_total_data_size, in opj_j2k_write_sot()
4205 OPJ_UINT32 * p_data_written, in opj_j2k_write_sot()
4263 OPJ_UINT32 p_header_size, in opj_j2k_get_sot_values()
4264 OPJ_UINT32* p_tile_no, in opj_j2k_get_sot_values()
4265 OPJ_UINT32* p_tot_len, in opj_j2k_get_sot_values()
4266 OPJ_UINT32* p_current_part, in opj_j2k_get_sot_values()
4267 OPJ_UINT32* p_num_parts, in opj_j2k_get_sot_values()
4293 OPJ_UINT32 p_header_size, in opj_j2k_read_sot()
4298 OPJ_UINT32 l_tot_len, l_num_parts = 0; in opj_j2k_read_sot()
4299 OPJ_UINT32 l_current_part; in opj_j2k_read_sot()
4300 OPJ_UINT32 l_tile_x, l_tile_y; in opj_j2k_read_sot()
4332 p_j2k->m_current_tile_number == (OPJ_UINT32) in opj_j2k_read_sot()
4360 OPJ_UINT32 tileno = p_j2k->m_current_tile_number; in opj_j2k_read_sot()
4361 static OPJ_UINT32 backup_tileno = 0; in opj_j2k_read_sot()
4497 (p_j2k->m_current_tile_number != (OPJ_UINT32) in opj_j2k_read_sot()
4613 OPJ_UINT32 * p_data_written, in opj_j2k_write_sod()
4614 OPJ_UINT32 p_total_data_size, in opj_j2k_write_sod()
4620 OPJ_UINT32 l_remaining_data; in opj_j2k_write_sod()
4708 OPJ_UINT32 * l_tile_len = 00; in opj_j2k_read_sod()
4723 p_j2k->m_specific_param.m_decoder.m_sot_length = (OPJ_UINT32)( in opj_j2k_read_sod()
4799 OPJ_UINT32 l_current_tile_part = in opj_j2k_read_sod()
4837 *l_tile_len += (OPJ_UINT32)l_current_read_size; in opj_j2k_read_sod()
4843 OPJ_UINT32 p_tile_no, in opj_j2k_write_rgn()
4844 OPJ_UINT32 p_comp_no, in opj_j2k_write_rgn()
4845 OPJ_UINT32 nb_comps, in opj_j2k_write_rgn()
4851 OPJ_UINT32 l_rgn_size; in opj_j2k_write_rgn()
4855 OPJ_UINT32 l_comp_room; in opj_j2k_write_rgn()
4892 opj_write_bytes(l_current_data, (OPJ_UINT32)l_tccp->roishift, in opj_j2k_write_rgn()
4948 OPJ_UINT32 p_header_size, in opj_j2k_read_rgn()
4952 OPJ_UINT32 l_nb_comp; in opj_j2k_read_rgn()
4957 OPJ_UINT32 l_comp_room, l_comp_no, l_roi_sty; in opj_j2k_read_rgn()
5013 (OPJ_UINT32 *)(&(l_tcp->tccps[l_comp_no].roishift)), 1); /* SPrgn */ in opj_j2k_read_rgn()
5040 OPJ_UINT32 i, j, k; in opj_j2k_update_rates()
5044 OPJ_UINT32 l_bits_empty, l_size_pixel; in opj_j2k_update_rates()
5045 OPJ_UINT32 l_tile_size = 0; in opj_j2k_update_rates()
5046 OPJ_UINT32 l_last_res; in opj_j2k_update_rates()
5090 *l_rates = (((OPJ_FLOAT32)(l_size_pixel * (OPJ_UINT32)(l_x1 - l_x0) * in opj_j2k_update_rates()
5091 (OPJ_UINT32)(l_y1 - l_y0))) in opj_j2k_update_rates()
5103 *l_rates = (((OPJ_FLOAT32)(l_size_pixel * (OPJ_UINT32)(l_x1 - l_x0) * in opj_j2k_update_rates()
5104 (OPJ_UINT32)(l_y1 - l_y0))) in opj_j2k_update_rates()
5183 l_tile_size = (OPJ_UINT32)(l_tile_size * 1.4 / 8); in opj_j2k_update_rates()
5218 OPJ_UINT32 i;
5220 OPJ_UINT32 l_nb_tiles;
5285 OPJ_UINT32 i; in opj_j2k_write_mct_data_group()
5334 OPJ_UINT32 compno; in opj_j2k_write_all_coc()
5358 OPJ_UINT32 compno; in opj_j2k_write_all_qcc()
5380 OPJ_UINT32 compno; in opj_j2k_write_regions()
5447 OPJ_UINT32 *output_marker, in opj_j2k_read_unk()
5451 OPJ_UINT32 l_unknown_marker; in opj_j2k_read_unk()
5453 OPJ_UINT32 l_size_unk = 2; in opj_j2k_read_unk()
5488 … (OPJ_UINT32) opj_stream_tell(p_stream) - l_size_unk, in opj_j2k_read_unk()
5513 OPJ_UINT32 l_mct_size; in opj_j2k_write_mct_record()
5515 OPJ_UINT32 l_tmp; in opj_j2k_write_mct_record()
5584 OPJ_UINT32 p_header_size, in opj_j2k_read_mct()
5588 OPJ_UINT32 i; in opj_j2k_read_mct()
5590 OPJ_UINT32 l_tmp; in opj_j2k_read_mct()
5591 OPJ_UINT32 l_indix; in opj_j2k_read_mct()
5724 OPJ_UINT32 i; in opj_j2k_write_mcc_record()
5725 OPJ_UINT32 l_mcc_size; in opj_j2k_write_mcc_record()
5727 OPJ_UINT32 l_nb_bytes_for_comp; in opj_j2k_write_mcc_record()
5728 OPJ_UINT32 l_mask; in opj_j2k_write_mcc_record()
5729 OPJ_UINT32 l_tmcc; in opj_j2k_write_mcc_record()
5836 OPJ_UINT32 p_header_size, in opj_j2k_read_mcc()
5839 OPJ_UINT32 i, j; in opj_j2k_read_mcc()
5840 OPJ_UINT32 l_tmp; in opj_j2k_read_mcc()
5841 OPJ_UINT32 l_indix; in opj_j2k_read_mcc()
5845 OPJ_UINT32 l_nb_collections; in opj_j2k_read_mcc()
5846 OPJ_UINT32 l_nb_comps; in opj_j2k_read_mcc()
5847 OPJ_UINT32 l_nb_bytes_by_comp; in opj_j2k_read_mcc()
6073 OPJ_UINT32 l_mco_size; in opj_j2k_write_mco()
6076 OPJ_UINT32 i; in opj_j2k_write_mco()
6140 OPJ_UINT32 p_header_size, in opj_j2k_read_mco()
6144 OPJ_UINT32 l_tmp, i; in opj_j2k_read_mco()
6145 OPJ_UINT32 l_nb_stages; in opj_j2k_read_mco()
6205 OPJ_UINT32 p_index) in opj_j2k_add_mct()
6207 OPJ_UINT32 i; in opj_j2k_add_mct()
6210 OPJ_UINT32 l_data_size, l_mct_size, l_offset_size; in opj_j2k_add_mct()
6211 OPJ_UINT32 l_nb_elem; in opj_j2k_add_mct()
6212 OPJ_UINT32 * l_offset_data, * l_current_offset_data; in opj_j2k_add_mct()
6246 l_mct_size = l_nb_elem * (OPJ_UINT32)sizeof(OPJ_FLOAT32); in opj_j2k_add_mct()
6267 l_offset_size = l_nb_elem * (OPJ_UINT32)sizeof(OPJ_UINT32); in opj_j2k_add_mct()
6268 l_offset_data = (OPJ_UINT32*)opj_malloc(l_offset_size); in opj_j2k_add_mct()
6295 OPJ_UINT32 i; in opj_j2k_write_cbd()
6296 OPJ_UINT32 l_cbd_size; in opj_j2k_write_cbd()
6362 OPJ_UINT32 p_header_size, in opj_j2k_read_cbd()
6366 OPJ_UINT32 l_nb_comp, l_num_comp; in opj_j2k_read_cbd()
6367 OPJ_UINT32 l_comp_def; in opj_j2k_read_cbd()
6368 OPJ_UINT32 i; in opj_j2k_read_cbd()
6431 OPJ_BOOL opj_j2k_set_threads(opj_j2k_t *j2k, OPJ_UINT32 num_threads) in opj_j2k_set_threads()
6438 if (num_threads <= (OPJ_UINT32)INT_MAX) { in opj_j2k_set_threads()
6532 POC[0].resno1 = (OPJ_UINT32)(numres - 1); in opj_j2k_initialise_4K_poc()
6536 POC[1].resno0 = (OPJ_UINT32)(numres - 1); in opj_j2k_initialise_4K_poc()
6539 POC[1].resno1 = (OPJ_UINT32)numres; in opj_j2k_initialise_4K_poc()
6648 parameters->numpocs = (OPJ_UINT32)opj_j2k_initialise_4K_poc(parameters->POC, in opj_j2k_set_cinema_parameters()
6688 … (OPJ_FLOAT32)(((OPJ_UINT32)parameters->max_cs_size) * 8 * image->comps[0].dx * in opj_j2k_set_cinema_parameters()
6696 OPJ_UINT32 i; in opj_j2k_is_cinema_compliant()
6761 OPJ_UINT32 i, j, tileno, numpocs_tile; in opj_j2k_setup_encoder()
6763 OPJ_UINT32 cblkw, cblkh; in opj_j2k_setup_encoder()
6794 cblkw = (OPJ_UINT32)opj_int_floorlog2(parameters->cblockw_init); in opj_j2k_setup_encoder()
6795 cblkh = (OPJ_UINT32)opj_int_floorlog2(parameters->cblockh_init); in opj_j2k_setup_encoder()
6876 for (i = 1; i < (OPJ_UINT32) parameters->tcp_numlayers; i++) { in opj_j2k_setup_encoder()
6916 for (i = 1; i < (OPJ_UINT32) parameters->tcp_numlayers; i++) { in opj_j2k_setup_encoder()
6918 !(i == (OPJ_UINT32)parameters->tcp_numlayers - 1 && in opj_j2k_setup_encoder()
6952 for (i = 0; i < (OPJ_UINT32) parameters->tcp_numlayers; i++) { in opj_j2k_setup_encoder()
7009 cp->m_specific_param.m_enc.m_max_comp_size = (OPJ_UINT32) in opj_j2k_setup_encoder()
7012 cp->m_specific_param.m_enc.m_disto_alloc = (OPJ_UINT32) in opj_j2k_setup_encoder()
7014 cp->m_specific_param.m_enc.m_fixed_alloc = (OPJ_UINT32) in opj_j2k_setup_encoder()
7016 cp->m_specific_param.m_enc.m_fixed_quality = (OPJ_UINT32) in opj_j2k_setup_encoder()
7034 cp->tdx = (OPJ_UINT32)parameters->cp_tdx; in opj_j2k_setup_encoder()
7035 cp->tdy = (OPJ_UINT32)parameters->cp_tdy; in opj_j2k_setup_encoder()
7038 cp->tx0 = (OPJ_UINT32)parameters->cp_tx0; in opj_j2k_setup_encoder()
7039 cp->ty0 = (OPJ_UINT32)parameters->cp_ty0; in opj_j2k_setup_encoder()
7161 (OPJ_UINT32)parameters->numresolution, image->numcomps, in opj_j2k_setup_encoder()
7162 (OPJ_UINT32)parameters->tcp_numlayers, p_manager); in opj_j2k_setup_encoder()
7168 tcp->numlayers = (OPJ_UINT32)parameters->tcp_numlayers; in opj_j2k_setup_encoder()
7189 tcp->csty = (OPJ_UINT32)parameters->csty; in opj_j2k_setup_encoder()
7191 tcp->mct = (OPJ_UINT32)parameters->tcp_mct; in opj_j2k_setup_encoder()
7228 OPJ_UINT32 lMctSize = image->numcomps * image->numcomps * (OPJ_UINT32)sizeof( in opj_j2k_setup_encoder()
7318 tccp->numresolutions = (OPJ_UINT32)parameters->numresolution; in opj_j2k_setup_encoder()
7319 tccp->cblkw = (OPJ_UINT32)opj_int_floorlog2(parameters->cblockw_init); in opj_j2k_setup_encoder()
7320 tccp->cblkh = (OPJ_UINT32)opj_int_floorlog2(parameters->cblockh_init); in opj_j2k_setup_encoder()
7321 tccp->cblksty = (OPJ_UINT32)parameters->mode; in opj_j2k_setup_encoder()
7342 … tccp->prcw[it_res] = (OPJ_UINT32)opj_int_floorlog2(parameters->prcw_init[p]); in opj_j2k_setup_encoder()
7348 … tccp->prch[it_res] = (OPJ_UINT32)opj_int_floorlog2(parameters->prch_init[p]); in opj_j2k_setup_encoder()
7364 tccp->prcw[it_res] = (OPJ_UINT32)opj_int_floorlog2(size_prcw); in opj_j2k_setup_encoder()
7370 tccp->prch[it_res] = (OPJ_UINT32)opj_int_floorlog2(size_prch); in opj_j2k_setup_encoder()
7395 OPJ_UINT32 type, OPJ_OFF_T pos, OPJ_UINT32 len) in opj_j2k_add_mhmarker()
7402 cstr_index->maxmarknum = (OPJ_UINT32)(100 + (OPJ_FLOAT32) in opj_j2k_add_mhmarker()
7425 static OPJ_BOOL opj_j2k_add_tlmarker(OPJ_UINT32 tileno, in opj_j2k_add_tlmarker()
7426 … opj_codestream_index_t *cstr_index, OPJ_UINT32 type, OPJ_OFF_T pos, in opj_j2k_add_tlmarker()
7427 OPJ_UINT32 len) in opj_j2k_add_tlmarker()
7436 cstr_index->tile_index[tileno].maxmarknum = (OPJ_UINT32)(100 + in opj_j2k_add_tlmarker()
7462 OPJ_UINT32 l_current_tile_part = cstr_index->tile_index[tileno].current_tpsno; in opj_j2k_add_tlmarker()
7595 OPJ_UINT32 i, j; in opj_j2k_mct_validation()
7606 OPJ_UINT32 l_nb_tiles = p_j2k->m_cp.th * p_j2k->m_cp.tw; in opj_j2k_mct_validation()
7628 OPJ_UINT32 i; in opj_j2k_setup_mct_encoding()
7629 OPJ_UINT32 l_indix = 1; in opj_j2k_setup_mct_encoding()
7632 OPJ_UINT32 l_mct_size, l_nb_elem; in opj_j2k_setup_mct_encoding()
7846 if ((p_j2k->m_cp.tdx) < (OPJ_UINT32)(1 << in opj_j2k_encoding_validation()
7853 if ((p_j2k->m_cp.tdy) < (OPJ_UINT32)(1 << in opj_j2k_encoding_validation()
7901 OPJ_UINT32 l_current_marker; in opj_j2k_read_header_procedure()
7902 OPJ_UINT32 l_marker_size; in opj_j2k_read_header_procedure()
8032 (OPJ_UINT32) opj_stream_tell(p_stream) - l_marker_size - 4, in opj_j2k_read_header_procedure()
8074 p_j2k->cstr_index->main_head_end = (OPJ_UINT32) opj_stream_tell(p_stream) - 2; in opj_j2k_read_header_procedure()
8090 OPJ_UINT32 l_nb_proc, i; in opj_j2k_exec()
8120 OPJ_UINT32 l_nb_tiles; in opj_j2k_copy_default_tcp_and_create_tcd()
8121 OPJ_UINT32 i, j; in opj_j2k_copy_default_tcp_and_create_tcd()
8123 OPJ_UINT32 l_tccp_size; in opj_j2k_copy_default_tcp_and_create_tcd()
8124 OPJ_UINT32 l_mct_size; in opj_j2k_copy_default_tcp_and_create_tcd()
8126 OPJ_UINT32 l_mcc_records_size, l_mct_records_size; in opj_j2k_copy_default_tcp_and_create_tcd()
8129 OPJ_UINT32 l_offset; in opj_j2k_copy_default_tcp_and_create_tcd()
8141 l_tccp_size = l_image->numcomps * (OPJ_UINT32)sizeof(opj_tccp_t); in opj_j2k_copy_default_tcp_and_create_tcd()
8143 l_mct_size = l_image->numcomps * l_image->numcomps * (OPJ_UINT32)sizeof( in opj_j2k_copy_default_tcp_and_create_tcd()
8177 l_mct_records_size = l_default_tcp->m_nb_max_mct_records * (OPJ_UINT32)sizeof( in opj_j2k_copy_default_tcp_and_create_tcd()
8208 l_mcc_records_size = l_default_tcp->m_nb_max_mcc_records * (OPJ_UINT32)sizeof( in opj_j2k_copy_default_tcp_and_create_tcd()
8225 l_offset = (OPJ_UINT32)(l_src_mcc_rec->m_decorrelation_array - in opj_j2k_copy_default_tcp_and_create_tcd()
8231 l_offset = (OPJ_UINT32)(l_src_mcc_rec->m_offset_array - in opj_j2k_copy_default_tcp_and_create_tcd()
8264 OPJ_UINT32 p_id) in opj_j2k_get_marker_handler()
8355 OPJ_UINT32 it_tile = 0; in j2k_destroy_cstr_index()
8391 OPJ_UINT32 i; in opj_j2k_tcp_destroy()
8431 OPJ_UINT32 i; in opj_j2k_tcp_destroy()
8466 OPJ_UINT32 l_nb_tiles; in opj_j2k_cp_destroy()
8473 OPJ_UINT32 i; in opj_j2k_cp_destroy()
8485 OPJ_UINT32 i; in opj_j2k_cp_destroy()
8508 *p_stream, OPJ_UINT32 tile_no, OPJ_BOOL* p_correction_needed, in opj_j2k_need_nb_tile_parts_correction()
8513 OPJ_UINT32 l_current_marker; in opj_j2k_need_nb_tile_parts_correction()
8514 OPJ_UINT32 l_marker_size; in opj_j2k_need_nb_tile_parts_correction()
8515 OPJ_UINT32 l_tile_no, l_tot_len, l_current_part, l_num_parts; in opj_j2k_need_nb_tile_parts_correction()
8616 OPJ_UINT32 * p_tile_index, in opj_j2k_read_tile_header()
8617 OPJ_UINT32 * p_data_size, in opj_j2k_read_tile_header()
8620 OPJ_UINT32 * p_nb_comps, in opj_j2k_read_tile_header()
8625 OPJ_UINT32 l_current_marker = J2K_MS_SOT; in opj_j2k_read_tile_header()
8626 OPJ_UINT32 l_marker_size; in opj_j2k_read_tile_header()
8745 … (OPJ_UINT32) opj_stream_tell(p_stream) - l_marker_size - 4, in opj_j2k_read_tile_header()
8753 OPJ_UINT32 sot_pos = (OPJ_UINT32) opj_stream_tell(p_stream) - l_marker_size - 4 in opj_j2k_read_tile_header()
8804 OPJ_UINT32 l_nb_tiles = p_j2k->m_cp.tw * p_j2k->m_cp.th; in opj_j2k_read_tile_header()
8805 OPJ_UINT32 l_tile_no; in opj_j2k_read_tile_header()
8860 OPJ_UINT32 l_nb_tiles = p_j2k->m_cp.th * p_j2k->m_cp.tw; in opj_j2k_read_tile_header()
8911 OPJ_UINT32 p_tile_index, in opj_j2k_decode_tile()
8913 OPJ_UINT32 p_data_size, in opj_j2k_decode_tile()
8917 OPJ_UINT32 l_current_marker; in opj_j2k_decode_tile()
8978 p_j2k->m_specific_param.m_decoder.m_state &= (~(OPJ_UINT32)J2K_STATE_DATA); in opj_j2k_decode_tile()
9013 OPJ_UINT32 i, j; in opj_j2k_update_image_data()
9014 OPJ_UINT32 l_width_src, l_height_src; in opj_j2k_update_image_data()
9015 OPJ_UINT32 l_width_dest, l_height_dest; in opj_j2k_update_image_data()
9018 OPJ_UINT32 l_start_x_dest, l_start_y_dest; in opj_j2k_update_image_data()
9019 OPJ_UINT32 l_x0_dest, l_y0_dest, l_x1_dest, l_y1_dest; in opj_j2k_update_image_data()
9038 OPJ_UINT32 src_data_stride; in opj_j2k_update_image_data()
9051 src_data_stride = (OPJ_UINT32)( in opj_j2k_update_image_data()
9071 l_width_src = (OPJ_UINT32)(res_x1 - res_x0); in opj_j2k_update_image_data()
9072 l_height_src = (OPJ_UINT32)(res_y1 - res_y0); in opj_j2k_update_image_data()
9109 if (l_x0_dest < (OPJ_UINT32)res_x0) { in opj_j2k_update_image_data()
9110 l_start_x_dest = (OPJ_UINT32)res_x0 - l_x0_dest; in opj_j2k_update_image_data()
9113 if (l_x1_dest >= (OPJ_UINT32)res_x1) { in opj_j2k_update_image_data()
9117 l_width_dest = l_x1_dest - (OPJ_UINT32)res_x0 ; in opj_j2k_update_image_data()
9124 if (l_x1_dest >= (OPJ_UINT32)res_x1) { in opj_j2k_update_image_data()
9125 l_width_dest = l_width_src - (OPJ_UINT32)l_offset_x0_src; in opj_j2k_update_image_data()
9133 if (l_y0_dest < (OPJ_UINT32)res_y0) { in opj_j2k_update_image_data()
9134 l_start_y_dest = (OPJ_UINT32)res_y0 - l_y0_dest; in opj_j2k_update_image_data()
9137 if (l_y1_dest >= (OPJ_UINT32)res_y1) { in opj_j2k_update_image_data()
9141 l_height_dest = l_y1_dest - (OPJ_UINT32)res_y0 ; in opj_j2k_update_image_data()
9148 if (l_y1_dest >= (OPJ_UINT32)res_y1) { in opj_j2k_update_image_data()
9149 l_height_dest = l_height_src - (OPJ_UINT32)l_offset_y0_src; in opj_j2k_update_image_data()
9236 OPJ_UINT32 it_comp; in opj_j2k_update_image_dimensions()
9255 l_img_comp->w = (OPJ_UINT32)(l_1-l_2); in opj_j2k_update_image_dimensions()
9265 l_img_comp->h = (OPJ_UINT32)(l_1-l_2); in opj_j2k_update_image_dimensions()
9274 OPJ_UINT32 numcomps, in opj_j2k_set_decoded_components()
9275 const OPJ_UINT32* comps_indices, in opj_j2k_set_decoded_components()
9278 OPJ_UINT32 i; in opj_j2k_set_decoded_components()
9316 (OPJ_UINT32*) opj_malloc(numcomps * sizeof(OPJ_UINT32)); in opj_j2k_set_decoded_components()
9323 numcomps * sizeof(OPJ_UINT32)); in opj_j2k_set_decoded_components()
9342 OPJ_UINT32 it_comp; in opj_j2k_set_decode_area()
9388 } else if ((OPJ_UINT32)p_start_x > l_image->x1) { in opj_j2k_set_decode_area()
9393 } else if ((OPJ_UINT32)p_start_x < l_image->x0) { in opj_j2k_set_decode_area()
9400 p_j2k->m_specific_param.m_decoder.m_start_tile_x = ((OPJ_UINT32)p_start_x - in opj_j2k_set_decode_area()
9402 p_image->x0 = (OPJ_UINT32)p_start_x; in opj_j2k_set_decode_area()
9411 } else if ((OPJ_UINT32)p_start_y > l_image->y1) { in opj_j2k_set_decode_area()
9416 } else if ((OPJ_UINT32)p_start_y < l_image->y0) { in opj_j2k_set_decode_area()
9423 p_j2k->m_specific_param.m_decoder.m_start_tile_y = ((OPJ_UINT32)p_start_y - in opj_j2k_set_decode_area()
9425 p_image->y0 = (OPJ_UINT32)p_start_y; in opj_j2k_set_decode_area()
9434 } else if ((OPJ_UINT32)p_end_x < l_image->x0) { in opj_j2k_set_decode_area()
9439 } else if ((OPJ_UINT32)p_end_x > l_image->x1) { in opj_j2k_set_decode_area()
9446 p_j2k->m_specific_param.m_decoder.m_end_tile_x = (OPJ_UINT32)opj_int_ceildiv( in opj_j2k_set_decode_area()
9448 p_image->x1 = (OPJ_UINT32)p_end_x; in opj_j2k_set_decode_area()
9457 } else if ((OPJ_UINT32)p_end_y < l_image->y0) { in opj_j2k_set_decode_area()
9463 if ((OPJ_UINT32)p_end_y > l_image->y1) { in opj_j2k_set_decode_area()
9470 p_j2k->m_specific_param.m_decoder.m_end_tile_y = (OPJ_UINT32)opj_int_ceildiv( in opj_j2k_set_decode_area()
9472 p_image->y1 = (OPJ_UINT32)p_end_y; in opj_j2k_set_decode_area()
9581 static OPJ_UINT32 opj_j2k_get_SPCod_SPCoc_size(opj_j2k_t *p_j2k, in opj_j2k_get_SPCod_SPCoc_size()
9582 OPJ_UINT32 p_tile_no, in opj_j2k_get_SPCod_SPCoc_size()
9583 OPJ_UINT32 p_comp_no) in opj_j2k_get_SPCod_SPCoc_size()
9608 OPJ_UINT32 p_tile_no, OPJ_UINT32 p_first_comp_no, OPJ_UINT32 p_second_comp_no) in opj_j2k_compare_SPCod_SPCoc()
9610 OPJ_UINT32 i; in opj_j2k_compare_SPCod_SPCoc()
9655 OPJ_UINT32 p_tile_no, in opj_j2k_write_SPCod_SPCoc()
9656 OPJ_UINT32 p_comp_no, in opj_j2k_write_SPCod_SPCoc()
9658 OPJ_UINT32 * p_header_size, in opj_j2k_write_SPCod_SPCoc()
9661 OPJ_UINT32 i; in opj_j2k_write_SPCod_SPCoc()
9724 OPJ_UINT32 compno, in opj_j2k_read_SPCod_SPCoc()
9726 OPJ_UINT32 * p_header_size, in opj_j2k_read_SPCod_SPCoc()
9729 OPJ_UINT32 i, l_tmp; in opj_j2k_read_SPCod_SPCoc()
9844 OPJ_UINT32 l_data_size = l_tccp->numresolutions * sizeof(OPJ_UINT32); in opj_j2k_read_SPCod_SPCoc()
9871 OPJ_UINT32 i; in opj_j2k_copy_tile_component_parameters()
9875 OPJ_UINT32 l_prc_size; in opj_j2k_copy_tile_component_parameters()
9888 l_prc_size = l_ref_tccp->numresolutions * (OPJ_UINT32)sizeof(OPJ_UINT32); in opj_j2k_copy_tile_component_parameters()
9902 static OPJ_UINT32 opj_j2k_get_SQcd_SQcc_size(opj_j2k_t *p_j2k, in opj_j2k_get_SQcd_SQcc_size()
9903 OPJ_UINT32 p_tile_no, in opj_j2k_get_SQcd_SQcc_size()
9904 OPJ_UINT32 p_comp_no) in opj_j2k_get_SQcd_SQcc_size()
9906 OPJ_UINT32 l_num_bands; in opj_j2k_get_SQcd_SQcc_size()
9934 OPJ_UINT32 p_tile_no, OPJ_UINT32 p_first_comp_no, OPJ_UINT32 p_second_comp_no) in opj_j2k_compare_SQcd_SQcc()
9940 OPJ_UINT32 l_band_no, l_num_bands; in opj_j2k_compare_SQcd_SQcc()
9982 OPJ_UINT32 p_tile_no, in opj_j2k_write_SQcd_SQcc()
9983 OPJ_UINT32 p_comp_no, in opj_j2k_write_SQcd_SQcc()
9985 OPJ_UINT32 * p_header_size, in opj_j2k_write_SQcd_SQcc()
9988 OPJ_UINT32 l_header_size; in opj_j2k_write_SQcd_SQcc()
9989 OPJ_UINT32 l_band_no, l_num_bands; in opj_j2k_write_SQcd_SQcc()
9990 OPJ_UINT32 l_expn, l_mant; in opj_j2k_write_SQcd_SQcc()
10026 l_expn = (OPJ_UINT32)l_tccp->stepsizes[l_band_no].expn; in opj_j2k_write_SQcd_SQcc()
10043 l_expn = (OPJ_UINT32)l_tccp->stepsizes[l_band_no].expn; in opj_j2k_write_SQcd_SQcc()
10044 l_mant = (OPJ_UINT32)l_tccp->stepsizes[l_band_no].mant; in opj_j2k_write_SQcd_SQcc()
10057 OPJ_UINT32 p_comp_no, in opj_j2k_read_SQcd_SQcc()
10059 OPJ_UINT32 * p_header_size, in opj_j2k_read_SQcd_SQcc()
10064 OPJ_UINT32 l_band_no; in opj_j2k_read_SQcd_SQcc()
10069 OPJ_UINT32 l_tmp, l_num_band; in opj_j2k_read_SQcd_SQcc()
10179 OPJ_UINT32 i; in opj_j2k_copy_tile_quantization_parameters()
10184 OPJ_UINT32 l_size; in opj_j2k_copy_tile_quantization_parameters()
10220 OPJ_UINT32 resno; in opj_j2k_dump_tile_info()
10282 OPJ_UINT32 l_nb_tiles = p_j2k->m_cp.th * p_j2k->m_cp.tw; in j2k_dump()
10283 OPJ_UINT32 i; in j2k_dump()
10314 OPJ_UINT32 it_marker, it_tile, it_tile_part; in opj_j2k_dump_MH_index()
10338 OPJ_UINT32 l_acc_nb_of_tile_part = 0; in opj_j2k_dump_MH_index()
10347 OPJ_UINT32 nb_of_tile_part = cstr_index->tile_index[it_tile].nb_tps; in opj_j2k_dump_MH_index()
10415 OPJ_UINT32 compno; in j2k_dump_image_header()
10452 OPJ_UINT32 compno; in j2k_get_cstr_info()
10453 OPJ_UINT32 numcomps = p_j2k->m_private_image->numcomps; in j2k_get_cstr_info()
10512 l_tccp_info->stepsizes_mant[bandno] = (OPJ_UINT32) in j2k_get_cstr_info()
10514 l_tccp_info->stepsizes_expn[bandno] = (OPJ_UINT32) in j2k_get_cstr_info()
10567 OPJ_UINT32 it_tile = 0; in j2k_get_cstr_index()
10579 OPJ_UINT32 it_tile_free; in j2k_get_cstr_index()
10609 OPJ_UINT32 it_tile_free; in j2k_get_cstr_index()
10643 OPJ_UINT32 it_tile = 0; in opj_j2k_allocate_tile_element_cstr_index()
10671 OPJ_UINT32 l_current_tile_no; in opj_j2k_decode_tiles()
10673 OPJ_UINT32 l_nb_comps; in opj_j2k_decode_tiles()
10674 OPJ_UINT32 nr_tiles = 0; in opj_j2k_decode_tiles()
10684 OPJ_UINT32 i; in opj_j2k_decode_tiles()
10807 OPJ_UINT32 l_current_tile_no; in opj_j2k_decode_one_tile()
10808 OPJ_UINT32 l_tile_no_to_dec; in opj_j2k_decode_one_tile()
10810 OPJ_UINT32 l_nb_comps; in opj_j2k_decode_one_tile()
10811 OPJ_UINT32 l_nb_tiles; in opj_j2k_decode_one_tile()
10812 OPJ_UINT32 i; in opj_j2k_decode_one_tile()
10821 l_tile_no_to_dec = (OPJ_UINT32) in opj_j2k_decode_one_tile()
10930 OPJ_UINT32 compno; in opj_j2k_move_data_from_codec_to_output_image()
10949 OPJ_UINT32 src_compno = in opj_j2k_move_data_from_codec_to_output_image()
11009 OPJ_UINT32 it_comp; in opj_j2k_decode()
11049 OPJ_UINT32 tile_index) in opj_j2k_get_tile()
11051 OPJ_UINT32 compno; in opj_j2k_get_tile()
11052 OPJ_UINT32 l_tile_x, l_tile_y; in opj_j2k_get_tile()
11106 l_img_comp->w = (OPJ_UINT32)(opj_int_ceildivpow2(l_comp_x1, in opj_j2k_get_tile()
11109 l_img_comp->h = (OPJ_UINT32)(opj_int_ceildivpow2(l_comp_y1, in opj_j2k_get_tile()
11159 OPJ_UINT32 res_factor, in opj_j2k_set_decoded_resolution_factor()
11162 OPJ_UINT32 it_comp; in opj_j2k_set_decoded_resolution_factor()
11171 OPJ_UINT32 max_res = in opj_j2k_set_decoded_resolution_factor()
11193 OPJ_UINT32 i, j; in opj_j2k_encode()
11194 OPJ_UINT32 l_nb_tiles; in opj_j2k_encode()
11332 OPJ_UINT32 it_comp; in opj_j2k_start_compress()
11366 OPJ_UINT32 p_tile_index, in opj_j2k_pre_write_tile()
11395 OPJ_UINT32* l_size_comp, in opj_get_tile_dimensions()
11396 OPJ_UINT32* l_width, in opj_get_tile_dimensions()
11397 OPJ_UINT32* l_height, in opj_get_tile_dimensions()
11398 OPJ_UINT32* l_offset_x, in opj_get_tile_dimensions()
11399 OPJ_UINT32* l_offset_y, in opj_get_tile_dimensions()
11400 OPJ_UINT32* l_image_width, in opj_get_tile_dimensions()
11401 OPJ_UINT32* l_stride, in opj_get_tile_dimensions()
11402 OPJ_UINT32* l_tile_offset) in opj_get_tile_dimensions()
11404 OPJ_UINT32 l_remaining; in opj_get_tile_dimensions()
11415 *l_width = (OPJ_UINT32)(l_tilec->x1 - l_tilec->x0); in opj_get_tile_dimensions()
11416 *l_height = (OPJ_UINT32)(l_tilec->y1 - l_tilec->y0); in opj_get_tile_dimensions()
11419 *l_image_width = (OPJ_UINT32)opj_int_ceildiv((OPJ_INT32)l_image->x1 - in opj_get_tile_dimensions()
11422 *l_tile_offset = ((OPJ_UINT32)l_tilec->x0 - *l_offset_x) + (( in opj_get_tile_dimensions()
11423 OPJ_UINT32)l_tilec->y0 - *l_offset_y) * *l_image_width; in opj_get_tile_dimensions()
11428 OPJ_UINT32 i, j, k = 0; in opj_j2k_get_tile_data()
11435 OPJ_UINT32 l_size_comp, l_width, l_height, l_offset_x, l_offset_y, in opj_j2k_get_tile_data()
11519 OPJ_UINT32 l_nb_bytes_written; in opj_j2k_post_write_tile()
11521 OPJ_UINT32 l_tile_size = 0; in opj_j2k_post_write_tile()
11522 OPJ_UINT32 l_available_data; in opj_j2k_post_write_tile()
11711 OPJ_UINT32 * p_data_written, in opj_j2k_write_first_tile_part()
11712 OPJ_UINT32 p_total_data_size, in opj_j2k_write_first_tile_part()
11716 OPJ_UINT32 l_nb_bytes_written = 0; in opj_j2k_write_first_tile_part()
11717 OPJ_UINT32 l_current_nb_bytes_written; in opj_j2k_write_first_tile_part()
11796 OPJ_UINT32 * p_data_written, in opj_j2k_write_all_tile_parts()
11797 OPJ_UINT32 p_total_data_size, in opj_j2k_write_all_tile_parts()
11802 OPJ_UINT32 tilepartno = 0; in opj_j2k_write_all_tile_parts()
11803 OPJ_UINT32 l_nb_bytes_written = 0; in opj_j2k_write_all_tile_parts()
11804 OPJ_UINT32 l_current_nb_bytes_written; in opj_j2k_write_all_tile_parts()
11805 OPJ_UINT32 l_part_tile_size; in opj_j2k_write_all_tile_parts()
11806 OPJ_UINT32 tot_num_tp; in opj_j2k_write_all_tile_parts()
11807 OPJ_UINT32 pino; in opj_j2k_write_all_tile_parts()
11920 OPJ_UINT32 l_tlm_size; in opj_j2k_write_updated_tlm()
12101 OPJ_UINT32 p_tile_index, in opj_j2k_write_tile()
12103 OPJ_UINT32 p_data_size, in opj_j2k_write_tile()
12112 OPJ_UINT32 j; in opj_j2k_write_tile()