diff options
| author | Mickael Savinaud <savmickael@users.noreply.github.com> | 2011-09-27 12:14:11 +0000 |
|---|---|---|
| committer | Mickael Savinaud <savmickael@users.noreply.github.com> | 2011-09-27 12:14:11 +0000 |
| commit | a600d8f4e2c21ea0532d4af3dc6374b60b93c583 (patch) | |
| tree | 2711e66ac75b34b2bd7c39c880b8f438c6d7f050 /libopenjpeg/t2.c | |
| parent | de7793e918ada457ae9ab59023454a47e768953b (diff) | |
[trunk] WIP: add basis for a new output management of the codestream information and index
Diffstat (limited to 'libopenjpeg/t2.c')
| -rw-r--r-- | libopenjpeg/t2.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/libopenjpeg/t2.c b/libopenjpeg/t2.c index 76f43521..4856a6f9 100644 --- a/libopenjpeg/t2.c +++ b/libopenjpeg/t2.c @@ -844,7 +844,7 @@ opj_bool t2_decode_packets_v2( OPJ_BYTE *p_src, OPJ_UINT32 * p_data_read, OPJ_UINT32 p_max_len, - struct opj_codestream_info_v2 *p_cstr_info) + opj_codestream_index_t *p_cstr_index) { OPJ_BYTE *l_current_data = p_src; opj_pi_iterator_t *l_pi = 00; @@ -861,10 +861,11 @@ opj_bool t2_decode_packets_v2( opj_packet_info_t *l_pack_info = 00; opj_image_comp_header_t* l_img_comp = 00; - - if (p_cstr_info) { - l_pack_info = p_cstr_info->tile[p_tile_no].packet; +#ifdef TODO_MSD + if (p_cstr_index) { + l_pack_info = p_cstr_index->tile_index[p_tile_no].packet; } +#endif /* create a packet iterator */ l_pi = pi_create_decode_v2(l_image, l_cp, p_tile_no); |
