• Home
  • Raw
  • Download

Lines Matching refs:cstr_index

1003 static OPJ_BOOL opj_j2k_add_mhmarker(opj_codestream_index_t *cstr_index,
1014 … opj_codestream_index_t *cstr_index, OPJ_UINT32 type, OPJ_OFF_T pos,
1926 p_j2k->cstr_index->main_head_start = opj_stream_tell(p_stream) - 2; in opj_j2k_read_soc()
1930 p_j2k->cstr_index->main_head_start); in opj_j2k_read_soc()
1933 if (OPJ_FALSE == opj_j2k_add_mhmarker(p_j2k->cstr_index, J2K_MS_SOC, in opj_j2k_read_soc()
1934 p_j2k->cstr_index->main_head_start, 2)) { in opj_j2k_read_soc()
4502 if (p_j2k->cstr_index) { in opj_j2k_read_sot()
4503 assert(p_j2k->cstr_index->tile_index != 00); in opj_j2k_read_sot()
4504 p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].tileno = in opj_j2k_read_sot()
4506 p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].current_tpsno = in opj_j2k_read_sot()
4510 p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].nb_tps = in opj_j2k_read_sot()
4512 p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].current_nb_tps = in opj_j2k_read_sot()
4515 if (!p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].tp_index) { in opj_j2k_read_sot()
4516 p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].tp_index = in opj_j2k_read_sot()
4518 if (!p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].tp_index) { in opj_j2k_read_sot()
4525 … p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].tp_index, in opj_j2k_read_sot()
4528 opj_free(p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].tp_index); in opj_j2k_read_sot()
4529 p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].tp_index = NULL; in opj_j2k_read_sot()
4534 p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].tp_index = in opj_j2k_read_sot()
4540 if (!p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].tp_index) { in opj_j2k_read_sot()
4541 p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].current_nb_tps = 10; in opj_j2k_read_sot()
4542 p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].tp_index = in opj_j2k_read_sot()
4544 … p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].current_nb_tps, in opj_j2k_read_sot()
4546 if (!p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].tp_index) { in opj_j2k_read_sot()
4547 … p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].current_nb_tps = 0; in opj_j2k_read_sot()
4555 … p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].current_nb_tps) { in opj_j2k_read_sot()
4557 p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].current_nb_tps = in opj_j2k_read_sot()
4560 … p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].tp_index, in opj_j2k_read_sot()
4561 … p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].current_nb_tps * in opj_j2k_read_sot()
4564 … opj_free(p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].tp_index); in opj_j2k_read_sot()
4565 p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].tp_index = NULL; in opj_j2k_read_sot()
4566 … p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].current_nb_tps = 0; in opj_j2k_read_sot()
4571 p_j2k->cstr_index->tile_index[p_j2k->m_current_tile_number].tp_index = in opj_j2k_read_sot()
4795 l_cstr_index = p_j2k->cstr_index; in opj_j2k_read_sod()
5247 p_j2k->cstr_index);
5276 p_j2k->cstr_index->main_head_end = opj_stream_tell(p_stream); in opj_j2k_get_end_header()
5418 l_cstr_index = p_j2k->cstr_index; in opj_j2k_write_epc()
5487 OPJ_BOOL res = opj_j2k_add_mhmarker(p_j2k->cstr_index, J2K_MS_UNK, in opj_j2k_read_unk()
7394 static OPJ_BOOL opj_j2k_add_mhmarker(opj_codestream_index_t *cstr_index, in opj_j2k_add_mhmarker() argument
7397 assert(cstr_index != 00); in opj_j2k_add_mhmarker()
7400 if ((cstr_index->marknum + 1) > cstr_index->maxmarknum) { in opj_j2k_add_mhmarker()
7402 cstr_index->maxmarknum = (OPJ_UINT32)(100 + (OPJ_FLOAT32) in opj_j2k_add_mhmarker()
7403 cstr_index->maxmarknum); in opj_j2k_add_mhmarker()
7404 new_marker = (opj_marker_info_t *) opj_realloc(cstr_index->marker, in opj_j2k_add_mhmarker()
7405 cstr_index->maxmarknum * sizeof(opj_marker_info_t)); in opj_j2k_add_mhmarker()
7407 opj_free(cstr_index->marker); in opj_j2k_add_mhmarker()
7408 cstr_index->marker = NULL; in opj_j2k_add_mhmarker()
7409 cstr_index->maxmarknum = 0; in opj_j2k_add_mhmarker()
7410 cstr_index->marknum = 0; in opj_j2k_add_mhmarker()
7414 cstr_index->marker = new_marker; in opj_j2k_add_mhmarker()
7418 cstr_index->marker[cstr_index->marknum].type = (OPJ_UINT16)type; in opj_j2k_add_mhmarker()
7419 cstr_index->marker[cstr_index->marknum].pos = (OPJ_INT32)pos; in opj_j2k_add_mhmarker()
7420 cstr_index->marker[cstr_index->marknum].len = (OPJ_INT32)len; in opj_j2k_add_mhmarker()
7421 cstr_index->marknum++; in opj_j2k_add_mhmarker()
7426 … opj_codestream_index_t *cstr_index, OPJ_UINT32 type, OPJ_OFF_T pos, in opj_j2k_add_tlmarker() argument
7429 assert(cstr_index != 00); in opj_j2k_add_tlmarker()
7430 assert(cstr_index->tile_index != 00); in opj_j2k_add_tlmarker()
7433 if ((cstr_index->tile_index[tileno].marknum + 1) > in opj_j2k_add_tlmarker()
7434 cstr_index->tile_index[tileno].maxmarknum) { in opj_j2k_add_tlmarker()
7436 cstr_index->tile_index[tileno].maxmarknum = (OPJ_UINT32)(100 + in opj_j2k_add_tlmarker()
7437 (OPJ_FLOAT32) cstr_index->tile_index[tileno].maxmarknum); in opj_j2k_add_tlmarker()
7439 cstr_index->tile_index[tileno].marker, in opj_j2k_add_tlmarker()
7440 cstr_index->tile_index[tileno].maxmarknum * sizeof(opj_marker_info_t)); in opj_j2k_add_tlmarker()
7442 opj_free(cstr_index->tile_index[tileno].marker); in opj_j2k_add_tlmarker()
7443 cstr_index->tile_index[tileno].marker = NULL; in opj_j2k_add_tlmarker()
7444 cstr_index->tile_index[tileno].maxmarknum = 0; in opj_j2k_add_tlmarker()
7445 cstr_index->tile_index[tileno].marknum = 0; in opj_j2k_add_tlmarker()
7449 cstr_index->tile_index[tileno].marker = new_marker; in opj_j2k_add_tlmarker()
7453 cstr_index->tile_index[tileno].marker[cstr_index->tile_index[tileno].marknum].type in opj_j2k_add_tlmarker()
7455 cstr_index->tile_index[tileno].marker[cstr_index->tile_index[tileno].marknum].pos in opj_j2k_add_tlmarker()
7457 cstr_index->tile_index[tileno].marker[cstr_index->tile_index[tileno].marknum].len in opj_j2k_add_tlmarker()
7459 cstr_index->tile_index[tileno].marknum++; in opj_j2k_add_tlmarker()
7462 OPJ_UINT32 l_current_tile_part = cstr_index->tile_index[tileno].current_tpsno; in opj_j2k_add_tlmarker()
7464 if (cstr_index->tile_index[tileno].tp_index) { in opj_j2k_add_tlmarker()
7465 cstr_index->tile_index[tileno].tp_index[l_current_tile_part].start_pos = pos; in opj_j2k_add_tlmarker()
8030 p_j2k->cstr_index, in opj_j2k_read_header_procedure()
8074 p_j2k->cstr_index->main_head_end = (OPJ_UINT32) opj_stream_tell(p_stream) - 2; in opj_j2k_read_header_procedure()
8330 j2k_destroy_cstr_index(p_j2k->cstr_index); in opj_j2k_destroy()
8331 p_j2k->cstr_index = NULL; in opj_j2k_destroy()
8743 p_j2k->cstr_index, in opj_j2k_read_tile_header()
8955 p_j2k->cstr_index, p_manager)) { in opj_j2k_decode_tile()
9527 l_j2k->cstr_index = opj_j2k_create_cstr_index(); in opj_j2k_create_decompress()
9528 if (!l_j2k->cstr_index) { in opj_j2k_create_decompress()
9561 opj_codestream_index_t* cstr_index = (opj_codestream_index_t*) in opj_j2k_create_cstr_index() local
9563 if (!cstr_index) { in opj_j2k_create_cstr_index()
9567 cstr_index->maxmarknum = 100; in opj_j2k_create_cstr_index()
9568 cstr_index->marknum = 0; in opj_j2k_create_cstr_index()
9569 cstr_index->marker = (opj_marker_info_t*) in opj_j2k_create_cstr_index()
9570 opj_calloc(cstr_index->maxmarknum, sizeof(opj_marker_info_t)); in opj_j2k_create_cstr_index()
9571 if (!cstr_index-> marker) { in opj_j2k_create_cstr_index()
9572 opj_free(cstr_index); in opj_j2k_create_cstr_index()
9576 cstr_index->tile_index = NULL; in opj_j2k_create_cstr_index()
9578 return cstr_index; in opj_j2k_create_cstr_index()
10313 opj_codestream_index_t* cstr_index = p_j2k->cstr_index; in opj_j2k_dump_MH_index() local
10320 cstr_index->main_head_start, cstr_index->main_head_end); in opj_j2k_dump_MH_index()
10324 if (cstr_index->marker) { in opj_j2k_dump_MH_index()
10325 for (it_marker = 0; it_marker < cstr_index->marknum ; it_marker++) { in opj_j2k_dump_MH_index()
10327 cstr_index->marker[it_marker].type, in opj_j2k_dump_MH_index()
10328 cstr_index->marker[it_marker].pos, in opj_j2k_dump_MH_index()
10329 cstr_index->marker[it_marker].len); in opj_j2k_dump_MH_index()
10335 if (cstr_index->tile_index) { in opj_j2k_dump_MH_index()
10339 for (it_tile = 0; it_tile < cstr_index->nb_of_tiles ; it_tile++) { in opj_j2k_dump_MH_index()
10340 l_acc_nb_of_tile_part += cstr_index->tile_index[it_tile].nb_tps; in opj_j2k_dump_MH_index()
10346 for (it_tile = 0; it_tile < cstr_index->nb_of_tiles ; it_tile++) { in opj_j2k_dump_MH_index()
10347 OPJ_UINT32 nb_of_tile_part = cstr_index->tile_index[it_tile].nb_tps; in opj_j2k_dump_MH_index()
10352 if (cstr_index->tile_index[it_tile].tp_index) { in opj_j2k_dump_MH_index()
10357 cstr_index->tile_index[it_tile].tp_index[it_tile_part].start_pos, in opj_j2k_dump_MH_index()
10358 cstr_index->tile_index[it_tile].tp_index[it_tile_part].end_header, in opj_j2k_dump_MH_index()
10359 cstr_index->tile_index[it_tile].tp_index[it_tile_part].end_pos); in opj_j2k_dump_MH_index()
10363 if (cstr_index->tile_index[it_tile].marker) { in opj_j2k_dump_MH_index()
10364 for (it_marker = 0; it_marker < cstr_index->tile_index[it_tile].marknum ; in opj_j2k_dump_MH_index()
10367 cstr_index->tile_index[it_tile].marker[it_marker].type, in opj_j2k_dump_MH_index()
10368 cstr_index->tile_index[it_tile].marker[it_marker].pos, in opj_j2k_dump_MH_index()
10369 cstr_index->tile_index[it_tile].marker[it_marker].len); in opj_j2k_dump_MH_index()
10534 l_cstr_index->main_head_start = p_j2k->cstr_index->main_head_start; in j2k_get_cstr_index()
10535 l_cstr_index->main_head_end = p_j2k->cstr_index->main_head_end; in j2k_get_cstr_index()
10536 l_cstr_index->codestream_size = p_j2k->cstr_index->codestream_size; in j2k_get_cstr_index()
10538 l_cstr_index->marknum = p_j2k->cstr_index->marknum; in j2k_get_cstr_index()
10546 if (p_j2k->cstr_index->marker) { in j2k_get_cstr_index()
10547 memcpy(l_cstr_index->marker, p_j2k->cstr_index->marker, in j2k_get_cstr_index()
10554 l_cstr_index->nb_of_tiles = p_j2k->cstr_index->nb_of_tiles; in j2k_get_cstr_index()
10563 if (!p_j2k->cstr_index->tile_index) { in j2k_get_cstr_index()
10572 p_j2k->cstr_index->tile_index[it_tile].marknum; in j2k_get_cstr_index()
10591 if (p_j2k->cstr_index->tile_index[it_tile].marker) in j2k_get_cstr_index()
10593 p_j2k->cstr_index->tile_index[it_tile].marker, in j2k_get_cstr_index()
10602 p_j2k->cstr_index->tile_index[it_tile].nb_tps; in j2k_get_cstr_index()
10622 if (p_j2k->cstr_index->tile_index[it_tile].tp_index) { in j2k_get_cstr_index()
10624 p_j2k->cstr_index->tile_index[it_tile].tp_index, in j2k_get_cstr_index()
10645 p_j2k->cstr_index->nb_of_tiles = p_j2k->m_cp.tw * p_j2k->m_cp.th; in opj_j2k_allocate_tile_element_cstr_index()
10646 p_j2k->cstr_index->tile_index = (opj_tile_index_t*)opj_calloc( in opj_j2k_allocate_tile_element_cstr_index()
10647 p_j2k->cstr_index->nb_of_tiles, sizeof(opj_tile_index_t)); in opj_j2k_allocate_tile_element_cstr_index()
10648 if (!p_j2k->cstr_index->tile_index) { in opj_j2k_allocate_tile_element_cstr_index()
10652 for (it_tile = 0; it_tile < p_j2k->cstr_index->nb_of_tiles; it_tile++) { in opj_j2k_allocate_tile_element_cstr_index()
10653 p_j2k->cstr_index->tile_index[it_tile].maxmarknum = 100; in opj_j2k_allocate_tile_element_cstr_index()
10654 p_j2k->cstr_index->tile_index[it_tile].marknum = 0; in opj_j2k_allocate_tile_element_cstr_index()
10655 p_j2k->cstr_index->tile_index[it_tile].marker = (opj_marker_info_t*) in opj_j2k_allocate_tile_element_cstr_index()
10656 opj_calloc(p_j2k->cstr_index->tile_index[it_tile].maxmarknum, in opj_j2k_allocate_tile_element_cstr_index()
10658 if (!p_j2k->cstr_index->tile_index[it_tile].marker) { in opj_j2k_allocate_tile_element_cstr_index()
10815 if (!p_j2k->cstr_index->tile_index) { in opj_j2k_decode_one_tile()
10823 if (p_j2k->cstr_index->tile_index) in opj_j2k_decode_one_tile()
10824 if (p_j2k->cstr_index->tile_index->tp_index) { in opj_j2k_decode_one_tile()
10825 if (! p_j2k->cstr_index->tile_index[l_tile_no_to_dec].nb_tps) { in opj_j2k_decode_one_tile()
10835 … p_j2k->cstr_index->tile_index[l_tile_no_to_dec].tp_index[0].start_pos + 2, in opj_j2k_decode_one_tile()
10891 if (!(opj_stream_read_seek(p_stream, p_j2k->cstr_index->main_head_end + 2, in opj_j2k_decode_one_tile()
11690 if (p_j2k->cstr_index) { in opj_j2k_setup_header_writing()