diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2017-07-06 13:23:29 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2017-08-07 18:32:52 +0200 |
| commit | 373520db309430b68dd9ff09cba03a25f711a88e (patch) | |
| tree | b30461d5ca61fe92330c155c89b38bb1d510c812 /src/lib/openjp2/t2.c | |
| parent | 434ace4ff74cc3eee401d4d3c02668c1d85f2a0d (diff) | |
Add documentation for magic values in the code
Diffstat (limited to 'src/lib/openjp2/t2.c')
| -rw-r--r-- | src/lib/openjp2/t2.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/openjp2/t2.c b/src/lib/openjp2/t2.c index 93b77ef0..760e17ac 100644 --- a/src/lib/openjp2/t2.c +++ b/src/lib/openjp2/t2.c @@ -1491,6 +1491,10 @@ static OPJ_BOOL opj_t2_init_seg(opj_tcd_cblk_dec_t* cblk, ((seg - 1)->maxpasses == 10)) ? 2 : 1; } } else { + /* See paragraph "B.10.6 Number of coding passes" of the standard. + * Probably that 109 must be interpreted a (Mb-1)*3 + 1 with Mb=37, + * Mb being the maximum number of bit-planes available for the + * representation of coefficients in the sub-band */ seg->maxpasses = 109; } |
