|
|
|
@@ -363,7 +363,7 @@ int ff_jpeg2000_init_component(Jpeg2000Component *comp, |
|
|
|
/* Formula example for tbx_0 = ceildiv((tcx_0 - 2 ^ (declvl - 1) * x0_b) / declvl) */ |
|
|
|
band->coord[i][j] = |
|
|
|
ff_jpeg2000_ceildivpow2(comp->coord_o[i][j] - |
|
|
|
(((bandno + 1 >> i) & 1) << declvl - 1), |
|
|
|
(((bandno + 1 >> i) & 1LL) << declvl - 1), |
|
|
|
declvl); |
|
|
|
/* TODO: Manage case of 3 band offsets here or |
|
|
|
* in coding/decoding function? */ |
|
|
|
|