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()
1944 OPJ_UINT32 i; in opj_j2k_write_siz()
1945 OPJ_UINT32 l_size_len; in opj_j2k_write_siz()
2048 OPJ_UINT32 p_header_size, in opj_j2k_read_siz()
2052 OPJ_UINT32 i; in opj_j2k_read_siz()
2053 OPJ_UINT32 l_nb_comp; in opj_j2k_read_siz()
2054 OPJ_UINT32 l_nb_comp_remain; in opj_j2k_read_siz()
2055 OPJ_UINT32 l_remaining_size; in opj_j2k_read_siz()
2056 OPJ_UINT32 l_nb_tiles; in opj_j2k_read_siz()
2057 OPJ_UINT32 l_tmp, l_tx1, l_ty1; in opj_j2k_read_siz()
2058 OPJ_UINT32 l_prec0, l_sgnd0; in opj_j2k_read_siz()
2090 opj_read_bytes(p_header_data, (OPJ_UINT32*) &l_image->x1, 4); /* Xsiz */ in opj_j2k_read_siz()
2092 opj_read_bytes(p_header_data, (OPJ_UINT32*) &l_image->y1, 4); /* Ysiz */ in opj_j2k_read_siz()
2094 opj_read_bytes(p_header_data, (OPJ_UINT32*) &l_image->x0, 4); /* X0siz */ in opj_j2k_read_siz()
2096 opj_read_bytes(p_header_data, (OPJ_UINT32*) &l_image->y0, 4); /* Y0siz */ in opj_j2k_read_siz()
2098 opj_read_bytes(p_header_data, (OPJ_UINT32*) &l_cp->tdx, in opj_j2k_read_siz()
2101 opj_read_bytes(p_header_data, (OPJ_UINT32*) &l_cp->tdy, in opj_j2k_read_siz()
2104 opj_read_bytes(p_header_data, (OPJ_UINT32*) &l_cp->tx0, in opj_j2k_read_siz()
2107 opj_read_bytes(p_header_data, (OPJ_UINT32*) &l_cp->ty0, in opj_j2k_read_siz()
2110 opj_read_bytes(p_header_data, (OPJ_UINT32*) &l_tmp, in opj_j2k_read_siz()
2155 OPJ_UINT32 siz_w, siz_h; in opj_j2k_read_siz()
2226 OPJ_UINT32 tmp; in opj_j2k_read_siz()
2247 l_img_comp->dx = (OPJ_UINT32)tmp; /* should be between 1 and 255 */ in opj_j2k_read_siz()
2250 l_img_comp->dy = (OPJ_UINT32)tmp; /* should be between 1 and 255 */ in opj_j2k_read_siz()
2468 OPJ_UINT32 l_comment_size; in opj_j2k_write_com()
2469 OPJ_UINT32 l_total_com_size; in opj_j2k_write_com()
2479 l_comment_size = (OPJ_UINT32)strlen(l_comment); in opj_j2k_write_com()
2530 OPJ_UINT32 p_header_size, in opj_j2k_read_com()
2553 OPJ_UINT32 l_code_size, l_remaining_size; in opj_j2k_write_cod()
2592 opj_write_bytes(l_current_data, (OPJ_UINT32)l_tcp->prg, 1); /* SGcod (A) */ in opj_j2k_write_cod()
2632 OPJ_UINT32 p_header_size, in opj_j2k_read_cod()
2637 OPJ_UINT32 i; in opj_j2k_read_cod()
2638 OPJ_UINT32 l_tmp; in opj_j2k_read_cod()
2673 if ((l_tcp->csty & ~(OPJ_UINT32)(J2K_CP_CSTY_PRT | J2K_CP_CSTY_SOP | in opj_j2k_read_cod()
2733 l_image->numcomps * sizeof(OPJ_UINT32)); in opj_j2k_read_cod()
2747 OPJ_UINT32 p_comp_no, in opj_j2k_write_coc()
2751 OPJ_UINT32 l_coc_size, l_remaining_size; in opj_j2k_write_coc()
2752 OPJ_UINT32 l_comp_room; in opj_j2k_write_coc()
2798 OPJ_UINT32 p_first_comp_no, OPJ_UINT32 p_second_comp_no) in opj_j2k_compare_coc()
2819 OPJ_UINT32 p_comp_no, in opj_j2k_write_coc_in_memory()
2821 OPJ_UINT32 * p_data_written, in opj_j2k_write_coc_in_memory()
2827 OPJ_UINT32 l_coc_size, l_remaining_size; in opj_j2k_write_coc_in_memory()
2830 OPJ_UINT32 l_comp_room; in opj_j2k_write_coc_in_memory()
2868 static OPJ_UINT32 opj_j2k_get_max_coc_size(opj_j2k_t *p_j2k) in opj_j2k_get_max_coc_size()
2870 OPJ_UINT32 i, j; in opj_j2k_get_max_coc_size()
2871 OPJ_UINT32 l_nb_comp; in opj_j2k_get_max_coc_size()
2872 OPJ_UINT32 l_nb_tiles; in opj_j2k_get_max_coc_size()
2873 OPJ_UINT32 l_max = 0; in opj_j2k_get_max_coc_size()
2898 OPJ_UINT32 p_header_size, in opj_j2k_read_coc()
2905 OPJ_UINT32 l_comp_room; in opj_j2k_read_coc()
2906 OPJ_UINT32 l_comp_no; in opj_j2k_read_coc()
2960 OPJ_UINT32 l_qcd_size, l_remaining_size; in opj_j2k_write_qcd()
3025 OPJ_UINT32 p_header_size, in opj_j2k_read_qcd()
3052 OPJ_UINT32 p_comp_no, in opj_j2k_write_qcc()
3057 OPJ_UINT32 l_qcc_size, l_remaining_size; in opj_j2k_write_qcc()
3097 OPJ_UINT32 p_first_comp_no, OPJ_UINT32 p_second_comp_no) in opj_j2k_compare_qcc()
3104 OPJ_UINT32 p_comp_no, in opj_j2k_write_qcc_in_memory()
3106 OPJ_UINT32 * p_data_written, in opj_j2k_write_qcc_in_memory()
3110 OPJ_UINT32 l_qcc_size, l_remaining_size; in opj_j2k_write_qcc_in_memory()
3153 static OPJ_UINT32 opj_j2k_get_max_qcc_size(opj_j2k_t *p_j2k) in opj_j2k_get_max_qcc_size()
3167 OPJ_UINT32 p_header_size, in opj_j2k_read_qcc()
3171 OPJ_UINT32 l_num_comp, l_comp_no; in opj_j2k_read_qcc()
3201 static OPJ_UINT32 backup_compno = 0; in opj_j2k_read_qcc()
3250 OPJ_UINT32 l_nb_comp; in opj_j2k_write_poc()
3251 OPJ_UINT32 l_nb_poc; in opj_j2k_write_poc()
3252 OPJ_UINT32 l_poc_size; in opj_j2k_write_poc()
3253 OPJ_UINT32 l_written_size = 0; in opj_j2k_write_poc()
3255 OPJ_UINT32 l_poc_room; in opj_j2k_write_poc()
3302 OPJ_UINT32 * p_data_written, in opj_j2k_write_poc_in_memory()
3306 OPJ_UINT32 i; in opj_j2k_write_poc_in_memory()
3308 OPJ_UINT32 l_nb_comp; in opj_j2k_write_poc_in_memory()
3309 OPJ_UINT32 l_nb_poc; in opj_j2k_write_poc_in_memory()
3310 OPJ_UINT32 l_poc_size; in opj_j2k_write_poc_in_memory()
3315 OPJ_UINT32 l_poc_room; in opj_j2k_write_poc_in_memory()
3369 opj_write_bytes(l_current_data, (OPJ_UINT32)l_current_poc->prg, in opj_j2k_write_poc_in_memory()
3374 l_current_poc->layno1 = (OPJ_UINT32)opj_int_min((OPJ_INT32) in opj_j2k_write_poc_in_memory()
3376 l_current_poc->resno1 = (OPJ_UINT32)opj_int_min((OPJ_INT32) in opj_j2k_write_poc_in_memory()
3378 l_current_poc->compno1 = (OPJ_UINT32)opj_int_min((OPJ_INT32) in opj_j2k_write_poc_in_memory()
3387 static OPJ_UINT32 opj_j2k_get_max_poc_size(opj_j2k_t *p_j2k) in opj_j2k_get_max_poc_size()
3390 OPJ_UINT32 l_nb_tiles = 0; in opj_j2k_get_max_poc_size()
3391 OPJ_UINT32 l_max_poc = 0; in opj_j2k_get_max_poc_size()
3392 OPJ_UINT32 i; in opj_j2k_get_max_poc_size()
3407 static OPJ_UINT32 opj_j2k_get_max_toc_size(opj_j2k_t *p_j2k) in opj_j2k_get_max_toc_size()
3409 OPJ_UINT32 i; in opj_j2k_get_max_toc_size()
3410 OPJ_UINT32 l_nb_tiles; in opj_j2k_get_max_toc_size()
3411 OPJ_UINT32 l_max = 0; in opj_j2k_get_max_toc_size()
3426 static OPJ_UINT32 opj_j2k_get_specific_header_sizes(opj_j2k_t *p_j2k) in opj_j2k_get_specific_header_sizes()
3428 OPJ_UINT32 l_nb_bytes = 0; in opj_j2k_get_specific_header_sizes()
3429 OPJ_UINT32 l_nb_comps; in opj_j2k_get_specific_header_sizes()
3430 OPJ_UINT32 l_coc_bytes, l_qcc_bytes; in opj_j2k_get_specific_header_sizes()
3460 OPJ_UINT32 p_header_size, in opj_j2k_read_poc()
3464 OPJ_UINT32 i, l_nb_comp, l_tmp; in opj_j2k_read_poc()
3466 OPJ_UINT32 l_old_poc_nb, l_current_poc_nb, l_current_poc_remaining; in opj_j2k_read_poc()
3467 OPJ_UINT32 l_chunk_size, l_comp_room; in opj_j2k_read_poc()
3551 OPJ_UINT32 p_header_size, in opj_j2k_read_crg()
3555 OPJ_UINT32 l_nb_comp; in opj_j2k_read_crg()
3593 OPJ_UINT32 p_header_size, in opj_j2k_read_tlm()
3597 OPJ_UINT32 l_Ztlm, l_Stlm, l_ST, l_SP, l_tot_num_tp_remaining, l_quotient, in opj_j2k_read_tlm()
3654 OPJ_UINT32 p_header_size, in opj_j2k_read_plm()
3727 OPJ_UINT32 p_header_size, in opj_j2k_read_plt()
3731 OPJ_UINT32 l_Zplt, l_tmp, l_packet_len = 0, i; in opj_j2k_read_plt()
3782 OPJ_UINT32 p_header_size, in opj_j2k_read_ppm()
3786 OPJ_UINT32 l_Z_ppm; in opj_j2k_read_ppm()
3808 OPJ_UINT32 l_newCount = l_Z_ppm + 1U; /* can't overflow, l_Z_ppm is UINT8 */ in opj_j2k_read_ppm()
3818 OPJ_UINT32 l_newCount = l_Z_ppm + 1U; /* can't overflow, l_Z_ppm is UINT8 */ in opj_j2k_read_ppm()
3859 OPJ_UINT32 i, l_ppm_data_size, l_N_ppm_remaining; in opj_j2k_merge_ppm()
3875 OPJ_UINT32 l_N_ppm; in opj_j2k_merge_ppm()
3876 OPJ_UINT32 l_data_size = p_cp->ppm_markers[i].m_data_size; in opj_j2k_merge_ppm()
3931 OPJ_UINT32 l_N_ppm; in opj_j2k_merge_ppm()
3932 OPJ_UINT32 l_data_size = p_cp->ppm_markers[i].m_data_size; in opj_j2k_merge_ppm()
3999 OPJ_UINT32 p_header_size, in opj_j2k_read_ppt()
4005 OPJ_UINT32 l_Z_ppt; in opj_j2k_read_ppt()
4034 OPJ_UINT32 l_newCount = l_Z_ppt + 1U; /* can't overflow, l_Z_ppt is UINT8 */ in opj_j2k_read_ppt()
4044 OPJ_UINT32 l_newCount = l_Z_ppt + 1U; /* can't overflow, l_Z_ppt is UINT8 */ in opj_j2k_read_ppt()
4084 OPJ_UINT32 i, l_ppt_data_size; in opj_j2k_merge_ppt()
4136 OPJ_UINT32 l_tlm_size; in opj_j2k_write_tlm()
4193 OPJ_UINT32 p_total_data_size, in opj_j2k_write_sot()
4194 OPJ_UINT32 * p_data_written, in opj_j2k_write_sot()
4252 OPJ_UINT32 p_header_size, in opj_j2k_get_sot_values()
4253 OPJ_UINT32* p_tile_no, in opj_j2k_get_sot_values()
4254 OPJ_UINT32* p_tot_len, in opj_j2k_get_sot_values()
4255 OPJ_UINT32* p_current_part, in opj_j2k_get_sot_values()
4256 OPJ_UINT32* p_num_parts, in opj_j2k_get_sot_values()
4282 OPJ_UINT32 p_header_size, in opj_j2k_read_sot()
4287 OPJ_UINT32 l_tot_len, l_num_parts = 0; in opj_j2k_read_sot()
4288 OPJ_UINT32 l_current_part; in opj_j2k_read_sot()
4289 OPJ_UINT32 l_tile_x, l_tile_y; in opj_j2k_read_sot()
4321 p_j2k->m_current_tile_number == (OPJ_UINT32) in opj_j2k_read_sot()
4349 OPJ_UINT32 tileno = p_j2k->m_current_tile_number; in opj_j2k_read_sot()
4350 static OPJ_UINT32 backup_tileno = 0; in opj_j2k_read_sot()
4486 (p_j2k->m_current_tile_number != (OPJ_UINT32) in opj_j2k_read_sot()
4602 OPJ_UINT32 * p_data_written, in opj_j2k_write_sod()
4603 OPJ_UINT32 p_total_data_size, in opj_j2k_write_sod()
4609 OPJ_UINT32 l_remaining_data; in opj_j2k_write_sod()
4697 OPJ_UINT32 * l_tile_len = 00; in opj_j2k_read_sod()
4712 p_j2k->m_specific_param.m_decoder.m_sot_length = (OPJ_UINT32)( in opj_j2k_read_sod()
4788 OPJ_UINT32 l_current_tile_part = in opj_j2k_read_sod()
4826 *l_tile_len += (OPJ_UINT32)l_current_read_size; in opj_j2k_read_sod()
4832 OPJ_UINT32 p_tile_no, in opj_j2k_write_rgn()
4833 OPJ_UINT32 p_comp_no, in opj_j2k_write_rgn()
4834 OPJ_UINT32 nb_comps, in opj_j2k_write_rgn()
4840 OPJ_UINT32 l_rgn_size; in opj_j2k_write_rgn()
4844 OPJ_UINT32 l_comp_room; in opj_j2k_write_rgn()
4881 opj_write_bytes(l_current_data, (OPJ_UINT32)l_tccp->roishift, in opj_j2k_write_rgn()
4937 OPJ_UINT32 p_header_size, in opj_j2k_read_rgn()
4941 OPJ_UINT32 l_nb_comp; in opj_j2k_read_rgn()
4946 OPJ_UINT32 l_comp_room, l_comp_no, l_roi_sty; in opj_j2k_read_rgn()
5002 (OPJ_UINT32 *)(&(l_tcp->tccps[l_comp_no].roishift)), 1); /* SPrgn */ in opj_j2k_read_rgn()
5029 OPJ_UINT32 i, j, k; in opj_j2k_update_rates()
5033 OPJ_UINT32 l_bits_empty, l_size_pixel; in opj_j2k_update_rates()
5034 OPJ_UINT32 l_tile_size = 0; in opj_j2k_update_rates()
5035 OPJ_UINT32 l_last_res; in opj_j2k_update_rates()
5079 *l_rates = (((OPJ_FLOAT32)(l_size_pixel * (OPJ_UINT32)(l_x1 - l_x0) * in opj_j2k_update_rates()
5080 (OPJ_UINT32)(l_y1 - l_y0))) in opj_j2k_update_rates()
5092 *l_rates = (((OPJ_FLOAT32)(l_size_pixel * (OPJ_UINT32)(l_x1 - l_x0) * in opj_j2k_update_rates()
5093 (OPJ_UINT32)(l_y1 - l_y0))) in opj_j2k_update_rates()
5172 l_tile_size = (OPJ_UINT32)(l_tile_size * 1.4 / 8); in opj_j2k_update_rates()
5207 OPJ_UINT32 i;
5209 OPJ_UINT32 l_nb_tiles;
5274 OPJ_UINT32 i; in opj_j2k_write_mct_data_group()
5323 OPJ_UINT32 compno; in opj_j2k_write_all_coc()
5347 OPJ_UINT32 compno; in opj_j2k_write_all_qcc()
5369 OPJ_UINT32 compno; in opj_j2k_write_regions()
5436 OPJ_UINT32 *output_marker, in opj_j2k_read_unk()
5440 OPJ_UINT32 l_unknown_marker; in opj_j2k_read_unk()
5442 OPJ_UINT32 l_size_unk = 2; in opj_j2k_read_unk()
5477 … (OPJ_UINT32) opj_stream_tell(p_stream) - l_size_unk, in opj_j2k_read_unk()
5502 OPJ_UINT32 l_mct_size; in opj_j2k_write_mct_record()
5504 OPJ_UINT32 l_tmp; in opj_j2k_write_mct_record()
5573 OPJ_UINT32 p_header_size, in opj_j2k_read_mct()
5577 OPJ_UINT32 i; in opj_j2k_read_mct()
5579 OPJ_UINT32 l_tmp; in opj_j2k_read_mct()
5580 OPJ_UINT32 l_indix; in opj_j2k_read_mct()
5713 OPJ_UINT32 i; in opj_j2k_write_mcc_record()
5714 OPJ_UINT32 l_mcc_size; in opj_j2k_write_mcc_record()
5716 OPJ_UINT32 l_nb_bytes_for_comp; in opj_j2k_write_mcc_record()
5717 OPJ_UINT32 l_mask; in opj_j2k_write_mcc_record()
5718 OPJ_UINT32 l_tmcc; in opj_j2k_write_mcc_record()
5825 OPJ_UINT32 p_header_size, in opj_j2k_read_mcc()
5828 OPJ_UINT32 i, j; in opj_j2k_read_mcc()
5829 OPJ_UINT32 l_tmp; in opj_j2k_read_mcc()
5830 OPJ_UINT32 l_indix; in opj_j2k_read_mcc()
5834 OPJ_UINT32 l_nb_collections; in opj_j2k_read_mcc()
5835 OPJ_UINT32 l_nb_comps; in opj_j2k_read_mcc()
5836 OPJ_UINT32 l_nb_bytes_by_comp; in opj_j2k_read_mcc()
6062 OPJ_UINT32 l_mco_size; in opj_j2k_write_mco()
6065 OPJ_UINT32 i; in opj_j2k_write_mco()
6129 OPJ_UINT32 p_header_size, in opj_j2k_read_mco()
6133 OPJ_UINT32 l_tmp, i; in opj_j2k_read_mco()
6134 OPJ_UINT32 l_nb_stages; in opj_j2k_read_mco()
6194 OPJ_UINT32 p_index) in opj_j2k_add_mct()
6196 OPJ_UINT32 i; in opj_j2k_add_mct()
6199 OPJ_UINT32 l_data_size, l_mct_size, l_offset_size; in opj_j2k_add_mct()
6200 OPJ_UINT32 l_nb_elem; in opj_j2k_add_mct()
6201 OPJ_UINT32 * l_offset_data, * l_current_offset_data; in opj_j2k_add_mct()
6235 l_mct_size = l_nb_elem * (OPJ_UINT32)sizeof(OPJ_FLOAT32); in opj_j2k_add_mct()
6256 l_offset_size = l_nb_elem * (OPJ_UINT32)sizeof(OPJ_UINT32); in opj_j2k_add_mct()
6257 l_offset_data = (OPJ_UINT32*)opj_malloc(l_offset_size); in opj_j2k_add_mct()
6284 OPJ_UINT32 i; in opj_j2k_write_cbd()
6285 OPJ_UINT32 l_cbd_size; in opj_j2k_write_cbd()
6351 OPJ_UINT32 p_header_size, in opj_j2k_read_cbd()
6355 OPJ_UINT32 l_nb_comp, l_num_comp; in opj_j2k_read_cbd()
6356 OPJ_UINT32 l_comp_def; in opj_j2k_read_cbd()
6357 OPJ_UINT32 i; in opj_j2k_read_cbd()
6420 OPJ_BOOL opj_j2k_set_threads(opj_j2k_t *j2k, OPJ_UINT32 num_threads) in opj_j2k_set_threads()
6425 if (num_threads <= (OPJ_UINT32)INT_MAX) { in opj_j2k_set_threads()
6519 POC[0].resno1 = (OPJ_UINT32)(numres - 1); in opj_j2k_initialise_4K_poc()
6523 POC[1].resno0 = (OPJ_UINT32)(numres - 1); in opj_j2k_initialise_4K_poc()
6526 POC[1].resno1 = (OPJ_UINT32)numres; in opj_j2k_initialise_4K_poc()
6635 parameters->numpocs = (OPJ_UINT32)opj_j2k_initialise_4K_poc(parameters->POC, in opj_j2k_set_cinema_parameters()
6675 … (OPJ_FLOAT32)(((OPJ_UINT32)parameters->max_cs_size) * 8 * image->comps[0].dx * in opj_j2k_set_cinema_parameters()
6683 OPJ_UINT32 i; in opj_j2k_is_cinema_compliant()
6748 OPJ_UINT32 i, j, tileno, numpocs_tile; in opj_j2k_setup_encoder()
6750 OPJ_UINT32 cblkw, cblkh; in opj_j2k_setup_encoder()
6781 cblkw = (OPJ_UINT32)opj_int_floorlog2(parameters->cblockw_init); in opj_j2k_setup_encoder()
6782 cblkh = (OPJ_UINT32)opj_int_floorlog2(parameters->cblockh_init); in opj_j2k_setup_encoder()
6863 for (i = 1; i < (OPJ_UINT32) parameters->tcp_numlayers; i++) { in opj_j2k_setup_encoder()
6903 for (i = 1; i < (OPJ_UINT32) parameters->tcp_numlayers; i++) { in opj_j2k_setup_encoder()
6905 !(i == (OPJ_UINT32)parameters->tcp_numlayers - 1 && in opj_j2k_setup_encoder()
6939 for (i = 0; i < (OPJ_UINT32) parameters->tcp_numlayers; i++) { in opj_j2k_setup_encoder()
6996 cp->m_specific_param.m_enc.m_max_comp_size = (OPJ_UINT32) in opj_j2k_setup_encoder()
6999 cp->m_specific_param.m_enc.m_disto_alloc = (OPJ_UINT32) in opj_j2k_setup_encoder()
7001 cp->m_specific_param.m_enc.m_fixed_alloc = (OPJ_UINT32) in opj_j2k_setup_encoder()
7003 cp->m_specific_param.m_enc.m_fixed_quality = (OPJ_UINT32) in opj_j2k_setup_encoder()
7021 cp->tdx = (OPJ_UINT32)parameters->cp_tdx; in opj_j2k_setup_encoder()
7022 cp->tdy = (OPJ_UINT32)parameters->cp_tdy; in opj_j2k_setup_encoder()
7025 cp->tx0 = (OPJ_UINT32)parameters->cp_tx0; in opj_j2k_setup_encoder()
7026 cp->ty0 = (OPJ_UINT32)parameters->cp_ty0; in opj_j2k_setup_encoder()
7148 (OPJ_UINT32)parameters->numresolution, image->numcomps, in opj_j2k_setup_encoder()
7149 (OPJ_UINT32)parameters->tcp_numlayers, p_manager); in opj_j2k_setup_encoder()
7155 tcp->numlayers = (OPJ_UINT32)parameters->tcp_numlayers; in opj_j2k_setup_encoder()
7176 tcp->csty = (OPJ_UINT32)parameters->csty; in opj_j2k_setup_encoder()
7178 tcp->mct = (OPJ_UINT32)parameters->tcp_mct; in opj_j2k_setup_encoder()
7215 OPJ_UINT32 lMctSize = image->numcomps * image->numcomps * (OPJ_UINT32)sizeof( in opj_j2k_setup_encoder()
7305 tccp->numresolutions = (OPJ_UINT32)parameters->numresolution; in opj_j2k_setup_encoder()
7306 tccp->cblkw = (OPJ_UINT32)opj_int_floorlog2(parameters->cblockw_init); in opj_j2k_setup_encoder()
7307 tccp->cblkh = (OPJ_UINT32)opj_int_floorlog2(parameters->cblockh_init); in opj_j2k_setup_encoder()
7308 tccp->cblksty = (OPJ_UINT32)parameters->mode; in opj_j2k_setup_encoder()
7329 … tccp->prcw[it_res] = (OPJ_UINT32)opj_int_floorlog2(parameters->prcw_init[p]); in opj_j2k_setup_encoder()
7335 … tccp->prch[it_res] = (OPJ_UINT32)opj_int_floorlog2(parameters->prch_init[p]); in opj_j2k_setup_encoder()
7351 tccp->prcw[it_res] = (OPJ_UINT32)opj_int_floorlog2(size_prcw); in opj_j2k_setup_encoder()
7357 tccp->prch[it_res] = (OPJ_UINT32)opj_int_floorlog2(size_prch); in opj_j2k_setup_encoder()
7382 OPJ_UINT32 type, OPJ_OFF_T pos, OPJ_UINT32 len) in opj_j2k_add_mhmarker()
7389 cstr_index->maxmarknum = (OPJ_UINT32)(100 + (OPJ_FLOAT32) in opj_j2k_add_mhmarker()
7412 static OPJ_BOOL opj_j2k_add_tlmarker(OPJ_UINT32 tileno, in opj_j2k_add_tlmarker()
7413 … opj_codestream_index_t *cstr_index, OPJ_UINT32 type, OPJ_OFF_T pos, in opj_j2k_add_tlmarker()
7414 OPJ_UINT32 len) in opj_j2k_add_tlmarker()
7423 cstr_index->tile_index[tileno].maxmarknum = (OPJ_UINT32)(100 + in opj_j2k_add_tlmarker()
7449 OPJ_UINT32 l_current_tile_part = cstr_index->tile_index[tileno].current_tpsno; in opj_j2k_add_tlmarker()
7582 OPJ_UINT32 i, j; in opj_j2k_mct_validation()
7593 OPJ_UINT32 l_nb_tiles = p_j2k->m_cp.th * p_j2k->m_cp.tw; in opj_j2k_mct_validation()
7615 OPJ_UINT32 i; in opj_j2k_setup_mct_encoding()
7616 OPJ_UINT32 l_indix = 1; in opj_j2k_setup_mct_encoding()
7619 OPJ_UINT32 l_mct_size, l_nb_elem; in opj_j2k_setup_mct_encoding()
7833 if ((p_j2k->m_cp.tdx) < (OPJ_UINT32)(1 << in opj_j2k_encoding_validation()
7840 if ((p_j2k->m_cp.tdy) < (OPJ_UINT32)(1 << in opj_j2k_encoding_validation()
7888 OPJ_UINT32 l_current_marker; in opj_j2k_read_header_procedure()
7889 OPJ_UINT32 l_marker_size; in opj_j2k_read_header_procedure()
8019 (OPJ_UINT32) opj_stream_tell(p_stream) - l_marker_size - 4, in opj_j2k_read_header_procedure()
8061 p_j2k->cstr_index->main_head_end = (OPJ_UINT32) opj_stream_tell(p_stream) - 2; in opj_j2k_read_header_procedure()
8077 OPJ_UINT32 l_nb_proc, i; in opj_j2k_exec()
8107 OPJ_UINT32 l_nb_tiles; in opj_j2k_copy_default_tcp_and_create_tcd()
8108 OPJ_UINT32 i, j; in opj_j2k_copy_default_tcp_and_create_tcd()
8110 OPJ_UINT32 l_tccp_size; in opj_j2k_copy_default_tcp_and_create_tcd()
8111 OPJ_UINT32 l_mct_size; in opj_j2k_copy_default_tcp_and_create_tcd()
8113 OPJ_UINT32 l_mcc_records_size, l_mct_records_size; in opj_j2k_copy_default_tcp_and_create_tcd()
8116 OPJ_UINT32 l_offset; in opj_j2k_copy_default_tcp_and_create_tcd()
8128 l_tccp_size = l_image->numcomps * (OPJ_UINT32)sizeof(opj_tccp_t); in opj_j2k_copy_default_tcp_and_create_tcd()
8130 l_mct_size = l_image->numcomps * l_image->numcomps * (OPJ_UINT32)sizeof( in opj_j2k_copy_default_tcp_and_create_tcd()
8164 l_mct_records_size = l_default_tcp->m_nb_max_mct_records * (OPJ_UINT32)sizeof( in opj_j2k_copy_default_tcp_and_create_tcd()
8195 l_mcc_records_size = l_default_tcp->m_nb_max_mcc_records * (OPJ_UINT32)sizeof( in opj_j2k_copy_default_tcp_and_create_tcd()
8212 l_offset = (OPJ_UINT32)(l_src_mcc_rec->m_decorrelation_array - in opj_j2k_copy_default_tcp_and_create_tcd()
8218 l_offset = (OPJ_UINT32)(l_src_mcc_rec->m_offset_array - in opj_j2k_copy_default_tcp_and_create_tcd()
8251 OPJ_UINT32 p_id) in opj_j2k_get_marker_handler()
8342 OPJ_UINT32 it_tile = 0; in j2k_destroy_cstr_index()
8378 OPJ_UINT32 i; in opj_j2k_tcp_destroy()
8418 OPJ_UINT32 i; in opj_j2k_tcp_destroy()
8453 OPJ_UINT32 l_nb_tiles; in opj_j2k_cp_destroy()
8460 OPJ_UINT32 i; in opj_j2k_cp_destroy()
8472 OPJ_UINT32 i; in opj_j2k_cp_destroy()
8495 *p_stream, OPJ_UINT32 tile_no, OPJ_BOOL* p_correction_needed, in opj_j2k_need_nb_tile_parts_correction()
8500 OPJ_UINT32 l_current_marker; in opj_j2k_need_nb_tile_parts_correction()
8501 OPJ_UINT32 l_marker_size; in opj_j2k_need_nb_tile_parts_correction()
8502 OPJ_UINT32 l_tile_no, l_tot_len, l_current_part, l_num_parts; in opj_j2k_need_nb_tile_parts_correction()
8603 OPJ_UINT32 * p_tile_index, in opj_j2k_read_tile_header()
8604 OPJ_UINT32 * p_data_size, in opj_j2k_read_tile_header()
8607 OPJ_UINT32 * p_nb_comps, in opj_j2k_read_tile_header()
8612 OPJ_UINT32 l_current_marker = J2K_MS_SOT; in opj_j2k_read_tile_header()
8613 OPJ_UINT32 l_marker_size; in opj_j2k_read_tile_header()
8732 … (OPJ_UINT32) opj_stream_tell(p_stream) - l_marker_size - 4, in opj_j2k_read_tile_header()
8740 OPJ_UINT32 sot_pos = (OPJ_UINT32) opj_stream_tell(p_stream) - l_marker_size - 4 in opj_j2k_read_tile_header()
8791 OPJ_UINT32 l_nb_tiles = p_j2k->m_cp.tw * p_j2k->m_cp.th; in opj_j2k_read_tile_header()
8792 OPJ_UINT32 l_tile_no; in opj_j2k_read_tile_header()
8844 OPJ_UINT32 l_nb_tiles = p_j2k->m_cp.th * p_j2k->m_cp.tw; in opj_j2k_read_tile_header()
8895 OPJ_UINT32 p_tile_index, in opj_j2k_decode_tile()
8897 OPJ_UINT32 p_data_size, in opj_j2k_decode_tile()
8901 OPJ_UINT32 l_current_marker; in opj_j2k_decode_tile()
8962 p_j2k->m_specific_param.m_decoder.m_state &= (~(OPJ_UINT32)J2K_STATE_DATA); in opj_j2k_decode_tile()
8997 OPJ_UINT32 i, j; in opj_j2k_update_image_data()
8998 OPJ_UINT32 l_width_src, l_height_src; in opj_j2k_update_image_data()
8999 OPJ_UINT32 l_width_dest, l_height_dest; in opj_j2k_update_image_data()
9002 OPJ_UINT32 l_start_x_dest, l_start_y_dest; in opj_j2k_update_image_data()
9003 OPJ_UINT32 l_x0_dest, l_y0_dest, l_x1_dest, l_y1_dest; in opj_j2k_update_image_data()
9022 OPJ_UINT32 src_data_stride; in opj_j2k_update_image_data()
9035 src_data_stride = (OPJ_UINT32)( in opj_j2k_update_image_data()
9055 l_width_src = (OPJ_UINT32)(res_x1 - res_x0); in opj_j2k_update_image_data()
9056 l_height_src = (OPJ_UINT32)(res_y1 - res_y0); in opj_j2k_update_image_data()
9093 if (l_x0_dest < (OPJ_UINT32)res_x0) { in opj_j2k_update_image_data()
9094 l_start_x_dest = (OPJ_UINT32)res_x0 - l_x0_dest; in opj_j2k_update_image_data()
9097 if (l_x1_dest >= (OPJ_UINT32)res_x1) { in opj_j2k_update_image_data()
9101 l_width_dest = l_x1_dest - (OPJ_UINT32)res_x0 ; in opj_j2k_update_image_data()
9108 if (l_x1_dest >= (OPJ_UINT32)res_x1) { in opj_j2k_update_image_data()
9109 l_width_dest = l_width_src - (OPJ_UINT32)l_offset_x0_src; in opj_j2k_update_image_data()
9117 if (l_y0_dest < (OPJ_UINT32)res_y0) { in opj_j2k_update_image_data()
9118 l_start_y_dest = (OPJ_UINT32)res_y0 - l_y0_dest; in opj_j2k_update_image_data()
9121 if (l_y1_dest >= (OPJ_UINT32)res_y1) { in opj_j2k_update_image_data()
9125 l_height_dest = l_y1_dest - (OPJ_UINT32)res_y0 ; in opj_j2k_update_image_data()
9132 if (l_y1_dest >= (OPJ_UINT32)res_y1) { in opj_j2k_update_image_data()
9133 l_height_dest = l_height_src - (OPJ_UINT32)l_offset_y0_src; in opj_j2k_update_image_data()
9220 OPJ_UINT32 it_comp; in opj_j2k_update_image_dimensions()
9239 l_img_comp->w = (OPJ_UINT32)(l_1-l_2); in opj_j2k_update_image_dimensions()
9249 l_img_comp->h = (OPJ_UINT32)(l_1-l_2); in opj_j2k_update_image_dimensions()
9258 OPJ_UINT32 numcomps, in opj_j2k_set_decoded_components()
9259 const OPJ_UINT32* comps_indices, in opj_j2k_set_decoded_components()
9262 OPJ_UINT32 i; in opj_j2k_set_decoded_components()
9300 (OPJ_UINT32*) opj_malloc(numcomps * sizeof(OPJ_UINT32)); in opj_j2k_set_decoded_components()
9307 numcomps * sizeof(OPJ_UINT32)); in opj_j2k_set_decoded_components()
9326 OPJ_UINT32 it_comp; in opj_j2k_set_decode_area()
9372 } else if ((OPJ_UINT32)p_start_x > l_image->x1) { in opj_j2k_set_decode_area()
9377 } else if ((OPJ_UINT32)p_start_x < l_image->x0) { in opj_j2k_set_decode_area()
9384 p_j2k->m_specific_param.m_decoder.m_start_tile_x = ((OPJ_UINT32)p_start_x - in opj_j2k_set_decode_area()
9386 p_image->x0 = (OPJ_UINT32)p_start_x; in opj_j2k_set_decode_area()
9395 } else if ((OPJ_UINT32)p_start_y > l_image->y1) { in opj_j2k_set_decode_area()
9400 } else if ((OPJ_UINT32)p_start_y < l_image->y0) { in opj_j2k_set_decode_area()
9407 p_j2k->m_specific_param.m_decoder.m_start_tile_y = ((OPJ_UINT32)p_start_y - in opj_j2k_set_decode_area()
9409 p_image->y0 = (OPJ_UINT32)p_start_y; in opj_j2k_set_decode_area()
9418 } else if ((OPJ_UINT32)p_end_x < l_image->x0) { in opj_j2k_set_decode_area()
9423 } else if ((OPJ_UINT32)p_end_x > l_image->x1) { in opj_j2k_set_decode_area()
9430 p_j2k->m_specific_param.m_decoder.m_end_tile_x = (OPJ_UINT32)opj_int_ceildiv( in opj_j2k_set_decode_area()
9432 p_image->x1 = (OPJ_UINT32)p_end_x; in opj_j2k_set_decode_area()
9441 } else if ((OPJ_UINT32)p_end_y < l_image->y0) { in opj_j2k_set_decode_area()
9447 if ((OPJ_UINT32)p_end_y > l_image->y1) { in opj_j2k_set_decode_area()
9454 p_j2k->m_specific_param.m_decoder.m_end_tile_y = (OPJ_UINT32)opj_int_ceildiv( in opj_j2k_set_decode_area()
9456 p_image->y1 = (OPJ_UINT32)p_end_y; in opj_j2k_set_decode_area()
9565 static OPJ_UINT32 opj_j2k_get_SPCod_SPCoc_size(opj_j2k_t *p_j2k, in opj_j2k_get_SPCod_SPCoc_size()
9566 OPJ_UINT32 p_tile_no, in opj_j2k_get_SPCod_SPCoc_size()
9567 OPJ_UINT32 p_comp_no) in opj_j2k_get_SPCod_SPCoc_size()
9592 OPJ_UINT32 p_tile_no, OPJ_UINT32 p_first_comp_no, OPJ_UINT32 p_second_comp_no) in opj_j2k_compare_SPCod_SPCoc()
9594 OPJ_UINT32 i; in opj_j2k_compare_SPCod_SPCoc()
9639 OPJ_UINT32 p_tile_no, in opj_j2k_write_SPCod_SPCoc()
9640 OPJ_UINT32 p_comp_no, in opj_j2k_write_SPCod_SPCoc()
9642 OPJ_UINT32 * p_header_size, in opj_j2k_write_SPCod_SPCoc()
9645 OPJ_UINT32 i; in opj_j2k_write_SPCod_SPCoc()
9708 OPJ_UINT32 compno, in opj_j2k_read_SPCod_SPCoc()
9710 OPJ_UINT32 * p_header_size, in opj_j2k_read_SPCod_SPCoc()
9713 OPJ_UINT32 i, l_tmp; in opj_j2k_read_SPCod_SPCoc()
9828 OPJ_UINT32 l_data_size = l_tccp->numresolutions * sizeof(OPJ_UINT32); in opj_j2k_read_SPCod_SPCoc()
9855 OPJ_UINT32 i; in opj_j2k_copy_tile_component_parameters()
9859 OPJ_UINT32 l_prc_size; in opj_j2k_copy_tile_component_parameters()
9872 l_prc_size = l_ref_tccp->numresolutions * (OPJ_UINT32)sizeof(OPJ_UINT32); in opj_j2k_copy_tile_component_parameters()
9886 static OPJ_UINT32 opj_j2k_get_SQcd_SQcc_size(opj_j2k_t *p_j2k, in opj_j2k_get_SQcd_SQcc_size()
9887 OPJ_UINT32 p_tile_no, in opj_j2k_get_SQcd_SQcc_size()
9888 OPJ_UINT32 p_comp_no) in opj_j2k_get_SQcd_SQcc_size()
9890 OPJ_UINT32 l_num_bands; in opj_j2k_get_SQcd_SQcc_size()
9918 OPJ_UINT32 p_tile_no, OPJ_UINT32 p_first_comp_no, OPJ_UINT32 p_second_comp_no) in opj_j2k_compare_SQcd_SQcc()
9924 OPJ_UINT32 l_band_no, l_num_bands; in opj_j2k_compare_SQcd_SQcc()
9966 OPJ_UINT32 p_tile_no, in opj_j2k_write_SQcd_SQcc()
9967 OPJ_UINT32 p_comp_no, in opj_j2k_write_SQcd_SQcc()
9969 OPJ_UINT32 * p_header_size, in opj_j2k_write_SQcd_SQcc()
9972 OPJ_UINT32 l_header_size; in opj_j2k_write_SQcd_SQcc()
9973 OPJ_UINT32 l_band_no, l_num_bands; in opj_j2k_write_SQcd_SQcc()
9974 OPJ_UINT32 l_expn, l_mant; in opj_j2k_write_SQcd_SQcc()
10010 l_expn = (OPJ_UINT32)l_tccp->stepsizes[l_band_no].expn; in opj_j2k_write_SQcd_SQcc()
10027 l_expn = (OPJ_UINT32)l_tccp->stepsizes[l_band_no].expn; in opj_j2k_write_SQcd_SQcc()
10028 l_mant = (OPJ_UINT32)l_tccp->stepsizes[l_band_no].mant; in opj_j2k_write_SQcd_SQcc()
10041 OPJ_UINT32 p_comp_no, in opj_j2k_read_SQcd_SQcc()
10043 OPJ_UINT32 * p_header_size, in opj_j2k_read_SQcd_SQcc()
10048 OPJ_UINT32 l_band_no; in opj_j2k_read_SQcd_SQcc()
10053 OPJ_UINT32 l_tmp, l_num_band; in opj_j2k_read_SQcd_SQcc()
10163 OPJ_UINT32 i; in opj_j2k_copy_tile_quantization_parameters()
10168 OPJ_UINT32 l_size; in opj_j2k_copy_tile_quantization_parameters()
10204 OPJ_UINT32 resno; in opj_j2k_dump_tile_info()
10266 OPJ_UINT32 l_nb_tiles = p_j2k->m_cp.th * p_j2k->m_cp.tw; in j2k_dump()
10267 OPJ_UINT32 i; in j2k_dump()
10298 OPJ_UINT32 it_marker, it_tile, it_tile_part; in opj_j2k_dump_MH_index()
10322 OPJ_UINT32 l_acc_nb_of_tile_part = 0; in opj_j2k_dump_MH_index()
10331 OPJ_UINT32 nb_of_tile_part = cstr_index->tile_index[it_tile].nb_tps; in opj_j2k_dump_MH_index()
10399 OPJ_UINT32 compno; in j2k_dump_image_header()
10436 OPJ_UINT32 compno; in j2k_get_cstr_info()
10437 OPJ_UINT32 numcomps = p_j2k->m_private_image->numcomps; in j2k_get_cstr_info()
10496 l_tccp_info->stepsizes_mant[bandno] = (OPJ_UINT32) in j2k_get_cstr_info()
10498 l_tccp_info->stepsizes_expn[bandno] = (OPJ_UINT32) in j2k_get_cstr_info()
10551 OPJ_UINT32 it_tile = 0; in j2k_get_cstr_index()
10563 OPJ_UINT32 it_tile_free; in j2k_get_cstr_index()
10593 OPJ_UINT32 it_tile_free; in j2k_get_cstr_index()
10627 OPJ_UINT32 it_tile = 0; in opj_j2k_allocate_tile_element_cstr_index()
10655 OPJ_UINT32 l_current_tile_no; in opj_j2k_decode_tiles()
10657 OPJ_UINT32 l_nb_comps; in opj_j2k_decode_tiles()
10658 OPJ_UINT32 nr_tiles = 0; in opj_j2k_decode_tiles()
10668 OPJ_UINT32 i; in opj_j2k_decode_tiles()
10791 OPJ_UINT32 l_current_tile_no; in opj_j2k_decode_one_tile()
10792 OPJ_UINT32 l_tile_no_to_dec; in opj_j2k_decode_one_tile()
10794 OPJ_UINT32 l_nb_comps; in opj_j2k_decode_one_tile()
10795 OPJ_UINT32 l_nb_tiles; in opj_j2k_decode_one_tile()
10796 OPJ_UINT32 i; in opj_j2k_decode_one_tile()
10805 l_tile_no_to_dec = (OPJ_UINT32) in opj_j2k_decode_one_tile()
10914 OPJ_UINT32 compno; in opj_j2k_move_data_from_codec_to_output_image()
10933 OPJ_UINT32 src_compno = in opj_j2k_move_data_from_codec_to_output_image()
10993 OPJ_UINT32 it_comp; in opj_j2k_decode()
11033 OPJ_UINT32 tile_index) in opj_j2k_get_tile()
11035 OPJ_UINT32 compno; in opj_j2k_get_tile()
11036 OPJ_UINT32 l_tile_x, l_tile_y; in opj_j2k_get_tile()
11090 l_img_comp->w = (OPJ_UINT32)(opj_int_ceildivpow2(l_comp_x1, in opj_j2k_get_tile()
11093 l_img_comp->h = (OPJ_UINT32)(opj_int_ceildivpow2(l_comp_y1, in opj_j2k_get_tile()
11143 OPJ_UINT32 res_factor, in opj_j2k_set_decoded_resolution_factor()
11146 OPJ_UINT32 it_comp; in opj_j2k_set_decoded_resolution_factor()
11155 OPJ_UINT32 max_res = in opj_j2k_set_decoded_resolution_factor()
11177 OPJ_UINT32 i, j; in opj_j2k_encode()
11178 OPJ_UINT32 l_nb_tiles; in opj_j2k_encode()
11316 OPJ_UINT32 it_comp; in opj_j2k_start_compress()
11350 OPJ_UINT32 p_tile_index, in opj_j2k_pre_write_tile()
11379 OPJ_UINT32* l_size_comp, in opj_get_tile_dimensions()
11380 OPJ_UINT32* l_width, in opj_get_tile_dimensions()
11381 OPJ_UINT32* l_height, in opj_get_tile_dimensions()
11382 OPJ_UINT32* l_offset_x, in opj_get_tile_dimensions()
11383 OPJ_UINT32* l_offset_y, in opj_get_tile_dimensions()
11384 OPJ_UINT32* l_image_width, in opj_get_tile_dimensions()
11385 OPJ_UINT32* l_stride, in opj_get_tile_dimensions()
11386 OPJ_UINT32* l_tile_offset) in opj_get_tile_dimensions()
11388 OPJ_UINT32 l_remaining; in opj_get_tile_dimensions()
11399 *l_width = (OPJ_UINT32)(l_tilec->x1 - l_tilec->x0); in opj_get_tile_dimensions()
11400 *l_height = (OPJ_UINT32)(l_tilec->y1 - l_tilec->y0); in opj_get_tile_dimensions()
11403 *l_image_width = (OPJ_UINT32)opj_int_ceildiv((OPJ_INT32)l_image->x1 - in opj_get_tile_dimensions()
11406 *l_tile_offset = ((OPJ_UINT32)l_tilec->x0 - *l_offset_x) + (( in opj_get_tile_dimensions()
11407 OPJ_UINT32)l_tilec->y0 - *l_offset_y) * *l_image_width; in opj_get_tile_dimensions()
11412 OPJ_UINT32 i, j, k = 0; in opj_j2k_get_tile_data()
11419 OPJ_UINT32 l_size_comp, l_width, l_height, l_offset_x, l_offset_y, in opj_j2k_get_tile_data()
11503 OPJ_UINT32 l_nb_bytes_written; in opj_j2k_post_write_tile()
11505 OPJ_UINT32 l_tile_size = 0; in opj_j2k_post_write_tile()
11506 OPJ_UINT32 l_available_data; in opj_j2k_post_write_tile()
11695 OPJ_UINT32 * p_data_written, in opj_j2k_write_first_tile_part()
11696 OPJ_UINT32 p_total_data_size, in opj_j2k_write_first_tile_part()
11700 OPJ_UINT32 l_nb_bytes_written = 0; in opj_j2k_write_first_tile_part()
11701 OPJ_UINT32 l_current_nb_bytes_written; in opj_j2k_write_first_tile_part()
11780 OPJ_UINT32 * p_data_written, in opj_j2k_write_all_tile_parts()
11781 OPJ_UINT32 p_total_data_size, in opj_j2k_write_all_tile_parts()
11786 OPJ_UINT32 tilepartno = 0; in opj_j2k_write_all_tile_parts()
11787 OPJ_UINT32 l_nb_bytes_written = 0; in opj_j2k_write_all_tile_parts()
11788 OPJ_UINT32 l_current_nb_bytes_written; in opj_j2k_write_all_tile_parts()
11789 OPJ_UINT32 l_part_tile_size; in opj_j2k_write_all_tile_parts()
11790 OPJ_UINT32 tot_num_tp; in opj_j2k_write_all_tile_parts()
11791 OPJ_UINT32 pino; in opj_j2k_write_all_tile_parts()
11904 OPJ_UINT32 l_tlm_size; in opj_j2k_write_updated_tlm()
12085 OPJ_UINT32 p_tile_index, in opj_j2k_write_tile()
12087 OPJ_UINT32 p_data_size, in opj_j2k_write_tile()
12096 OPJ_UINT32 j; in opj_j2k_write_tile()