Lines Matching refs:l_tccp
3073 opj_tccp_t *l_tccp = 00; in opj_j2k_write_poc_in_memory() local
3082 l_tccp = &l_tcp->tccps[0]; in opj_j2k_write_poc_in_memory()
3126 …no1 = (OPJ_UINT32)opj_int_min((OPJ_INT32)l_current_poc->resno1, (OPJ_INT32)l_tccp->numresolutions); in opj_j2k_write_poc_in_memory()
4445 opj_tccp_t *l_tccp = 00; in opj_j2k_write_rgn() local
4455 l_tccp = &l_tcp->tccps[p_comp_no]; in opj_j2k_write_rgn()
4480 …opj_write_bytes(l_current_data, (OPJ_UINT32)l_tccp->roishift,1); /* SPr… in opj_j2k_write_rgn()
4938 const opj_tccp_t *l_tccp = 00; in opj_j2k_write_regions() local
4945 l_tccp = p_j2k->m_cp.tcps->tccps; in opj_j2k_write_regions()
4948 if (l_tccp->roishift) { in opj_j2k_write_regions()
4955 ++l_tccp; in opj_j2k_write_regions()
5634 opj_tccp_t * l_tccp; in opj_j2k_read_mco() local
5665 l_tccp = l_tcp->tccps; in opj_j2k_read_mco()
5668 l_tccp->m_dc_level_shift = 0; in opj_j2k_read_mco()
5669 ++l_tccp; in opj_j2k_read_mco()
5697 opj_tccp_t * l_tccp; in opj_j2k_add_mct() local
5757 l_tccp = p_tcp->tccps; in opj_j2k_add_mct()
5761 l_tccp->m_dc_level_shift = (OPJ_INT32)*(l_current_offset_data++); in opj_j2k_add_mct()
5762 ++l_tccp; in opj_j2k_add_mct()
6853 opj_tccp_t * l_tccp = l_tcp->tccps; in opj_j2k_mct_validation() local
6857 l_is_valid &= ! (l_tccp->qmfbid & 1); in opj_j2k_mct_validation()
6858 ++l_tccp; in opj_j2k_mct_validation()
6876 opj_tccp_t * l_tccp; in opj_j2k_setup_mct_encoding() local
6975 l_tccp = p_tcp->tccps; in opj_j2k_setup_mct_encoding()
6979 *(l_current_data++) = (OPJ_FLOAT32) (l_tccp->m_dc_level_shift); in opj_j2k_setup_mct_encoding()
6980 ++l_tccp; in opj_j2k_setup_mct_encoding()
8655 opj_tccp_t *l_tccp = 00; in opj_j2k_get_SPCod_SPCoc_size() local
8662 l_tccp = &l_tcp->tccps[p_comp_no]; in opj_j2k_get_SPCod_SPCoc_size()
8668 if (l_tccp->csty & J2K_CCP_CSTY_PRT) { in opj_j2k_get_SPCod_SPCoc_size()
8669 return 5 + l_tccp->numresolutions; in opj_j2k_get_SPCod_SPCoc_size()
8686 opj_tccp_t *l_tccp = 00; in opj_j2k_write_SPCod_SPCoc() local
8696 l_tccp = &l_tcp->tccps[p_comp_no]; in opj_j2k_write_SPCod_SPCoc()
8707 opj_write_bytes(p_data,l_tccp->numresolutions - 1, 1); /* SPcoc (D) */ in opj_j2k_write_SPCod_SPCoc()
8710 opj_write_bytes(p_data,l_tccp->cblkw - 2, 1); /* SPcoc (E) */ in opj_j2k_write_SPCod_SPCoc()
8713 opj_write_bytes(p_data,l_tccp->cblkh - 2, 1); /* SPcoc (F) */ in opj_j2k_write_SPCod_SPCoc()
8716 opj_write_bytes(p_data,l_tccp->cblksty, 1); /* SPcoc (G) */ in opj_j2k_write_SPCod_SPCoc()
8719 opj_write_bytes(p_data,l_tccp->qmfbid, 1); /* SPcoc (H) */ in opj_j2k_write_SPCod_SPCoc()
8724 if (l_tccp->csty & J2K_CCP_CSTY_PRT) { in opj_j2k_write_SPCod_SPCoc()
8726 if (*p_header_size < l_tccp->numresolutions) { in opj_j2k_write_SPCod_SPCoc()
8731 for (i = 0; i < l_tccp->numresolutions; ++i) { in opj_j2k_write_SPCod_SPCoc()
8732 … opj_write_bytes(p_data,l_tccp->prcw[i] + (l_tccp->prch[i] << 4), 1); /* SPcoc (I_i) */ in opj_j2k_write_SPCod_SPCoc()
8736 *p_header_size = *p_header_size - l_tccp->numresolutions; in opj_j2k_write_SPCod_SPCoc()
8751 opj_tccp_t *l_tccp = NULL; in opj_j2k_read_SPCod_SPCoc() local
8769 l_tccp = &l_tcp->tccps[compno]; in opj_j2k_read_SPCod_SPCoc()
8778 opj_read_bytes(l_current_ptr, &l_tccp->numresolutions ,1); /* SPcox (D) */ in opj_j2k_read_SPCod_SPCoc()
8779 …++l_tccp->numresolutions; … in opj_j2k_read_SPCod_SPCoc()
8780 if (l_tccp->numresolutions > OPJ_J2K_MAXRLVLS) { in opj_j2k_read_SPCod_SPCoc()
8783 l_tccp->numresolutions, OPJ_J2K_MAXRLVLS); in opj_j2k_read_SPCod_SPCoc()
8789 if (l_cp->m_specific_param.m_dec.m_reduce >= l_tccp->numresolutions) { in opj_j2k_read_SPCod_SPCoc()
8796 opj_read_bytes(l_current_ptr,&l_tccp->cblkw ,1); /* SPcoc (E) */ in opj_j2k_read_SPCod_SPCoc()
8798 l_tccp->cblkw += 2; in opj_j2k_read_SPCod_SPCoc()
8800 opj_read_bytes(l_current_ptr,&l_tccp->cblkh ,1); /* SPcoc (F) */ in opj_j2k_read_SPCod_SPCoc()
8802 l_tccp->cblkh += 2; in opj_j2k_read_SPCod_SPCoc()
8804 … if ((l_tccp->cblkw > 10) || (l_tccp->cblkh > 10) || ((l_tccp->cblkw + l_tccp->cblkh) > 12)) { in opj_j2k_read_SPCod_SPCoc()
8810 opj_read_bytes(l_current_ptr,&l_tccp->cblksty ,1); /* SPcoc (G) */ in opj_j2k_read_SPCod_SPCoc()
8813 opj_read_bytes(l_current_ptr,&l_tccp->qmfbid ,1); /* SPcoc (H) */ in opj_j2k_read_SPCod_SPCoc()
8819 if (l_tccp->csty & J2K_CCP_CSTY_PRT) { in opj_j2k_read_SPCod_SPCoc()
8820 if (*p_header_size < l_tccp->numresolutions) { in opj_j2k_read_SPCod_SPCoc()
8825 for (i = 0; i < l_tccp->numresolutions; ++i) { in opj_j2k_read_SPCod_SPCoc()
8833 l_tccp->prcw[i] = l_tmp & 0xf; in opj_j2k_read_SPCod_SPCoc()
8834 l_tccp->prch[i] = l_tmp >> 4; in opj_j2k_read_SPCod_SPCoc()
8837 *p_header_size = *p_header_size - l_tccp->numresolutions; in opj_j2k_read_SPCod_SPCoc()
8841 for (i = 0; i < l_tccp->numresolutions; ++i) { in opj_j2k_read_SPCod_SPCoc()
8842 l_tccp->prcw[i] = 15; in opj_j2k_read_SPCod_SPCoc()
8843 l_tccp->prch[i] = 15; in opj_j2k_read_SPCod_SPCoc()
8850 OPJ_UINT32 l_data_size = l_tccp->numresolutions * sizeof(OPJ_UINT32); in opj_j2k_read_SPCod_SPCoc()
8852 … p_j2k->cstr_info->tile[p_j2k->m_current_tile_number].tccp_info[compno].cblkh = l_tccp->cblkh; in opj_j2k_read_SPCod_SPCoc()
8853 … p_j2k->cstr_info->tile[p_j2k->m_current_tile_number].tccp_info[compno].cblkw = l_tccp->cblkw; in opj_j2k_read_SPCod_SPCoc()
8854 …info->tile[p_j2k->m_current_tile_number].tccp_info[compno].numresolutions = l_tccp->numresolutions; in opj_j2k_read_SPCod_SPCoc()
8855 … p_j2k->cstr_info->tile[p_j2k->m_current_tile_number].tccp_info[compno].cblksty = l_tccp->cblksty; in opj_j2k_read_SPCod_SPCoc()
8856 … p_j2k->cstr_info->tile[p_j2k->m_current_tile_number].tccp_info[compno].qmfbid = l_tccp->qmfbid; in opj_j2k_read_SPCod_SPCoc()
8858 … memcpy(p_j2k->cstr_info->tile[p_j2k->m_current_tile_number].pdx,l_tccp->prcw, l_data_size); in opj_j2k_read_SPCod_SPCoc()
8859 … memcpy(p_j2k->cstr_info->tile[p_j2k->m_current_tile_number].pdy,l_tccp->prch, l_data_size); in opj_j2k_read_SPCod_SPCoc()
8908 opj_tccp_t *l_tccp = 00; in opj_j2k_get_SQcd_SQcc_size() local
8915 l_tccp = &l_tcp->tccps[p_comp_no]; in opj_j2k_get_SQcd_SQcc_size()
8921 … l_num_bands = (l_tccp->qntsty == J2K_CCP_QNTSTY_SIQNT) ? 1 : (l_tccp->numresolutions * 3 - 2); in opj_j2k_get_SQcd_SQcc_size()
8923 if (l_tccp->qntsty == J2K_CCP_QNTSTY_NOQNT) { in opj_j2k_get_SQcd_SQcc_size()
8944 opj_tccp_t *l_tccp = 00; in opj_j2k_write_SQcd_SQcc() local
8954 l_tccp = &l_tcp->tccps[p_comp_no]; in opj_j2k_write_SQcd_SQcc()
8960 … l_num_bands = (l_tccp->qntsty == J2K_CCP_QNTSTY_SIQNT) ? 1 : (l_tccp->numresolutions * 3 - 2); in opj_j2k_write_SQcd_SQcc()
8962 if (l_tccp->qntsty == J2K_CCP_QNTSTY_NOQNT) { in opj_j2k_write_SQcd_SQcc()
8970 opj_write_bytes(p_data,l_tccp->qntsty + (l_tccp->numgbits << 5), 1); /* Sqcx */ in opj_j2k_write_SQcd_SQcc()
8974 l_expn = (OPJ_UINT32)l_tccp->stepsizes[l_band_no].expn; in opj_j2k_write_SQcd_SQcc()
8987 opj_write_bytes(p_data,l_tccp->qntsty + (l_tccp->numgbits << 5), 1); /* Sqcx */ in opj_j2k_write_SQcd_SQcc()
8991 l_expn = (OPJ_UINT32)l_tccp->stepsizes[l_band_no].expn; in opj_j2k_write_SQcd_SQcc()
8992 l_mant = (OPJ_UINT32)l_tccp->stepsizes[l_band_no].mant; in opj_j2k_write_SQcd_SQcc()
9015 opj_tccp_t *l_tccp = 00; in opj_j2k_read_SQcd_SQcc() local
9035 l_tccp = &l_tcp->tccps[p_comp_no]; in opj_j2k_read_SQcd_SQcc()
9047 l_tccp->qntsty = l_tmp & 0x1f; in opj_j2k_read_SQcd_SQcc()
9048 l_tccp->numgbits = l_tmp >> 5; in opj_j2k_read_SQcd_SQcc()
9049 if (l_tccp->qntsty == J2K_CCP_QNTSTY_SIQNT) { in opj_j2k_read_SQcd_SQcc()
9053 l_num_band = (l_tccp->qntsty == J2K_CCP_QNTSTY_NOQNT) ? in opj_j2k_read_SQcd_SQcc()
9087 if (l_tccp->qntsty == J2K_CCP_QNTSTY_NOQNT) { in opj_j2k_read_SQcd_SQcc()
9092 l_tccp->stepsizes[l_band_no].expn = (OPJ_INT32)(l_tmp >> 3); in opj_j2k_read_SQcd_SQcc()
9093 l_tccp->stepsizes[l_band_no].mant = 0; in opj_j2k_read_SQcd_SQcc()
9103 l_tccp->stepsizes[l_band_no].expn = (OPJ_INT32)(l_tmp >> 11); in opj_j2k_read_SQcd_SQcc()
9104 l_tccp->stepsizes[l_band_no].mant = l_tmp & 0x7ff; in opj_j2k_read_SQcd_SQcc()
9111 if (l_tccp->qntsty == J2K_CCP_QNTSTY_SIQNT) { in opj_j2k_read_SQcd_SQcc()
9113 l_tccp->stepsizes[l_band_no].expn = in opj_j2k_read_SQcd_SQcc()
9114 … ((OPJ_INT32)(l_tccp->stepsizes[0].expn) - (OPJ_INT32)((l_band_no - 1) / 3) > 0) ? in opj_j2k_read_SQcd_SQcc()
9115 … (OPJ_INT32)(l_tccp->stepsizes[0].expn) - (OPJ_INT32)((l_band_no - 1) / 3) : 0; in opj_j2k_read_SQcd_SQcc()
9116 l_tccp->stepsizes[l_band_no].mant = l_tccp->stepsizes[0].mant; in opj_j2k_read_SQcd_SQcc()
9165 opj_tccp_t *l_tccp = &(l_default_tile->tccps[compno]); in opj_j2k_dump_tile_info() local
9171 fprintf(out_stream, "\t\t\t csty=%#x\n", l_tccp->csty); in opj_j2k_dump_tile_info()
9172 fprintf(out_stream, "\t\t\t numresolutions=%d\n", l_tccp->numresolutions); in opj_j2k_dump_tile_info()
9173 fprintf(out_stream, "\t\t\t cblkw=2^%d\n", l_tccp->cblkw); in opj_j2k_dump_tile_info()
9174 fprintf(out_stream, "\t\t\t cblkh=2^%d\n", l_tccp->cblkh); in opj_j2k_dump_tile_info()
9175 fprintf(out_stream, "\t\t\t cblksty=%#x\n", l_tccp->cblksty); in opj_j2k_dump_tile_info()
9176 fprintf(out_stream, "\t\t\t qmfbid=%d\n", l_tccp->qmfbid); in opj_j2k_dump_tile_info()
9179 for (resno = 0; resno < l_tccp->numresolutions; resno++) { in opj_j2k_dump_tile_info()
9180 … fprintf(out_stream, "(%d,%d) ", l_tccp->prcw[resno], l_tccp->prch[resno]); in opj_j2k_dump_tile_info()
9185 fprintf(out_stream, "\t\t\t qntsty=%d\n", l_tccp->qntsty); in opj_j2k_dump_tile_info()
9186 fprintf(out_stream, "\t\t\t numgbits=%d\n", l_tccp->numgbits); in opj_j2k_dump_tile_info()
9188 …numbands = (l_tccp->qntsty == J2K_CCP_QNTSTY_SIQNT) ? 1 : (OPJ_INT32)l_tccp->numresolutions * 3 - … in opj_j2k_dump_tile_info()
9190 fprintf(out_stream, "(%d,%d) ", l_tccp->stepsizes[bandno].mant, in opj_j2k_dump_tile_info()
9191 l_tccp->stepsizes[bandno].expn); in opj_j2k_dump_tile_info()
9196 fprintf(out_stream, "\t\t\t roishift=%d\n", l_tccp->roishift); in opj_j2k_dump_tile_info()
9414 opj_tccp_t *l_tccp = &(l_default_tile->tccps[compno]); in j2k_get_cstr_info() local
9419 l_tccp_info->csty = l_tccp->csty; in j2k_get_cstr_info()
9420 l_tccp_info->numresolutions = l_tccp->numresolutions; in j2k_get_cstr_info()
9421 l_tccp_info->cblkw = l_tccp->cblkw; in j2k_get_cstr_info()
9422 l_tccp_info->cblkh = l_tccp->cblkh; in j2k_get_cstr_info()
9423 l_tccp_info->cblksty = l_tccp->cblksty; in j2k_get_cstr_info()
9424 l_tccp_info->qmfbid = l_tccp->qmfbid; in j2k_get_cstr_info()
9425 if (l_tccp->numresolutions < OPJ_J2K_MAXRLVLS) in j2k_get_cstr_info()
9427 memcpy(l_tccp_info->prch, l_tccp->prch, l_tccp->numresolutions); in j2k_get_cstr_info()
9428 memcpy(l_tccp_info->prcw, l_tccp->prcw, l_tccp->numresolutions); in j2k_get_cstr_info()
9432 l_tccp_info->qntsty = l_tccp->qntsty; in j2k_get_cstr_info()
9433 l_tccp_info->numgbits = l_tccp->numgbits; in j2k_get_cstr_info()
9435 …numbands = (l_tccp->qntsty == J2K_CCP_QNTSTY_SIQNT) ? 1 : (OPJ_INT32)l_tccp->numresolutions * 3 - … in j2k_get_cstr_info()
9438 … l_tccp_info->stepsizes_mant[bandno] = (OPJ_UINT32)l_tccp->stepsizes[bandno].mant; in j2k_get_cstr_info()
9439 … l_tccp_info->stepsizes_expn[bandno] = (OPJ_UINT32)l_tccp->stepsizes[bandno].expn; in j2k_get_cstr_info()
9444 l_tccp_info->roishift = l_tccp->roishift; in j2k_get_cstr_info()