Lines Matching refs:j2k
6416 void opj_j2k_setup_decoder(opj_j2k_t *j2k, opj_dparameters_t *parameters) in opj_j2k_setup_decoder() argument
6418 if (j2k && parameters) { in opj_j2k_setup_decoder()
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()
6422 j2k->dump_state = (parameters->flags & OPJ_DPARAMETERS_DUMP_FLAG); in opj_j2k_setup_decoder()
6424 j2k->m_cp.correct = parameters->jpwl_correct; in opj_j2k_setup_decoder()
6425 j2k->m_cp.exp_comps = parameters->jpwl_exp_comps; in opj_j2k_setup_decoder()
6426 j2k->m_cp.max_tiles = parameters->jpwl_max_tiles; in opj_j2k_setup_decoder()
6431 OPJ_BOOL opj_j2k_set_threads(opj_j2k_t *j2k, OPJ_UINT32 num_threads) in opj_j2k_set_threads() argument
6435 if (opj_has_thread_support() && j2k->m_tcd == NULL) { in opj_j2k_set_threads()
6436 opj_thread_pool_destroy(j2k->m_tp); in opj_j2k_set_threads()
6437 j2k->m_tp = NULL; in opj_j2k_set_threads()
6439 j2k->m_tp = opj_thread_pool_create((int)num_threads); in opj_j2k_set_threads()
6441 if (j2k->m_tp == NULL) { in opj_j2k_set_threads()
6442 j2k->m_tp = opj_thread_pool_create(0); in opj_j2k_set_threads()