diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-05-18 20:17:07 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2020-05-20 20:31:28 +0200 |
| commit | 3d35d0f3af46ee206a3ea147298aad3d83a7775c (patch) | |
| tree | e360a552dfc8d19a87462081ed422e7d9974b40c /src | |
| parent | 00cff6f5c02deabb64ccb15f15c13fcb773968fe (diff) | |
tcd.c: add comment
Diffstat (limited to 'src')
| -rw-r--r-- | src/lib/openjp2/tcd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/openjp2/tcd.c b/src/lib/openjp2/tcd.c index 503dc472..e41e7772 100644 --- a/src/lib/openjp2/tcd.c +++ b/src/lib/openjp2/tcd.c @@ -1009,6 +1009,9 @@ static INLINE OPJ_BOOL opj_tcd_init_tile(opj_tcd_t *p_tcd, OPJ_UINT32 p_tile_no, /** avoid an if with storing function pointer */ l_gain = (*l_gain_ptr)(l_band->bandno); numbps = (OPJ_INT32)(l_image_comp->prec + l_gain); + + /* Delta_b value of Equation E-3 in "E.1 Inverse quantization + * procedure" of the standard */ l_band->stepsize = (OPJ_FLOAT32)(((1.0 + l_step_size->mant / 2048.0) * pow(2.0, (OPJ_INT32)(numbps - l_step_size->expn)))) * fraction; /* Mb value of Equation E-2 in "E.1 Inverse quantization |
