Lines Matching refs:p_manager
56 opj_event_mgr_t * p_manager);
63 opj_event_mgr_t * p_manager);
76 opj_event_mgr_t * p_manager);
89 opj_event_mgr_t * p_manager);
96 opj_event_mgr_t * p_manager);
103 opj_event_mgr_t * p_manager);
110 opj_event_mgr_t * p_manager);
123 opj_event_mgr_t * p_manager);
130 opj_event_mgr_t * p_manager);
136 opj_event_mgr_t * p_manager);
147 opj_event_mgr_t * p_manager);
162 opj_event_mgr_t * p_manager);
173 opj_event_mgr_t * p_manager);
181 opj_event_mgr_t * p_manager);
188 opj_event_mgr_t * p_manager);
251 opj_event_mgr_t * p_manager);
278 opj_event_mgr_t * p_manager);
323 opj_event_mgr_t * p_manager);
344 opj_event_mgr_t * p_manager);
365 opj_event_mgr_t * p_manager);
370 opj_event_mgr_t * p_manager);
391 opj_event_mgr_t * p_manager);
398 opj_event_mgr_t * p_manager);
405 struct opj_event_mgr * p_manager);
412 struct opj_event_mgr * p_manager);
423 opj_event_mgr_t * p_manager);
442 opj_event_mgr_t * p_manager);
452 opj_event_mgr_t * p_manager);
463 opj_event_mgr_t * p_manager);
475 opj_event_mgr_t * p_manager);
486 opj_event_mgr_t * p_manager);
498 opj_event_mgr_t * p_manager);
508 opj_event_mgr_t * p_manager);
520 opj_event_mgr_t * p_manager);
545 opj_event_mgr_t * p_manager);
560 opj_event_mgr_t * p_manager);
579 opj_event_mgr_t * p_manager);
590 opj_event_mgr_t * p_manager);
602 opj_event_mgr_t * p_manager);
627 opj_event_mgr_t * p_manager);
642 opj_event_mgr_t * p_manager);
659 opj_event_mgr_t * p_manager);
669 opj_event_mgr_t * p_manager);
681 opj_event_mgr_t * p_manager);
698 opj_event_mgr_t * p_manager);
723 opj_event_mgr_t * p_manager);
735 opj_event_mgr_t * p_manager);
746 opj_event_mgr_t * p_manager);
759 opj_event_mgr_t * p_manager);
771 opj_event_mgr_t * p_manager);
786 opj_event_mgr_t * p_manager);
794 static OPJ_BOOL opj_j2k_merge_ppm(opj_cp_t *p_cp, opj_event_mgr_t * p_manager);
807 opj_event_mgr_t * p_manager);
816 opj_event_mgr_t * p_manager);
828 opj_event_mgr_t * p_manager);
845 opj_event_mgr_t * p_manager);
866 opj_event_mgr_t * p_manager);
878 opj_event_mgr_t * p_manager);
896 opj_event_mgr_t * p_manager);
907 opj_event_mgr_t * p_manager);
935 opj_event_mgr_t * p_manager);
948 opj_event_mgr_t * p_manager);
959 opj_event_mgr_t * p_manager);
971 opj_event_mgr_t * p_manager);
983 opj_event_mgr_t * p_manager);
994 opj_event_mgr_t * p_manager);
1030 opj_event_mgr_t * p_manager);
1043 opj_event_mgr_t * p_manager);
1056 opj_event_mgr_t * p_manager);
1069 opj_event_mgr_t * p_manager);
1082 opj_event_mgr_t * p_manager);
1093 opj_event_mgr_t * p_manager);
1106 opj_event_mgr_t * p_manager);
1147 opj_event_mgr_t * p_manager);
1158 opj_event_mgr_t * p_manager);
1170 opj_event_mgr_t * p_manager);
1182 opj_event_mgr_t * p_manager);
1193 opj_event_mgr_t * p_manager);
1204 opj_event_mgr_t * p_manager);
1215 opj_event_mgr_t * p_manager);
1235 opj_event_mgr_t * p_manager);
1265 opj_event_mgr_t * p_manager);
1280 opj_image_t *image, opj_event_mgr_t *p_manager);
1283 opj_event_mgr_t *p_manager);
1297 opj_event_mgr_t * p_manager);
1361 opj_event_mgr_t * p_manager);
1622 opj_event_mgr_t * p_manager) in opj_j2k_check_poc_val() argument
1636 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_check_poc_val()
1712 opj_event_msg(p_manager, EVT_ERROR, "Missing packets possible loss of data\n"); in opj_j2k_check_poc_val()
1783 opj_event_mgr_t * p_manager in opj_j2k_calculate_tp() argument
1795 assert(p_manager != 00); in opj_j2k_calculate_tp()
1798 OPJ_UNUSED(p_manager); in opj_j2k_calculate_tp()
1862 opj_event_mgr_t * p_manager) in opj_j2k_write_soc() argument
1870 assert(p_manager != 00); in opj_j2k_write_soc()
1877 if (opj_stream_write_data(p_stream, l_start_stream, 2, p_manager) != 2) { in opj_j2k_write_soc()
1902 opj_event_mgr_t * p_manager in opj_j2k_read_soc() argument
1910 assert(p_manager != 00); in opj_j2k_read_soc()
1913 if (opj_stream_read_data(p_stream, l_data, 2, p_manager) != 2) { in opj_j2k_read_soc()
1928 opj_event_msg(p_manager, EVT_INFO, in opj_j2k_read_soc()
1935 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to add mh marker\n"); in opj_j2k_read_soc()
1943 opj_event_mgr_t * p_manager) in opj_j2k_write_siz() argument
1955 assert(p_manager != 00); in opj_j2k_write_siz()
1970 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory for the SIZ marker\n"); in opj_j2k_write_siz()
2033 p_manager) != l_size_len) { in opj_j2k_write_siz()
2050 opj_event_mgr_t * p_manager in opj_j2k_read_siz() argument
2067 assert(p_manager != 00); in opj_j2k_read_siz()
2075 opj_event_msg(p_manager, EVT_ERROR, "Error with SIZ marker size\n"); in opj_j2k_read_siz()
2083 opj_event_msg(p_manager, EVT_ERROR, "Error with SIZ marker size\n"); in opj_j2k_read_siz()
2117 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_siz()
2123 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_siz()
2132 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_siz()
2140 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_siz()
2151 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_siz()
2163 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_siz()
2174 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_siz()
2178 opj_event_msg(p_manager, EVT_ERROR, "JPWL: giving up\n"); in opj_j2k_read_siz()
2216 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_siz()
2239 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_read_siz()
2254 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_siz()
2263 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_siz()
2273 opj_event_msg(p_manager, JPWL_ASSUME ? EVT_WARNING : EVT_ERROR, in opj_j2k_read_siz()
2277 opj_event_msg(p_manager, EVT_ERROR, "JPWL: giving up\n"); in opj_j2k_read_siz()
2281 opj_event_msg(p_manager, EVT_WARNING, "- trying to adjust them\n"); in opj_j2k_read_siz()
2284 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_read_siz()
2290 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_read_siz()
2314 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_siz()
2344 opj_event_msg(p_manager, JPWL_ASSUME ? EVT_WARNING : EVT_ERROR, in opj_j2k_read_siz()
2348 opj_event_msg(p_manager, EVT_ERROR, "JPWL: giving up\n"); in opj_j2k_read_siz()
2352 opj_event_msg(p_manager, EVT_WARNING, "- trying to adjust them\n"); in opj_j2k_read_siz()
2355 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_read_siz()
2361 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_read_siz()
2368 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_read_siz()
2374 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_read_siz()
2386 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_siz()
2394 opj_event_msg(p_manager, JPWL_ASSUME ? EVT_WARNING : EVT_ERROR, in opj_j2k_read_siz()
2397 opj_event_msg(p_manager, EVT_ERROR, "JPWL: giving up\n"); in opj_j2k_read_siz()
2407 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_siz()
2417 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_siz()
2430 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_siz()
2450 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_siz()
2466 opj_event_mgr_t * p_manager in opj_j2k_write_com() argument
2477 assert(p_manager != 00); in opj_j2k_write_com()
2491 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_write_com()
2515 p_manager) != l_total_com_size) { in opj_j2k_write_com()
2532 opj_event_mgr_t * p_manager in opj_j2k_read_com() argument
2537 assert(p_manager != 00); in opj_j2k_read_com()
2543 OPJ_UNUSED(p_manager); in opj_j2k_read_com()
2550 opj_event_mgr_t * p_manager) in opj_j2k_write_cod() argument
2559 assert(p_manager != 00); in opj_j2k_write_cod()
2575 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to write COD marker\n"); in opj_j2k_write_cod()
2605 l_current_data, &l_remaining_size, p_manager)) { in opj_j2k_write_cod()
2606 opj_event_msg(p_manager, EVT_ERROR, "Error writing COD marker\n"); in opj_j2k_write_cod()
2611 opj_event_msg(p_manager, EVT_ERROR, "Error writing COD marker\n"); in opj_j2k_write_cod()
2617 p_manager) != l_code_size) { in opj_j2k_write_cod()
2634 opj_event_mgr_t * p_manager in opj_j2k_read_cod() argument
2647 assert(p_manager != 00); in opj_j2k_read_cod()
2663 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_cod()
2672 opj_event_msg(p_manager, EVT_ERROR, "Error reading COD marker\n"); in opj_j2k_read_cod()
2681 opj_event_msg(p_manager, EVT_ERROR, "Unknown Scod value in COD marker\n"); in opj_j2k_read_cod()
2689 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_cod()
2697 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_cod()
2719 p_manager)) { in opj_j2k_read_cod()
2720 opj_event_msg(p_manager, EVT_ERROR, "Error reading COD marker\n"); in opj_j2k_read_cod()
2725 opj_event_msg(p_manager, EVT_ERROR, "Error reading COD marker\n"); in opj_j2k_read_cod()
2755 opj_event_mgr_t * p_manager) in opj_j2k_write_coc() argument
2762 assert(p_manager != 00); in opj_j2k_write_coc()
2783 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to write COC marker\n"); in opj_j2k_write_coc()
2792 p_manager); in opj_j2k_write_coc()
2796 p_manager) != l_coc_size) { in opj_j2k_write_coc()
2828 opj_event_mgr_t * p_manager in opj_j2k_write_coc_in_memory() argument
2840 assert(p_manager != 00); in opj_j2k_write_coc_in_memory()
2870 l_current_data, &l_remaining_size, p_manager); in opj_j2k_write_coc_in_memory()
2905 opj_event_mgr_t * p_manager in opj_j2k_read_coc() argument
2917 assert(p_manager != 00); in opj_j2k_read_coc()
2930 opj_event_msg(p_manager, EVT_ERROR, "Error reading COC marker\n"); in opj_j2k_read_coc()
2939 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_coc()
2949 p_manager)) { in opj_j2k_read_coc()
2950 opj_event_msg(p_manager, EVT_ERROR, "Error reading COC marker\n"); in opj_j2k_read_coc()
2955 opj_event_msg(p_manager, EVT_ERROR, "Error reading COC marker\n"); in opj_j2k_read_coc()
2963 opj_event_mgr_t * p_manager in opj_j2k_write_qcd() argument
2971 assert(p_manager != 00); in opj_j2k_write_qcd()
2985 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to write QCD marker\n"); in opj_j2k_write_qcd()
3003 l_current_data, &l_remaining_size, p_manager)) { in opj_j2k_write_qcd()
3004 opj_event_msg(p_manager, EVT_ERROR, "Error writing QCD marker\n"); in opj_j2k_write_qcd()
3009 opj_event_msg(p_manager, EVT_ERROR, "Error writing QCD marker\n"); in opj_j2k_write_qcd()
3015 p_manager) != l_qcd_size) { in opj_j2k_write_qcd()
3032 opj_event_mgr_t * p_manager in opj_j2k_read_qcd() argument
3038 assert(p_manager != 00); in opj_j2k_read_qcd()
3041 p_manager)) { in opj_j2k_read_qcd()
3042 opj_event_msg(p_manager, EVT_ERROR, "Error reading QCD marker\n"); in opj_j2k_read_qcd()
3047 opj_event_msg(p_manager, EVT_ERROR, "Error reading QCD marker\n"); in opj_j2k_read_qcd()
3060 opj_event_mgr_t * p_manager in opj_j2k_write_qcc() argument
3067 assert(p_manager != 00); in opj_j2k_write_qcc()
3082 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to write QCC marker\n"); in opj_j2k_write_qcc()
3091 p_manager); in opj_j2k_write_qcc()
3095 p_manager) != l_qcc_size) { in opj_j2k_write_qcc()
3113 opj_event_mgr_t * p_manager in opj_j2k_write_qcc_in_memory() argument
3121 assert(p_manager != 00); in opj_j2k_write_qcc_in_memory()
3154 l_current_data, &l_remaining_size, p_manager); in opj_j2k_write_qcc_in_memory()
3174 opj_event_mgr_t * p_manager in opj_j2k_read_qcc() argument
3182 assert(p_manager != 00); in opj_j2k_read_qcc()
3188 opj_event_msg(p_manager, EVT_ERROR, "Error reading QCC marker\n"); in opj_j2k_read_qcc()
3196 opj_event_msg(p_manager, EVT_ERROR, "Error reading QCC marker\n"); in opj_j2k_read_qcc()
3211 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_qcc()
3215 opj_event_msg(p_manager, EVT_ERROR, "JPWL: giving up\n"); in opj_j2k_read_qcc()
3220 opj_event_msg(p_manager, EVT_WARNING, "- trying to adjust this\n" in opj_j2k_read_qcc()
3231 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_qcc()
3238 p_manager)) { in opj_j2k_read_qcc()
3239 opj_event_msg(p_manager, EVT_ERROR, "Error reading QCC marker\n"); in opj_j2k_read_qcc()
3244 opj_event_msg(p_manager, EVT_ERROR, "Error reading QCC marker\n"); in opj_j2k_read_qcc()
3253 opj_event_mgr_t * p_manager in opj_j2k_write_poc() argument
3265 assert(p_manager != 00); in opj_j2k_write_poc()
3286 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to write POC marker\n"); in opj_j2k_write_poc()
3295 p_manager); in opj_j2k_write_poc()
3299 p_manager) != l_poc_size) { in opj_j2k_write_poc()
3309 opj_event_mgr_t * p_manager in opj_j2k_write_poc_in_memory() argument
3325 assert(p_manager != 00); in opj_j2k_write_poc_in_memory()
3327 OPJ_UNUSED(p_manager); in opj_j2k_write_poc_in_memory()
3467 opj_event_mgr_t * p_manager in opj_j2k_read_poc() argument
3482 assert(p_manager != 00); in opj_j2k_read_poc()
3496 opj_event_msg(p_manager, EVT_ERROR, "Error reading POC marker\n"); in opj_j2k_read_poc()
3508 opj_event_msg(p_manager, EVT_ERROR, "Too many POCs %d\n", l_current_poc_nb); in opj_j2k_read_poc()
3558 opj_event_mgr_t * p_manager in opj_j2k_read_crg() argument
3565 assert(p_manager != 00); in opj_j2k_read_crg()
3572 opj_event_msg(p_manager, EVT_ERROR, "Error reading CRG marker\n"); in opj_j2k_read_crg()
3600 opj_event_mgr_t * p_manager in opj_j2k_read_tlm() argument
3608 assert(p_manager != 00); in opj_j2k_read_tlm()
3613 opj_event_msg(p_manager, EVT_ERROR, "Error reading TLM marker\n"); in opj_j2k_read_tlm()
3634 opj_event_msg(p_manager, EVT_ERROR, "Error reading TLM marker\n"); in opj_j2k_read_tlm()
3661 opj_event_mgr_t * p_manager in opj_j2k_read_plm() argument
3667 assert(p_manager != 00); in opj_j2k_read_plm()
3673 opj_event_msg(p_manager, EVT_ERROR, "Error reading PLM marker\n"); in opj_j2k_read_plm()
3734 opj_event_mgr_t * p_manager in opj_j2k_read_plt() argument
3742 assert(p_manager != 00); in opj_j2k_read_plt()
3747 opj_event_msg(p_manager, EVT_ERROR, "Error reading PLT marker\n"); in opj_j2k_read_plt()
3769 opj_event_msg(p_manager, EVT_ERROR, "Error reading PLT marker\n"); in opj_j2k_read_plt()
3789 opj_event_mgr_t * p_manager) in opj_j2k_read_ppm() argument
3797 assert(p_manager != 00); in opj_j2k_read_ppm()
3801 opj_event_msg(p_manager, EVT_ERROR, "Error reading PPM marker\n"); in opj_j2k_read_ppm()
3819 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to read PPM marker\n"); in opj_j2k_read_ppm()
3830 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to read PPM marker\n"); in opj_j2k_read_ppm()
3841 opj_event_msg(p_manager, EVT_ERROR, "Zppm %u already read\n", l_Z_ppm); in opj_j2k_read_ppm()
3848 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to read PPM marker\n"); in opj_j2k_read_ppm()
3863 static OPJ_BOOL opj_j2k_merge_ppm(opj_cp_t *p_cp, opj_event_mgr_t * p_manager) in opj_j2k_merge_ppm() argument
3869 assert(p_manager != 00); in opj_j2k_merge_ppm()
3899 opj_event_msg(p_manager, EVT_ERROR, "Not enough bytes to read Nppm\n"); in opj_j2k_merge_ppm()
3922 opj_event_msg(p_manager, EVT_ERROR, "Corrupted PPM markers\n"); in opj_j2k_merge_ppm()
3928 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to read PPM marker\n"); in opj_j2k_merge_ppm()
3959 opj_event_msg(p_manager, EVT_ERROR, "Not enough bytes to read Nppm\n"); in opj_j2k_merge_ppm()
4006 opj_event_mgr_t * p_manager in opj_j2k_read_ppt() argument
4016 assert(p_manager != 00); in opj_j2k_read_ppt()
4020 opj_event_msg(p_manager, EVT_ERROR, "Error reading PPT marker\n"); in opj_j2k_read_ppt()
4026 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_ppt()
4045 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to read PPT marker\n"); in opj_j2k_read_ppt()
4056 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to read PPT marker\n"); in opj_j2k_read_ppt()
4067 opj_event_msg(p_manager, EVT_ERROR, "Zppt %u already read\n", l_Z_ppt); in opj_j2k_read_ppt()
4074 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to read PPT marker\n"); in opj_j2k_read_ppt()
4088 static OPJ_BOOL opj_j2k_merge_ppt(opj_tcp_t *p_tcp, opj_event_mgr_t * p_manager) in opj_j2k_merge_ppt() argument
4093 assert(p_manager != 00); in opj_j2k_merge_ppt()
4096 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_merge_ppt()
4113 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to read PPT marker\n"); in opj_j2k_merge_ppt()
4143 opj_event_mgr_t * p_manager in opj_j2k_write_tlm() argument
4151 assert(p_manager != 00); in opj_j2k_write_tlm()
4163 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to write TLM marker\n"); in opj_j2k_write_tlm()
4195 p_manager) != l_tlm_size) { in opj_j2k_write_tlm()
4207 opj_event_mgr_t * p_manager in opj_j2k_write_sot() argument
4212 assert(p_manager != 00); in opj_j2k_write_sot()
4218 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_write_sot()
4268 opj_event_mgr_t * p_manager) in opj_j2k_get_sot_values() argument
4272 assert(p_manager != 00); in opj_j2k_get_sot_values()
4276 opj_event_msg(p_manager, EVT_ERROR, "Error reading SOT marker\n"); in opj_j2k_get_sot_values()
4294 opj_event_mgr_t * p_manager) in opj_j2k_read_sot() argument
4305 assert(p_manager != 00); in opj_j2k_read_sot()
4309 p_manager)) { in opj_j2k_read_sot()
4310 opj_event_msg(p_manager, EVT_ERROR, "Error reading SOT marker\n"); in opj_j2k_read_sot()
4322 opj_event_msg(p_manager, EVT_ERROR, "Invalid tile number %d\n", in opj_j2k_read_sot()
4345 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_sot()
4365 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_sot()
4369 opj_event_msg(p_manager, EVT_ERROR, "JPWL: giving up\n"); in opj_j2k_read_sot()
4374 opj_event_msg(p_manager, EVT_WARNING, "- trying to adjust this\n" in opj_j2k_read_sot()
4392 opj_event_msg(p_manager, EVT_WARNING, "Empty SOT marker detected: Psot=%d.\n", in opj_j2k_read_sot()
4395 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_sot()
4407 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_sot()
4412 opj_event_msg(p_manager, EVT_ERROR, "JPWL: giving up\n"); in opj_j2k_read_sot()
4417 opj_event_msg(p_manager, EVT_WARNING, "- trying to adjust this\n" in opj_j2k_read_sot()
4426 opj_event_msg(p_manager, EVT_INFO, in opj_j2k_read_sot()
4434 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_sot()
4449 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_sot()
4459 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_sot()
4519 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_sot()
4530 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_sot()
4548 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_sot()
4567 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_sot()
4616 opj_event_mgr_t * p_manager in opj_j2k_write_sod() argument
4624 assert(p_manager != 00); in opj_j2k_write_sod()
4630 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_write_sod()
4689 p_manager)) { in opj_j2k_write_sod()
4690 opj_event_msg(p_manager, EVT_ERROR, "Cannot encode tile\n"); in opj_j2k_write_sod()
4701 opj_event_mgr_t * p_manager in opj_j2k_read_sod() argument
4713 assert(p_manager != 00); in opj_j2k_read_sod()
4743 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_sod()
4749 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_sod()
4767 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_sod()
4787 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to decode tile\n"); in opj_j2k_read_sod()
4813 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to add tl marker\n"); in opj_j2k_read_sod()
4826 p_manager); in opj_j2k_read_sod()
4847 opj_event_mgr_t * p_manager in opj_j2k_write_rgn() argument
4859 assert(p_manager != 00); in opj_j2k_write_rgn()
4898 p_manager) != l_rgn_size) { in opj_j2k_write_rgn()
4907 opj_event_mgr_t * p_manager in opj_j2k_write_eoc() argument
4912 assert(p_manager != 00); 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()
4931 if (! opj_stream_flush(p_stream, p_manager)) { in opj_j2k_write_eoc()
4949 opj_event_mgr_t * p_manager in opj_j2k_read_rgn() argument
4962 assert(p_manager != 00); in opj_j2k_read_rgn()
4974 opj_event_msg(p_manager, EVT_ERROR, "Error reading RGN marker\n"); in opj_j2k_read_rgn()
4993 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_rgn()
4997 opj_event_msg(p_manager, EVT_ERROR, "JPWL: giving up\n"); in opj_j2k_read_rgn()
5006 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_rgn()
5033 opj_event_mgr_t * p_manager) in opj_j2k_update_rates() argument
5051 assert(p_manager != 00); in opj_j2k_update_rates()
5054 OPJ_UNUSED(p_manager); in opj_j2k_update_rates()
5216 opj_event_mgr_t * p_manager)
5226 assert(p_manager != 00);
5234 opj_event_msg(p_manager, EVT_ERROR, "Cannot decode tile, memory error\n");
5242 opj_event_msg(p_manager, EVT_ERROR, "Cannot decode tile, memory error\n");
5267 struct opj_event_mgr * p_manager) in opj_j2k_get_end_header() argument
5271 assert(p_manager != 00); in opj_j2k_get_end_header()
5274 OPJ_UNUSED(p_manager); in opj_j2k_get_end_header()
5283 struct opj_event_mgr * p_manager) in opj_j2k_write_mct_data_group() argument
5293 assert(p_manager != 00); in opj_j2k_write_mct_data_group()
5295 if (! opj_j2k_write_cbd(p_j2k, p_stream, p_manager)) { in opj_j2k_write_mct_data_group()
5304 if (! opj_j2k_write_mct_record(p_j2k, l_mct_record, p_stream, p_manager)) { in opj_j2k_write_mct_data_group()
5315 if (! opj_j2k_write_mcc_record(p_j2k, l_mcc_record, p_stream, p_manager)) { in opj_j2k_write_mct_data_group()
5322 if (! opj_j2k_write_mco(p_j2k, p_stream, p_manager)) { in opj_j2k_write_mct_data_group()
5332 struct opj_event_mgr * p_manager) in opj_j2k_write_all_coc() argument
5338 assert(p_manager != 00); in opj_j2k_write_all_coc()
5344 if (! opj_j2k_write_coc(p_j2k, compno, p_stream, p_manager)) { in opj_j2k_write_all_coc()
5356 struct opj_event_mgr * p_manager) in opj_j2k_write_all_qcc() argument
5362 assert(p_manager != 00); in opj_j2k_write_all_qcc()
5368 if (! opj_j2k_write_qcc(p_j2k, compno, p_stream, p_manager)) { in opj_j2k_write_all_qcc()
5378 struct opj_event_mgr * p_manager) in opj_j2k_write_regions() argument
5385 assert(p_manager != 00); in opj_j2k_write_regions()
5394 p_stream, p_manager)) { in opj_j2k_write_regions()
5407 struct opj_event_mgr * p_manager) in opj_j2k_write_epc() argument
5413 assert(p_manager != 00); in opj_j2k_write_epc()
5416 OPJ_UNUSED(p_manager); in opj_j2k_write_epc()
5448 opj_event_mgr_t * p_manager in opj_j2k_read_unk() argument
5457 assert(p_manager != 00); in opj_j2k_read_unk()
5460 opj_event_msg(p_manager, EVT_WARNING, "Unknown marker\n"); in opj_j2k_read_unk()
5465 … p_j2k->m_specific_param.m_decoder.m_header_data, 2, p_manager) != 2) { in opj_j2k_read_unk()
5466 opj_event_msg(p_manager, EVT_ERROR, "Stream too short\n"); in opj_j2k_read_unk()
5480 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_unk()
5491 … opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to add mh marker\n"); in opj_j2k_read_unk()
5511 struct opj_event_mgr * p_manager) in opj_j2k_write_mct_record() argument
5519 assert(p_manager != 00); in opj_j2k_write_mct_record()
5531 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to write MCT marker\n"); in opj_j2k_write_mct_record()
5567 p_manager) != l_mct_size) { in opj_j2k_write_mct_record()
5585 opj_event_mgr_t * p_manager in opj_j2k_read_mct() argument
5604 opj_event_msg(p_manager, EVT_ERROR, "Error reading MCT marker\n"); in opj_j2k_read_mct()
5612 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_read_mct()
5618 opj_event_msg(p_manager, EVT_ERROR, "Error reading MCT marker\n"); in opj_j2k_read_mct()
5649 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to read MCT marker\n"); in opj_j2k_read_mct()
5697 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_read_mct()
5706 opj_event_msg(p_manager, EVT_ERROR, "Error reading MCT marker\n"); in opj_j2k_read_mct()
5722 struct opj_event_mgr * p_manager) in opj_j2k_write_mcc_record() argument
5733 assert(p_manager != 00); in opj_j2k_write_mcc_record()
5752 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to write MCC marker\n"); in opj_j2k_write_mcc_record()
5827 p_manager) != l_mcc_size) { in opj_j2k_write_mcc_record()
5837 opj_event_mgr_t * p_manager) in opj_j2k_read_mcc() argument
5853 assert(p_manager != 00); in opj_j2k_read_mcc()
5860 opj_event_msg(p_manager, EVT_ERROR, "Error reading MCC marker\n"); in opj_j2k_read_mcc()
5868 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_read_mcc()
5874 opj_event_msg(p_manager, EVT_ERROR, "Error reading MCC marker\n"); in opj_j2k_read_mcc()
5905 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to read MCC marker\n"); in opj_j2k_read_mcc()
5922 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_read_mcc()
5932 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_read_mcc()
5941 opj_event_msg(p_manager, EVT_ERROR, "Error reading MCC marker\n"); in opj_j2k_read_mcc()
5950 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_read_mcc()
5964 opj_event_msg(p_manager, EVT_ERROR, "Error reading MCC marker\n"); in opj_j2k_read_mcc()
5976 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_read_mcc()
5989 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_read_mcc()
5995 opj_event_msg(p_manager, EVT_ERROR, "Error reading MCC marker\n"); in opj_j2k_read_mcc()
6007 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_read_mcc()
6032 opj_event_msg(p_manager, EVT_ERROR, "Error reading MCC marker\n"); in opj_j2k_read_mcc()
6049 opj_event_msg(p_manager, EVT_ERROR, "Error reading MCC marker\n"); in opj_j2k_read_mcc()
6056 opj_event_msg(p_manager, EVT_ERROR, "Error reading MCC marker\n"); in opj_j2k_read_mcc()
6069 struct opj_event_mgr * p_manager in opj_j2k_write_mco() argument
6080 assert(p_manager != 00); in opj_j2k_write_mco()
6094 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to write MCO marker\n"); in opj_j2k_write_mco()
6123 p_manager) != l_mco_size) { in opj_j2k_write_mco()
6141 opj_event_mgr_t * p_manager in opj_j2k_read_mco() argument
6153 assert(p_manager != 00); in opj_j2k_read_mco()
6161 opj_event_msg(p_manager, EVT_ERROR, "Error reading MCO marker\n"); in opj_j2k_read_mco()
6170 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_read_mco()
6176 opj_event_msg(p_manager, EVT_WARNING, "Error reading MCO marker\n"); in opj_j2k_read_mco()
6293 struct opj_event_mgr * p_manager) in opj_j2k_write_cbd() argument
6303 assert(p_manager != 00); in opj_j2k_write_cbd()
6316 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to write CBD marker\n"); in opj_j2k_write_cbd()
6346 p_manager) != l_cbd_size) { in opj_j2k_write_cbd()
6363 opj_event_mgr_t * p_manager in opj_j2k_read_cbd() argument
6374 assert(p_manager != 00); in opj_j2k_read_cbd()
6379 opj_event_msg(p_manager, EVT_ERROR, "Crror reading CBD marker\n"); in opj_j2k_read_cbd()
6388 opj_event_msg(p_manager, EVT_ERROR, "Crror reading CBD marker\n"); in opj_j2k_read_cbd()
6401 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_cbd()
6546 opj_image_t *image, opj_event_mgr_t *p_manager) in opj_j2k_set_cinema_parameters() argument
6585 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_set_cinema_parameters()
6600 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_set_cinema_parameters()
6610 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_set_cinema_parameters()
6617 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_set_cinema_parameters()
6659 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_set_cinema_parameters()
6664 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_set_cinema_parameters()
6674 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_set_cinema_parameters()
6679 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_set_cinema_parameters()
6694 opj_event_mgr_t *p_manager) in opj_j2k_is_cinema_compliant() argument
6700 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_is_cinema_compliant()
6715 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_is_cinema_compliant()
6729 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_is_cinema_compliant()
6740 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_is_cinema_compliant()
6759 opj_event_mgr_t * p_manager) in opj_j2k_setup_encoder() argument
6771 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_setup_encoder()
6778 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_setup_encoder()
6784 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_setup_encoder()
6790 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_setup_encoder()
6797 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_setup_encoder()
6803 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_setup_encoder()
6860 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_setup_encoder()
6888 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_setup_encoder()
6894 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_setup_encoder()
6900 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_setup_encoder()
6906 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_setup_encoder()
6920 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_setup_encoder()
6959 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_setup_encoder()
6970 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_setup_encoder()
6974 opj_j2k_set_cinema_parameters(parameters, image, p_manager); in opj_j2k_setup_encoder()
6975 if (!opj_j2k_is_cinema_compliant(image, parameters->rsiz, p_manager)) { in opj_j2k_setup_encoder()
6980 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_setup_encoder()
6984 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_setup_encoder()
6988 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_setup_encoder()
6993 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_setup_encoder()
6999 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_setup_encoder()
7025 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_setup_encoder()
7045 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_setup_encoder()
7060 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_setup_encoder()
7068 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_setup_encoder()
7154 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_setup_encoder()
7162 (OPJ_UINT32)parameters->tcp_numlayers, p_manager); in opj_j2k_setup_encoder()
7222 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_setup_encoder()
7235 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_setup_encoder()
7245 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_setup_encoder()
7256 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_setup_encoder()
7264 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_setup_encoder()
7274 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_setup_encoder()
7289 opj_event_msg(p_manager, EVT_ERROR, "Failed to setup j2k mct encoding\n"); in opj_j2k_setup_encoder()
7298 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_setup_encoder()
7480 opj_event_mgr_t * p_manager in opj_j2k_end_decompress() argument
7485 (void)p_manager; in opj_j2k_end_decompress()
7492 opj_event_mgr_t* p_manager) in opj_j2k_read_header() argument
7497 assert(p_manager != 00); in opj_j2k_read_header()
7506 if (! opj_j2k_setup_decoding_validation(p_j2k, p_manager)) { in opj_j2k_read_header()
7513 if (! opj_j2k_exec(p_j2k, p_j2k->m_validation_list, p_stream, p_manager)) { in opj_j2k_read_header()
7520 if (! opj_j2k_setup_header_reading(p_j2k, p_manager)) { in opj_j2k_read_header()
7527 if (! opj_j2k_exec(p_j2k, p_j2k->m_procedure_list, p_stream, p_manager)) { in opj_j2k_read_header()
7550 opj_event_mgr_t * p_manager) in opj_j2k_setup_header_reading() argument
7554 assert(p_manager != 00); in opj_j2k_setup_header_reading()
7557 … (opj_procedure)opj_j2k_read_header_procedure, p_manager)) { in opj_j2k_setup_header_reading()
7563 … (opj_procedure)opj_j2k_copy_default_tcp_and_create_tcd, p_manager)) { in opj_j2k_setup_header_reading()
7571 opj_event_mgr_t * p_manager) in opj_j2k_setup_decoding_validation() argument
7575 assert(p_manager != 00); in opj_j2k_setup_decoding_validation()
7578 (opj_procedure)opj_j2k_build_decoder, p_manager)) { in opj_j2k_setup_decoding_validation()
7582 (opj_procedure)opj_j2k_decoding_validation, p_manager)) { in opj_j2k_setup_decoding_validation()
7592 opj_event_mgr_t * p_manager) in opj_j2k_mct_validation() argument
7600 assert(p_manager != 00); in opj_j2k_mct_validation()
7603 OPJ_UNUSED(p_manager); in opj_j2k_mct_validation()
7791 opj_event_mgr_t * p_manager) in opj_j2k_build_decoder() argument
7797 (void)p_manager; in opj_j2k_build_decoder()
7803 opj_event_mgr_t * p_manager) in opj_j2k_build_encoder() argument
7809 (void)p_manager; in opj_j2k_build_encoder()
7815 opj_event_mgr_t * p_manager) in opj_j2k_encoding_validation() argument
7822 assert(p_manager != 00); in opj_j2k_encoding_validation()
7841 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_encoding_validation()
7848 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_encoding_validation()
7855 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_encoding_validation()
7866 opj_event_mgr_t * p_manager in opj_j2k_decoding_validation() argument
7874 assert(p_manager != 00); in opj_j2k_decoding_validation()
7877 OPJ_UNUSED(p_manager); in opj_j2k_decoding_validation()
7899 opj_event_mgr_t * p_manager) in opj_j2k_read_header_procedure() argument
7911 assert(p_manager != 00); in opj_j2k_read_header_procedure()
7917 if (! opj_j2k_read_soc(p_j2k, p_stream, p_manager)) { in opj_j2k_read_header_procedure()
7918 opj_event_msg(p_manager, EVT_ERROR, "Expected a SOC marker \n"); 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()
7925 opj_event_msg(p_manager, EVT_ERROR, "Stream too short\n"); in opj_j2k_read_header_procedure()
7938 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_header_procedure()
7948 if (! opj_j2k_read_unk(p_j2k, p_stream, &l_current_marker, p_manager)) { in opj_j2k_read_header_procedure()
7949 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_header_procedure()
7976 opj_event_msg(p_manager, EVT_ERROR, 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()
7984 opj_event_msg(p_manager, EVT_ERROR, "Stream too short\n"); in opj_j2k_read_header_procedure()
7992 opj_event_msg(p_manager, EVT_ERROR, "Invalid marker size\n"); in opj_j2k_read_header_procedure()
8005 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to read header\n"); in opj_j2k_read_header_procedure()
8015 p_manager) != l_marker_size) { in opj_j2k_read_header_procedure()
8016 opj_event_msg(p_manager, EVT_ERROR, "Stream too short\n"); 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()
8023 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_header_procedure()
8034 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to add mh marker\n"); 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()
8041 opj_event_msg(p_manager, EVT_ERROR, "Stream too short\n"); in opj_j2k_read_header_procedure()
8051 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_header_procedure()
8056 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_header_procedure()
8061 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_header_procedure()
8066 if (! opj_j2k_merge_ppm(&(p_j2k->m_cp), p_manager)) { in opj_j2k_read_header_procedure()
8067 opj_event_msg(p_manager, EVT_ERROR, "Failed to merge PPM data\n"); in opj_j2k_read_header_procedure()
8071 opj_event_msg(p_manager, EVT_INFO, "Main header has been correctly decoded.\n"); in opj_j2k_read_header_procedure()
8085 opj_event_mgr_t * p_manager) in opj_j2k_exec() argument
8096 assert(p_manager != 00); in opj_j2k_exec()
8103 l_result = l_result && ((*l_procedure)(p_j2k, p_stream, p_manager)); in opj_j2k_exec()
8115 opj_event_mgr_t * p_manager in opj_j2k_copy_default_tcp_and_create_tcd() argument
8134 assert(p_manager != 00); in opj_j2k_copy_default_tcp_and_create_tcd()
8256 opj_event_msg(p_manager, EVT_ERROR, "Cannot decode tile, memory error\n"); in opj_j2k_copy_default_tcp_and_create_tcd()
8509 opj_event_mgr_t * p_manager) in opj_j2k_need_nb_tile_parts_correction() argument
8533 if (opj_stream_read_data(p_stream, l_header_data, 2, p_manager) != 2) { in opj_j2k_need_nb_tile_parts_correction()
8535 if (! opj_stream_seek(p_stream, l_stream_pos_backup, p_manager)) { in opj_j2k_need_nb_tile_parts_correction()
8546 if (! opj_stream_seek(p_stream, l_stream_pos_backup, p_manager)) { in opj_j2k_need_nb_tile_parts_correction()
8553 if (opj_stream_read_data(p_stream, l_header_data, 2, p_manager) != 2) { in opj_j2k_need_nb_tile_parts_correction()
8554 opj_event_msg(p_manager, EVT_ERROR, "Stream too short\n"); in opj_j2k_need_nb_tile_parts_correction()
8563 opj_event_msg(p_manager, EVT_ERROR, "Inconsistent marker size\n"); in opj_j2k_need_nb_tile_parts_correction()
8569 p_manager) != l_marker_size) { in opj_j2k_need_nb_tile_parts_correction()
8570 opj_event_msg(p_manager, EVT_ERROR, "Stream too short\n"); in opj_j2k_need_nb_tile_parts_correction()
8575 &l_tot_len, &l_current_part, &l_num_parts, p_manager)) { in opj_j2k_need_nb_tile_parts_correction()
8587 if (! opj_stream_seek(p_stream, l_stream_pos_backup, p_manager)) { in opj_j2k_need_nb_tile_parts_correction()
8595 p_manager) != (OPJ_OFF_T)(l_tot_len)) { in opj_j2k_need_nb_tile_parts_correction()
8597 if (! opj_stream_seek(p_stream, l_stream_pos_backup, p_manager)) { in opj_j2k_need_nb_tile_parts_correction()
8609 if (! opj_stream_seek(p_stream, l_stream_pos_backup, p_manager)) { in opj_j2k_need_nb_tile_parts_correction()
8623 opj_event_mgr_t * p_manager) in opj_j2k_read_tile_header() argument
8633 assert(p_manager != 00); 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()
8659 opj_event_msg(p_manager, EVT_ERROR, "Stream too short\n"); in opj_j2k_read_tile_header()
8669 opj_event_msg(p_manager, EVT_ERROR, "Inconsistent marker size\n"); in opj_j2k_read_tile_header()
8691 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_tile_header()
8703 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_tile_header()
8713 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to read header\n"); in opj_j2k_read_tile_header()
8723 p_manager) != l_marker_size) { in opj_j2k_read_tile_header()
8724 opj_event_msg(p_manager, EVT_ERROR, "Stream too short\n"); in opj_j2k_read_tile_header()
8730 opj_event_msg(p_manager, EVT_ERROR, "Not sure how that happened.\n"); 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()
8736 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_tile_header()
8747 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to add tl marker\n"); 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()
8764 opj_event_msg(p_manager, EVT_ERROR, "Stream too short\n"); 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()
8772 opj_event_msg(p_manager, EVT_ERROR, "Stream too short\n"); in opj_j2k_read_tile_header()
8788 if (! opj_j2k_read_sod(p_j2k, p_stream, p_manager)) { in opj_j2k_read_tile_header()
8798 p_j2k->m_current_tile_number, &l_correction_needed, p_manager)) { in opj_j2k_read_tile_header()
8799 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_tile_header()
8815 opj_event_msg(p_manager, EVT_WARNING, 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()
8823 opj_event_msg(p_manager, EVT_ERROR, "Stream too short\n"); 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()
8840 opj_event_msg(p_manager, EVT_ERROR, "Stream too short\n"); in opj_j2k_read_tile_header()
8875 p_manager)) { in opj_j2k_read_tile_header()
8876 opj_event_msg(p_manager, EVT_ERROR, "Failed to merge PPT data\n"); in opj_j2k_read_tile_header()
8881 p_manager)) { in opj_j2k_read_tile_header()
8882 opj_event_msg(p_manager, EVT_ERROR, "Cannot decode tile, memory error\n"); in opj_j2k_read_tile_header()
8886 opj_event_msg(p_manager, EVT_INFO, "Header of tile %d / %d has been read.\n", in opj_j2k_read_tile_header()
8915 opj_event_mgr_t * p_manager) in opj_j2k_decode_tile() argument
8925 assert(p_manager != 00); in opj_j2k_decode_tile()
8955 p_j2k->cstr_index, p_manager)) { in opj_j2k_decode_tile()
8958 opj_event_msg(p_manager, EVT_ERROR, "Failed to decode.\n"); in opj_j2k_decode_tile()
8986 if (opj_stream_read_data(p_stream, l_data, 2, p_manager) != 2) { in opj_j2k_decode_tile()
8987 opj_event_msg(p_manager, EVT_ERROR, "Stream too short\n"); in opj_j2k_decode_tile()
8999 opj_event_msg(p_manager, EVT_WARNING, "Stream does not end with EOC\n"); in opj_j2k_decode_tile()
9002 opj_event_msg(p_manager, EVT_ERROR, "Stream too short, expected SOT\n"); in opj_j2k_decode_tile()
9234 opj_event_mgr_t * p_manager) in opj_j2k_update_image_dimensions() argument
9250 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_update_image_dimensions()
9260 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_update_image_dimensions()
9276 opj_event_mgr_t * p_manager) in opj_j2k_set_decoded_components() argument
9282 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_set_decoded_components()
9296 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_set_decoded_components()
9303 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_set_decoded_components()
9337 opj_event_mgr_t * p_manager) in opj_j2k_set_decode_area() argument
9351 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_set_decode_area()
9363 opj_event_msg(p_manager, EVT_INFO, in opj_j2k_set_decode_area()
9376 return opj_j2k_update_image_dimensions(p_image, p_manager); in opj_j2k_set_decode_area()
9384 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_set_decode_area()
9389 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_set_decode_area()
9394 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_set_decode_area()
9407 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_set_decode_area()
9412 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_set_decode_area()
9417 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_set_decode_area()
9430 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_set_decode_area()
9435 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_set_decode_area()
9440 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_set_decode_area()
9453 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_set_decode_area()
9458 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_set_decode_area()
9464 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_set_decode_area()
9478 ret = opj_j2k_update_image_dimensions(p_image, p_manager); in opj_j2k_set_decode_area()
9481 opj_event_msg(p_manager, EVT_INFO, "Setting decoding area to %d,%d,%d,%d\n", in opj_j2k_set_decode_area()
9659 struct opj_event_mgr * p_manager) in opj_j2k_write_SPCod_SPCoc() argument
9669 assert(p_manager != 00); in opj_j2k_write_SPCod_SPCoc()
9681 opj_event_msg(p_manager, EVT_ERROR, "Error writing SPCod SPCoc element\n"); in opj_j2k_write_SPCod_SPCoc()
9707 opj_event_msg(p_manager, EVT_ERROR, "Error writing SPCod SPCoc element\n"); in opj_j2k_write_SPCod_SPCoc()
9727 opj_event_mgr_t * p_manager) in opj_j2k_read_SPCod_SPCoc() argument
9737 assert(p_manager != 00); in opj_j2k_read_SPCod_SPCoc()
9757 opj_event_msg(p_manager, EVT_ERROR, "Error reading SPCod SPCoc element\n"); in opj_j2k_read_SPCod_SPCoc()
9765 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_SPCod_SPCoc()
9774 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_SPCod_SPCoc()
9794 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_SPCod_SPCoc()
9803 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_read_SPCod_SPCoc()
9816 opj_event_msg(p_manager, EVT_ERROR, "Error reading SPCod SPCoc element\n"); in opj_j2k_read_SPCod_SPCoc()
9825 opj_event_msg(p_manager, EVT_ERROR, "Invalid precinct size\n"); in opj_j2k_read_SPCod_SPCoc()
9986 struct opj_event_mgr * p_manager) in opj_j2k_write_SQcd_SQcc() argument
9999 assert(p_manager != 00); in opj_j2k_write_SQcd_SQcc()
10017 opj_event_msg(p_manager, EVT_ERROR, "Error writing SQcd SQcc element\n"); in opj_j2k_write_SQcd_SQcc()
10034 opj_event_msg(p_manager, EVT_ERROR, "Error writing SQcd SQcc element\n"); in opj_j2k_write_SQcd_SQcc()
10060 opj_event_mgr_t * p_manager in opj_j2k_read_SQcd_SQcc() argument
10073 assert(p_manager != 00); in opj_j2k_read_SQcd_SQcc()
10092 opj_event_msg(p_manager, EVT_ERROR, "Error reading SQcd or SQcc element\n"); in opj_j2k_read_SQcd_SQcc()
10110 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_read_SQcd_SQcc()
10124 opj_event_msg(p_manager, JPWL_ASSUME ? EVT_WARNING : EVT_ERROR, in opj_j2k_read_SQcd_SQcc()
10128 opj_event_msg(p_manager, EVT_ERROR, "JPWL: giving up\n"); in opj_j2k_read_SQcd_SQcc()
10133 opj_event_msg(p_manager, EVT_WARNING, "- trying to adjust them\n" in opj_j2k_read_SQcd_SQcc()
10668 opj_event_mgr_t * p_manager) in opj_j2k_decode_tiles() argument
10693 p_manager)) { in opj_j2k_decode_tiles()
10698 p_stream, p_manager)) { in opj_j2k_decode_tiles()
10699 opj_event_msg(p_manager, EVT_ERROR, "Failed to decode tile 1/1\n"); in opj_j2k_decode_tiles()
10731 p_manager)) { in opj_j2k_decode_tiles()
10741 p_stream, p_manager)) { in opj_j2k_decode_tiles()
10742 opj_event_msg(p_manager, EVT_ERROR, "Failed to decode tile %d/%d\n", in opj_j2k_decode_tiles()
10747 opj_event_msg(p_manager, EVT_INFO, "Tile %d/%d has been decoded.\n", in opj_j2k_decode_tiles()
10765 opj_event_msg(p_manager, EVT_INFO, in opj_j2k_decode_tiles()
10784 opj_event_mgr_t * p_manager) in opj_j2k_setup_decoding() argument
10788 assert(p_manager != 00); in opj_j2k_setup_decoding()
10791 (opj_procedure)opj_j2k_decode_tiles, p_manager)) { in opj_j2k_setup_decoding()
10804 opj_event_mgr_t * p_manager) in opj_j2k_decode_one_tile() argument
10829 … p_j2k->m_specific_param.m_decoder.m_last_sot_read_pos + 2, p_manager))) { in opj_j2k_decode_one_tile()
10830 opj_event_msg(p_manager, EVT_ERROR, "Problem with seek function\n"); in opj_j2k_decode_one_tile()
10836 p_manager))) { in opj_j2k_decode_one_tile()
10837 opj_event_msg(p_manager, EVT_ERROR, "Problem with seek function\n"); in opj_j2k_decode_one_tile()
10865 p_manager)) { in opj_j2k_decode_one_tile()
10874 p_stream, p_manager)) { in opj_j2k_decode_one_tile()
10877 opj_event_msg(p_manager, EVT_INFO, "Tile %d/%d has been decoded.\n", in opj_j2k_decode_one_tile()
10886 opj_event_msg(p_manager, EVT_INFO, in opj_j2k_decode_one_tile()
10892 p_manager))) { in opj_j2k_decode_one_tile()
10893 opj_event_msg(p_manager, EVT_ERROR, "Problem with seek function\n"); in opj_j2k_decode_one_tile()
10898 opj_event_msg(p_manager, EVT_WARNING, in opj_j2k_decode_one_tile()
10912 opj_event_mgr_t * p_manager) in opj_j2k_setup_decoding_tile() argument
10916 assert(p_manager != 00); in opj_j2k_setup_decoding_tile()
10919 (opj_procedure)opj_j2k_decode_one_tile, p_manager)) { in opj_j2k_setup_decoding_tile()
10990 opj_event_mgr_t * p_manager) in opj_j2k_decode() argument
11016 if (!opj_j2k_update_image_dimensions(p_image, p_manager)) { in opj_j2k_decode()
11030 if (!opj_j2k_setup_decoding(p_j2k, p_manager)) { in opj_j2k_decode()
11035 if (! opj_j2k_exec(p_j2k, p_j2k->m_procedure_list, p_stream, p_manager)) { in opj_j2k_decode()
11048 opj_event_mgr_t * p_manager, in opj_j2k_get_tile() argument
11056 opj_event_msg(p_manager, EVT_ERROR, "We need an image previously created.\n"); in opj_j2k_get_tile()
11061 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_get_tile()
11067 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_get_tile()
11143 if (!opj_j2k_setup_decoding_tile(p_j2k, p_manager)) { in opj_j2k_get_tile()
11148 if (! opj_j2k_exec(p_j2k, p_j2k->m_procedure_list, p_stream, p_manager)) { in opj_j2k_get_tile()
11160 opj_event_mgr_t * p_manager) in opj_j2k_set_decoded_resolution_factor() argument
11174 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_set_decoded_resolution_factor()
11191 opj_event_mgr_t * p_manager) in opj_j2k_encode() argument
11203 assert(p_manager != 00); in opj_j2k_encode()
11221 if (! opj_j2k_pre_write_tile(p_j2k, i, p_stream, p_manager)) { in opj_j2k_encode()
11238 opj_event_msg(p_manager, EVT_ERROR, "Error allocating tile component data."); in opj_j2k_encode()
11255 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to encode all tiles\n"); in opj_j2k_encode()
11276 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_encode()
11283 if (! opj_j2k_post_write_tile(p_j2k, p_stream, p_manager)) { in opj_j2k_encode()
11299 opj_event_mgr_t * p_manager) in opj_j2k_end_compress() argument
11302 if (! opj_j2k_setup_end_compress(p_j2k, p_manager)) { in opj_j2k_end_compress()
11306 if (! opj_j2k_exec(p_j2k, p_j2k->m_procedure_list, p_stream, p_manager)) { in opj_j2k_end_compress()
11316 opj_event_mgr_t * p_manager) in opj_j2k_start_compress() argument
11321 assert(p_manager != 00); in opj_j2k_start_compress()
11325 opj_event_msg(p_manager, EVT_ERROR, "Failed to allocate image header."); in opj_j2k_start_compress()
11343 if (! opj_j2k_setup_encoding_validation(p_j2k, p_manager)) { in opj_j2k_start_compress()
11348 if (! opj_j2k_exec(p_j2k, p_j2k->m_validation_list, p_stream, p_manager)) { in opj_j2k_start_compress()
11353 if (! opj_j2k_setup_header_writing(p_j2k, p_manager)) { in opj_j2k_start_compress()
11358 if (! opj_j2k_exec(p_j2k, p_j2k->m_procedure_list, p_stream, p_manager)) { in opj_j2k_start_compress()
11368 opj_event_mgr_t * p_manager) in opj_j2k_pre_write_tile() argument
11372 opj_event_msg(p_manager, EVT_ERROR, "The given tile index does not match."); in opj_j2k_pre_write_tile()
11376 opj_event_msg(p_manager, EVT_INFO, "tile number %d / %d\n", in opj_j2k_pre_write_tile()
11385 p_manager)) { in opj_j2k_pre_write_tile()
11517 opj_event_mgr_t * p_manager) in opj_j2k_post_write_tile() argument
11533 l_available_data, p_stream, p_manager)) { in opj_j2k_post_write_tile()
11541 l_available_data, p_stream, p_manager)) { in opj_j2k_post_write_tile()
11550 l_nb_bytes_written, p_manager) != l_nb_bytes_written) { in opj_j2k_post_write_tile()
11560 opj_event_mgr_t * p_manager) in opj_j2k_setup_end_compress() argument
11564 assert(p_manager != 00); in opj_j2k_setup_end_compress()
11568 (opj_procedure)opj_j2k_write_eoc, p_manager)) { in opj_j2k_setup_end_compress()
11574 … (opj_procedure)opj_j2k_write_updated_tlm, p_manager)) { in opj_j2k_setup_end_compress()
11580 (opj_procedure)opj_j2k_write_epc, p_manager)) { in opj_j2k_setup_end_compress()
11584 (opj_procedure)opj_j2k_end_encoding, p_manager)) { in opj_j2k_setup_end_compress()
11588 … (opj_procedure)opj_j2k_destroy_header_memory, p_manager)) { in opj_j2k_setup_end_compress()
11595 opj_event_mgr_t * p_manager) in opj_j2k_setup_encoding_validation() argument
11599 assert(p_manager != 00); in opj_j2k_setup_encoding_validation()
11602 (opj_procedure)opj_j2k_build_encoder, p_manager)) { in opj_j2k_setup_encoding_validation()
11606 (opj_procedure)opj_j2k_encoding_validation, p_manager)) { in opj_j2k_setup_encoding_validation()
11612 (opj_procedure)opj_j2k_mct_validation, p_manager)) { in opj_j2k_setup_encoding_validation()
11620 opj_event_mgr_t * p_manager) in opj_j2k_setup_header_writing() argument
11624 assert(p_manager != 00); in opj_j2k_setup_header_writing()
11627 (opj_procedure)opj_j2k_init_info, p_manager)) { in opj_j2k_setup_header_writing()
11631 (opj_procedure)opj_j2k_write_soc, p_manager)) { in opj_j2k_setup_header_writing()
11635 (opj_procedure)opj_j2k_write_siz, p_manager)) { in opj_j2k_setup_header_writing()
11639 (opj_procedure)opj_j2k_write_cod, p_manager)) { in opj_j2k_setup_header_writing()
11643 (opj_procedure)opj_j2k_write_qcd, p_manager)) { in opj_j2k_setup_header_writing()
11647 (opj_procedure)opj_j2k_write_all_coc, p_manager)) { in opj_j2k_setup_header_writing()
11651 (opj_procedure)opj_j2k_write_all_qcc, p_manager)) { in opj_j2k_setup_header_writing()
11657 (opj_procedure)opj_j2k_write_tlm, p_manager)) { in opj_j2k_setup_header_writing()
11663 (opj_procedure)opj_j2k_write_poc, p_manager)) { in opj_j2k_setup_header_writing()
11670 (opj_procedure)opj_j2k_write_regions, p_manager)) { in opj_j2k_setup_header_writing()
11676 (opj_procedure)opj_j2k_write_com, p_manager)) { in opj_j2k_setup_header_writing()
11684 … (opj_procedure)opj_j2k_write_mct_data_group, p_manager)) { in opj_j2k_setup_header_writing()
11692 (opj_procedure)opj_j2k_get_end_header, p_manager)) { in opj_j2k_setup_header_writing()
11698 (opj_procedure)opj_j2k_create_tcd, p_manager)) { in opj_j2k_setup_header_writing()
11702 (opj_procedure)opj_j2k_update_rates, p_manager)) { in opj_j2k_setup_header_writing()
11714 struct opj_event_mgr * p_manager) in opj_j2k_write_first_tile_part() argument
11738 p_manager)) { in opj_j2k_write_first_tile_part()
11751 p_manager); in opj_j2k_write_first_tile_part()
11758 p_manager); in opj_j2k_write_first_tile_part()
11767 p_manager); in opj_j2k_write_first_tile_part()
11776 p_total_data_size, p_stream, p_manager)) { in opj_j2k_write_first_tile_part()
11799 struct opj_event_mgr * p_manager in opj_j2k_write_all_tile_parts() argument
11833 p_manager)) { in opj_j2k_write_all_tile_parts()
11844 p_total_data_size, p_stream, p_manager)) { in opj_j2k_write_all_tile_parts()
11878 p_manager)) { in opj_j2k_write_all_tile_parts()
11890 p_total_data_size, p_stream, p_manager)) { in opj_j2k_write_all_tile_parts()
11918 struct opj_event_mgr * p_manager) in opj_j2k_write_updated_tlm() argument
11925 assert(p_manager != 00); in opj_j2k_write_updated_tlm()
11932 if (! opj_stream_seek(p_stream, l_tlm_position, p_manager)) { in opj_j2k_write_updated_tlm()
11938 p_manager) != l_tlm_size) { in opj_j2k_write_updated_tlm()
11942 if (! opj_stream_seek(p_stream, l_current_position, p_manager)) { in opj_j2k_write_updated_tlm()
11951 struct opj_event_mgr * p_manager) in opj_j2k_end_encoding() argument
11955 assert(p_manager != 00); in opj_j2k_end_encoding()
11959 OPJ_UNUSED(p_manager); in opj_j2k_end_encoding()
11985 opj_event_mgr_t * p_manager in opj_j2k_destroy_header_memory() argument
11991 assert(p_manager != 00); in opj_j2k_destroy_header_memory()
11994 OPJ_UNUSED(p_manager); in opj_j2k_destroy_header_memory()
12008 struct opj_event_mgr * p_manager) in opj_j2k_init_info() argument
12014 assert(p_manager != 00); in opj_j2k_init_info()
12061 p_manager); in opj_j2k_init_info()
12073 opj_event_mgr_t * p_manager in opj_j2k_create_tcd() argument
12078 assert(p_manager != 00); in opj_j2k_create_tcd()
12086 opj_event_msg(p_manager, EVT_ERROR, "Not enough memory to create Tile Coder\n"); in opj_j2k_create_tcd()
12105 opj_event_mgr_t * p_manager) in opj_j2k_write_tile() argument
12107 if (! opj_j2k_pre_write_tile(p_j2k, p_tile_index, p_stream, p_manager)) { in opj_j2k_write_tile()
12108 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_write_tile()
12118 opj_event_msg(p_manager, EVT_ERROR, "Error allocating tile component data."); in opj_j2k_write_tile()
12125 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_write_tile()
12129 if (! opj_j2k_post_write_tile(p_j2k, p_stream, p_manager)) { in opj_j2k_write_tile()
12130 opj_event_msg(p_manager, EVT_ERROR, in opj_j2k_write_tile()