Home | History | Annotate | Download | only in libopenjpeg20

Lines Matching defs:cp

1171  * @param               cp                      the coding parameters.
1177 static OPJ_UINT32 opj_j2k_get_num_tp( opj_cp_t *cp, OPJ_UINT32 pino, OPJ_UINT32 tileno);
1184 * @param cp the coding parameters for the image.
1192 opj_cp_t *cp,
1638 static OPJ_UINT32 opj_j2k_get_num_tp(opj_cp_t *cp, OPJ_UINT32 pino, OPJ_UINT32 tileno)
1647 assert(tileno < (cp->tw * cp->th));
1648 assert(pino < (cp->tcps[tileno].numpocs + 1));
1651 tcp = &cp->tcps[tileno];
1661 if (cp->m_specific_param.m_enc.m_tp_on == 1) {
1683 if ( cp->m_specific_param.m_enc.m_tp_flag == prog[i] ) {
1684 cp->m_specific_param.m_enc.m_tp_pos=i;
1697 opj_cp_t *cp,
1709 assert(cp != 00);
1714 l_nb_tiles = cp->tw * cp->th;
1716 tcp = cp->tcps;
1726 opj_pi_update_encoding_parameters(image,cp,tileno);
1730 OPJ_UINT32 tp_num = opj_j2k_get_num_tp(cp,pino,tileno);
1756 opj_pi_update_encoding_parameters(image,cp,tileno);
1759 OPJ_UINT32 tp_num = opj_j2k_get_num_tp(cp,pino,tileno);
1860 opj_cp_t *cp = 00;
1869 cp = &(p_j2k->m_cp);
1896 opj_write_bytes(l_current_ptr, cp->rsiz, 2); /* Rsiz (capabilities) */
1911 opj_write_bytes(l_current_ptr, cp->tdx, 4); /* XTsiz */
1914 opj_write_bytes(l_current_ptr, cp->tdy, 4); /* YTsiz */
1917 opj_write_bytes(l_current_ptr, cp->tx0, 4); /* XT0siz */
1920 opj_write_bytes(l_current_ptr, cp->ty0, 4); /* YT0siz */
2235 "JPWL: could not alloc tcps field of cp\n");
4980 if(cp->epc_on) {
6150 opj_cp_t *cp = 00;
6161 /* keep a link to cp so that we can destroy it later in j2k_destroy_compress */
6162 cp = &(p_j2k->m_cp);
6164 /* set default values for cp */
6165 cp->tw = 1;
6166 cp->th = 1;
6290 cp->m_specific_param.m_enc.m_max_comp_size = (OPJ_UINT32)parameters->max_comp_size;
6291 cp->rsiz = parameters->rsiz;
6292 cp->m_specific_param.m_enc.m_disto_alloc = (OPJ_UINT32)parameters->cp_disto_alloc & 1u;
6293 cp->m_specific_param.m_enc.m_fixed_alloc = (OPJ_UINT32)parameters->cp_fixed_alloc & 1u;
6294 cp->m_specific_param.m_enc.m_fixed_quality = (OPJ_UINT32)parameters->cp_fixed_quality & 1u;
6299 cp->m_specific_param.m_enc.m_matrice = (OPJ_INT32 *) opj_malloc(array_size);
6300 if (!cp->m_specific_param.m_enc.m_matrice) {
6304 memcpy(cp->m_specific_param.m_enc.m_matrice, parameters->cp_matrice, array_size);
6308 cp->tdx = (OPJ_UINT32)parameters->cp_tdx;
6309 cp->tdy = (OPJ_UINT32)parameters->cp_tdy;
6312 cp->tx0 = (OPJ_UINT32)parameters->cp_tx0;
6313 cp->ty0 = (OPJ_UINT32)parameters->cp_ty0;
6317 cp->comment = (char*)opj_malloc(strlen(parameters->cp_comment) + 1U);
6318 if(!cp->comment) {
6322 strcpy(cp->comment, parameters->cp_comment);
6331 cp->comment = (char*)opj_malloc(clen+strlen(version)+11);
6332 if(!cp->comment) {
6336 sprintf(cp->comment,"%s%s with JPWL", comment, version);
6338 cp->comment = (char*)opj_malloc(clen+strlen(version)+1);
6339 if(!cp->comment) {
6343 sprintf(cp->comment,"%s%s", comment, version);
6353 cp->tw = (OPJ_UINT32)opj_int_ceildiv((OPJ_INT32)(image->x1 - cp->tx0), (OPJ_INT32)cp->tdx);
6354 cp->th = (OPJ_UINT32)opj_int_ceildiv((OPJ_INT32)(image->y1 - cp->ty0), (OPJ_INT32)cp->tdy);
6356 cp->tdx = image->x1 - cp->tx0;
6357 cp->tdy = image->y1 - cp->ty0;
6361 cp->m_specific_param.m_enc.m_tp_flag = (OPJ_BYTE)parameters->tp_flag;
6362 cp->m_specific_param.m_enc.m_tp_on = 1;
6374 cp->epc_on = OPJ_TRUE;
6375 cp->info_on = OPJ_FALSE; /* no informative technique */
6379 cp->epb_on = OPJ_TRUE;
6381 cp->hprot_MH = parameters->jpwl_hprot_MH;
6383 cp->hprot_TPH_tileno[i] = parameters->jpwl_hprot_TPH_tileno[i];
6384 cp->hprot_TPH[i] = parameters->jpwl_hprot_TPH[i];
6387 if (cp->hprot_TPH[0] == -1) {
6388 cp->hprot_TPH_tileno[0] = 0;
6389 cp->hprot_TPH[0] = parameters->jpwl_hprot_MH;
6392 cp->pprot_tileno[i] = parameters->jpwl_pprot_tileno[i];
6393 cp->pprot_packno[i] = parameters->jpwl_pprot_packno[i];
6394 cp->pprot[i] = parameters->jpwl_pprot[i];
6400 cp->esd_on = OPJ_TRUE;
6402 cp->sens_size = parameters->jpwl_sens_size;
6403 cp->sens_addr = parameters->jpwl_sens_addr;
6404 cp->sens_range = parameters->jpwl_sens_range;
6406 cp->sens_MH = parameters->jpwl_sens_MH;
6408 cp->sens_TPH_tileno[i] = parameters->jpwl_sens_TPH_tileno[i];
6409 cp->sens_TPH[i] = parameters->jpwl_sens_TPH[i];
6414 cp->red_on = OPJ_FALSE;
6417 cp->epc_on = OPJ_FALSE;
6423 cp->tcps = (opj_tcp_t*) opj_calloc(cp->tw * cp->th, sizeof(opj_tcp_t));
6424 if (!cp->tcps) {
6434 for (tileno = 0; tileno < cp->tw * cp->th; tileno++) {
6435 opj_tcp_t *tcp = &cp->tcps[tileno];
6439 if(OPJ_IS_CINEMA(cp->rsiz)){
6440 if (cp->m_specific_param.m_enc.m_fixed_quality) {
6445 if (cp->m_specific_param.m_enc.m_fixed_quality) { /* add fixed_quality */
7015 /* add here initialization of cp
7027 /* add here initialization of cp
7349 /* Get the mct_decoding_matrix of the dflt_tile_cp and copy them into the current tile cp*/
7358 /* Get the mct_record of the dflt_tile_cp and copy them into the current tile cp*/
7387 /* Get the mcc_record of the dflt_tile_cp and copy them into the current tile cp*/
7416 /* Copy all the dflt_tile_compo_cp to the current tile cp */
7419 /* Move to next tile cp*/