• Home
  • Raw
  • Download

Lines Matching refs:m_specific_param

911     opj_write_bytes(p_j2k->m_specific_param.m_encoder.m_tlm_sot_offsets_current,  in opj_j2k_update_tlm()
913 ++p_j2k->m_specific_param.m_encoder.m_tlm_sot_offsets_current; in opj_j2k_update_tlm()
915 opj_write_bytes(p_j2k->m_specific_param.m_encoder.m_tlm_sot_offsets_current, in opj_j2k_update_tlm()
917 p_j2k->m_specific_param.m_encoder.m_tlm_sot_offsets_current += 4; in opj_j2k_update_tlm()
1746 if (cp->m_specific_param.m_enc.m_tp_on == 1) { in opj_j2k_get_num_tp()
1767 if (cp->m_specific_param.m_enc.m_tp_flag == prog[i]) { in opj_j2k_get_num_tp()
1768 cp->m_specific_param.m_enc.m_tp_pos = i; in opj_j2k_get_num_tp()
1872 l_start_stream = p_j2k->m_specific_param.m_encoder.m_header_tile_data; in opj_j2k_write_soc()
1923 p_j2k->m_specific_param.m_decoder.m_state = J2K_STATE_MHSIZ; in opj_j2k_read_soc()
1962 if (l_size_len > p_j2k->m_specific_param.m_encoder.m_header_tile_data_size) { in opj_j2k_write_siz()
1965 … p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_size_len); in opj_j2k_write_siz()
1967 opj_free(p_j2k->m_specific_param.m_encoder.m_header_tile_data); in opj_j2k_write_siz()
1968 p_j2k->m_specific_param.m_encoder.m_header_tile_data = NULL; in opj_j2k_write_siz()
1969 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = 0; in opj_j2k_write_siz()
1973 p_j2k->m_specific_param.m_encoder.m_header_tile_data = new_header_tile_data; in opj_j2k_write_siz()
1974 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = l_size_len; in opj_j2k_write_siz()
1977 l_current_ptr = p_j2k->m_specific_param.m_encoder.m_header_tile_data; in opj_j2k_write_siz()
2032 p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_size_len, in opj_j2k_write_siz()
2300 l_cp->m_specific_param.m_dec.m_reduce; /* reducing factor per component */ in opj_j2k_read_siz()
2322 if (p_j2k->m_specific_param.m_decoder.m_discard_tiles) { in opj_j2k_read_siz()
2323 p_j2k->m_specific_param.m_decoder.m_start_tile_x = in opj_j2k_read_siz()
2324 (p_j2k->m_specific_param.m_decoder.m_start_tile_x - l_cp->tx0) / l_cp->tdx; in opj_j2k_read_siz()
2325 p_j2k->m_specific_param.m_decoder.m_start_tile_y = in opj_j2k_read_siz()
2326 (p_j2k->m_specific_param.m_decoder.m_start_tile_y - l_cp->ty0) / l_cp->tdy; in opj_j2k_read_siz()
2327 p_j2k->m_specific_param.m_decoder.m_end_tile_x = opj_uint_ceildiv( in opj_j2k_read_siz()
2328 p_j2k->m_specific_param.m_decoder.m_end_tile_x - l_cp->tx0, l_cp->tdx); in opj_j2k_read_siz()
2329 p_j2k->m_specific_param.m_decoder.m_end_tile_y = opj_uint_ceildiv( in opj_j2k_read_siz()
2330 p_j2k->m_specific_param.m_decoder.m_end_tile_y - l_cp->ty0, l_cp->tdy); in opj_j2k_read_siz()
2332 p_j2k->m_specific_param.m_decoder.m_start_tile_x = 0; in opj_j2k_read_siz()
2333 p_j2k->m_specific_param.m_decoder.m_start_tile_y = 0; in opj_j2k_read_siz()
2334 p_j2k->m_specific_param.m_decoder.m_end_tile_x = l_cp->tw; in opj_j2k_read_siz()
2335 p_j2k->m_specific_param.m_decoder.m_end_tile_y = l_cp->th; in opj_j2k_read_siz()
2404 p_j2k->m_specific_param.m_decoder.m_default_tcp->tccps = in opj_j2k_read_siz()
2406 if (p_j2k->m_specific_param.m_decoder.m_default_tcp->tccps == 00) { in opj_j2k_read_siz()
2412 p_j2k->m_specific_param.m_decoder.m_default_tcp->m_mct_records = in opj_j2k_read_siz()
2416 if (! p_j2k->m_specific_param.m_decoder.m_default_tcp->m_mct_records) { in opj_j2k_read_siz()
2421 p_j2k->m_specific_param.m_decoder.m_default_tcp->m_nb_max_mct_records = in opj_j2k_read_siz()
2424 p_j2k->m_specific_param.m_decoder.m_default_tcp->m_mcc_records = in opj_j2k_read_siz()
2429 if (! p_j2k->m_specific_param.m_decoder.m_default_tcp->m_mcc_records) { in opj_j2k_read_siz()
2434 p_j2k->m_specific_param.m_decoder.m_default_tcp->m_nb_max_mcc_records = in opj_j2k_read_siz()
2440 p_j2k->m_specific_param.m_decoder.m_default_tcp->tccps[i].m_dc_level_shift = 1 in opj_j2k_read_siz()
2458 p_j2k->m_specific_param.m_decoder.m_state = J2K_STATE_MH; in opj_j2k_read_siz()
2484 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size) { in opj_j2k_write_com()
2486 … p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_total_com_size); in opj_j2k_write_com()
2488 opj_free(p_j2k->m_specific_param.m_encoder.m_header_tile_data); in opj_j2k_write_com()
2489 p_j2k->m_specific_param.m_encoder.m_header_tile_data = NULL; in opj_j2k_write_com()
2490 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = 0; in opj_j2k_write_com()
2495 p_j2k->m_specific_param.m_encoder.m_header_tile_data = new_header_tile_data; in opj_j2k_write_com()
2496 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = l_total_com_size; in opj_j2k_write_com()
2499 l_current_ptr = p_j2k->m_specific_param.m_encoder.m_header_tile_data; in opj_j2k_write_com()
2514 … p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_total_com_size, in opj_j2k_write_com()
2568 if (l_code_size > p_j2k->m_specific_param.m_encoder.m_header_tile_data_size) { in opj_j2k_write_cod()
2570 … p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_code_size); in opj_j2k_write_cod()
2572 opj_free(p_j2k->m_specific_param.m_encoder.m_header_tile_data); in opj_j2k_write_cod()
2573 p_j2k->m_specific_param.m_encoder.m_header_tile_data = NULL; in opj_j2k_write_cod()
2574 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = 0; in opj_j2k_write_cod()
2578 p_j2k->m_specific_param.m_encoder.m_header_tile_data = new_header_tile_data; in opj_j2k_write_cod()
2579 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = l_code_size; in opj_j2k_write_cod()
2582 l_current_data = p_j2k->m_specific_param.m_encoder.m_header_tile_data; in opj_j2k_write_cod()
2616 p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_code_size, in opj_j2k_write_cod()
2653 l_tcp = (p_j2k->m_specific_param.m_decoder.m_state == J2K_STATE_TPH) ? in opj_j2k_read_cod()
2655 p_j2k->m_specific_param.m_decoder.m_default_tcp; in opj_j2k_read_cod()
2704 if (l_cp->m_specific_param.m_dec.m_layer) { in opj_j2k_read_cod()
2705 l_tcp->num_layers_to_decode = l_cp->m_specific_param.m_dec.m_layer; in opj_j2k_read_cod()
2770 if (l_coc_size > p_j2k->m_specific_param.m_encoder.m_header_tile_data_size) { in opj_j2k_write_coc()
2778 … p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_coc_size); in opj_j2k_write_coc()
2780 opj_free(p_j2k->m_specific_param.m_encoder.m_header_tile_data); in opj_j2k_write_coc()
2781 p_j2k->m_specific_param.m_encoder.m_header_tile_data = NULL; in opj_j2k_write_coc()
2782 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = 0; in opj_j2k_write_coc()
2786 p_j2k->m_specific_param.m_encoder.m_header_tile_data = new_header_tile_data; in opj_j2k_write_coc()
2787 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = l_coc_size; in opj_j2k_write_coc()
2791 … p_j2k->m_specific_param.m_encoder.m_header_tile_data, &l_remaining_size, in opj_j2k_write_coc()
2795 p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_coc_size, in opj_j2k_write_coc()
2920 l_tcp = (p_j2k->m_specific_param.m_decoder.m_state == J2K_STATE_TPH) in opj_j2k_read_coc()
2923 p_j2k->m_specific_param.m_decoder.m_default_tcp; in opj_j2k_read_coc()
2978 if (l_qcd_size > p_j2k->m_specific_param.m_encoder.m_header_tile_data_size) { in opj_j2k_write_qcd()
2980 … p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_qcd_size); in opj_j2k_write_qcd()
2982 opj_free(p_j2k->m_specific_param.m_encoder.m_header_tile_data); in opj_j2k_write_qcd()
2983 p_j2k->m_specific_param.m_encoder.m_header_tile_data = NULL; in opj_j2k_write_qcd()
2984 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = 0; in opj_j2k_write_qcd()
2988 p_j2k->m_specific_param.m_encoder.m_header_tile_data = new_header_tile_data; in opj_j2k_write_qcd()
2989 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = l_qcd_size; in opj_j2k_write_qcd()
2992 l_current_data = p_j2k->m_specific_param.m_encoder.m_header_tile_data; in opj_j2k_write_qcd()
3014 p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_qcd_size, in opj_j2k_write_qcd()
3075 if (l_qcc_size > p_j2k->m_specific_param.m_encoder.m_header_tile_data_size) { in opj_j2k_write_qcc()
3077 … p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_qcc_size); in opj_j2k_write_qcc()
3079 opj_free(p_j2k->m_specific_param.m_encoder.m_header_tile_data); in opj_j2k_write_qcc()
3080 p_j2k->m_specific_param.m_encoder.m_header_tile_data = NULL; in opj_j2k_write_qcc()
3081 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = 0; in opj_j2k_write_qcc()
3085 p_j2k->m_specific_param.m_encoder.m_header_tile_data = new_header_tile_data; in opj_j2k_write_qcc()
3086 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = l_qcc_size; in opj_j2k_write_qcc()
3090 … p_j2k->m_specific_param.m_encoder.m_header_tile_data, &l_remaining_size, in opj_j2k_write_qcc()
3094 p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_qcc_size, in opj_j2k_write_qcc()
3279 if (l_poc_size > p_j2k->m_specific_param.m_encoder.m_header_tile_data_size) { in opj_j2k_write_poc()
3281 … p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_poc_size); in opj_j2k_write_poc()
3283 opj_free(p_j2k->m_specific_param.m_encoder.m_header_tile_data); in opj_j2k_write_poc()
3284 p_j2k->m_specific_param.m_encoder.m_header_tile_data = NULL; in opj_j2k_write_poc()
3285 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = 0; in opj_j2k_write_poc()
3289 p_j2k->m_specific_param.m_encoder.m_header_tile_data = new_header_tile_data; in opj_j2k_write_poc()
3290 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = l_poc_size; in opj_j2k_write_poc()
3294 … p_j2k->m_specific_param.m_encoder.m_header_tile_data, &l_written_size, in opj_j2k_write_poc()
3298 p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_poc_size, in opj_j2k_write_poc()
3501 l_tcp = (p_j2k->m_specific_param.m_decoder.m_state == J2K_STATE_TPH) ? in opj_j2k_read_poc()
3503 p_j2k->m_specific_param.m_decoder.m_default_tcp; in opj_j2k_read_poc()
4154 l_tlm_size = 6 + (5 * p_j2k->m_specific_param.m_encoder.m_total_tile_parts); in opj_j2k_write_tlm()
4156 if (l_tlm_size > p_j2k->m_specific_param.m_encoder.m_header_tile_data_size) { in opj_j2k_write_tlm()
4158 … p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_tlm_size); in opj_j2k_write_tlm()
4160 opj_free(p_j2k->m_specific_param.m_encoder.m_header_tile_data); in opj_j2k_write_tlm()
4161 p_j2k->m_specific_param.m_encoder.m_header_tile_data = NULL; in opj_j2k_write_tlm()
4162 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = 0; in opj_j2k_write_tlm()
4166 p_j2k->m_specific_param.m_encoder.m_header_tile_data = new_header_tile_data; in opj_j2k_write_tlm()
4167 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = l_tlm_size; in opj_j2k_write_tlm()
4170 l_current_data = p_j2k->m_specific_param.m_encoder.m_header_tile_data; in opj_j2k_write_tlm()
4174 p_j2k->m_specific_param.m_encoder.m_tlm_start = opj_stream_tell(p_stream); in opj_j2k_write_tlm()
4194 p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_tlm_size, in opj_j2k_write_tlm()
4239 p_j2k->m_specific_param.m_encoder.m_current_tile_part_number, in opj_j2k_write_sot()
4331 if (p_j2k->m_specific_param.m_decoder.m_tile_ind_to_dec < 0 || in opj_j2k_read_sot()
4333 p_j2k->m_specific_param.m_decoder.m_tile_ind_to_dec) { in opj_j2k_read_sot()
4429 p_j2k->m_specific_param.m_decoder.m_last_tile_part = 1; in opj_j2k_read_sot()
4438 p_j2k->m_specific_param.m_decoder.m_last_tile_part = 1; in opj_j2k_read_sot()
4444 l_num_parts += p_j2k->m_specific_param.m_decoder.m_nb_tile_parts_correction; in opj_j2k_read_sot()
4453 p_j2k->m_specific_param.m_decoder.m_last_tile_part = 1; in opj_j2k_read_sot()
4462 p_j2k->m_specific_param.m_decoder.m_last_tile_part = 1; in opj_j2k_read_sot()
4471 p_j2k->m_specific_param.m_decoder.m_can_decode = in opj_j2k_read_sot()
4476 if (!p_j2k->m_specific_param.m_decoder.m_last_tile_part) { in opj_j2k_read_sot()
4478 p_j2k->m_specific_param.m_decoder.m_sot_length = l_tot_len - in opj_j2k_read_sot()
4482 p_j2k->m_specific_param.m_decoder.m_sot_length = 0; in opj_j2k_read_sot()
4485 p_j2k->m_specific_param.m_decoder.m_state = J2K_STATE_TPH; in opj_j2k_read_sot()
4488 if (p_j2k->m_specific_param.m_decoder.m_tile_ind_to_dec == -1) { in opj_j2k_read_sot()
4489 p_j2k->m_specific_param.m_decoder.m_skip_data = in opj_j2k_read_sot()
4490 (l_tile_x < p_j2k->m_specific_param.m_decoder.m_start_tile_x) in opj_j2k_read_sot()
4491 || (l_tile_x >= p_j2k->m_specific_param.m_decoder.m_end_tile_x) in opj_j2k_read_sot()
4492 || (l_tile_y < p_j2k->m_specific_param.m_decoder.m_start_tile_y) in opj_j2k_read_sot()
4493 || (l_tile_y >= p_j2k->m_specific_param.m_decoder.m_end_tile_y); in opj_j2k_read_sot()
4495 assert(p_j2k->m_specific_param.m_decoder.m_tile_ind_to_dec >= 0); in opj_j2k_read_sot()
4496 p_j2k->m_specific_param.m_decoder.m_skip_data = in opj_j2k_read_sot()
4498 p_j2k->m_specific_param.m_decoder.m_tile_ind_to_dec); in opj_j2k_read_sot()
4644 p_j2k->m_specific_param.m_encoder.m_current_poc_tile_part_number ; in opj_j2k_write_sod()
4646 p_j2k->m_specific_param.m_encoder.m_current_tile_part_number; in opj_j2k_write_sod()
4676 if (p_j2k->m_specific_param.m_encoder.m_current_tile_part_number == 0) { in opj_j2k_write_sod()
4718 if (p_j2k->m_specific_param.m_decoder.m_last_tile_part) { in opj_j2k_read_sod()
4723 p_j2k->m_specific_param.m_decoder.m_sot_length = (OPJ_UINT32)( in opj_j2k_read_sod()
4727 if (p_j2k->m_specific_param.m_decoder.m_sot_length >= 2) { in opj_j2k_read_sod()
4728 p_j2k->m_specific_param.m_decoder.m_sot_length -= 2; in opj_j2k_read_sod()
4738 if (p_j2k->m_specific_param.m_decoder.m_sot_length) { in opj_j2k_read_sod()
4741 if ((OPJ_OFF_T)p_j2k->m_specific_param.m_decoder.m_sot_length > in opj_j2k_read_sod()
4747 if (p_j2k->m_specific_param.m_decoder.m_sot_length > in opj_j2k_read_sod()
4762 … p_j2k->m_specific_param.m_decoder.m_sot_length + OPJ_COMMON_CBLK_DATA_EXTRA); in opj_j2k_read_sod()
4766 p_j2k->m_specific_param.m_decoder.m_sot_length) { in opj_j2k_read_sod()
4774 *l_tile_len + p_j2k->m_specific_param.m_decoder.m_sot_length + in opj_j2k_read_sod()
4806 l_current_pos + p_j2k->m_specific_param.m_decoder.m_sot_length + 2; in opj_j2k_read_sod()
4812 p_j2k->m_specific_param.m_decoder.m_sot_length + 2)) { in opj_j2k_read_sod()
4825 p_j2k->m_specific_param.m_decoder.m_sot_length, in opj_j2k_read_sod()
4831 if (l_current_read_size != p_j2k->m_specific_param.m_decoder.m_sot_length) { in opj_j2k_read_sod()
4832 p_j2k->m_specific_param.m_decoder.m_state = J2K_STATE_NEOC; in opj_j2k_read_sod()
4834 p_j2k->m_specific_param.m_decoder.m_state = J2K_STATE_TPHSOT; in opj_j2k_read_sod()
4874 l_current_data = p_j2k->m_specific_param.m_encoder.m_header_tile_data; in opj_j2k_write_rgn()
4897 p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_rgn_size, in opj_j2k_write_rgn()
4915 opj_write_bytes(p_j2k->m_specific_param.m_encoder.m_header_tile_data, in opj_j2k_write_eoc()
4927 … p_j2k->m_specific_param.m_encoder.m_header_tile_data, 2, p_manager) != 2) { in opj_j2k_write_eoc()
4979 l_tcp = (p_j2k->m_specific_param.m_decoder.m_state == J2K_STATE_TPH) ? in opj_j2k_read_rgn()
4981 p_j2k->m_specific_param.m_decoder.m_default_tcp; in opj_j2k_read_rgn()
5065 if (l_cp->m_specific_param.m_enc.m_tp_on) { in opj_j2k_update_rates()
5191 p_j2k->m_specific_param.m_encoder.m_encoded_tile_size = l_tile_size; in opj_j2k_update_rates()
5192 p_j2k->m_specific_param.m_encoder.m_encoded_tile_data = in opj_j2k_update_rates()
5193 (OPJ_BYTE *) opj_malloc(p_j2k->m_specific_param.m_encoder.m_encoded_tile_size); in opj_j2k_update_rates()
5194 if (p_j2k->m_specific_param.m_encoder.m_encoded_tile_data == 00) { in opj_j2k_update_rates()
5199 p_j2k->m_specific_param.m_encoder.m_tlm_sot_offsets_buffer = in opj_j2k_update_rates()
5201 p_j2k->m_specific_param.m_encoder.m_total_tile_parts); in opj_j2k_update_rates()
5202 if (! p_j2k->m_specific_param.m_encoder.m_tlm_sot_offsets_buffer) { in opj_j2k_update_rates()
5206 p_j2k->m_specific_param.m_encoder.m_tlm_sot_offsets_current = in opj_j2k_update_rates()
5207 p_j2k->m_specific_param.m_encoder.m_tlm_sot_offsets_buffer; in opj_j2k_update_rates()
5251 p_j2k->m_specific_param.m_decoder.m_state |= J2K_STATE_ERR;
5465 … p_j2k->m_specific_param.m_decoder.m_header_data, 2, p_manager) != 2) { in opj_j2k_read_unk()
5471 opj_read_bytes(p_j2k->m_specific_param.m_decoder.m_header_data, in opj_j2k_read_unk()
5479 if (!(p_j2k->m_specific_param.m_decoder.m_state & l_marker_handler->states)) { in opj_j2k_read_unk()
5524 if (l_mct_size > p_j2k->m_specific_param.m_encoder.m_header_tile_data_size) { in opj_j2k_write_mct_record()
5526 … p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_mct_size); in opj_j2k_write_mct_record()
5528 opj_free(p_j2k->m_specific_param.m_encoder.m_header_tile_data); in opj_j2k_write_mct_record()
5529 p_j2k->m_specific_param.m_encoder.m_header_tile_data = NULL; in opj_j2k_write_mct_record()
5530 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = 0; in opj_j2k_write_mct_record()
5534 p_j2k->m_specific_param.m_encoder.m_header_tile_data = new_header_tile_data; in opj_j2k_write_mct_record()
5535 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = l_mct_size; in opj_j2k_write_mct_record()
5538 l_current_data = p_j2k->m_specific_param.m_encoder.m_header_tile_data; in opj_j2k_write_mct_record()
5566 p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_mct_size, in opj_j2k_write_mct_record()
5599 l_tcp = p_j2k->m_specific_param.m_decoder.m_state == J2K_STATE_TPH ? in opj_j2k_read_mct()
5601 p_j2k->m_specific_param.m_decoder.m_default_tcp; in opj_j2k_read_mct()
5745 if (l_mcc_size > p_j2k->m_specific_param.m_encoder.m_header_tile_data_size) { in opj_j2k_write_mcc_record()
5747 … p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_mcc_size); in opj_j2k_write_mcc_record()
5749 opj_free(p_j2k->m_specific_param.m_encoder.m_header_tile_data); in opj_j2k_write_mcc_record()
5750 p_j2k->m_specific_param.m_encoder.m_header_tile_data = NULL; in opj_j2k_write_mcc_record()
5751 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = 0; in opj_j2k_write_mcc_record()
5755 p_j2k->m_specific_param.m_encoder.m_header_tile_data = new_header_tile_data; in opj_j2k_write_mcc_record()
5756 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = l_mcc_size; in opj_j2k_write_mcc_record()
5759 l_current_data = p_j2k->m_specific_param.m_encoder.m_header_tile_data; in opj_j2k_write_mcc_record()
5826 p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_mcc_size, in opj_j2k_write_mcc_record()
5855 l_tcp = p_j2k->m_specific_param.m_decoder.m_state == J2K_STATE_TPH ? in opj_j2k_read_mcc()
5857 p_j2k->m_specific_param.m_decoder.m_default_tcp; in opj_j2k_read_mcc()
6086 if (l_mco_size > p_j2k->m_specific_param.m_encoder.m_header_tile_data_size) { in opj_j2k_write_mco()
6089 … p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_mco_size); in opj_j2k_write_mco()
6091 opj_free(p_j2k->m_specific_param.m_encoder.m_header_tile_data); in opj_j2k_write_mco()
6092 p_j2k->m_specific_param.m_encoder.m_header_tile_data = NULL; in opj_j2k_write_mco()
6093 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = 0; in opj_j2k_write_mco()
6097 p_j2k->m_specific_param.m_encoder.m_header_tile_data = new_header_tile_data; in opj_j2k_write_mco()
6098 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = l_mco_size; in opj_j2k_write_mco()
6100 l_current_data = p_j2k->m_specific_param.m_encoder.m_header_tile_data; in opj_j2k_write_mco()
6122 p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_mco_size, in opj_j2k_write_mco()
6156 l_tcp = p_j2k->m_specific_param.m_decoder.m_state == J2K_STATE_TPH ? in opj_j2k_read_mco()
6158 p_j2k->m_specific_param.m_decoder.m_default_tcp; in opj_j2k_read_mco()
6309 if (l_cbd_size > p_j2k->m_specific_param.m_encoder.m_header_tile_data_size) { in opj_j2k_write_cbd()
6311 … p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_cbd_size); in opj_j2k_write_cbd()
6313 opj_free(p_j2k->m_specific_param.m_encoder.m_header_tile_data); in opj_j2k_write_cbd()
6314 p_j2k->m_specific_param.m_encoder.m_header_tile_data = NULL; in opj_j2k_write_cbd()
6315 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = 0; in opj_j2k_write_cbd()
6319 p_j2k->m_specific_param.m_encoder.m_header_tile_data = new_header_tile_data; in opj_j2k_write_cbd()
6320 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = l_cbd_size; in opj_j2k_write_cbd()
6323 l_current_data = p_j2k->m_specific_param.m_encoder.m_header_tile_data; in opj_j2k_write_cbd()
6345 p_j2k->m_specific_param.m_encoder.m_header_tile_data, l_cbd_size, in opj_j2k_write_cbd()
6419 j2k->m_cp.m_specific_param.m_dec.m_layer = parameters->cp_layer; in opj_j2k_setup_decoder()
6420 j2k->m_cp.m_specific_param.m_dec.m_reduce = parameters->cp_reduce; in opj_j2k_setup_decoder()
6490 l_j2k->m_specific_param.m_encoder.m_header_tile_data = (OPJ_BYTE *) opj_malloc( in opj_j2k_create_compress()
6492 if (! l_j2k->m_specific_param.m_encoder.m_header_tile_data) { in opj_j2k_create_compress()
6497 l_j2k->m_specific_param.m_encoder.m_header_tile_data_size = in opj_j2k_create_compress()
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()
7023 cp->m_specific_param.m_enc.m_matrice = (OPJ_INT32 *) opj_malloc(array_size); in opj_j2k_setup_encoder()
7024 if (!cp->m_specific_param.m_enc.m_matrice) { in opj_j2k_setup_encoder()
7029 memcpy(cp->m_specific_param.m_enc.m_matrice, parameters->cp_matrice, in opj_j2k_setup_encoder()
7090 cp->m_specific_param.m_enc.m_tp_flag = (OPJ_BYTE)parameters->tp_flag; in opj_j2k_setup_encoder()
7091 cp->m_specific_param.m_enc.m_tp_on = 1; in opj_j2k_setup_encoder()
7172 if (cp->m_specific_param.m_enc.m_fixed_quality) { in opj_j2k_setup_encoder()
7177 if (cp->m_specific_param.m_enc.m_fixed_quality) { /* add fixed_quality */ in opj_j2k_setup_encoder()
7183 if (!cp->m_specific_param.m_enc.m_fixed_quality && in opj_j2k_setup_encoder()
7828 l_is_valid &= (p_j2k->m_specific_param.m_decoder.m_state == J2K_STATE_NONE); in opj_j2k_encoding_validation()
7882 l_is_valid &= (p_j2k->m_specific_param.m_decoder.m_state == J2K_DEC_STATE_NONE); in opj_j2k_decoding_validation()
7884 l_is_valid &= (p_j2k->m_specific_param.m_decoder.m_state == 0x0000); in opj_j2k_decoding_validation()
7914 p_j2k->m_specific_param.m_decoder.m_state = J2K_STATE_MHSOC; in opj_j2k_read_header_procedure()
7924 p_j2k->m_specific_param.m_decoder.m_header_data, 2, p_manager) != 2) { in opj_j2k_read_header_procedure()
7930 opj_read_bytes(p_j2k->m_specific_param.m_decoder.m_header_data, in opj_j2k_read_header_procedure()
7975 if (!(p_j2k->m_specific_param.m_decoder.m_state & l_marker_handler->states)) { in opj_j2k_read_header_procedure()
7983 … p_j2k->m_specific_param.m_decoder.m_header_data, 2, p_manager) != 2) { in opj_j2k_read_header_procedure()
7989 opj_read_bytes(p_j2k->m_specific_param.m_decoder.m_header_data, &l_marker_size, in opj_j2k_read_header_procedure()
7998 if (l_marker_size > p_j2k->m_specific_param.m_decoder.m_header_data_size) { in opj_j2k_read_header_procedure()
8000 … p_j2k->m_specific_param.m_decoder.m_header_data, l_marker_size); in opj_j2k_read_header_procedure()
8002 opj_free(p_j2k->m_specific_param.m_decoder.m_header_data); in opj_j2k_read_header_procedure()
8003 p_j2k->m_specific_param.m_decoder.m_header_data = NULL; in opj_j2k_read_header_procedure()
8004 p_j2k->m_specific_param.m_decoder.m_header_data_size = 0; in opj_j2k_read_header_procedure()
8008 p_j2k->m_specific_param.m_decoder.m_header_data = new_header_data; in opj_j2k_read_header_procedure()
8009 p_j2k->m_specific_param.m_decoder.m_header_data_size = l_marker_size; in opj_j2k_read_header_procedure()
8014 p_j2k->m_specific_param.m_decoder.m_header_data, l_marker_size, in opj_j2k_read_header_procedure()
8022 … p_j2k->m_specific_param.m_decoder.m_header_data, l_marker_size, p_manager)) { in opj_j2k_read_header_procedure()
8040 … p_j2k->m_specific_param.m_decoder.m_header_data, 2, p_manager) != 2) { in opj_j2k_read_header_procedure()
8046 opj_read_bytes(p_j2k->m_specific_param.m_decoder.m_header_data, in opj_j2k_read_header_procedure()
8077 p_j2k->m_specific_param.m_decoder.m_state = J2K_STATE_TPHSOT; in opj_j2k_read_header_procedure()
8142 l_default_tcp = p_j2k->m_specific_param.m_decoder.m_default_tcp; in opj_j2k_copy_default_tcp_and_create_tcd()
8283 if (p_j2k->m_specific_param.m_decoder.m_default_tcp != 00) { in opj_j2k_destroy()
8284 opj_j2k_tcp_destroy(p_j2k->m_specific_param.m_decoder.m_default_tcp); in opj_j2k_destroy()
8285 opj_free(p_j2k->m_specific_param.m_decoder.m_default_tcp); in opj_j2k_destroy()
8286 p_j2k->m_specific_param.m_decoder.m_default_tcp = 00; in opj_j2k_destroy()
8289 if (p_j2k->m_specific_param.m_decoder.m_header_data != 00) { in opj_j2k_destroy()
8290 opj_free(p_j2k->m_specific_param.m_decoder.m_header_data); in opj_j2k_destroy()
8291 p_j2k->m_specific_param.m_decoder.m_header_data = 00; in opj_j2k_destroy()
8292 p_j2k->m_specific_param.m_decoder.m_header_data_size = 0; in opj_j2k_destroy()
8295 opj_free(p_j2k->m_specific_param.m_decoder.m_comps_indices_to_decode); in opj_j2k_destroy()
8296 p_j2k->m_specific_param.m_decoder.m_comps_indices_to_decode = 00; in opj_j2k_destroy()
8297 p_j2k->m_specific_param.m_decoder.m_numcomps_to_decode = 0; in opj_j2k_destroy()
8301 if (p_j2k->m_specific_param.m_encoder.m_encoded_tile_data) { in opj_j2k_destroy()
8302 opj_free(p_j2k->m_specific_param.m_encoder.m_encoded_tile_data); in opj_j2k_destroy()
8303 p_j2k->m_specific_param.m_encoder.m_encoded_tile_data = 00; in opj_j2k_destroy()
8306 if (p_j2k->m_specific_param.m_encoder.m_tlm_sot_offsets_buffer) { in opj_j2k_destroy()
8307 opj_free(p_j2k->m_specific_param.m_encoder.m_tlm_sot_offsets_buffer); in opj_j2k_destroy()
8308 p_j2k->m_specific_param.m_encoder.m_tlm_sot_offsets_buffer = 00; in opj_j2k_destroy()
8309 p_j2k->m_specific_param.m_encoder.m_tlm_sot_offsets_current = 00; in opj_j2k_destroy()
8312 if (p_j2k->m_specific_param.m_encoder.m_header_tile_data) { in opj_j2k_destroy()
8313 opj_free(p_j2k->m_specific_param.m_encoder.m_header_tile_data); in opj_j2k_destroy()
8314 p_j2k->m_specific_param.m_encoder.m_header_tile_data = 00; in opj_j2k_destroy()
8315 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = 0; in opj_j2k_destroy()
8502 opj_free(p_cp->m_specific_param.m_enc.m_matrice); in opj_j2k_cp_destroy()
8503 p_cp->m_specific_param.m_enc.m_matrice = 00; in opj_j2k_cp_destroy()
8636 if (p_j2k->m_specific_param.m_decoder.m_state == J2K_STATE_EOC) { in opj_j2k_read_tile_header()
8640 else if (p_j2k->m_specific_param.m_decoder.m_state != J2K_STATE_TPHSOT) { in opj_j2k_read_tile_header()
8645 while ((!p_j2k->m_specific_param.m_decoder.m_can_decode) && in opj_j2k_read_tile_header()
8652 p_j2k->m_specific_param.m_decoder.m_state = J2K_STATE_NEOC; in opj_j2k_read_tile_header()
8658 … p_j2k->m_specific_param.m_decoder.m_header_data, 2, p_manager) != 2) { in opj_j2k_read_tile_header()
8664 opj_read_bytes(p_j2k->m_specific_param.m_decoder.m_header_data, &l_marker_size, in opj_j2k_read_tile_header()
8676 p_j2k->m_specific_param.m_decoder.m_state = J2K_STATE_NEOC; in opj_j2k_read_tile_header()
8681 if (p_j2k->m_specific_param.m_decoder.m_state & J2K_STATE_TPH) { in opj_j2k_read_tile_header()
8682 p_j2k->m_specific_param.m_decoder.m_sot_length -= (l_marker_size + 2); in opj_j2k_read_tile_header()
8690 if (!(p_j2k->m_specific_param.m_decoder.m_state & l_marker_handler->states)) { in opj_j2k_read_tile_header()
8698 if (l_marker_size > p_j2k->m_specific_param.m_decoder.m_header_data_size) { in opj_j2k_read_tile_header()
8708 … p_j2k->m_specific_param.m_decoder.m_header_data, l_marker_size); in opj_j2k_read_tile_header()
8710 opj_free(p_j2k->m_specific_param.m_decoder.m_header_data); in opj_j2k_read_tile_header()
8711 p_j2k->m_specific_param.m_decoder.m_header_data = NULL; in opj_j2k_read_tile_header()
8712 p_j2k->m_specific_param.m_decoder.m_header_data_size = 0; in opj_j2k_read_tile_header()
8716 p_j2k->m_specific_param.m_decoder.m_header_data = new_header_data; in opj_j2k_read_tile_header()
8717 p_j2k->m_specific_param.m_decoder.m_header_data_size = l_marker_size; in opj_j2k_read_tile_header()
8722 p_j2k->m_specific_param.m_decoder.m_header_data, l_marker_size, in opj_j2k_read_tile_header()
8735 … p_j2k->m_specific_param.m_decoder.m_header_data, l_marker_size, p_manager)) { in opj_j2k_read_tile_header()
8755 if (sot_pos > p_j2k->m_specific_param.m_decoder.m_last_sot_read_pos) { in opj_j2k_read_tile_header()
8756 p_j2k->m_specific_param.m_decoder.m_last_sot_read_pos = sot_pos; in opj_j2k_read_tile_header()
8760 if (p_j2k->m_specific_param.m_decoder.m_skip_data) { in opj_j2k_read_tile_header()
8762 if (opj_stream_skip(p_stream, p_j2k->m_specific_param.m_decoder.m_sot_length, in opj_j2k_read_tile_header()
8763 p_manager) != p_j2k->m_specific_param.m_decoder.m_sot_length) { in opj_j2k_read_tile_header()
8771 … p_j2k->m_specific_param.m_decoder.m_header_data, 2, p_manager) != 2) { in opj_j2k_read_tile_header()
8776 opj_read_bytes(p_j2k->m_specific_param.m_decoder.m_header_data, in opj_j2k_read_tile_header()
8781 && p_j2k->m_specific_param.m_decoder.m_state == J2K_STATE_NEOC) { in opj_j2k_read_tile_header()
8786 if (! p_j2k->m_specific_param.m_decoder.m_skip_data) { in opj_j2k_read_tile_header()
8791 if (p_j2k->m_specific_param.m_decoder.m_can_decode && in opj_j2k_read_tile_header()
8792 !p_j2k->m_specific_param.m_decoder.m_nb_tile_parts_correction_checked) { in opj_j2k_read_tile_header()
8796 p_j2k->m_specific_param.m_decoder.m_nb_tile_parts_correction_checked = 1; in opj_j2k_read_tile_header()
8807 p_j2k->m_specific_param.m_decoder.m_can_decode = 0; in opj_j2k_read_tile_header()
8808 p_j2k->m_specific_param.m_decoder.m_nb_tile_parts_correction = 1; in opj_j2k_read_tile_header()
8819 if (! p_j2k->m_specific_param.m_decoder.m_can_decode) { in opj_j2k_read_tile_header()
8822 … p_j2k->m_specific_param.m_decoder.m_header_data, 2, p_manager) != 2) { in opj_j2k_read_tile_header()
8828 opj_read_bytes(p_j2k->m_specific_param.m_decoder.m_header_data, in opj_j2k_read_tile_header()
8833 p_j2k->m_specific_param.m_decoder.m_skip_data = 0; in opj_j2k_read_tile_header()
8834 p_j2k->m_specific_param.m_decoder.m_can_decode = 0; in opj_j2k_read_tile_header()
8835 p_j2k->m_specific_param.m_decoder.m_state = J2K_STATE_TPHSOT; in opj_j2k_read_tile_header()
8839 … p_j2k->m_specific_param.m_decoder.m_header_data, 2, p_manager) != 2) { in opj_j2k_read_tile_header()
8845 opj_read_bytes(p_j2k->m_specific_param.m_decoder.m_header_data, in opj_j2k_read_tile_header()
8852 if (p_j2k->m_specific_param.m_decoder.m_state != J2K_STATE_EOC) { in opj_j2k_read_tile_header()
8854 p_j2k->m_specific_param.m_decoder.m_state = J2K_STATE_EOC; in opj_j2k_read_tile_header()
8859 if (! p_j2k->m_specific_param.m_decoder.m_can_decode) { in opj_j2k_read_tile_header()
8905 p_j2k->m_specific_param.m_decoder.m_state |= J2K_STATE_DATA; in opj_j2k_read_tile_header()
8927 if (!(p_j2k->m_specific_param.m_decoder.m_state & J2K_STATE_DATA) in opj_j2k_decode_tile()
8950 p_j2k->m_specific_param.m_decoder.m_numcomps_to_decode, in opj_j2k_decode_tile()
8951 p_j2k->m_specific_param.m_decoder.m_comps_indices_to_decode, in opj_j2k_decode_tile()
8957 p_j2k->m_specific_param.m_decoder.m_state |= J2K_STATE_ERR; in opj_j2k_decode_tile()
8977 p_j2k->m_specific_param.m_decoder.m_can_decode = 0; 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()
8981 && p_j2k->m_specific_param.m_decoder.m_state == J2K_STATE_NEOC) { in opj_j2k_decode_tile()
8985 if (p_j2k->m_specific_param.m_decoder.m_state != J2K_STATE_EOC) { in opj_j2k_decode_tile()
8995 p_j2k->m_specific_param.m_decoder.m_state = J2K_STATE_EOC; in opj_j2k_decode_tile()
8998 p_j2k->m_specific_param.m_decoder.m_state = J2K_STATE_NEOC; in opj_j2k_decode_tile()
9313 opj_free(p_j2k->m_specific_param.m_decoder.m_comps_indices_to_decode); in opj_j2k_set_decoded_components()
9315 p_j2k->m_specific_param.m_decoder.m_comps_indices_to_decode = in opj_j2k_set_decoded_components()
9317 if (p_j2k->m_specific_param.m_decoder.m_comps_indices_to_decode == NULL) { in opj_j2k_set_decoded_components()
9318 p_j2k->m_specific_param.m_decoder.m_numcomps_to_decode = 0; in opj_j2k_set_decoded_components()
9321 memcpy(p_j2k->m_specific_param.m_decoder.m_comps_indices_to_decode, in opj_j2k_set_decoded_components()
9325 p_j2k->m_specific_param.m_decoder.m_comps_indices_to_decode = NULL; in opj_j2k_set_decoded_components()
9327 p_j2k->m_specific_param.m_decoder.m_numcomps_to_decode = numcomps; in opj_j2k_set_decoded_components()
9350 else if (p_j2k->m_specific_param.m_decoder.m_state != J2K_STATE_TPHSOT) { in opj_j2k_set_decode_area()
9359 p_image->comps[it_comp].factor = p_j2k->m_cp.m_specific_param.m_dec.m_reduce; in opj_j2k_set_decode_area()
9366 p_j2k->m_specific_param.m_decoder.m_start_tile_x = 0; in opj_j2k_set_decode_area()
9367 p_j2k->m_specific_param.m_decoder.m_start_tile_y = 0; in opj_j2k_set_decode_area()
9368 p_j2k->m_specific_param.m_decoder.m_end_tile_x = l_cp->tw; in opj_j2k_set_decode_area()
9369 p_j2k->m_specific_param.m_decoder.m_end_tile_y = l_cp->th; in opj_j2k_set_decode_area()
9397 p_j2k->m_specific_param.m_decoder.m_start_tile_x = 0; 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()
9420 p_j2k->m_specific_param.m_decoder.m_start_tile_y = 0; 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()
9443 p_j2k->m_specific_param.m_decoder.m_end_tile_x = l_cp->tw; 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()
9467 p_j2k->m_specific_param.m_decoder.m_end_tile_y = l_cp->th; 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()
9476 p_j2k->m_specific_param.m_decoder.m_discard_tiles = 1; in opj_j2k_set_decode_area()
9502 l_j2k->m_specific_param.m_decoder.m_nb_tile_parts_correction_checked = 1; in opj_j2k_create_decompress()
9505 l_j2k->m_specific_param.m_decoder.m_default_tcp = (opj_tcp_t*) opj_calloc(1, in opj_j2k_create_decompress()
9507 if (!l_j2k->m_specific_param.m_decoder.m_default_tcp) { in opj_j2k_create_decompress()
9512 l_j2k->m_specific_param.m_decoder.m_header_data = (OPJ_BYTE *) opj_calloc(1, in opj_j2k_create_decompress()
9514 if (! l_j2k->m_specific_param.m_decoder.m_header_data) { in opj_j2k_create_decompress()
9519 l_j2k->m_specific_param.m_decoder.m_header_data_size = in opj_j2k_create_decompress()
9522 l_j2k->m_specific_param.m_decoder.m_tile_ind_to_dec = -1 ; in opj_j2k_create_decompress()
9524 l_j2k->m_specific_param.m_decoder.m_last_sot_read_pos = 0 ; in opj_j2k_create_decompress()
9741 l_tcp = (p_j2k->m_specific_param.m_decoder.m_state == J2K_STATE_TPH) ? in opj_j2k_read_SPCod_SPCoc()
9743 p_j2k->m_specific_param.m_decoder.m_default_tcp; in opj_j2k_read_SPCod_SPCoc()
9773 if (l_cp->m_specific_param.m_dec.m_reduce >= l_tccp->numresolutions) { in opj_j2k_read_SPCod_SPCoc()
9778 compno, l_cp->m_specific_param.m_dec.m_reduce, l_tccp->numresolutions); in opj_j2k_read_SPCod_SPCoc()
9779 p_j2k->m_specific_param.m_decoder.m_state |= in opj_j2k_read_SPCod_SPCoc()
9881 l_tcp = (p_j2k->m_specific_param.m_decoder.m_state == J2K_STATE_TPH) in opj_j2k_copy_tile_component_parameters()
9884 p_j2k->m_specific_param.m_decoder.m_default_tcp; in opj_j2k_copy_tile_component_parameters()
10078 l_tcp = (p_j2k->m_specific_param.m_decoder.m_state == J2K_STATE_TPH) in opj_j2k_read_SQcd_SQcc()
10081 p_j2k->m_specific_param.m_decoder.m_default_tcp; in opj_j2k_read_SQcd_SQcc()
10190 l_tcp = p_j2k->m_specific_param.m_decoder.m_state == J2K_STATE_TPH ? in opj_j2k_copy_tile_quantization_parameters()
10192 p_j2k->m_specific_param.m_decoder.m_default_tcp; in opj_j2k_copy_tile_quantization_parameters()
10390 opj_j2k_dump_tile_info(p_j2k->m_specific_param.m_decoder.m_default_tcp, in opj_j2k_dump_MH_info()
10472 l_default_tile = p_j2k->m_specific_param.m_decoder.m_default_tcp; in j2k_get_cstr_info()
10721 p_j2k->m_specific_param.m_decoder.m_state |= J2K_STATE_DATA; in opj_j2k_decode_tiles()
10769 && p_j2k->m_specific_param.m_decoder.m_state == J2K_STATE_NEOC) { in opj_j2k_decode_tiles()
10822 p_j2k->m_specific_param.m_decoder.m_tile_ind_to_dec; in opj_j2k_decode_one_tile()
10829 … p_j2k->m_specific_param.m_decoder.m_last_sot_read_pos + 2, p_manager))) { in opj_j2k_decode_one_tile()
10842 if (p_j2k->m_specific_param.m_decoder.m_state == J2K_STATE_EOC) { in opj_j2k_decode_one_tile()
10843 p_j2k->m_specific_param.m_decoder.m_state = J2K_STATE_TPHSOT; in opj_j2k_decode_one_tile()
10933 if (p_j2k->m_specific_param.m_decoder.m_numcomps_to_decode > 0) { in opj_j2k_move_data_from_codec_to_output_image()
10936 p_j2k->m_specific_param.m_decoder.m_numcomps_to_decode * in opj_j2k_move_data_from_codec_to_output_image()
10948 compno < p_j2k->m_specific_param.m_decoder.m_numcomps_to_decode; compno++) { in opj_j2k_move_data_from_codec_to_output_image()
10950 p_j2k->m_specific_param.m_decoder.m_comps_indices_to_decode[compno]; in opj_j2k_move_data_from_codec_to_output_image()
10964 p_image->numcomps = p_j2k->m_specific_param.m_decoder.m_numcomps_to_decode; in opj_j2k_move_data_from_codec_to_output_image()
11000 if (p_j2k->m_cp.m_specific_param.m_dec.m_reduce > 0 && in opj_j2k_decode()
11004 p_j2k->m_cp.m_specific_param.m_dec.m_reduce && in opj_j2k_decode()
11014 p_image->comps[it_comp].factor = p_j2k->m_cp.m_specific_param.m_dec.m_reduce; in opj_j2k_decode()
11140 p_j2k->m_specific_param.m_decoder.m_tile_ind_to_dec = (OPJ_INT32)tile_index; in opj_j2k_get_tile()
11164 p_j2k->m_cp.m_specific_param.m_dec.m_reduce = res_factor; in opj_j2k_set_decoded_resolution_factor()
11168 if (p_j2k->m_specific_param.m_decoder.m_default_tcp) { in opj_j2k_set_decoded_resolution_factor()
11169 if (p_j2k->m_specific_param.m_decoder.m_default_tcp->tccps) { in opj_j2k_set_decoded_resolution_factor()
11172 … p_j2k->m_specific_param.m_decoder.m_default_tcp->tccps[it_comp].numresolutions; in opj_j2k_set_decoded_resolution_factor()
11379 p_j2k->m_specific_param.m_encoder.m_current_tile_part_number = 0; in opj_j2k_pre_write_tile()
11381 p_j2k->m_specific_param.m_encoder.m_current_poc_tile_part_number = 0; in opj_j2k_pre_write_tile()
11525 assert(p_j2k->m_specific_param.m_encoder.m_encoded_tile_data); in opj_j2k_post_write_tile()
11527 l_tile_size = p_j2k->m_specific_param.m_encoder.m_encoded_tile_size; in opj_j2k_post_write_tile()
11529 l_current_data = p_j2k->m_specific_param.m_encoder.m_encoded_tile_data; in opj_j2k_post_write_tile()
11549 p_j2k->m_specific_param.m_encoder.m_encoded_tile_data, in opj_j2k_post_write_tile()
11729 p_j2k->m_specific_param.m_encoder.m_current_poc_tile_part_number = 0; in opj_j2k_write_first_tile_part()
11822 ++p_j2k->m_specific_param.m_encoder.m_current_tile_part_number; in opj_j2k_write_all_tile_parts()
11824 p_j2k->m_specific_param.m_encoder.m_current_poc_tile_part_number = tilepartno; in opj_j2k_write_all_tile_parts()
11861 ++p_j2k->m_specific_param.m_encoder.m_current_tile_part_number; in opj_j2k_write_all_tile_parts()
11870 p_j2k->m_specific_param.m_encoder.m_current_poc_tile_part_number = tilepartno; in opj_j2k_write_all_tile_parts()
11907 ++p_j2k->m_specific_param.m_encoder.m_current_tile_part_number; in opj_j2k_write_all_tile_parts()
11928 l_tlm_size = 5 * p_j2k->m_specific_param.m_encoder.m_total_tile_parts; in opj_j2k_write_updated_tlm()
11929 l_tlm_position = 6 + p_j2k->m_specific_param.m_encoder.m_tlm_start; in opj_j2k_write_updated_tlm()
11937 … p_j2k->m_specific_param.m_encoder.m_tlm_sot_offsets_buffer, l_tlm_size, in opj_j2k_write_updated_tlm()
11964 if (p_j2k->m_specific_param.m_encoder.m_tlm_sot_offsets_buffer) { in opj_j2k_end_encoding()
11965 opj_free(p_j2k->m_specific_param.m_encoder.m_tlm_sot_offsets_buffer); in opj_j2k_end_encoding()
11966 p_j2k->m_specific_param.m_encoder.m_tlm_sot_offsets_buffer = 0; in opj_j2k_end_encoding()
11967 p_j2k->m_specific_param.m_encoder.m_tlm_sot_offsets_current = 0; in opj_j2k_end_encoding()
11970 if (p_j2k->m_specific_param.m_encoder.m_encoded_tile_data) { in opj_j2k_end_encoding()
11971 opj_free(p_j2k->m_specific_param.m_encoder.m_encoded_tile_data); in opj_j2k_end_encoding()
11972 p_j2k->m_specific_param.m_encoder.m_encoded_tile_data = 0; in opj_j2k_end_encoding()
11975 p_j2k->m_specific_param.m_encoder.m_encoded_tile_size = 0; in opj_j2k_end_encoding()
11996 if (p_j2k->m_specific_param.m_encoder.m_header_tile_data) { in opj_j2k_destroy_header_memory()
11997 opj_free(p_j2k->m_specific_param.m_encoder.m_header_tile_data); in opj_j2k_destroy_header_memory()
11998 p_j2k->m_specific_param.m_encoder.m_header_tile_data = 0; in opj_j2k_destroy_header_memory()
12001 p_j2k->m_specific_param.m_encoder.m_header_tile_data_size = 0; in opj_j2k_destroy_header_memory()
12060 … &p_j2k->m_specific_param.m_encoder.m_total_tile_parts, p_j2k->m_private_image, in opj_j2k_init_info()