Lines Matching refs:l_j2k
6468 opj_j2k_t *l_j2k = (opj_j2k_t*) opj_calloc(1, sizeof(opj_j2k_t)); in opj_j2k_create_compress() local
6469 if (!l_j2k) { in opj_j2k_create_compress()
6474 l_j2k->m_is_decoder = 0; in opj_j2k_create_compress()
6475 l_j2k->m_cp.m_is_decoder = 0; in opj_j2k_create_compress()
6477 l_j2k->m_specific_param.m_encoder.m_header_tile_data = (OPJ_BYTE *) opj_malloc( in opj_j2k_create_compress()
6479 if (! l_j2k->m_specific_param.m_encoder.m_header_tile_data) { in opj_j2k_create_compress()
6480 opj_j2k_destroy(l_j2k); in opj_j2k_create_compress()
6484 l_j2k->m_specific_param.m_encoder.m_header_tile_data_size = in opj_j2k_create_compress()
6488 l_j2k->m_validation_list = opj_procedure_list_create(); in opj_j2k_create_compress()
6489 if (! l_j2k->m_validation_list) { in opj_j2k_create_compress()
6490 opj_j2k_destroy(l_j2k); in opj_j2k_create_compress()
6495 l_j2k->m_procedure_list = opj_procedure_list_create(); in opj_j2k_create_compress()
6496 if (! l_j2k->m_procedure_list) { in opj_j2k_create_compress()
6497 opj_j2k_destroy(l_j2k); in opj_j2k_create_compress()
6501 l_j2k->m_tp = opj_thread_pool_create(opj_j2k_get_default_thread_count()); in opj_j2k_create_compress()
6502 if (!l_j2k->m_tp) { in opj_j2k_create_compress()
6503 l_j2k->m_tp = opj_thread_pool_create(0); in opj_j2k_create_compress()
6505 if (!l_j2k->m_tp) { in opj_j2k_create_compress()
6506 opj_j2k_destroy(l_j2k); in opj_j2k_create_compress()
6510 return l_j2k; in opj_j2k_create_compress()
9474 opj_j2k_t *l_j2k = (opj_j2k_t*) opj_calloc(1, sizeof(opj_j2k_t)); in opj_j2k_create_decompress() local
9475 if (!l_j2k) { in opj_j2k_create_decompress()
9479 l_j2k->m_is_decoder = 1; in opj_j2k_create_decompress()
9480 l_j2k->m_cp.m_is_decoder = 1; in opj_j2k_create_decompress()
9483 l_j2k->m_cp.allow_different_bit_depth_sign = 1; in opj_j2k_create_decompress()
9486 l_j2k->m_specific_param.m_decoder.m_nb_tile_parts_correction_checked = 1; in opj_j2k_create_decompress()
9489 l_j2k->m_specific_param.m_decoder.m_default_tcp = (opj_tcp_t*) opj_calloc(1, in opj_j2k_create_decompress()
9491 if (!l_j2k->m_specific_param.m_decoder.m_default_tcp) { in opj_j2k_create_decompress()
9492 opj_j2k_destroy(l_j2k); in opj_j2k_create_decompress()
9496 l_j2k->m_specific_param.m_decoder.m_header_data = (OPJ_BYTE *) opj_calloc(1, in opj_j2k_create_decompress()
9498 if (! l_j2k->m_specific_param.m_decoder.m_header_data) { in opj_j2k_create_decompress()
9499 opj_j2k_destroy(l_j2k); in opj_j2k_create_decompress()
9503 l_j2k->m_specific_param.m_decoder.m_header_data_size = in opj_j2k_create_decompress()
9506 l_j2k->m_specific_param.m_decoder.m_tile_ind_to_dec = -1 ; in opj_j2k_create_decompress()
9508 l_j2k->m_specific_param.m_decoder.m_last_sot_read_pos = 0 ; in opj_j2k_create_decompress()
9511 l_j2k->cstr_index = opj_j2k_create_cstr_index(); in opj_j2k_create_decompress()
9512 if (!l_j2k->cstr_index) { in opj_j2k_create_decompress()
9513 opj_j2k_destroy(l_j2k); in opj_j2k_create_decompress()
9518 l_j2k->m_validation_list = opj_procedure_list_create(); in opj_j2k_create_decompress()
9519 if (! l_j2k->m_validation_list) { in opj_j2k_create_decompress()
9520 opj_j2k_destroy(l_j2k); in opj_j2k_create_decompress()
9525 l_j2k->m_procedure_list = opj_procedure_list_create(); in opj_j2k_create_decompress()
9526 if (! l_j2k->m_procedure_list) { in opj_j2k_create_decompress()
9527 opj_j2k_destroy(l_j2k); in opj_j2k_create_decompress()
9531 l_j2k->m_tp = opj_thread_pool_create(opj_j2k_get_default_thread_count()); in opj_j2k_create_decompress()
9532 if (!l_j2k->m_tp) { in opj_j2k_create_decompress()
9533 l_j2k->m_tp = opj_thread_pool_create(0); in opj_j2k_create_decompress()
9535 if (!l_j2k->m_tp) { in opj_j2k_create_decompress()
9536 opj_j2k_destroy(l_j2k); in opj_j2k_create_decompress()
9540 return l_j2k; in opj_j2k_create_decompress()