Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subtile decoding: only apply IDWT on areas that participate to the window of interest #1001

Merged
merged 7 commits into from
Aug 21, 2017
Prev Previous commit
Next Next commit
opj_j2k_update_rates(): grow tile size buffer for some situations
  • Loading branch information
rouault committed Aug 17, 2017
commit 5d12806091eab0659431fefcefdb797b09f8e884
4 changes: 4 additions & 0 deletions src/lib/openjp2/j2k.c
Original file line number Diff line number Diff line change
Expand Up @@ -5171,6 +5171,10 @@ static OPJ_BOOL opj_j2k_update_rates(opj_j2k_t *p_j2k,
/* number of packets and number of code blocks in packets */
l_tile_size = (OPJ_UINT32)(l_tile_size * 1.4 / 8);

/* Arbitrary amount to make the following work: */
/* bin/test_tile_encoder 1 256 256 17 16 8 0 reversible_no_precinct.j2k 4 4 3 0 0 1 */
l_tile_size += 500;

l_tile_size += opj_j2k_get_specific_header_sizes(p_j2k);

p_j2k->m_specific_param.m_encoder.m_encoded_tile_size = l_tile_size;
Expand Down