summaryrefslogtreecommitdiff
path: root/src/lib/openjp2/dwt.c
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2017-08-21 12:25:38 +0200
committerEven Rouault <even.rouault@spatialys.com>2017-08-21 12:25:38 +0200
commit17a7ac42d581c537cfc1da4324e53047ad82b13e (patch)
tree5101231652db0c3117454e531a45db5e190e28fe /src/lib/openjp2/dwt.c
parentf87c5ef7ebef3d7a908e98f2de1b6a0336ae57ae (diff)
Add comments for filter_width values
Diffstat (limited to 'src/lib/openjp2/dwt.c')
-rw-r--r--src/lib/openjp2/dwt.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/openjp2/dwt.c b/src/lib/openjp2/dwt.c
index 96d54df3..b8bbe20a 100644
--- a/src/lib/openjp2/dwt.c
+++ b/src/lib/openjp2/dwt.c
@@ -1676,6 +1676,8 @@ static OPJ_BOOL opj_dwt_decode_partial_tile(opj_tcd_t *tcd,
opj_dwt_t h;
opj_dwt_t v;
OPJ_UINT32 resno;
+ /* This value matches the maximum left/right extension given in tables */
+ /* F.2 and F.3 of the standard. */
const OPJ_UINT32 filter_width = 2U;
opj_tcd_resolution_t* tr = tilec->resolutions;
@@ -2255,6 +2257,9 @@ OPJ_BOOL opj_dwt_decode_partial_97(opj_tcd_t *tcd,
opj_v4dwt_t h;
opj_v4dwt_t v;
OPJ_UINT32 resno;
+ /* This value matches the maximum left/right extension given in tables */
+ /* F.2 and F.3 of the standard. Note: in opj_tcd_is_subband_area_of_interest() */
+ /* we currently use 3. */
const OPJ_UINT32 filter_width = 4U;
opj_tcd_resolution_t* tr = tilec->resolutions;