• Home
  • Raw
  • Download

Lines Matching refs:l_cstr_index

4694     opj_codestream_index_t * l_cstr_index = 00;  in opj_j2k_read_sod()  local
4784 l_cstr_index = p_j2k->cstr_index; in opj_j2k_read_sod()
4785 if (l_cstr_index) { in opj_j2k_read_sod()
4789 l_cstr_index->tile_index[p_j2k->m_current_tile_number].current_tpsno; in opj_j2k_read_sod()
4790l_cstr_index->tile_index[p_j2k->m_current_tile_number].tp_index[l_current_tile_part].end_header in opj_j2k_read_sod()
4793 l_cstr_index->tile_index[p_j2k->m_current_tile_number].tp_index[l_current_tile_part].end_pos in opj_j2k_read_sod()
4798 l_cstr_index, in opj_j2k_read_sod()
5398 opj_codestream_index_t * l_cstr_index = 00; in opj_j2k_write_epc() local
5407 l_cstr_index = p_j2k->cstr_index; in opj_j2k_write_epc()
5408 if (l_cstr_index) { in opj_j2k_write_epc()
5409 l_cstr_index->codestream_size = (OPJ_UINT64)opj_stream_tell(p_stream); in opj_j2k_write_epc()
5414 l_cstr_index->codestream_size -= (OPJ_UINT64)l_cstr_index->main_head_start; in opj_j2k_write_epc()
10512 opj_codestream_index_t* l_cstr_index = (opj_codestream_index_t*) in j2k_get_cstr_index() local
10514 if (!l_cstr_index) { in j2k_get_cstr_index()
10518 l_cstr_index->main_head_start = p_j2k->cstr_index->main_head_start; in j2k_get_cstr_index()
10519 l_cstr_index->main_head_end = p_j2k->cstr_index->main_head_end; in j2k_get_cstr_index()
10520 l_cstr_index->codestream_size = p_j2k->cstr_index->codestream_size; in j2k_get_cstr_index()
10522 l_cstr_index->marknum = p_j2k->cstr_index->marknum; in j2k_get_cstr_index()
10523 l_cstr_index->marker = (opj_marker_info_t*)opj_malloc(l_cstr_index->marknum * in j2k_get_cstr_index()
10525 if (!l_cstr_index->marker) { in j2k_get_cstr_index()
10526 opj_free(l_cstr_index); in j2k_get_cstr_index()
10531 memcpy(l_cstr_index->marker, p_j2k->cstr_index->marker, in j2k_get_cstr_index()
10532 l_cstr_index->marknum * sizeof(opj_marker_info_t)); in j2k_get_cstr_index()
10534 opj_free(l_cstr_index->marker); in j2k_get_cstr_index()
10535 l_cstr_index->marker = NULL; in j2k_get_cstr_index()
10538 l_cstr_index->nb_of_tiles = p_j2k->cstr_index->nb_of_tiles; in j2k_get_cstr_index()
10539 l_cstr_index->tile_index = (opj_tile_index_t*)opj_calloc( in j2k_get_cstr_index()
10540 l_cstr_index->nb_of_tiles, sizeof(opj_tile_index_t)); in j2k_get_cstr_index()
10541 if (!l_cstr_index->tile_index) { in j2k_get_cstr_index()
10542 opj_free(l_cstr_index->marker); in j2k_get_cstr_index()
10543 opj_free(l_cstr_index); in j2k_get_cstr_index()
10548 opj_free(l_cstr_index->tile_index); in j2k_get_cstr_index()
10549 l_cstr_index->tile_index = NULL; in j2k_get_cstr_index()
10552 for (it_tile = 0; it_tile < l_cstr_index->nb_of_tiles; it_tile++) { in j2k_get_cstr_index()
10555 l_cstr_index->tile_index[it_tile].marknum = in j2k_get_cstr_index()
10558 l_cstr_index->tile_index[it_tile].marker = in j2k_get_cstr_index()
10559 (opj_marker_info_t*)opj_malloc(l_cstr_index->tile_index[it_tile].marknum * in j2k_get_cstr_index()
10562 if (!l_cstr_index->tile_index[it_tile].marker) { in j2k_get_cstr_index()
10566 opj_free(l_cstr_index->tile_index[it_tile_free].marker); in j2k_get_cstr_index()
10569 opj_free(l_cstr_index->tile_index); in j2k_get_cstr_index()
10570 opj_free(l_cstr_index->marker); in j2k_get_cstr_index()
10571 opj_free(l_cstr_index); in j2k_get_cstr_index()
10576 memcpy(l_cstr_index->tile_index[it_tile].marker, in j2k_get_cstr_index()
10578 l_cstr_index->tile_index[it_tile].marknum * sizeof(opj_marker_info_t)); in j2k_get_cstr_index()
10580 opj_free(l_cstr_index->tile_index[it_tile].marker); in j2k_get_cstr_index()
10581 l_cstr_index->tile_index[it_tile].marker = NULL; in j2k_get_cstr_index()
10585 l_cstr_index->tile_index[it_tile].nb_tps = in j2k_get_cstr_index()
10588 l_cstr_index->tile_index[it_tile].tp_index = in j2k_get_cstr_index()
10589 (opj_tp_index_t*)opj_malloc(l_cstr_index->tile_index[it_tile].nb_tps * sizeof( in j2k_get_cstr_index()
10592 if (!l_cstr_index->tile_index[it_tile].tp_index) { in j2k_get_cstr_index()
10596 opj_free(l_cstr_index->tile_index[it_tile_free].marker); in j2k_get_cstr_index()
10597 opj_free(l_cstr_index->tile_index[it_tile_free].tp_index); in j2k_get_cstr_index()
10600 opj_free(l_cstr_index->tile_index); in j2k_get_cstr_index()
10601 opj_free(l_cstr_index->marker); in j2k_get_cstr_index()
10602 opj_free(l_cstr_index); in j2k_get_cstr_index()
10607 memcpy(l_cstr_index->tile_index[it_tile].tp_index, in j2k_get_cstr_index()
10609 l_cstr_index->tile_index[it_tile].nb_tps * sizeof(opj_tp_index_t)); in j2k_get_cstr_index()
10611 opj_free(l_cstr_index->tile_index[it_tile].tp_index); in j2k_get_cstr_index()
10612 l_cstr_index->tile_index[it_tile].tp_index = NULL; in j2k_get_cstr_index()
10616 l_cstr_index->tile_index[it_tile].nb_packet = 0; in j2k_get_cstr_index()
10617 l_cstr_index->tile_index[it_tile].packet_index = NULL; in j2k_get_cstr_index()
10622 return l_cstr_index; in j2k_get_cstr_index()