• Home
  • Raw
  • Download

Lines Matching refs:p_cp

219 static void opj_j2k_cp_destroy(opj_cp_t *p_cp);
794 static OPJ_BOOL opj_j2k_merge_ppm(opj_cp_t *p_cp, opj_event_mgr_t * p_manager);
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
3868 assert(p_cp != 00); in opj_j2k_merge_ppm()
3870 assert(p_cp->ppm_buffer == NULL); in opj_j2k_merge_ppm()
3872 if (p_cp->ppm == 0U) { in opj_j2k_merge_ppm()
3878 for (i = 0U; i < p_cp->ppm_markers_count; ++i) { in opj_j2k_merge_ppm()
3879 if (p_cp->ppm_markers[i].m_data != in opj_j2k_merge_ppm()
3882 OPJ_UINT32 l_data_size = p_cp->ppm_markers[i].m_data_size; in opj_j2k_merge_ppm()
3883 const OPJ_BYTE* l_data = p_cp->ppm_markers[i].m_data; in opj_j2k_merge_ppm()
3926 p_cp->ppm_buffer = (OPJ_BYTE *) opj_malloc(l_ppm_data_size); in opj_j2k_merge_ppm()
3927 if (p_cp->ppm_buffer == 00) { in opj_j2k_merge_ppm()
3931 p_cp->ppm_len = l_ppm_data_size; in opj_j2k_merge_ppm()
3934 for (i = 0U; i < p_cp->ppm_markers_count; ++i) { in opj_j2k_merge_ppm()
3935 if (p_cp->ppm_markers[i].m_data != in opj_j2k_merge_ppm()
3938 OPJ_UINT32 l_data_size = p_cp->ppm_markers[i].m_data_size; in opj_j2k_merge_ppm()
3939 const OPJ_BYTE* l_data = p_cp->ppm_markers[i].m_data; in opj_j2k_merge_ppm()
3942 memcpy(p_cp->ppm_buffer + l_ppm_data_size, l_data, l_data_size); in opj_j2k_merge_ppm()
3947 memcpy(p_cp->ppm_buffer + l_ppm_data_size, l_data, l_N_ppm_remaining); in opj_j2k_merge_ppm()
3967 memcpy(p_cp->ppm_buffer + l_ppm_data_size, l_data, l_N_ppm); in opj_j2k_merge_ppm()
3972 memcpy(p_cp->ppm_buffer + l_ppm_data_size, l_data, l_data_size); in opj_j2k_merge_ppm()
3979 opj_free(p_cp->ppm_markers[i].m_data); in opj_j2k_merge_ppm()
3980 p_cp->ppm_markers[i].m_data = NULL; in opj_j2k_merge_ppm()
3981 p_cp->ppm_markers[i].m_data_size = 0U; in opj_j2k_merge_ppm()
3985 p_cp->ppm_data = p_cp->ppm_buffer; in opj_j2k_merge_ppm()
3986 p_cp->ppm_data_size = p_cp->ppm_len; in opj_j2k_merge_ppm()
3988 p_cp->ppm_markers_count = 0U; in opj_j2k_merge_ppm()
3989 opj_free(p_cp->ppm_markers); in opj_j2k_merge_ppm()
3990 p_cp->ppm_markers = NULL; in opj_j2k_merge_ppm()
8464 static void opj_j2k_cp_destroy(opj_cp_t *p_cp) in opj_j2k_cp_destroy() argument
8469 if (p_cp == 00) { in opj_j2k_cp_destroy()
8472 if (p_cp->tcps != 00) { in opj_j2k_cp_destroy()
8474 l_current_tile = p_cp->tcps; in opj_j2k_cp_destroy()
8475 l_nb_tiles = p_cp->th * p_cp->tw; in opj_j2k_cp_destroy()
8481 opj_free(p_cp->tcps); in opj_j2k_cp_destroy()
8482 p_cp->tcps = 00; in opj_j2k_cp_destroy()
8484 if (p_cp->ppm_markers != 00) { in opj_j2k_cp_destroy()
8486 for (i = 0U; i < p_cp->ppm_markers_count; ++i) { in opj_j2k_cp_destroy()
8487 if (p_cp->ppm_markers[i].m_data != NULL) { in opj_j2k_cp_destroy()
8488 opj_free(p_cp->ppm_markers[i].m_data); in opj_j2k_cp_destroy()
8491 p_cp->ppm_markers_count = 0U; in opj_j2k_cp_destroy()
8492 opj_free(p_cp->ppm_markers); in opj_j2k_cp_destroy()
8493 p_cp->ppm_markers = NULL; in opj_j2k_cp_destroy()
8495 opj_free(p_cp->ppm_buffer); in opj_j2k_cp_destroy()
8496 p_cp->ppm_buffer = 00; in opj_j2k_cp_destroy()
8497 p_cp->ppm_data = in opj_j2k_cp_destroy()
8499 opj_free(p_cp->comment); in opj_j2k_cp_destroy()
8500 p_cp->comment = 00; in opj_j2k_cp_destroy()
8501 if (! p_cp->m_is_decoder) { in opj_j2k_cp_destroy()
8502 opj_free(p_cp->m_specific_param.m_enc.m_matrice); in opj_j2k_cp_destroy()
8503 p_cp->m_specific_param.m_enc.m_matrice = 00; in opj_j2k_cp_destroy()